public class L3Display extends java.lang.Object implements java.awt.event.ActionListener, L3Listener
Constructor and Description |
---|
L3Display(L3Handler handler)
Display 3 fields: a display field for putting status messages in
and displaying the values in received packets; a DestAddr field,
into which the user can type a destination address in the form x.y;
a payload field into which the user types a bit string (0s and 1s).
|
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent e)
Called when the user hits enter in the GUI field, indicating that
a L3 Packet should be created and sent.
|
void |
packetReceived(L3Handler handler,
L3Packet pkt)
Called when a frame is received in the handler from the layer below it.
|
public L3Display(L3Handler handler)
public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed
in interface java.awt.event.ActionListener
public void packetReceived(L3Handler handler, L3Packet pkt)
packetReceived
in interface L3Listener