mil.navy.nps.logger
Interface PduEditInterface


public interface PduEditInterface

This is an interface for an editing pane. The idea is that we have various subclasses of Panel that implement editing for PDUs--a panel with the fields and layout for ESPDUs, fire pdus, detonation PDUs, etc. This panel has to be able to accept a PDU for editing, and be able to update a pdu to the new values the user has typed in the fields. This is what this interface enables--the Panel subclass can accept a PDU, and return an updated PDU object from the fields the user has modified.

Author:
DMcG

Method Summary
 void setPdu(ProtocolDataUnit pPdu)
          When we start editing, we need to pass in a PDU object for the panel to edit.
 ProtocolDataUnit updatedPdu()
          when the user says we're finished editing, the values in the fields need to be updated to the pdu object.
 

Method Detail

setPdu

public void setPdu(ProtocolDataUnit pPdu)
When we start editing, we need to pass in a PDU object for the panel to edit. That's what this does.


updatedPdu

public ProtocolDataUnit updatedPdu()
when the user says we're finished editing, the values in the fields need to be updated to the pdu object. Then we return the PDU object.