|
||||||||||
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.ControllerContent
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 java.lang.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 |
---|
allComponents, components |
Fields inherited from class javax.rad.genui.UIComponent |
---|
bTranslate, lLastTranslationModified, parent, popupMenu |
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_BUTTON_YES_NO_CANCEL, MESSAGE_ICON_ERROR, MESSAGE_ICON_INFO, MESSAGE_ICON_QUESTION, MESSAGE_ICON_WARNING |
Fields inherited from interface javax.rad.model.ui.IController |
---|
PROPERTY_SEARCH_VISIBLE |
Fields inherited from interface javax.rad.model.ui.IControllable |
---|
COMMAND_DELETE, COMMAND_DUPLICATE, COMMAND_EDIT, COMMAND_EXPORT, COMMAND_FIRST, COMMAND_INSERT, COMMAND_INSERT_SUB, COMMAND_LAST, COMMAND_NEXT, COMMAND_PREVIOUS, COMMAND_RESTORE, COMMAND_SEARCH |
Constructor Summary | |
---|---|
Application(UILauncher pLauncher)
Creates a new instance of Application with a desired
launcher. |
Method Summary | ||
---|---|---|
protected void |
applySetup(IApplicationSetup pSetup)
Applies the given application setup. |
|
IContainer |
getApplicationPane()
Gets the standard application pane where the content will be added. |
|
IContainer |
getContentPane()
Gets the content pane for the application. |
|
java.lang.Object |
getControllerProperty(java.lang.String pName)
Gets the current value of the given controller property. |
|
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 |
notifyDestroy()
Cancels all pending launcher threads. |
|
void |
setCursor(ICursor pCursor)
Sets the cursor of the launcher. |
|
protected void |
setLauncher(UILauncher pLauncher)
Sets the launcher. |
|
|
showError(OP pOpener,
java.lang.String pMessage)
Shows a message with the IMessageConstants.MESSAGE_ICON_ERROR icon and the
IMessageConstants.MESSAGE_BUTTON_OK button. |
|
|
showError(OP pOpener,
java.lang.String pMessage,
java.lang.String pOkAction)
Shows a message with the IMessageConstants.MESSAGE_ICON_ERROR icon and the
IMessageConstants.MESSAGE_BUTTON_OK button. |
|
|
showInformation(OP pOpener,
java.lang.String pMessage)
Shows a message with the IMessageConstants.MESSAGE_ICON_INFO icon and the
IMessageConstants.MESSAGE_BUTTON_OK button. |
|
|
showInformation(OP pOpener,
java.lang.String pMessage,
java.lang.String pOkAction)
Shows a message with the IMessageConstants.MESSAGE_ICON_INFO icon and the
IMessageConstants.MESSAGE_BUTTON_OK button. |
|
|
showMessage(OP pOpener,
int pIconType,
int pButtonType,
java.lang.String pMessage,
java.lang.String pOkAction,
java.lang.String pCancelAction)
Shows a message. |
|
|
showQuestion(OP pOpener,
java.lang.String pMessage,
java.lang.String pOkAction)
Shows a message with the IMessageConstants.MESSAGE_ICON_QUESTION icon and the
IMessageConstants.MESSAGE_BUTTON_YES_NO buttons. |
|
|
showQuestion(OP pOpener,
java.lang.String pMessage,
java.lang.String pOkAction,
java.lang.String pCancelAction)
Shows a message with the IMessageConstants.MESSAGE_ICON_QUESTION icon and the
IMessageConstants.MESSAGE_BUTTON_YES_NO buttons. |
|
|
showWarning(OP pOpener,
java.lang.String pMessage)
Shows a warning with the IMessageConstants.MESSAGE_ICON_WARNING icon and the
IMessageConstants.MESSAGE_BUTTON_OK button. |
|
|
showWarning(OP pOpener,
java.lang.String pMessage,
java.lang.String pOkAction)
Shows a warning with the IMessageConstants.MESSAGE_ICON_WARNING icon and the
IMessageConstants.MESSAGE_BUTTON_OK buttons. |
Methods inherited from class javax.rad.application.genui.Content |
---|
createComponentName, getOpener, isDestroyed, 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, addInternal, beforeAddNotify, checkAdd, contains, getComponent, getComponentCount, getComponents, getInsets, getLayout, getUIResourceContainer, indexOf, remove, remove, removeAll, removeInternal, setLayout, setUIResourceContainer, setZOrder, updateTranslation |
Methods inherited from class javax.rad.genui.UIResource |
---|
eventResourceChanged, eventResourceChanged, fireResourceChanged, getObject, getObjectNames, getUIResource, hasResourceHandler, putObject, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface javax.rad.application.IContent |
---|
getOpener, isDestroyed, notifyVisible, setOpener |
Methods inherited from interface javax.rad.ui.IResource |
---|
getResource |
Methods inherited from interface javax.rad.model.ui.ITranslatable |
---|
getTranslation, isTranslationEnabled, setTranslation, setTranslationEnabled |
Methods inherited from interface javax.rad.util.ITranslator |
---|
translate |
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 java.lang.String PARAM_SETUP_CLASS
Constructor Detail |
---|
public Application(UILauncher pLauncher)
Application
with a desired
launcher.
pLauncher
- the launcher of this applicationMethod Detail |
---|
public UILauncher getLauncher()
getLauncher
in interface IApplication
public <OP> IContent showMessage(OP pOpener, int pIconType, int pButtonType, java.lang.String pMessage, java.lang.String pOkAction, java.lang.String pCancelAction) throws java.lang.Throwable
showMessage
in interface IApplication
OP
- the opener typepOpener
- the opener/parent component which wants to display the messagepIconType
- the icon type IMessageConstants.MESSAGE_ICON_INFO
, IMessageConstants.MESSAGE_ICON_WARNING
, IMessageConstants.MESSAGE_ICON_ERROR
pButtonType
- the button type IMessageConstants.MESSAGE_BUTTON_OK_CANCEL
, IMessageConstants.MESSAGE_BUTTON_YES_NO
, IMessageConstants.MESSAGE_BUTTON_OK
pMessage
- the messagepOkAction
- the action name to call when ok or yes was clickedpCancelAction
- the action name to call when cancel or close was clicked
null
if the message has no content
java.lang.Throwable
- if the message could not be initializedpublic IContainer getApplicationPane()
getApplicationPane
in interface IApplication
public IContainer getContentPane()
getContentPane
in interface IApplication
public void setCursor(ICursor pCursor)
setCursor
in interface IComponent
setCursor
in class UIComponent<IPanel>
pCursor
- the cursorIComponent.isEnabled()
,
IComponent.getCursor()
,
Toolkit.createCustomCursor(java.awt.Image, java.awt.Point, java.lang.String)
,
ICursor
public ICursor getCursor()
getCursor
in interface IComponent
getCursor
in class UIComponent<IPanel>
IComponent.setCursor(javax.rad.ui.ICursor)
public void notifyDestroy()
notifyDestroy
in interface IContent
notifyDestroy
in class Content
public java.lang.Object getControllerProperty(java.lang.String pName)
Controller.
, e.g.
Controller.name.
getControllerProperty
in interface IController
getControllerProperty
in class ControllerContent
pName
- the name of the property
null
if the property was not foundpublic <OP> IContent showInformation(OP pOpener, java.lang.String pMessage) throws java.lang.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
java.lang.Throwable
- if the message could not be initializedpublic <OP> IContent showInformation(OP pOpener, java.lang.String pMessage, java.lang.String pOkAction) throws java.lang.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
java.lang.Throwable
- if the message could not be initializedpublic <OP> IContent showError(OP pOpener, java.lang.String pMessage) throws java.lang.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
java.lang.Throwable
- if the message could not be initializedpublic <OP> IContent showError(OP pOpener, java.lang.String pMessage, java.lang.String pOkAction) throws java.lang.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
java.lang.Throwable
- if the message could not be initializedpublic <OP> IContent showQuestion(OP pOpener, java.lang.String pMessage, java.lang.String pOkAction) throws java.lang.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 yes was pressed
null
if the message has no content
java.lang.Throwable
- if the message could not be initializedpublic <OP> IContent showQuestion(OP pOpener, java.lang.String pMessage, java.lang.String pOkAction, java.lang.String pCancelAction) throws java.lang.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 yes was pressedpCancelAction
- the action to call when no/x was pressed
null
if the message has no content
java.lang.Throwable
- if the message could not be initializedpublic <OP> IContent showWarning(OP pOpener, java.lang.String pMessage) throws java.lang.Throwable
IMessageConstants.MESSAGE_ICON_WARNING
icon and the
IMessageConstants.MESSAGE_BUTTON_OK
button.
OP
- the opener typepOpener
- the opener of the warningpMessage
- the message/warning to show
null
if the message has no content
java.lang.Throwable
- if the message could not be initializedpublic <OP> IContent showWarning(OP pOpener, java.lang.String pMessage, java.lang.String pOkAction) throws java.lang.Throwable
IMessageConstants.MESSAGE_ICON_WARNING
icon and the
IMessageConstants.MESSAGE_BUTTON_OK
buttons.
OP
- the opener typepOpener
- the opener of the warningpMessage
- the message/warning to showpOkAction
- the action to call when yes was pressed
null
if the warning has no content
java.lang.Throwable
- if the message could not be initializedprotected final void setLauncher(UILauncher pLauncher)
pLauncher
- the launcherprotected IApplicationSetup getSetup()
null
if no specific setup was usedprotected void applySetup(IApplicationSetup pSetup)
pSetup
- the setup
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |