|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.fhg.igd.atlas.ui.LSGui
Provides a GUI of the location service which watches and controls
the Location Service Proxy (LSProxy) and Location
Service Server (LSServer).
This Location Service Gui (LSGui) is used to display
the content of locally installed proxy and server storage databases.
It's possible to refresh and delete entries or set the timeout for
the entries.
LSAdminService| Field Summary | |
protected LSAdminService |
adminService_
|
protected JFrame |
commandFrame_
|
protected JMenuItem |
deleteItem_
|
protected LSPEntry[] |
entries_
|
protected TreeMap |
entriesSorted_
|
private Object |
guiEventLock_
|
protected JButton |
infoButton_
|
protected String |
namePrefix_
|
protected JPopupMenu |
popupMenuLong_
|
protected JPopupMenu |
popupMenuShort_
|
protected LSProxyService |
proxyService_
|
protected JMenuItem |
refreshItem_
|
private boolean |
running_
|
protected JScrollPane |
scrollPane_
|
protected LSServerService |
serverService_
|
protected JMenuItem |
setTimeoutItem_
|
protected JMenuItem |
setTimeoutItem2_
|
protected JTable |
table_
|
private boolean |
update_
|
private Object |
updateLock_
|
private Object |
waitLock_
|
protected String |
windowName_
|
| Constructor Summary | |
LSGui()
Default constructor to create an instance of this class. |
|
| Method Summary | |
void |
actionPerformed(ActionEvent a)
Catches action events from infoButton_,
setTimeoutItem_, setTimeoutItem2_,
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 LSProxyService and LSServerService locally and opens a GUI for the found components. |
private void |
updateGUI()
Updates the GUI by requesting the complete database content |
private void |
updateGUI(StorageDBEvent event)
Updates the GUI incrementally by examing the given database |
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 JButton infoButton_
protected transient JPopupMenu popupMenuShort_
protected transient JMenuItem setTimeoutItem2_
protected transient JPopupMenu popupMenuLong_
protected transient JMenuItem setTimeoutItem_
protected transient JMenuItem refreshItem_
protected transient JMenuItem deleteItem_
protected transient LSServerService serverService_
protected transient LSProxyService proxyService_
protected transient LSAdminService adminService_
protected transient LSPEntry[] entries_
protected transient TreeMap entriesSorted_
protected transient String namePrefix_
protected transient String windowName_
private transient Object guiEventLock_
private transient Object updateLock_
private transient Object waitLock_
private transient boolean update_
private transient boolean running_
| Constructor Detail |
public LSGui()
| Method Detail |
public void run()
run in interface Runnableprivate void initGUI()
private void updateGUI()
private void updateGUI(StorageDBEvent event)
event - The database event.public void actionPerformed(ActionEvent a)
infoButton_,
setTimeoutItem_, setTimeoutItem2_,
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 | |||||||||