ucot.ui
Interface UIInterface

All Superinterfaces:
ModulePropertyInterface
All Known Implementing Classes:
DummyUI, GraphicalUI

public interface UIInterface
extends ModulePropertyInterface

Interface for the UI. A means for the core component to notify UI that certain actions have been taken. For example file has been loaded

Author:
vevijopi

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 interface ucot.ModulePropertyInterface
applyProperties, getProperties, loadDefaultProperties, loadProperties, saveProperties, setProperties
 

Method Detail

exportDone

void exportDone()
Core signals user interface that analyze model has been exported


analyzeModelLoaded

void analyzeModelLoaded()
Core signals user interface that analyzemodel has been loaded


useCasesLoaded

void useCasesLoaded()
Core signals user interface that usecases have been loaded from file


useCaseAdded

void useCaseAdded()
Core signals user interface that usecases have been parsed, ran heuristic on and been added to given analyze model


setControlInterface

void setControlInterface(ControlInterface a)
Set control interface

Parameters:
a - control interface (UCOT core)

printError

void printError(java.lang.String errorMessage,
                java.lang.String errorTitle)
Prints error message to the user.

Parameters:
errorMessage - Description of the error.
errorTitle - Title of the dialog

printError

void printError(java.lang.String errorMessage)

printWarning

void printWarning(java.lang.String warningMessage,
                  java.lang.String warningTitle)
Prints a warning to the user.

Parameters:
warningMessage - Description of the warning.
warningTitle - Title of the dialog.

printWarning

void printWarning(java.lang.String warningMessage)

getProgressBar

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.

Returns:
ProgressBar interface to the progress bar.