|
||||||||||
| 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.WorkScreen
public class WorkScreen
The WorkScreen is a default implementation of IWorkScreen.
| Field Summary | |
|---|---|
protected IWorkScreenApplication |
application
the parent application. |
| 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 | |
|---|---|
WorkScreen(IWorkScreenApplication pApplication)
Creates a new instance of WorkScreen for a parent
application. |
|
| Method Summary | ||
|---|---|---|
IWorkScreenApplication |
getApplication()
Gets the main application of this work-screen. |
|
Object |
getParameter(String pName)
Gets the value of an additional parameter from the work-screen. |
|
boolean |
isModal()
Returns the modal state of this workscreen. |
|
void |
notifyActivate()
Notifies the IWorkScreen, that it will be "visible again". |
|
void |
reload()
Reloads the workscreen and discard changes. |
|
void |
save()
Saves the workscreen changes. |
|
void |
setModal(boolean pModal)
Sets whether this workscreen should be modal. |
|
Object |
setParameter(String pName,
Object pValue)
Sets additional parameters for the work-screen. |
|
|
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.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 |
|---|
protected IWorkScreenApplication application
| Constructor Detail |
|---|
public WorkScreen(IWorkScreenApplication pApplication)
WorkScreen for a parent
application.
pApplication - the parent application| Method Detail |
|---|
public void notifyActivate()
notifyActivate in interface IWorkScreenpublic IWorkScreenApplication getApplication()
getApplication in interface IWorkScreen
public void save()
throws Exception
save in interface IWorkScreenException
public void reload()
throws Exception
reload in interface IWorkScreenExceptionpublic boolean isModal()
isModal in interface IWorkScreentrue if this workscreen should be modal, otherwise falsepublic void setModal(boolean pModal)
setModal in interface IWorkScreenpModal - true if this workscreen should be modal, otherwise false
public Object setParameter(String pName,
Object pValue)
setParameter in interface IWorkScreenpName - the parameter namepValue - the parameter
null if the parameter was not set beforepublic Object getParameter(String pName)
getParameter in interface IWorkScreenpName - the parameter name
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 initialized
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||