| java.lang.Object org.openharmonise.him.context.StateHandler
StateHandler | public class StateHandler (Code) | | The state handler maintains the "busy" state of the application.
Following the singleton pattern, any object can add a "wait" to the
state handler, which will then inform the UI elements that indicate
this to the user. The state handler will deal with overlapping "waits"
only removing the UI indications when all "waits" have been cleared.
author: Matthew Large version: $Revision: 1.1 $ |
addWait | public void addWait(String sWaitName)(Code) | | Adds a "wait" to the state handler.
Parameters: sWaitName - Wait name |
addWait | public void addWait(String sWaitName, String sBarText)(Code) | | Adds a "wait" to the state handler.
Parameters: sWaitName - Wait name Parameters: sBarText - Status bar message |
addWait | public void addWait(Component comp, String sWaitName)(Code) | | Adds a "wait" to the state handler.
Parameters: comp - Component to set the cursor on, for dialogs Parameters: sWaitName - Wait name |
addWait | public void addWait(Component comp, String sWaitName, String sBarText)(Code) | | Adds a "wait" to the state handler.
Parameters: comp - Component to set the cursor on, for dialogs Parameters: sWaitName - Wait name Parameters: sBarText - Status bar message |
getBarText | public String getBarText()(Code) | | Returns the message to be displayed in the status bar.
Status bar message |
getInstance | public static StateHandler getInstance()(Code) | | Returns the handler instance, follows the singleton pattern.
Handler instance |
removeWait | public void removeWait(Component comp, String sWaitName)(Code) | | Removes a "wait" from the state handler.
Parameters: comp - Component to set the cursor on, for dialogs Parameters: sWaitName - Wait name |
removeWait | public void removeWait(String sWaitName)(Code) | | Removes a "wait" from the state handler.
Parameters: sWaitName - Wait name |
setApplicationWindow | public void setApplicationWindow(JFrame frame)(Code) | | Sets the main application window on which the cursor is to be
set.
Parameters: frame - Main application frame |
|
|