edu.ntnu.item.jt.GUI
Class GUIConfigEditor

java.lang.Object
  extended by edu.ntnu.item.jt.GUI.GUIConfigEditor
All Implemented Interfaces:
ActionListener, WindowListener, EventListener, ChangeListener

public class GUIConfigEditor
extends Object
implements ActionListener, WindowListener, ChangeListener

This is the main class of the GUI config editor system, and represents the main window of the editor. All events on this window is handled by private methods in this class.

Author:
Thomas Langerud

Field Summary
 String ADD_HOST_BUTTON_COMMAND
           
 String ADD_VM_BUTTON_COMMAND
           
 String EDIT_AVE_BUTTON_COMMAND
           
 String EDIT_DAT_BUTTON_COMMAND
           
(package private)  String EDIT_WINDOW_TITLE
           
(package private)  String EXIT_WARNING_QUESTION
           
(package private)  String LOOK_AND_FEEL_PATH
           
 String NEW_AVE_BUTTON_COMMAND
           
 String NEW_DAT_BUTTON_COMMAND
           
(package private)  String REGPATH_CONFIG_EDITOR
           
 
Constructor Summary
GUIConfigEditor(GUI gui)
          Public constructor to create a new config editor window
 
Method Summary
 void actionPerformed(ActionEvent e)
           
 void stateChanged(ChangeEvent evt)
           
 void windowActivated(WindowEvent arg0)
           
 void windowClosed(WindowEvent arg0)
           
 void windowClosing(WindowEvent arg0)
           
 void windowDeactivated(WindowEvent arg0)
           
 void windowDeiconified(WindowEvent arg0)
           
 void windowIconified(WindowEvent arg0)
           
 void windowOpened(WindowEvent arg0)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EDIT_WINDOW_TITLE

final String EDIT_WINDOW_TITLE
See Also:
Constant Field Values

LOOK_AND_FEEL_PATH

final String LOOK_AND_FEEL_PATH
See Also:
Constant Field Values

EXIT_WARNING_QUESTION

final String EXIT_WARNING_QUESTION
See Also:
Constant Field Values

REGPATH_CONFIG_EDITOR

final String REGPATH_CONFIG_EDITOR
See Also:
Constant Field Values

EDIT_AVE_BUTTON_COMMAND

public final String EDIT_AVE_BUTTON_COMMAND
See Also:
Constant Field Values

NEW_AVE_BUTTON_COMMAND

public final String NEW_AVE_BUTTON_COMMAND
See Also:
Constant Field Values

EDIT_DAT_BUTTON_COMMAND

public final String EDIT_DAT_BUTTON_COMMAND
See Also:
Constant Field Values

NEW_DAT_BUTTON_COMMAND

public final String NEW_DAT_BUTTON_COMMAND
See Also:
Constant Field Values

ADD_VM_BUTTON_COMMAND

public final String ADD_VM_BUTTON_COMMAND
See Also:
Constant Field Values

ADD_HOST_BUTTON_COMMAND

public final String ADD_HOST_BUTTON_COMMAND
See Also:
Constant Field Values
Constructor Detail

GUIConfigEditor

public GUIConfigEditor(GUI gui)
Public constructor to create a new config editor window

Parameters:
gui - reference to the main GUI window.
Method Detail

actionPerformed

public void actionPerformed(ActionEvent e)
Specified by:
actionPerformed in interface ActionListener

windowActivated

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

windowClosed

public void windowClosed(WindowEvent arg0)
Specified by:
windowClosed in interface WindowListener

windowClosing

public void windowClosing(WindowEvent arg0)
Specified by:
windowClosing in interface WindowListener

windowDeactivated

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

windowDeiconified

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

windowIconified

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

windowOpened

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

stateChanged

public void stateChanged(ChangeEvent evt)
Specified by:
stateChanged in interface ChangeListener