agentland.gui
Class MultiFrameGuiFamily

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

public class MultiFrameGuiFamily
extends GuiFamily

See Also:
Serialized Form

Field Summary
protected  Vector elements
           
protected  Hashtable guiFrames
          keys -- GuiElements, values -- JFrames
 
Fields inherited from class agentland.gui.GuiFamily
name, parent
 
Constructor Summary
MultiFrameGuiFamily(String name)
           
 
Method Summary
 void add(GuiElement el)
           
 void elementChanged(GuiElement el)
           
 Container getContainer()
           
protected  JFrame getGuiFrame(GuiElement owner)
          Returns the JFrame that the gui maker was placed in
 void hideGui(GuiElement owner)
          Hide the gui of this gui maker from the screen
 void killGui(GuiElement owner)
          Permanently remove the gui maker and its gui
protected  void removeGui(GuiElement owner)
          Removes all pointers to the gui
 void showGui(GuiElement owner)
          Make this gui maker's gui visible
 
Methods inherited from class agentland.gui.GuiFamily
getName, installed, setName, setParent, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

elements

protected Vector elements

guiFrames

protected Hashtable guiFrames
keys -- GuiElements, values -- JFrames
Constructor Detail

MultiFrameGuiFamily

public MultiFrameGuiFamily(String name)
Method Detail

add

public void add(GuiElement el)
Overrides:
add in class GuiFamily

getContainer

public Container getContainer()
Overrides:
getContainer in class GuiFamily

elementChanged

public void elementChanged(GuiElement el)
Overrides:
elementChanged in class GuiFamily

getGuiFrame

protected JFrame getGuiFrame(GuiElement owner)
Returns the JFrame that the gui maker was placed in

removeGui

protected void removeGui(GuiElement owner)
Removes all pointers to the gui

showGui

public void showGui(GuiElement owner)
Make this gui maker's gui visible
Overrides:
showGui in class GuiFamily

hideGui

public void hideGui(GuiElement owner)
Hide the gui of this gui maker from the screen
Overrides:
hideGui in class GuiFamily

killGui

public void killGui(GuiElement owner)
Permanently remove the gui maker and its gui
Overrides:
killGui in class GuiFamily