|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.sap.ui.core.client.ControlWidget
com.sap.ui.commons.client.DialogWidget
public class DialogWidget
The class Dialog is the GWT wrapper
for the Phoenix control: sap.ui.commons.Dialog.
An interactive window appearing on request displaying information to the user. The API supports features such as popups with fixed sizes, popups with unlimited width, scrolling bars for large windows, and control nesting (for example, a drop-down list can be included in the window).
true the focus is kept inside the dialog.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled |
| Field Summary |
|---|
| Fields inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
DEBUG_ID_PREFIX |
| Constructor Summary | |
|---|---|
|
DialogWidget()
constructs the class DialogWidget |
protected |
DialogWidget(Dialog control)
constructs the class DialogWidget |
|
DialogWidget(String id)
constructs the class DialogWidget |
| Method Summary | |
|---|---|
void |
addButton(com.sap.ui.core.client.Control button)
Appends some button to the buttons-aggregation. |
void |
addContent(com.sap.ui.core.client.Control content)
Appends some content to the content-aggregation. |
void |
attachClosedEvent(com.sap.ui.core.client.event.EventListener listener)
attach an EventListener
Event is fired when the user closes the dialog window. |
void |
close()
Closes the dialog control instance. |
void |
destroyButtons()
Destroys all the buttons in the Buttons-aggregation. |
void |
destroyContent()
Destroys all the content in the Content-aggregation. |
void |
detachClosedEvent(com.sap.ui.core.client.event.EventListener listener)
detach an EventListener
Event is fired when the user closes the dialog window. |
com.sap.ui.core.client.AccessibleRole |
getAccessibleRole()
Getter for property accessibleRole
The ARIA role for the control. |
com.sap.ui.core.client.js.JsArray<com.sap.ui.core.client.Control> |
getButtons()
Getter for aggregation buttons Aggregating the buttons to display at the bottom of the dialog, for example OK and Cancel. |
com.sap.ui.core.client.js.JsArray<com.sap.ui.core.client.Control> |
getContent()
Getter for aggregation content Aggregating the content of the dialog (one or more controls). |
BorderDesign |
getContentBorderDesign()
Getter for property contentBorderDesign
Border design is theme-dependent. |
Dialog |
getControl()
returns the reference to the Phoenix Control |
String |
getDefaultButton()
Defines one of the buttons that have been provided via button aggregation to be the default button. |
String |
getHeight()
Getter for property height
Outer height of dialog window. |
String |
getInitialFocus()
Defines the control that shall get the focus when the dialog is opened. |
String |
getMaxHeight()
Getter for property maxHeight
Maximum outer height of the dialog window. |
String |
getMaxWidth()
Getter for property maxWidth
Maximum outer width of the dialog window. |
String |
getMinHeight()
Getter for property minHeight
Minimum outer height of the dialog window. |
String |
getMinWidth()
Getter for property minWidth
Minimum outer width of the dialog window. |
int |
getScrollLeft()
Getter for property scrollLeft
Scroll position from left to right. "0" means leftmost position. |
int |
getScrollTop()
Getter for property scrollTop
Scroll position from top to buttom. "0" means topmost position. |
String |
getTitle()
Getter for property title
Dialog title displayed in the header. |
String |
getWidth()
Getter for property width
Outer width of dialog window. |
int |
indexOfButton(com.sap.ui.core.client.Control button)
Checks for the provided com.sap.ui.core.client.Control in the buttons-aggregation and
returns its index if found or -1 otherwise. |
int |
indexOfContent(com.sap.ui.core.client.Control content)
Checks for the provided com.sap.ui.core.client.Control in the content-aggregation and
returns its index if found or -1 otherwise. |
void |
insertButton(com.sap.ui.core.client.Control button,
int index)
Inserts some button into the aggregation named buttons. |
void |
insertContent(com.sap.ui.core.client.Control content,
int index)
Inserts some content into the aggregation named content. |
boolean |
isApplyContentPadding()
Getter for property applyContentPadding
Padding is theme-dependent. |
boolean |
isModal()
Getter for property modal
Specify whether the dialog should be modal, or not. |
boolean |
isOpen()
Returns a value for the current status of the dialog control instance. |
boolean |
isResizable()
Getter for property resizable
Specifies whether the dialog window can be resized by the user. |
boolean |
isShowCloseButton()
Getter for property showCloseButton
Displays a close button in the title bar. |
void |
open()
Opens the dialog control instance. |
void |
removeAllButtons()
Removes all the items in the buttons-aggregation. |
void |
removeAllContent()
Removes all the items in the content-aggregation. |
void |
removeButton(int index)
Removes the button at position index in the buttons-aggregation named. |
void |
removeContent(int index)
Removes the content at position index in the content-aggregation named. |
void |
setAccessibleRole(com.sap.ui.core.client.AccessibleRole value)
Setter for property accessibleRoleDefault value is: Dialog |
void |
setApplyContentPadding(boolean value)
Setter for property applyContentPaddingDefault value is: true |
void |
setContentBorderDesign(BorderDesign value)
Setter for property contentBorderDesignDefault value is: None |
void |
setDefaultButton(Button defaultButton)
Defines one of the buttons that have been provided via button aggregation to be the default button. |
void |
setDefaultButton(String defaultButton)
Defines one of the buttons that have been provided via button aggregation to be the default button. |
void |
setHeight(String value)
Setter for property height |
void |
setInitialFocus(com.sap.ui.core.client.Control initialFocus)
Defines the control that shall get the focus when the dialog is opened. |
void |
setInitialFocus(String initialFocus)
Defines the control that shall get the focus when the dialog is opened. |
void |
setMaxHeight(String value)
Setter for property maxHeight |
void |
setMaxWidth(String value)
Setter for property maxWidth |
void |
setMinHeight(String value)
Setter for property minHeight |
void |
setMinWidth(String value)
Setter for property minWidth |
void |
setModal(boolean value)
Setter for property modalDefault value is: false |
void |
setResizable(boolean value)
Setter for property resizableDefault value is: true |
void |
setScrollLeft(int value)
Setter for property scrollLeftDefault value is: 0 |
void |
setScrollTop(int value)
Setter for property scrollTopDefault value is: 0 |
void |
setShowCloseButton(boolean value)
Setter for property showCloseButtonDefault value is: true |
void |
setTitle(String value)
Setter for property titleDefault value is: '' |
void |
setWidth(String value)
Setter for property width |
| Methods inherited from class com.sap.ui.core.client.ControlWidget |
|---|
destroy, doAttachChildren, doDetachChildren, isDesignTime, wrap |
| Methods inherited from class com.google.gwt.user.client.ui.Widget |
|---|
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onBrowserEvent, onDetach, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents |
| Methods inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, setElement, setElement, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setVisible, setVisible, sinkBitlessEvent, toString, unsinkEvents |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DialogWidget()
DialogWidget
public DialogWidget(String id)
DialogWidget
id - id of the DialogWidgetprotected DialogWidget(Dialog control)
DialogWidget
control - reference to an existing Dialog| Method Detail |
|---|
public Dialog getControl()
Control
getControl in class com.sap.ui.core.client.ControlWidgetControlpublic String getWidth()
width
Outer width of dialog window. When not set and not constrained by one of the width parameters (minWidth/maxWidth), the window size is automatically adapted to the content.
public void setWidth(String value)
width
setWidth in class com.google.gwt.user.client.ui.UIObjectvalue - Stringpublic String getHeight()
height
Outer height of dialog window. When not set and not constrained by one of the height parameters (minHeight/maxHeight), the window size is automatically adapted to the content.
public void setHeight(String value)
height
setHeight in class com.google.gwt.user.client.ui.UIObjectvalue - Stringpublic int getScrollLeft()
scrollLeft
Scroll position from left to right. "0" means leftmost position.
public void setScrollLeft(int value)
scrollLeft0
value - intpublic int getScrollTop()
scrollTop
Scroll position from top to buttom. "0" means topmost position.
public void setScrollTop(int value)
scrollTop0
value - intpublic String getTitle()
title
Dialog title displayed in the header.
getTitle in class com.google.gwt.user.client.ui.UIObjectpublic void setTitle(String value)
title''
setTitle in class com.google.gwt.user.client.ui.UIObjectvalue - Stringpublic boolean isApplyContentPadding()
applyContentPadding
Padding is theme-dependent. When set to "false", the content extends to the dialog borders.
public void setApplyContentPadding(boolean value)
applyContentPaddingtrue
value - booleanpublic boolean isShowCloseButton()
showCloseButton
Displays a close button in the title bar.
public void setShowCloseButton(boolean value)
showCloseButtontrue
value - booleanpublic boolean isResizable()
resizable
Specifies whether the dialog window can be resized by the user. The dialog frame contains the visual symbol.
public void setResizable(boolean value)
resizabletrue
value - booleanpublic String getMinWidth()
minWidth
Minimum outer width of the dialog window. When set, neither the user nor some layout settings can make the window smaller.
public void setMinWidth(String value)
minWidth
value - Stringpublic String getMinHeight()
minHeight
Minimum outer height of the dialog window. When set, neither the user nor some layout settings can make the window smaller.
public void setMinHeight(String value)
minHeight
value - Stringpublic String getMaxWidth()
maxWidth
Maximum outer width of the dialog window. If set, neither the user nor some layout settings can make the window larger.
public void setMaxWidth(String value)
maxWidth
value - Stringpublic String getMaxHeight()
maxHeight
Maximum outer height of the dialog window. If set, neither the user nor some layout settings can make the window larger.
public void setMaxHeight(String value)
maxHeight
value - Stringpublic BorderDesign getContentBorderDesign()
contentBorderDesign
Border design is theme-dependent.
public void setContentBorderDesign(BorderDesign value)
contentBorderDesignNone
value - com.sap.ui.commons.client.enums.BorderDesignpublic boolean isModal()
modal
Specify whether the dialog should be modal, or not. In case of true the focus is kept inside the dialog.
public void setModal(boolean value)
modalfalse
value - booleanpublic com.sap.ui.core.client.AccessibleRole getAccessibleRole()
accessibleRole
The ARIA role for the control. E.g. for alert-style Dialogs this can be set to "AlertDialog".
public void setAccessibleRole(com.sap.ui.core.client.AccessibleRole value)
accessibleRoleDialog
value - com.sap.ui.core.client.AccessibleRolepublic com.sap.ui.core.client.js.JsArray<com.sap.ui.core.client.Control> getButtons()
public void insertButton(com.sap.ui.core.client.Control button,
int index)
button - the button to insertindex - int the 0-based index the button should be inserted at.public void addButton(com.sap.ui.core.client.Control button)
button - com.sap.ui.core.client.Control the button to addpublic void removeButton(int index)
index in the buttons-aggregation named.
index - int the position of the button to remove.public void removeAllButtons()
public int indexOfButton(com.sap.ui.core.client.Control button)
com.sap.ui.core.client.Control in the buttons-aggregation and
returns its index if found or -1 otherwise.
button - the button whose index is looked for.
public void destroyButtons()
public com.sap.ui.core.client.js.JsArray<com.sap.ui.core.client.Control> getContent()
public void insertContent(com.sap.ui.core.client.Control content,
int index)
content - the content to insertindex - int the 0-based index the content should be inserted at.public void addContent(com.sap.ui.core.client.Control content)
content - com.sap.ui.core.client.Control the content to addpublic void removeContent(int index)
index in the content-aggregation named.
index - int the position of the content to remove.public void removeAllContent()
public int indexOfContent(com.sap.ui.core.client.Control content)
com.sap.ui.core.client.Control in the content-aggregation and
returns its index if found or -1 otherwise.
content - the content whose index is looked for.
public void destroyContent()
public String getDefaultButton()
public void setDefaultButton(String defaultButton)
defaultButton - String id of the associated com.sap.ui.commons.client.Button or nullpublic void setDefaultButton(Button defaultButton)
defaultButton - An associated com.sap.ui.commons.client.Button or nullpublic String getInitialFocus()
public void setInitialFocus(String initialFocus)
initialFocus - String id of the associated com.sap.ui.core.client.Control or nullpublic void setInitialFocus(com.sap.ui.core.client.Control initialFocus)
initialFocus - An associated com.sap.ui.core.client.Control or nullpublic void attachClosedEvent(com.sap.ui.core.client.event.EventListener listener)
EventListener
Event is fired when the user closes the dialog window. Event parameters provide information about last position and last size.
listener - reference to the EventListenerpublic void detachClosedEvent(com.sap.ui.core.client.event.EventListener listener)
EventListener
Event is fired when the user closes the dialog window. Event parameters provide information about last position and last size.
listener - reference to the EventListenerpublic void open()
public void close()
public boolean isOpen()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||