|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.rad.genui.UIResource<C>
javax.rad.genui.UIComponent<C>
javax.rad.genui.UIContainer<IPanel>
javax.rad.genui.container.UIPanel
javax.rad.application.genui.Content
javax.rad.application.genui.Application
public abstract class Application
The Application is an abstract implementation of IApplication.
It only implements the methods for loading and creating classes.
| Field Summary | |
|---|---|
static String |
PARAM_SETUP_CLASS
the parameter name for the setup class. |
| Fields inherited from class javax.rad.genui.container.UIPanel |
|---|
imgBack |
| Fields inherited from class javax.rad.genui.UIContainer |
|---|
components |
| Fields inherited from class javax.rad.genui.UIComponent |
|---|
lLastTranslationModified, parent |
| Fields inherited from class javax.rad.genui.UIResource |
|---|
uiResource |
| Fields inherited from interface javax.rad.application.IMessageConstants |
|---|
MESSAGE_BUTTON_OK, MESSAGE_BUTTON_OK_CANCEL, MESSAGE_BUTTON_YES_NO, MESSAGE_ICON_ERROR, MESSAGE_ICON_INFO, MESSAGE_ICON_QUESTION, MESSAGE_ICON_WARNING |
| Constructor Summary | |
|---|---|
Application(UILauncher pLauncher)
Creates a new instance of Application with a desired
launcher. |
|
| Method Summary | ||
|---|---|---|
IContainer |
getApplicationPane()
Gets the standard application pane where the content will be added. |
|
ICursor |
getCursor()
Gets the cursor from the launcher. |
|
UILauncher |
getLauncher()
Returns the platform independent launcher which is associated with this factory. |
|
protected IApplicationSetup |
getSetup()
Gets the application setup, if used. |
|
void |
setCursor(ICursor pCursor)
Sets the cursor of the launcher. |
|
protected void |
setLauncher(UILauncher pLauncher)
Sets the launcher. |
|
|
showError(OP pOpener,
String pMessage)
Shows a message with the IMessageConstants.MESSAGE_ICON_ERROR icon and the
IMessageConstants.MESSAGE_BUTTON_OK button. |
|
|
showError(OP pOpener,
String pMessage,
String pOkAction)
Shows a message with the IMessageConstants.MESSAGE_ICON_ERROR icon and the
IMessageConstants.MESSAGE_BUTTON_OK button. |
|
|
showInformation(OP pOpener,
String pMessage)
Shows a message with the IMessageConstants.MESSAGE_ICON_INFO icon and the
IMessageConstants.MESSAGE_BUTTON_OK button. |
|
|
showInformation(OP pOpener,
String pMessage,
String pOkAction)
Shows a message with the IMessageConstants.MESSAGE_ICON_INFO icon and the
IMessageConstants.MESSAGE_BUTTON_OK button. |
|
|
showQuestion(OP pOpener,
String pMessage,
String pOkAction)
Shows a message with the IMessageConstants.MESSAGE_ICON_QUESTION icon and the
IMessageConstants.MESSAGE_BUTTON_YES_NO buttons. |
|
|
showQuestion(OP pOpener,
String pMessage,
String pOkAction,
String pCancelAction)
Shows a message with the IMessageConstants.MESSAGE_ICON_QUESTION icon and the
IMessageConstants.MESSAGE_BUTTON_YES_NO buttons. |
|
| Methods inherited from class javax.rad.application.genui.Content |
|---|
getOpener, notifyDestroy, notifyVisible, setOpener |
| Methods inherited from class javax.rad.genui.container.UIPanel |
|---|
getBackgroundImage, setBackgroundImage |
| Methods inherited from class javax.rad.genui.UIContainer |
|---|
add, add, add, add, addNotify, beforeAddNotify, checkAdd, getComponent, getComponentCount, getLayout, indexOf, remove, remove, removeAll, removeNotify, setLayout, setZOrder, updateTranslation |
| Methods inherited from class javax.rad.genui.UIResource |
|---|
equals, getUIResource, hashCode, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface javax.rad.application.IApplication |
|---|
getContentPane, showMessage |
| Methods inherited from interface javax.rad.application.IContent |
|---|
getOpener, notifyDestroy, notifyVisible, setOpener |
| Methods inherited from interface javax.rad.ui.IResource |
|---|
getResource |
| Methods inherited from interface javax.rad.ui.IContainer |
|---|
add, add, add, add, getComponent, getComponentCount, getLayout, indexOf, remove, remove, removeAll, setLayout |
| Field Detail |
|---|
public static final String PARAM_SETUP_CLASS
| Constructor Detail |
|---|
public Application(UILauncher pLauncher)
Application with a desired
launcher.
pLauncher - the launcher of this application| Method Detail |
|---|
public UILauncher getLauncher()
getLauncher in interface IApplicationpublic IContainer getApplicationPane()
getApplicationPane in interface IApplicationpublic void setCursor(ICursor pCursor)
setCursor in interface IComponentsetCursor in class UIComponent<IPanel>pCursor - the cursorIComponent.isEnabled(),
IComponent.getCursor(),
Toolkit.createCustomCursor(java.awt.Image, java.awt.Point, java.lang.String),
ICursorpublic ICursor getCursor()
getCursor in interface IComponentgetCursor in class UIComponent<IPanel>IComponent.setCursor(javax.rad.ui.ICursor)
public <OP> IContent showInformation(OP pOpener,
String pMessage)
throws Throwable
IMessageConstants.MESSAGE_ICON_INFO icon and the
IMessageConstants.MESSAGE_BUTTON_OK button.
OP - the opener typepOpener - the opener of the informationpMessage - the message/information to show
null if the message has no content
Throwable - if the message could not be initialized
public <OP> IContent showInformation(OP pOpener,
String pMessage,
String pOkAction)
throws Throwable
IMessageConstants.MESSAGE_ICON_INFO icon and the
IMessageConstants.MESSAGE_BUTTON_OK button.
OP - the opener typepOpener - the opener of the informationpMessage - the message/information to showpOkAction - the action to call when OK was pressed
null if the message has no content
Throwable - if the message could not be initialized
public <OP> IContent showError(OP pOpener,
String pMessage)
throws Throwable
IMessageConstants.MESSAGE_ICON_ERROR icon and the
IMessageConstants.MESSAGE_BUTTON_OK button.
OP - the opener typepOpener - the opener of the informationpMessage - the message/error to show
null if the message has no content
Throwable - if the message could not be initialized
public <OP> IContent showError(OP pOpener,
String pMessage,
String pOkAction)
throws Throwable
IMessageConstants.MESSAGE_ICON_ERROR icon and the
IMessageConstants.MESSAGE_BUTTON_OK button.
OP - the opener typepOpener - the opener of the informationpMessage - the message/error to showpOkAction - the action to call when OK was pressed
null if the message has no content
Throwable - if the message could not be initialized
public <OP> IContent showQuestion(OP pOpener,
String pMessage,
String pOkAction)
throws Throwable
IMessageConstants.MESSAGE_ICON_QUESTION icon and the
IMessageConstants.MESSAGE_BUTTON_YES_NO buttons.
OP - the opener typepOpener - the opener of the informationpMessage - the message/question to showpOkAction - the action to call when yex was pressed
null if the message has no content
Throwable - if the message could not be initialized
public <OP> IContent showQuestion(OP pOpener,
String pMessage,
String pOkAction,
String pCancelAction)
throws Throwable
IMessageConstants.MESSAGE_ICON_QUESTION icon and the
IMessageConstants.MESSAGE_BUTTON_YES_NO buttons.
OP - the opener typepOpener - the opener of the informationpMessage - the message/question to showpOkAction - the action to call when yex was pressedpCancelAction - the action to call when no/x was pressed
null if the message has no content
Throwable - if the message could not be initializedprotected final void setLauncher(UILauncher pLauncher)
pLauncher - the launcherprotected IApplicationSetup getSetup()
null if no specific setup was used
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||