com.ls.cockpit
Interface IUserInterface

All Known Implementing Classes:
CockpitShell

public interface IUserInterface

the interface to all implementations of user interfaces like shell or GUI

Version:
$Revision: 1.2 $
Author:
Last modified by $Author: ASchneider $

Method Summary
 String askToSaveHistory()
          asks if the history should be saved if a new history will be loaded or cockpit will be ended.
 void run()
          runs the thread
 void setUserInterfaceReference()
          sets the reference to the user interface for the commandTemplate.
 boolean updateUI(Object arguments)
          is called by cockpit if something changes.
 

Method Detail

run

public void run()
runs the thread

setUserInterfaceReference

public void setUserInterfaceReference()
sets the reference to the user interface for the commandTemplate. Just to coerce the programmer to implement this method

askToSaveHistory

public String askToSaveHistory()
asks if the history should be saved if a new history will be loaded or cockpit will be ended.
Returns:
String the result. If the history should be saved it contains the file name, otherwise it contains an empty String.

updateUI

public boolean updateUI(Object arguments)
is called by cockpit if something changes. This is used that e.g. the monitor state should be updated. The just arguments contains the command strings should be called to update the needed changes.
Parameters:
arguments - contains all commands should be called to update the needed changes
Returns:
boolean true if successful