ucot.ui
Class DummyUI

java.lang.Object
  extended by ucot.ModuleProperties
      extended by ucot.ui.DummyUI
All Implemented Interfaces:
ModulePropertyInterface, UIInterface

public class DummyUI
extends ModuleProperties
implements UIInterface

DummyUI which does absolutely nothing but helps avoiding null values in UI variables. Errors and warnings do get logged.

Author:
tujupien

Field Summary
static java.lang.String DEFAULT_ERROR_TITLE
           
static java.lang.String DEFAULT_WARNING_TITLE
           
private  java.util.logging.Logger logger
           
 
Fields inherited from class ucot.ModuleProperties
properties, propertiesURL
 
Constructor Summary
DummyUI()
           
 
Method Summary
 void analyzeModelLoaded()
          Method for signaling the user interface that the analyze model has been (successfully) loaded.
 void exportDone()
          Method for signaling the user interface that the analyze model has been (successfully) exported.
 ProgressBarInterface getProgressBar()
          Method for getting a new progressbar for showing the current progress status to the user and halting all other usage of the model editor.
 void printError(java.lang.String errorMessage)
           
 void printError(java.lang.String errorMessage, java.lang.String errorTitle)
          Prints an error message to the screen.
 void printWarning(java.lang.String warningMessage)
           
 void printWarning(java.lang.String warningMessage, java.lang.String warningTitle)
          Prints a warning to the screen.
 void setControlInterface(ControlInterface a)
          Set a new control interface for the user interface to use.
 void useCaseAdded(int foundEntities, int addedEntities)
          Core signals user interface that usecases have been parsed, ran heuristic on and been added to given analyze model.
 void useCasesLoaded()
          Method for signaling user interface that use cases have been (successfully) loaded from file.
 
Methods inherited from class ucot.ModuleProperties
applyProperties, getProperties, loadDefaultProperties, loadProperties, saveProperties, setProperties
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface ucot.ModulePropertyInterface
applyProperties, getProperties, loadDefaultProperties, loadProperties, saveProperties, setProperties
 

Field Detail

DEFAULT_ERROR_TITLE

public static final java.lang.String DEFAULT_ERROR_TITLE

DEFAULT_WARNING_TITLE

public static final java.lang.String DEFAULT_WARNING_TITLE

logger

private java.util.logging.Logger logger
Constructor Detail

DummyUI

public DummyUI()
Method Detail

exportDone

public void exportDone()
Description copied from interface: UIInterface

Method for signaling the user interface that the analyze model has been (successfully) exported.

Specified by:
exportDone in interface UIInterface

analyzeModelLoaded

public void analyzeModelLoaded()
Description copied from interface: UIInterface

Method for signaling the user interface that the analyze model has been (successfully) loaded.

Specified by:
analyzeModelLoaded in interface UIInterface

useCasesLoaded

public void useCasesLoaded()
Description copied from interface: UIInterface

Method for signaling user interface that use cases have been (successfully) loaded from file.

Specified by:
useCasesLoaded in interface UIInterface

useCaseAdded

public void useCaseAdded(int foundEntities,
                         int addedEntities)
Description copied from interface: UIInterface

Core signals user interface that usecases have been parsed, ran heuristic on and been added to given analyze model.

Specified by:
useCaseAdded in interface UIInterface
Parameters:
foundEntities - How many entities the parser found.
addedEntities - How many entities were added.

setControlInterface

public void setControlInterface(ControlInterface a)
Description copied from interface: UIInterface

Set a new control interface for the user interface to use.

Specified by:
setControlInterface in interface UIInterface
Parameters:
a - ControlInterface to the UCOT core.

printError

public void printError(java.lang.String errorMessage,
                       java.lang.String errorTitle)
Description copied from interface: UIInterface

Prints an error message to the screen.

Specified by:
printError in interface UIInterface
Parameters:
errorMessage - Description of the error.
errorTitle - Title of the dialog.

printError

public void printError(java.lang.String errorMessage)
Specified by:
printError in interface UIInterface

printWarning

public void printWarning(java.lang.String warningMessage,
                         java.lang.String warningTitle)
Description copied from interface: UIInterface

Prints a warning to the screen.

Specified by:
printWarning in interface UIInterface
Parameters:
warningMessage - Description of the warning.
warningTitle - Title of the dialog.

printWarning

public void printWarning(java.lang.String warningMessage)
Specified by:
printWarning in interface UIInterface

getProgressBar

public ProgressBarInterface getProgressBar()
Description copied from interface: UIInterface

Method for getting a new progressbar for showing the current progress status to the user and halting all other usage of the model editor.

Specified by:
getProgressBar in interface UIInterface
Returns:
ProgressBar interface to the progress bar.