|
||||||||||
| 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 |
|---|
| 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 |
|---|
logger, 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. |
|
boolean |
isModal()
Returns the modal state of this workscreen. |
|
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. |
|
|
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, checkAdd, getComponent, getComponentCount, getLayout, indexOf, remove, remove, removeAll, removeNotify, setLayout, 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 |
| Constructor Detail |
|---|
public WorkScreen(IWorkScreenApplication pApplication)
WorkScreen for a parent
application.
pApplication - the parent application| Method Detail |
|---|
public IWorkScreenApplication getApplication()
getApplication in interface IWorkScreen
public void save()
throws Exception
save in interface IWorkScreenException - if the save process failed
public void reload()
throws Exception
reload in interface IWorkScreenException - if the save process failedpublic 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 <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 | |||||||||