edu.ntnu.item.jt.GUI
Class GUIFrontend

java.lang.Object
  extended by edu.ntnu.item.jt.system.Frontend
      extended by edu.ntnu.item.jt.GUI.GUIFrontend
All Implemented Interfaces:
PropertyChangeListener, EventListener

public class GUIFrontend
extends Frontend
implements PropertyChangeListener

Specialization of Frontend for use with GUI

Author:
Thomas Langerud, Jøran Vagnby Lillesand

Field Summary
 
Fields inherited from class edu.ntnu.item.jt.system.Frontend
debug, UI_GUI, UI_SHELL, verbose
 
Method Summary
 void displayError(String message)
          Display errors regarding the system.
 void displayInfo(String message)
          Display information regarding the system.
 void displayWarning(String message)
          Display warnings regarding the system.
static GUIFrontend getInstance()
          Getter for the GUIFrontend singleton.
 void propertyChange(PropertyChangeEvent evt)
          Invoked when task's progress property changes.
 void sleep(int secs)
          This method sleeps for a given amount of seconds, showing a progress dialog counting down.
 
Methods inherited from class edu.ntnu.item.jt.system.Frontend
displayAnalysisToolsResult, displayScanResults, displayUpdateResults, main
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static GUIFrontend getInstance()
Getter for the GUIFrontend singleton. Returns a reference to the allowed instance of GUI Frontend.

Returns:
reference to the GUI frontend.

displayInfo

public void displayInfo(String message)
Display information regarding the system.

Overrides:
displayInfo in class Frontend
Parameters:
message - the message to be displayed.

displayWarning

public void displayWarning(String message)
Display warnings regarding the system.

Overrides:
displayWarning in class Frontend
Parameters:
message - the message to be displayed.

displayError

public void displayError(String message)
Display errors regarding the system.

Overrides:
displayError in class Frontend
Parameters:
message - the message to be displayed.

sleep

public void sleep(int secs)
This method sleeps for a given amount of seconds, showing a progress dialog counting down.

Overrides:
sleep in class Frontend
Parameters:
secs - The number of seconds to sleep in total.

propertyChange

public void propertyChange(PropertyChangeEvent evt)
Invoked when task's progress property changes.

Specified by:
propertyChange in interface PropertyChangeListener