ucot.ui
Interface UIInterface

All Known Implementing Classes:
GraphicalUI

public interface UIInterface

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
 void printError(java.lang.String errorMessage)
           
 void printError(java.lang.String errorMessage, java.lang.String errorTitle)
          Prints error message to the user.
 java.lang.Object questionDialog(java.lang.String question)
           
 java.lang.Object questionDialog(java.lang.String title, java.lang.String question)
           
 java.lang.Object questionDialog(java.lang.String title, java.lang.String question, int options)
          Shows user a dialog asking a question
 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
 

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)

questionDialog

java.lang.Object questionDialog(java.lang.String title,
                                java.lang.String question,
                                int options)
Shows user a dialog asking a question

Parameters:
title - title of the question dialog
question - question to ask
options - options for the dialog
Returns:
User's choice (e.g. button)

questionDialog

java.lang.Object questionDialog(java.lang.String title,
                                java.lang.String question)

questionDialog

java.lang.Object questionDialog(java.lang.String question)