agentland.device.phone
Class PhoneGuiMaker
java.lang.Object
|
+--agentland.gui.GuiMaker
|
+--agentland.device.phone.PhoneGuiMaker
- All Implemented Interfaces:
- GuiElement, Serializable
- public class PhoneGuiMaker
- extends GuiMaker
- See Also:
- Serialized Form
Method Summary |
protected void |
buttonPressed()
This method gets called when the button is pressed. |
Container |
getGui()
Has to be overriden by children; this is where you produce the
object to be displayed. |
void |
init()
This method gets called when the GuiMaker arrives at the
GuiManager and can start connecting itself to the rest of the
world. |
void |
tell(Secret secret)
This method receives secrets from the notifier |
Methods inherited from class agentland.gui.GuiMaker |
addSpy, equals, getContainer, getFamily, getFamilyObject, getName, getParent, hashCode, hideMe, installed, killMe, log, log, log, notify, reliesOn, reliesOn, setFamily, setFamilyClass, setHost, setName, setParent, showMe, toString, visible |
phoneStatusMessage
protected String phoneStatusMessage
statusMessage
protected JLabel statusMessage
button
protected JButton button
PhoneGuiMaker
public PhoneGuiMaker(String name,
AgentID parent)
tell
public void tell(Secret secret)
- This method receives secrets from the notifier
- Overrides:
tell
in class GuiMaker
- See Also:
Notifier
init
public void init()
- Description copied from class:
GuiMaker
- This method gets called when the GuiMaker arrives at the
GuiManager and can start connecting itself to the rest of the
world. You should override this method and do all of your
reliesOn and spy adding, etc, in here.
- Overrides:
init
in class GuiMaker
getGui
public Container getGui()
- Description copied from class:
GuiMaker
- Has to be overriden by children; this is where you produce the
object to be displayed. You produce it in the vm of the
GuiManger -- that way we avoid all the serialization issues
with graphical elements in Java.
- Overrides:
getGui
in class GuiMaker
- Following copied from class:
agentland.gui.GuiMaker
- Returns:
- something that can be displayed in a frame
buttonPressed
protected void buttonPressed()
- This method gets called when the button is pressed. It will do
different things depending on the current state of the phone
interaction