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:
UCOT

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()
          Core signals user interface that analyzemodel has been loaded
 void exportDone()
          Core signals user interface that analyze model has been 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 error message to the user.
 void printWarning(java.lang.String warningMessage)
           
 void printWarning(java.lang.String warningMessage, java.lang.String warningTitle)
          Prints a warning to the user.
 void setControlInterface(ControlInterface a)
          Set control interface
 void useCaseAdded()
          Core signals user interface that usecases have been parsed, ran heuristic on and been added to given analyze model
 void useCasesLoaded()
          Core signals user interface that usecases have been 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
Core signals user interface that analyze model has been exported

Specified by:
exportDone in interface UIInterface

analyzeModelLoaded

public void analyzeModelLoaded()
Description copied from interface: UIInterface
Core signals user interface that analyzemodel has been loaded

Specified by:
analyzeModelLoaded in interface UIInterface

useCasesLoaded

public void useCasesLoaded()
Description copied from interface: UIInterface
Core signals user interface that usecases have been loaded from file

Specified by:
useCasesLoaded in interface UIInterface

useCaseAdded

public void useCaseAdded()
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

setControlInterface

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

Specified by:
setControlInterface in interface UIInterface
Parameters:
a - control interface (UCOT core)

printError

public void printError(java.lang.String errorMessage,
                       java.lang.String errorTitle)
Description copied from interface: UIInterface
Prints error message to the user.

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 user.

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.