|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface ThickClientGui
Interface specifying methods that needs to be implemented by specific gui technology such as SWT or AWT for the thick client to function.
| Field Summary | |
|---|---|
static int |
GUI_ANYWHERE
The GUI can be displayed anywhere on the screen. |
static int |
GUI_FULLSCREEN
Display the GUI stretched to the whole screen (the default behavior). |
static int |
GUI_LEFTSCREEN
Display the GUI on the left screen (or left half of the whole screen). |
static int |
GUI_RIGHTSCREEN
Display the GUI on the right screen (or right half of the whole screen). |
static java.lang.String |
MESSAGE_ANSWER_YES
Answer for the MESSAGE_STYLE_YES_NO_QUESTION dialog |
static java.lang.String |
MESSAGE_STYLE_ERROR
Flags required to display error message. |
static java.lang.String |
MESSAGE_STYLE_INFO
Flags required to display information message. |
static java.lang.String |
MESSAGE_STYLE_YES_NO_QUESTION
Flags required to display message with yes/no question. |
static java.lang.String |
MESSAGE_TITLE_ERROR
Title to use for question messages. |
static java.lang.String |
MESSAGE_TITLE_INFO
Title to use for information messages. |
static java.lang.String |
MESSAGE_TITLE_QUESTION
Title to use for question messages. |
| Method Summary | |
|---|---|
void |
activateModule(ThickClientModule module)
Activate specified module so that it is available for user interaction. |
void |
createClientArea()
Create client area of the application. |
void |
createDisplayResources(boolean bHideCursor)
Initialize any resources which are required by gui. |
void |
createMainWindow()
Create the main window of the application with all the default elements, such as toolbar and main client area. |
void |
createModules(java.util.Map mapModules)
Create graphical representation of specified modules |
void |
destroyClientArea()
Release and destroy resources allocated for the client area. |
void |
destroyDisplayResources()
Release resources allocated by GUI. |
void |
destroyMainWindow()
Destroy all resources allocated when main window was created. |
void |
destroyModules(java.util.Map mapModules)
Destroy graphical representation of specified modules |
void |
displayMainWindow(int iScreenPosition,
boolean bFixedSize)
Display the main application window. |
java.lang.Object |
displayMessage(java.lang.String strTitle,
java.lang.String strMessage,
java.lang.Object additionalInfo)
Display message to user. |
java.lang.String |
getGuiTechnology()
Return String identifier for the GUI technology used by the instance of thick client. |
void |
init(ThickClient client)
Initialize the gui for a give client |
void |
interactWithUser()
Main message loop which processes messages for the application caused by user actions such as typing or mouse clicks. |
void |
pasivateModule(ThickClientModule module)
Pasivate the specified module so that it is not available for user interaction anymore. |
| Field Detail |
|---|
static final int GUI_FULLSCREEN
static final int GUI_LEFTSCREEN
static final int GUI_RIGHTSCREEN
static final int GUI_ANYWHERE
static final java.lang.String MESSAGE_STYLE_YES_NO_QUESTION
static final java.lang.String MESSAGE_STYLE_ERROR
static final java.lang.String MESSAGE_STYLE_INFO
static final java.lang.String MESSAGE_ANSWER_YES
static final java.lang.String MESSAGE_TITLE_QUESTION
static final java.lang.String MESSAGE_TITLE_ERROR
static final java.lang.String MESSAGE_TITLE_INFO
| Method Detail |
|---|
void init(ThickClient client)
client - - client to initialize the gui forvoid createDisplayResources(boolean bHideCursor)
bHideCursor - - hide cursor since it might be distractingvoid destroyDisplayResources()
void createMainWindow()
void destroyMainWindow()
void createClientArea()
void destroyClientArea()
void displayMainWindow(int iScreenPosition,
boolean bFixedSize)
iScreenPosition - - screen position where to display the guibFixedSize - - should the gui be fixed sizevoid interactWithUser()
java.lang.String getGuiTechnology()
java.lang.Object displayMessage(java.lang.String strTitle,
java.lang.String strMessage,
java.lang.Object additionalInfo)
strTitle - - title of the message, look at constants in this interfacestrMessage - - message to displayadditionalInfo - - additional information to pass in, this may be
implementation specific, look at constants in this
interface
void createModules(java.util.Map mapModules)
throws OSSException
mapModules - - key is module identification and value is the module
itself (ThickClientModule).
OSSException - - an error has occuredvoid destroyModules(java.util.Map mapModules)
mapModules - - key is module identification and value is the module
itself (ThickClientModule).void pasivateModule(ThickClientModule module)
module - - module to pasivatevoid activateModule(ThickClientModule module)
module - - module to activate
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||