|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
This interface is used by all classes which contain other components (i.e. typically Panel Controls). This is used to allow the Panel Controls to have a valid parent to attach to which will handle certain functions (such as forwarding packets) and processing incoming packets.
ApplicationHandler,
ComponentHandler,
BaseComponent,
BasePanel| Method Summary | |
void |
addComponent(Packet packet)
This function is used to add a component to the panel. |
BaseComponent |
findBaseComponent()
This function is used to find the parent applet at the top of the chain. |
void |
forwardPacket(Packet packet)
Called by the ReceiveThread and any internal functions when a packet is to be sent to its required destination. |
java.awt.Container |
getContainer()
This function returns the container which holds the child objects. |
short |
getId()
This is a function which spoofs the ID so that the ID of the component which originally sent the message is returned rather than this id. |
java.lang.Object |
getNonVisualObject()
This function returns any non visual element associated with this container. |
java.awt.Component |
getVisualObject()
This function returns the visual element associated with this container. |
void |
internalProcessPacket(Packet packet)
This function is to directly process the commands. |
boolean |
isMyId(int id)
This function returns true if the id handed to it is to be handled here. |
void |
processPacket(Packet packet)
This function takes incoming packets and processes them passing them onto the component which needs it. |
void |
removeAllComponents()
This function is used to remove all sub components from the panel. |
void |
removeComponent(Packet packet)
This function is used to remove a component from the panel. |
void |
setComponentBounds(Packet packet)
This function sets the location or size of the component. |
void |
setEnabled(boolean enabled)
This function is called to enable or disable the control. |
void |
setVisible(boolean visible)
This function is called to show or hide the control. |
| Method Detail |
public void processPacket(Packet packet)
packet - Incoming Packet containing the command and all required parameters.public void internalProcessPacket(Packet packet)
packet - Incoming Packet containing the command and all required parameters.
public void forwardPacket(Packet packet)
throws AmberException
packet - Packet containing the information to send to the specified
component.public short getId()
public boolean isMyId(int id)
id - int containing the ID to check for.public void addComponent(Packet packet)
packet - Packet containing the required information.public void removeComponent(Packet packet)
packet - Packet containing the required information.public void setComponentBounds(Packet packet)
packet - Packet containing the required information.public void removeAllComponents()
public void setVisible(boolean visible)
public void setEnabled(boolean enabled)
public BaseComponent findBaseComponent()
public java.awt.Component getVisualObject()
public java.lang.Object getNonVisualObject()
public java.awt.Container getContainer()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||