|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.gwt.core.client.JavaScriptObject
com.sap.ui.core.client.Element
com.sap.ui.core.client.Control
com.sap.ui.commons.client.Dialog
public class Dialog
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.
| Constructor Summary | |
|---|---|
protected |
Dialog()
constructs the class Dialoghidden due to JavaScriptObject restriction |
| Method Summary | |
|---|---|
Dialog |
addButton(com.sap.ui.core.client.Control button)
Appends a button to the aggregation buttons. |
Dialog |
addContent(com.sap.ui.core.client.Control content)
Appends a content to the aggregation content. |
Dialog |
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. |
static Dialog |
create()
creates a new instance of the class Dialog |
static Dialog |
create(String idOrConfig)
creates a new instance of the class Dialog |
static Dialog |
create(String id,
String config)
creates a new instance of the class Dialog |
Dialog |
destroyButtons()
Destroys all the buttons in the Buttons-aggregation. |
Dialog |
destroyContent()
Destroys all the content in the Content-aggregation. |
Dialog |
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. |
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. |
Dialog |
insertButton(com.sap.ui.core.client.Control button,
int index)
Inserts some button into the aggregation named buttons. |
Dialog |
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. |
com.sap.ui.core.client.js.JsArray<com.sap.ui.core.client.js.JsArray<com.sap.ui.core.client.Control>> |
removeAllButtons()
Removes all the items in the buttons-aggregation. |
com.sap.ui.core.client.js.JsArray<com.sap.ui.core.client.js.JsArray<com.sap.ui.core.client.Control>> |
removeAllContent()
Removes all the items in the content-aggregation. |
com.sap.ui.core.client.js.JsArray<com.sap.ui.core.client.Control> |
removeButton(int index)
Removes a button from the aggregation named buttons. |
com.sap.ui.core.client.js.JsArray<com.sap.ui.core.client.Control> |
removeContent(int index)
Removes a content from the aggregation named content. |
Dialog |
setAccessibleRole(com.sap.ui.core.client.AccessibleRole value)
Setter for property accessibleRoleDefault value is: Dialog |
Dialog |
setApplyContentPadding(boolean value)
Setter for property applyContentPaddingDefault value is: true |
Dialog |
setContentBorderDesign(BorderDesign value)
Setter for property contentBorderDesignDefault value is: None |
Dialog |
setDefaultButton(Button defaultButton)
Defines one of the buttons that have been provided via button aggregation to be the default button. |
Dialog |
setDefaultButton(String defaultButton)
Defines one of the buttons that have been provided via button aggregation to be the default button. |
Dialog |
setHeight(String value)
Setter for property height |
Dialog |
setInitialFocus(com.sap.ui.core.client.Control initialFocus)
Defines the control that shall get the focus when the dialog is opened. |
Dialog |
setInitialFocus(String initialFocus)
Defines the control that shall get the focus when the dialog is opened. |
Dialog |
setMaxHeight(String value)
Setter for property maxHeight |
Dialog |
setMaxWidth(String value)
Setter for property maxWidth |
Dialog |
setMinHeight(String value)
Setter for property minHeight |
Dialog |
setMinWidth(String value)
Setter for property minWidth |
Dialog |
setModal(boolean value)
Setter for property modalDefault value is: false |
Dialog |
setResizable(boolean value)
Setter for property resizableDefault value is: true |
Dialog |
setScrollLeft(int value)
Setter for property scrollLeftDefault value is: 0 |
Dialog |
setScrollTop(int value)
Setter for property scrollTopDefault value is: 0 |
Dialog |
setShowCloseButton(boolean value)
Setter for property showCloseButtonDefault value is: true |
Dialog |
setTitle(String value)
Setter for property titleDefault value is: '' |
Dialog |
setWidth(String value)
Setter for property width |
| Methods inherited from class com.sap.ui.core.client.Control |
|---|
addStyleClass, hasStyleClass, invalidate, placeAt, placeAt, removeStyleClass, rerender |
| Methods inherited from class com.sap.ui.core.client.Element |
|---|
_convertArray, _convertArray, _convertArray, _convertArray, _convertArray, attachBrowserEvent, attachEvent, bindAggregation, bindContext, bindProperty, bindProperty, destroy, detachBrowserEvent, detachEvent, getDomRef, getElementName, getId, getLibraryName, getModel, getParent, getProperty, getTooltip_AsString, getTooltip_Text, getTooltip, isActive, setModel, setProperty, setTooltip, setTooltip, unbindAggregation, unbindContext, unbindProperty |
| Methods inherited from class com.google.gwt.core.client.JavaScriptObject |
|---|
cast, createArray, createFunction, createObject, equals, hashCode, toSource, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected Dialog()
DialogJavaScriptObject restriction
| Method Detail |
|---|
public static Dialog create()
Dialog
public static Dialog create(String idOrConfig)
Dialog
id - id of the Dialog or configuration JSON string
public static Dialog create(String id,
String config)
Dialog
id - id of the Dialogconfig - configuration JSON stringpublic final 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 final Dialog setWidth(String value)
width
value - String
this to allow method chainingpublic final 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 final Dialog setHeight(String value)
height
value - String
this to allow method chainingpublic final int getScrollLeft()
scrollLeft
Scroll position from left to right. "0" means leftmost position.
public final Dialog setScrollLeft(int value)
scrollLeft0
value - int
this to allow method chainingpublic final int getScrollTop()
scrollTop
Scroll position from top to buttom. "0" means topmost position.
public final Dialog setScrollTop(int value)
scrollTop0
value - int
this to allow method chainingpublic final String getTitle()
title
Dialog title displayed in the header.
public final Dialog setTitle(String value)
title''
value - String
this to allow method chainingpublic final boolean isApplyContentPadding()
applyContentPadding
Padding is theme-dependent. When set to "false", the content extends to the dialog borders.
public final Dialog setApplyContentPadding(boolean value)
applyContentPaddingtrue
value - boolean
this to allow method chainingpublic final boolean isShowCloseButton()
showCloseButton
Displays a close button in the title bar.
public final Dialog setShowCloseButton(boolean value)
showCloseButtontrue
value - boolean
this to allow method chainingpublic final boolean isResizable()
resizable
Specifies whether the dialog window can be resized by the user. The dialog frame contains the visual symbol.
public final Dialog setResizable(boolean value)
resizabletrue
value - boolean
this to allow method chainingpublic final 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 final Dialog setMinWidth(String value)
minWidth
value - String
this to allow method chainingpublic final 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 final Dialog setMinHeight(String value)
minHeight
value - String
this to allow method chainingpublic final 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 final Dialog setMaxWidth(String value)
maxWidth
value - String
this to allow method chainingpublic final 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 final Dialog setMaxHeight(String value)
maxHeight
value - String
this to allow method chainingpublic final BorderDesign getContentBorderDesign()
contentBorderDesign
Border design is theme-dependent.
public final Dialog setContentBorderDesign(BorderDesign value)
contentBorderDesignNone
value - com.sap.ui.commons.client.enums.BorderDesign
this to allow method chainingpublic final boolean isModal()
modal
Specify whether the dialog should be modal, or not. In case of true the focus is kept inside the dialog.
public final Dialog setModal(boolean value)
modalfalse
value - boolean
this to allow method chainingpublic final 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 final Dialog setAccessibleRole(com.sap.ui.core.client.AccessibleRole value)
accessibleRoleDialog
value - com.sap.ui.core.client.AccessibleRole
this to allow method chainingpublic final com.sap.ui.core.client.js.JsArray<com.sap.ui.core.client.Control> getButtons()
public final Dialog insertButton(com.sap.ui.core.client.Control button,
int index)
buttons.
button - the button to insertindex - int the 0-based index the button should be inserted at.
this to allow method chainingpublic final Dialog addButton(com.sap.ui.core.client.Control button)
buttons.
button - com.sap.ui.core.client.Control the button to add
this to allow method chainingpublic final com.sap.ui.core.client.js.JsArray<com.sap.ui.core.client.Control> removeButton(int index)
buttons.
index - int the position of the button to remove.
public final com.sap.ui.core.client.js.JsArray<com.sap.ui.core.client.js.JsArray<com.sap.ui.core.client.Control>> removeAllButtons()
public final 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 final Dialog destroyButtons()
this to allow method chainingpublic final com.sap.ui.core.client.js.JsArray<com.sap.ui.core.client.Control> getContent()
public final Dialog insertContent(com.sap.ui.core.client.Control content,
int index)
content.
content - the content to insertindex - int the 0-based index the content should be inserted at.
this to allow method chainingpublic final Dialog addContent(com.sap.ui.core.client.Control content)
content.
content - com.sap.ui.core.client.Control the content to add
this to allow method chainingpublic final com.sap.ui.core.client.js.JsArray<com.sap.ui.core.client.Control> removeContent(int index)
content.
index - int the position of the content to remove.
public final com.sap.ui.core.client.js.JsArray<com.sap.ui.core.client.js.JsArray<com.sap.ui.core.client.Control>> removeAllContent()
public final 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 final Dialog destroyContent()
this to allow method chainingpublic final String getDefaultButton()
public final Dialog setDefaultButton(String defaultButton)
defaultButton - id of the associated com.sap.ui.commons.client.Button or null
this to allow method chainingpublic final Dialog setDefaultButton(Button defaultButton)
defaultButton - An associated com.sap.ui.commons.client.Button or null
this to allow method chainingpublic final String getInitialFocus()
public final Dialog setInitialFocus(String initialFocus)
initialFocus - id of the associated com.sap.ui.core.client.Control or null
this to allow method chainingpublic final Dialog setInitialFocus(com.sap.ui.core.client.Control initialFocus)
initialFocus - An associated com.sap.ui.core.client.Control or null
this to allow method chainingpublic final Dialog 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 EventListener
this to allow method chainingpublic final Dialog 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 EventListener
this to allow method chainingpublic final void open()
public final void close()
public final boolean isOpen()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||