|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--java.awt.event.WindowAdapter
|
+--AgentGUI
Project: DECAF
Class: AgentGUI
Description: This class is meant to make Agent GUI creation easier.
| Constructor Summary | |
AgentGUI(java.lang.String agentName)
Constructor that takes only the name of the agent, and sets up a blank desktop. |
|
AgentGUI(java.lang.String agentName,
java.lang.String windows)
Constructor to set up a desktop with text windows. |
|
| Method Summary | |
void |
addMenu(javax.swing.JMenu menu)
Add a menu to the menu bar. |
void |
itemStateChanged(java.awt.event.ItemEvent e)
Listens to the check boxes in the view menu. |
void |
message(java.lang.String name,
java.lang.String message)
Prints a message to the specified text message window. |
void |
newWindow(javax.swing.JInternalFrame newframe)
Insert a customized window onto the desktop. |
void |
newWindow(java.lang.String name)
Insert a text message window on the desktop. |
void |
removeMenu(java.lang.String name)
Remove a menu from the menu bar. |
void |
removeWindow(java.lang.String name)
Remove a window from the desktop. |
void |
windowClosing(java.awt.event.WindowEvent e)
Sends a KQML shutdown message when the close button is pressed. |
| Methods inherited from class java.awt.event.WindowAdapter |
windowActivated, windowClosed, windowDeactivated, windowDeiconified, windowGainedFocus, windowIconified, windowLostFocus, windowOpened, windowStateChanged |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public AgentGUI(java.lang.String agentName)
agentName - The name of the agent appears in the window title.
public AgentGUI(java.lang.String agentName,
java.lang.String windows)
agentName - The name of the agent appears in the window title.windows - A '|' separated list of window names.| Method Detail |
public void windowClosing(java.awt.event.WindowEvent e)
windowClosing in interface java.awt.event.WindowListenerwindowClosing in class java.awt.event.WindowAdaptere - A window event.public void addMenu(javax.swing.JMenu menu)
menu - The menu to be added.public void removeMenu(java.lang.String name)
public void removeWindow(java.lang.String name)
name - The name of the window to be removed.public void newWindow(javax.swing.JInternalFrame newframe)
newframe - The frame to be added.public void newWindow(java.lang.String name)
name - The title of the window.public void itemStateChanged(java.awt.event.ItemEvent e)
itemStateChanged in interface java.awt.event.ItemListenere - An item event indicating a state change.
public void message(java.lang.String name,
java.lang.String message)
name - The name of the window.message - The message to be displayed.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||