agentland.gui
Class TextGuiMaker

java.lang.Object
  |
  +--agentland.gui.GuiMaker
        |
        +--agentland.gui.TextGuiMaker
All Implemented Interfaces:
GuiElement, Serializable

public class TextGuiMaker
extends GuiMaker

This is a gui maker for the TextGui agent

See Also:
TextGuiAgent, GuiMaker, Serialized Form

Field Summary
protected  JButton button
           
protected  String text
           
 
Fields inherited from class agentland.gui.GuiMaker
container, family, familyClassName, familyName, host, name, parent, visible
 
Constructor Summary
TextGuiMaker(String name, AgentID parent, String text)
           
 
Method Summary
protected  void buttonPressed()
          This method gets called when the discard button gets called.
 boolean equals(Object o)
           
 Container getGui()
          Creates the gui 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)
          Allows the gui to receive secrets from the outside world
 
Methods inherited from class agentland.gui.GuiMaker
addSpy, getContainer, getFamily, getFamilyObject, getName, getParent, hashCode, hideMe, installed, killMe, log, log, log, notify, reliesOn, reliesOn, setFamily, setFamilyClass, setHost, setName, setParent, showMe, toString, visible
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

text

protected String text

button

protected JButton button
Constructor Detail

TextGuiMaker

public TextGuiMaker(String name,
                    AgentID parent,
                    String text)
Method Detail

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()
Creates the gui object to be displayed
Overrides:
getGui in class GuiMaker
Following copied from class: agentland.gui.GuiMaker
Returns:
something that can be displayed in a frame

tell

public void tell(Secret secret)
Description copied from class: GuiMaker
Allows the gui to receive secrets from the outside world
Overrides:
tell in class GuiMaker
Following copied from class: agentland.gui.GuiMaker
Parameters:
secret - a Secret value

buttonPressed

protected void buttonPressed()
This method gets called when the discard button gets called. It is the job of this method to notify all other guis as well as the parent that this message has been discarded

equals

public boolean equals(Object o)
Overrides:
equals in class GuiMaker