|
||||||||||
| 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<C>
javax.rad.genui.container.AbstractWindow<C>
javax.rad.genui.container.AbstractFrame<IInternalFrame>
javax.rad.genui.container.UIInternalFrame
com.sibvisions.rad.application.Message
public class Message
The Message class is an UIInternalFrame to
display messages on the screen. The message contains an icon,
the message and message dependent buttons.
| Field Summary |
|---|
| Fields inherited from class javax.rad.genui.container.AbstractFrame |
|---|
iconImage, menuBar |
| 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.ui.container.IFrame |
|---|
ICONIFIED, MAXIMIZED_BOTH, MAXIMIZED_HORIZ, MAXIMIZED_VERT, NORMAL |
| Fields inherited from interface javax.rad.ui.container.IToolBarPanel |
|---|
AREA_BOTTOM, AREA_LEFT, AREA_RIGHT, AREA_TOP |
| Constructor Summary | |
|---|---|
Message(UIDesktopPanel pDesktop,
int pIconType,
int pButtonType,
java.lang.String pMessage,
java.lang.String pOkAction,
java.lang.String pCancelAction)
Creates a new instance of Message. |
|
Message(UIDesktopPanel pDesktop,
int pIconType,
int pButtonType,
java.lang.String pMessage,
java.lang.String pOkAction,
java.lang.String pNotOkAction,
java.lang.String pCancelAction)
Creates a new instance of Message. |
|
| Method Summary | ||
|---|---|---|
protected UIButton |
createButton(java.lang.String pText,
java.lang.String pAction)
Creates an action button for this message. |
|
void |
doCancel(UIActionEvent pEvent)
Closes the message when the Cancel/No button was clicked and redispatches the event to the getOpener(), if an action is defined for the
Cancel/No button. |
|
void |
doClose(UIWindowEvent pEvent)
Closes the message when the x button in the title was clicked. |
|
void |
doNotOk(UIActionEvent pEvent)
Closes the message when the not OK button was clicked and redispatches the event to the getOpener(), if an action is defined for the
not OK button. |
|
void |
doOk(UIActionEvent pEvent)
Closes the message when the OK/Yes button was clicked and redispatches the event to the getOpener(), if an action is defined for the
OK/Yes button. |
|
UIButton |
getCancelButton()
Gets the cancel button. |
|
UIButton |
getNotOKButton()
Gets the not OK button. |
|
UIButton |
getOKButton()
Gets the OK button. |
|
|
getOpener()
Gets the opener of the content. |
|
protected void |
init()
Initializes the UI components. |
|
boolean |
isDestroyed()
Gets whether the content is already destroyed. |
|
void |
notifyDestroy()
Notifies the content, that it will be destroyed. |
|
void |
notifyVisible()
Notifies the content, that it is now positioned and showing. |
|
|
setOpener(OP pOpener)
Sets the opener of the content. |
|
| Methods inherited from class javax.rad.genui.container.UIInternalFrame |
|---|
close, dispose, isClosable, isClosed, isGlobalActive, isIconifiable, isMaximizable, isModal, setClosable, setIconifiable, setMaximizable, setModal, toBack, toFront, topLevelAddNotify |
| Methods inherited from class javax.rad.genui.container.AbstractFrame |
|---|
addNotify, addToolBar, addToolBar, beforeAddNotify, getIconImage, getMenuBar, getState, getTitle, getToolBar, getToolBarArea, getToolBarCount, indexOfToolBar, isResizable, isToolBarMovable, removeAllToolBars, removeNotify, removeToolBar, removeToolBar, setIconImage, setMenuBar, setResizable, setState, setTitle, setToolBarArea, setToolBarMovable, updateTranslation |
| Methods inherited from class javax.rad.genui.container.AbstractWindow |
|---|
centerRelativeTo, eventWindowActivated, eventWindowClosed, eventWindowClosing, eventWindowDeactivated, eventWindowDeiconified, eventWindowIconified, eventWindowOpened, isActive, isDisposed, pack, setVisible |
| Methods inherited from class javax.rad.genui.UIContainer |
|---|
add, add, add, add, addInternal, checkAdd, contains, getComponent, getComponentCount, getComponents, getInsets, getLayout, getUIResourceContainer, indexOf, remove, remove, removeAll, removeInternal, setLayout, setUIResourceContainer, setZOrder |
| 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.ui.IResource |
|---|
getResource |
| Methods inherited from interface javax.rad.ui.container.IFrame |
|---|
getIconImage, getMenuBar, getState, getTitle, isResizable, setIconImage, setMenuBar, setResizable, setState, setTitle |
| Methods inherited from interface javax.rad.ui.container.IWindow |
|---|
centerRelativeTo, eventWindowActivated, eventWindowClosed, eventWindowClosing, eventWindowDeactivated, eventWindowDeiconified, eventWindowIconified, eventWindowOpened, getTranslation, isActive, isDisposed, pack, setTranslation |
| Methods inherited from interface javax.rad.ui.container.IToolBarPanel |
|---|
addToolBar, addToolBar, getToolBar, getToolBarArea, getToolBarCount, indexOfToolBar, removeAllToolBars, removeToolBar, removeToolBar, setToolBarArea |
| Methods inherited from interface javax.rad.ui.IContainer |
|---|
add, add, add, add, getComponent, getComponentCount, getLayout, indexOf, remove, remove, removeAll, setLayout |
| Constructor Detail |
|---|
public Message(UIDesktopPanel pDesktop,
int pIconType,
int pButtonType,
java.lang.String pMessage,
java.lang.String pOkAction,
java.lang.String pCancelAction)
Message.
pDesktop - the desktop for showing the framepIconType - the message typepButtonType - the type for the visible buttonspMessage - the messagepOkAction - the action to call when ok or yes was clickedpCancelAction - the action to call when cancel or close was clicked
public Message(UIDesktopPanel pDesktop,
int pIconType,
int pButtonType,
java.lang.String pMessage,
java.lang.String pOkAction,
java.lang.String pNotOkAction,
java.lang.String pCancelAction)
Message.
pDesktop - the desktop for showing the framepIconType - the message typepButtonType - the type for the visible buttonspMessage - the messagepOkAction - the action to call when ok or yes was clickedpNotOkAction - the action to call when not ok or no was clickedpCancelAction - the action to call when cancel or close was clicked| Method Detail |
|---|
protected void init()
public void notifyVisible()
notifyVisible in interface IContentpublic void notifyDestroy()
notifyDestroy in interface IContentpublic boolean isDestroyed()
isDestroyed in interface IContenttrue if content is destroyed, false otherwisepublic <OP> void setOpener(OP pOpener)
setOpener in interface IContentOP - the opener typepOpener - the opener component or null if the component is
unknownpublic <OP> OP getOpener()
getOpener in interface IContentOP - the opener type
null if the opener is unknown
protected UIButton createButton(java.lang.String pText,
java.lang.String pAction)
pText - the button textpAction - the redispatch action
public UIButton getOKButton()
public UIButton getNotOKButton()
public UIButton getCancelButton()
public void doOk(UIActionEvent pEvent)
throws java.lang.Throwable
getOpener(), if an action is defined for the
OK/Yes button.
pEvent - the event from the button
java.lang.Throwable - if the an action is configured but the call throws an error
public void doNotOk(UIActionEvent pEvent)
throws java.lang.Throwable
getOpener(), if an action is defined for the
not OK button.
pEvent - the event from the button
java.lang.Throwable - if the an action is configured but the call throws an error
public void doCancel(UIActionEvent pEvent)
throws java.lang.Throwable
getOpener(), if an action is defined for the
Cancel/No button.
pEvent - the event from the button
java.lang.Throwable - if the a cancel action is configured but the call throws an error
public void doClose(UIWindowEvent pEvent)
throws java.lang.Throwable
pEvent - the event from the frame
java.lang.Throwable - if the a cancel action is configured but the call throws an error
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||