package mil.navy.nps.logger; import mil.navy.nps.dis.*; import mil.navy.nps.util.*; import java.awt.*; import java.awt.event.*; import javax.swing.*; /** * This is a place-holder. Normally each type of pdu has its own editor * subclass. But, time being what it is, not every subclass has been handled * yet. So if they user clicks on a pdu that doesn't have an editor yet, * this gets used on the screen.

* * @author DMcG */ public class DefaultEditor extends PduEditPanel { public DefaultEditor() { super(); this.add(new JLabel("No editor for this type of pdu has yet been written")); } /** * When we start editing, we need to pass in a PDU object * for the panel to edit. That's what this does. */ public void setPdu(ProtocolDataUnit pPdu) { } /** * 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. */ public ProtocolDataUnit updatePdu() { return null; } }