de.fhg.igd.atlas.ui
Class SetUpdateTimePanel

java.lang.Object
  extended byjava.lang.Thread
      extended byde.fhg.igd.atlas.ui.SetUpdateTimePanel
All Implemented Interfaces:
ActionListener, EventListener, Runnable, WindowListener

class SetUpdateTimePanel
extends Thread
implements WindowListener, ActionListener

Provides a Popup panel which allows to input a new update time value as string.

Version:
"$Id: AgentTracerGui.java 1913 2007-08-08 02:41:53Z jpeters $"
Author:
Jan Peters

Field Summary
protected  String defaultStr_
           
protected  JTextField field_
           
protected  JFrame frame_
           
protected  AgentTracerGui gui_
           
protected  String labelStr_
           
protected  int posX_
           
protected  int posY_
           
protected  Object waitLock_
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
SetUpdateTimePanel(AgentTracerGui gui)
          Creates an instance of this class.
 
Method Summary
 void actionPerformed(ActionEvent a)
          Catches action events from the text field.
 void run()
          Opens the input panel and waits for results.
 void windowActivated(WindowEvent e)
           
 void windowClosed(WindowEvent e)
          Called after main window has been closed.
 void windowClosing(WindowEvent e)
          Disposes the main window on closing event.
 void windowDeactivated(WindowEvent e)
           
 void windowDeiconified(WindowEvent e)
           
 void windowIconified(WindowEvent e)
           
 void windowOpened(WindowEvent e)
           
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

frame_

protected JFrame frame_

field_

protected JTextField field_

waitLock_

protected Object waitLock_

gui_

protected AgentTracerGui gui_

labelStr_

protected String labelStr_

defaultStr_

protected String defaultStr_

posX_

protected int posX_

posY_

protected int posY_
Constructor Detail

SetUpdateTimePanel

public SetUpdateTimePanel(AgentTracerGui gui)
Creates an instance of this class.

Parameters:
gui - The reference to the Agent Tracer GUI.
Method Detail

run

public void run()
Opens the input panel and waits for results.

Specified by:
run in interface Runnable

windowClosed

public void windowClosed(WindowEvent e)
Called after main window has been closed. Notifies the panel of this event, that the panel can be terminated (frame_ == null).

Specified by:
windowClosed in interface WindowListener
Parameters:
e - The window event.

windowClosing

public void windowClosing(WindowEvent e)
Disposes the main window on closing event.

Specified by:
windowClosing in interface WindowListener
Parameters:
e - The window event.

windowActivated

public void windowActivated(WindowEvent e)
Specified by:
windowActivated in interface WindowListener

windowDeactivated

public void windowDeactivated(WindowEvent e)
Specified by:
windowDeactivated in interface WindowListener

windowDeiconified

public void windowDeiconified(WindowEvent e)
Specified by:
windowDeiconified in interface WindowListener

windowIconified

public void windowIconified(WindowEvent e)
Specified by:
windowIconified in interface WindowListener

windowOpened

public void windowOpened(WindowEvent e)
Specified by:
windowOpened in interface WindowListener

actionPerformed

public void actionPerformed(ActionEvent a)
Catches action events from the text field. Notifies the panel of this event, that the timout can be set (frame_ != null) and the panel can be terminated.

Specified by:
actionPerformed in interface ActionListener
Parameters:
a - The action event.


Copyright © Fraunhofer Gesellschaft. All Rights Reserved.