|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.fhg.igd.atlas.ui.AgentTracerGui
Provides a GUI for the AgentTracer which traces the contact addresses
of agents in a certain watch list.
This Agent Tracer Gui (AgentTracerGui) is used to display
the tracked agents together with their current contact address.
It's possible to delete entries from the watch list and to set the update
time of the agent tracer daemon.
AgentTracer| Field Summary | |
protected AgentTracer |
agentTracer_
|
protected JFrame |
commandFrame_
|
protected SortedMap |
contactAddresses_
|
protected JMenuItem |
deleteItem_
|
protected byte[][] |
entries_
|
private Object |
guiEventLock_
|
protected String |
namePrefix_
|
protected JPopupMenu |
popupMenuContext_
|
protected JPopupMenu |
popupMenuGlobal_
|
protected JMenuItem |
refreshItem_
|
private boolean |
running_
|
protected JScrollPane |
scrollPane_
|
protected JMenuItem |
setUpdateTimeItem_
|
protected JMenuItem |
setUpdateTimeItem2_
|
protected JTable |
table_
|
private Object |
updateLock_
|
private Object |
waitLock_
|
protected String |
windowName_
|
| Constructor Summary | |
AgentTracerGui()
Default constructor to create an instance of this class. |
|
| Method Summary | |
void |
actionPerformed(ActionEvent a)
Catches action events from setUpdateTimeItem_, setUpdateTimeItem2_,
refreshItem_ and deleteItem_. |
private void |
initGUI()
Initialize the GUI with a table to display the database entries. |
static void |
main(String[] argv)
Starts the GUI from command line. |
void |
mouseClicked(MouseEvent e)
Catches mouse events within table_ and
scrollPain_ used to open an close a context menu. |
void |
mouseEntered(MouseEvent e)
|
void |
mouseExited(MouseEvent e)
|
void |
mousePressed(MouseEvent e)
|
void |
mouseReleased(MouseEvent e)
|
void |
notifiedOf(Object obj)
This method is called from the proxy's or server's event reflector and informs the class of changes of their database's state. |
void |
run()
Searches the AgentTracer locally and opens a GUI. |
private void |
updateGUI()
Updates the GUI by requesting the current agent tracer data. |
void |
windowActivated(WindowEvent e)
|
void |
windowClosed(WindowEvent e)
Called after main window has been closed. |
void |
windowClosing(WindowEvent e)
Disposes the main window. |
void |
windowDeactivated(WindowEvent e)
|
void |
windowDeiconified(WindowEvent e)
|
void |
windowIconified(WindowEvent e)
|
void |
windowOpened(WindowEvent e)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected transient JFrame commandFrame_
protected transient JScrollPane scrollPane_
protected transient JTable table_
protected transient JPopupMenu popupMenuGlobal_
protected transient JMenuItem setUpdateTimeItem2_
protected transient JPopupMenu popupMenuContext_
protected transient JMenuItem setUpdateTimeItem_
protected transient JMenuItem refreshItem_
protected transient JMenuItem deleteItem_
protected transient AgentTracer agentTracer_
protected transient byte[][] entries_
protected transient SortedMap contactAddresses_
protected transient String namePrefix_
protected transient String windowName_
private transient Object guiEventLock_
private transient Object updateLock_
private transient Object waitLock_
private transient boolean running_
| Constructor Detail |
public AgentTracerGui()
| Method Detail |
public void run()
run in interface Runnableprivate void initGUI()
private void updateGUI()
public void actionPerformed(ActionEvent a)
setUpdateTimeItem_, setUpdateTimeItem2_,
refreshItem_ and deleteItem_.
Used to handle the buttons and context menu items.
actionPerformed in interface ActionListenera - The action event.public void mouseClicked(MouseEvent e)
table_ and
scrollPain_ used to open an close a context menu.
mouseClicked in interface MouseListenere - The mouse event.public void mouseEntered(MouseEvent e)
mouseEntered in interface MouseListenerpublic void mouseExited(MouseEvent e)
mouseExited in interface MouseListenerpublic void mousePressed(MouseEvent e)
mousePressed in interface MouseListenerpublic void mouseReleased(MouseEvent e)
mouseReleased in interface MouseListenerpublic void windowClosed(WindowEvent e)
windowClosed in interface WindowListenere - The window event.public void windowClosing(WindowEvent e)
windowClosing in interface WindowListenere - The window event.public void windowActivated(WindowEvent e)
windowActivated in interface WindowListenerpublic void windowDeactivated(WindowEvent e)
windowDeactivated in interface WindowListenerpublic void windowDeiconified(WindowEvent e)
windowDeiconified in interface WindowListenerpublic void windowIconified(WindowEvent e)
windowIconified in interface WindowListenerpublic void windowOpened(WindowEvent e)
windowOpened in interface WindowListenerpublic void notifiedOf(Object obj)
notifiedOf in interface Listenerobj - The object describing the action.public static void main(String[] argv)
argv - The command line parameters.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||