|
||||||||||
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
com.sibvisions.rad.application.Dialog
public class Dialog
The Dialog
class is a dialog content that shows a component and allows
configuration of available buttons. The layout is always the same. There's the
custom component in the center area and buttons in the south area.
Nested Class Summary | |
---|---|
static class |
Dialog.ButtonMode
the possible button modes. |
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 |
---|
lLastTranslationModified, parent |
Fields inherited from class javax.rad.genui.UIResource |
---|
uiResource |
Constructor Summary | |
---|---|
Dialog(IComponent pComponent)
Creates a new instance of Dialog with the given component to show. |
Method Summary | |
---|---|
void |
addCenterButton(IButton pButton)
Adds a button to the center area. |
void |
addLeftButton(IButton pButton)
Adds a button to the left area. |
void |
addRightButton(IButton pButton)
Adds a button to the right area. |
protected void |
configureButtons()
Shows the Buttons dependent of the button mode. |
void |
doCancel()
Invoked if cancel was pressed or window is destroyed. |
void |
doOk()
Invoked if ok was pressed. |
DialogHandler |
eventCancel()
Gets the handler for cancel event. |
DialogHandler |
eventOk()
Gets the handler for ok event. |
Dialog.ButtonMode |
getButtonMode()
Gets the current button mode. |
protected UIPanel |
getButtonPanel()
Gets the panel that contains all button panels. |
IButton |
getCancelButton()
Gets the default Cancel button. |
protected UIPanel |
getCenterButtonPanel()
Gets the panel that contains all "center" buttons. |
protected UIPanel |
getLeftButtonPanel()
Gets the panel that contains all "left" buttons. |
IButton |
getOkButton()
Gets the default OK button. |
protected UIPanel |
getRightButtonPanel()
Gets the panel that contains all "right" buttons. |
void |
notifyVisible()
Notifies the IContent, that it is now positioned and showing. |
static UIInternalFrame |
openInternalFrame(Application pApplication,
String pTitle,
boolean pModal,
IComponent pContent)
Opens the dialog as internal frame. |
void |
removeButton(IButton pButton)
Removes a button. |
void |
setButtonMode(Dialog.ButtonMode pMode)
Sets the button mode. |
Methods inherited from class javax.rad.application.genui.Content |
---|
getOpener, notifyDestroy, 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.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 Dialog(IComponent pComponent)
Dialog
with the given component to show.
pComponent
- the dialog componentMethod Detail |
---|
public void notifyVisible()
notifyVisible
in interface IContent
notifyVisible
in class Content
public void setButtonMode(Dialog.ButtonMode pMode)
pMode
- the modepublic Dialog.ButtonMode getButtonMode()
public void doCancel()
public void doOk()
protected void configureButtons()
setButtonMode(ButtonMode)
public void addLeftButton(IButton pButton)
pButton
- the buttonpublic void addCenterButton(IButton pButton)
pButton
- the buttonpublic void addRightButton(IButton pButton)
pButton
- the buttonpublic void removeButton(IButton pButton)
pButton
- the buttonpublic DialogHandler eventOk()
public DialogHandler eventCancel()
public static UIInternalFrame openInternalFrame(Application pApplication, String pTitle, boolean pModal, IComponent pContent)
pApplication
- the applicationpTitle
- the titlepModal
- true
if the frame sould be modalpContent
- the content to show
public IButton getOkButton()
public IButton getCancelButton()
protected UIPanel getButtonPanel()
protected UIPanel getLeftButtonPanel()
protected UIPanel getCenterButtonPanel()
protected UIPanel getRightButtonPanel()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |