public class DialogContainerChip extends AbstractChip
setDialogChip(DialogChip) you can fill this container window with content as you like. Since there is
only one button in this container, the content will most likely be only a simple message or information (you can use
the SimpleMessageDialogChip if you like). More sophisticated dialog container chips should extend this class
(like the ActionDialogContainerChip does).| Modifier and Type | Field and Description |
|---|---|
static String |
CLOSE |
CHIP_KEY, FALSE, FRAME_KEY, SHOW_JSP_COMMENTS, TRUE, USE_SOCKET_NAMINGDISPLAY_EVENT, FILTERED_PREFIX| Constructor and Description |
|---|
DialogContainerChip(Window callingWindow)
Creates a new DialogContainerChip.
|
| Modifier and Type | Method and Description |
|---|---|
Window |
getCallingWindow() |
String |
getCloseButtonName()
Returns the name of the close button in this dialog (which will be used as a localization key!).
|
DialogChip |
getDialogChip() |
protected String |
getDialogSize() |
String |
getJSPURI()
Returns the URI of the JSP that this chip wants to use.
|
String |
getName()
Returns the name of this container chip which will be used as the title of the surrounding window (it will be used
as a localization key).
|
void |
processEvents(Map events)
Processes the close button event:
The dialog chip in this container will be notified via DialogChip.notifyClose(), the calling window will
be refreshed and then this dialog window will be closed. |
void |
refreshCallingWindow() |
void |
setCallingWindow(Window callingWindow) |
void |
setCloseButtonName(String buttonName)
Sets the name of the close button in this dialog (which will be used as a localization key!).
|
void |
setDialogChip(DialogChip dialogChip) |
void |
setName(String name)
Sets the name of this container chip which will be used as the title of the surrounding window (it will be used as
a localization key).
|
void |
show()
Opens a new window containing this dialog container and its embedded dialog chip.
|
addEventListener, checkValid, clearInfoMessages, clone, containsDisplayEvent, createMenuEntriesForJS, dispose, errorQueueEmpty, getClipboard, getCommandID, getDisplayParameters, getDisplayState, getEventID, getEventURL, getEventValue, getFrame, getID, getInfoMessages, getJaloSession, getLocalizedString, getLocalizedString, getLogger, getMenuEntries, getNameSpace, getNameSpaceFor, getParent, getProposedUniqueName, getProposedUniqueNameFor, getRequestFocus, getSessionIdentifier, getStringValue, getUniqueName, getWindow, goFullScreen, hasVisibleContextMenuEntries, isButtonPushed, isButtonPushed, isErrorQueueEmpty, isValid, leaveFullScreen, notifyEventListeners, notifyEventListeners, postErrorMessage, postInfoMessage, postWindowEvent, refresh, refreshChild, registerUniqueName, removeEventListener, removeInfoMessage, render, render, setClipboard, setParent, setRequestFocus, setValid, setWindowStatus, translateFormFieldToEventName, translateFormFieldToEventValuepublic static final String CLOSE
public DialogContainerChip(Window callingWindow)
callingWindow - the Window by which this dialog has been createdpublic void processEvents(Map events)
DialogChip.notifyClose(), the calling window will
be refreshed and then this dialog window will be closed.public void show()
public String getJSPURI()
Chippublic DialogChip getDialogChip()
public void setDialogChip(DialogChip dialogChip)
public Window getCallingWindow()
public void setCallingWindow(Window callingWindow)
public void refreshCallingWindow()
protected String getDialogSize()
public String getName()
public void setName(String name)
name - the localization key of the name of this dialog container chippublic String getCloseButtonName()
public void setCloseButtonName(String buttonName)
buttonName - The buttonName to set.Copyright © 2017 SAP SE. All Rights Reserved.