|
||||||||||
| 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.Panel
public class Panel
The class Panel is the GWT wrapper
for the Phoenix control: sap.ui.commons.Panel.
A scrollable container for text and/or controls. The panel does not layout the contained controls.
| Constructor Summary | |
|---|---|
protected |
Panel()
constructs the class Panelhidden due to JavaScriptObject restriction |
| Method Summary | |
|---|---|
Panel |
addButton(Button button)
Appends a button to the aggregation buttons. |
Panel |
addContent(com.sap.ui.core.client.Control content)
Appends a content to the aggregation content. |
static Panel |
create()
creates a new instance of the class Panel |
static Panel |
create(String idOrConfig)
creates a new instance of the class Panel |
static Panel |
create(String id,
String config)
creates a new instance of the class Panel |
Panel |
destroyButtons()
Destroys all the buttons in the Buttons-aggregation. |
Panel |
destroyContent()
Destroys all the content in the Content-aggregation. |
Panel |
destroyTitle()
Destroys the title in the Title-aggregation. |
AreaDesign |
getAreaDesign()
Getter for property areaDesign
Defines the background color. |
BorderDesign |
getBorderDesign()
Getter for property borderDesign
The panel can have a box as frame. |
com.sap.ui.core.client.js.JsArray<Button> |
getButtons()
Getter for aggregation buttons The Buttons to be displayed in the Panel header |
com.sap.ui.core.client.js.JsArray<com.sap.ui.core.client.Control> |
getContent()
Getter for aggregation content Aggregates the controls that are contained in the panel where the control layouting is browser-dependent. |
String |
getHeight()
Getter for property height
When not set, the panel height is automatically adjusted to the content. |
int |
getScrollLeft()
Getter for property scrollLeft
Specifies the scroll position from left to right. |
int |
getScrollTop()
Getter for property scrollTop
Specifies the scroll position from top to bottom. |
Title |
getTitle()
Getter for aggregation title Aggregates the title element of the panel. |
String |
getWidth()
Getter for property width
The width of the Panel. |
int |
indexOfButton(Button button)
Checks for the provided com.sap.ui.commons.client.Button 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. |
Panel |
insertButton(Button button,
int index)
Inserts some button into the aggregation named buttons. |
Panel |
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 |
isCollapsed()
Getter for property collapsed
A collapsed panel consumes minimal space. |
boolean |
isEnabled()
Getter for property enabled
The enabled state of the Panel. |
boolean |
isShowCollapseIcon()
Getter for property showCollapseIcon
Determines whether the Panel should have an icon for collapsing/expanding. |
boolean |
isVisible()
Getter for property visible
Invisible panels are not rendered. |
com.sap.ui.core.client.js.JsArray<com.sap.ui.core.client.js.JsArray<Button>> |
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<Button> |
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. |
Panel |
setApplyContentPadding(boolean value)
Setter for property applyContentPaddingDefault value is: true |
Panel |
setAreaDesign(AreaDesign value)
Setter for property areaDesignDefault value is: Fill |
Panel |
setBorderDesign(BorderDesign value)
Setter for property borderDesignDefault value is: Box |
Panel |
setCollapsed(boolean value)
Setter for property collapsedDefault value is: false |
void |
setDimensions(String width,
String height)
Sets panel dimensions width and height. |
Panel |
setEnabled(boolean value)
Setter for property enabledDefault value is: true |
Panel |
setHeight(String value)
Setter for property height |
Panel |
setScrollLeft(int value)
Setter for property scrollLeftDefault value is: 0 |
Panel |
setScrollTop(int value)
Setter for property scrollTopDefault value is: 0 |
Panel |
setShowCollapseIcon(boolean value)
Setter for property showCollapseIconDefault value is: true |
void |
setText(String text)
Defines title text (quick version). |
Panel |
setTitle(Title title)
Setter for the aggregated title. |
Panel |
setVisible(boolean value)
Setter for property visibleDefault value is: true |
Panel |
setWidth(String value)
Setter for property widthDefault value is: 100% |
| 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 Panel()
PanelJavaScriptObject restriction
| Method Detail |
|---|
public static Panel create()
Panel
public static Panel create(String idOrConfig)
Panel
id - id of the Panel or configuration JSON string
public static Panel create(String id,
String config)
Panel
id - id of the Panelconfig - configuration JSON stringpublic final String getWidth()
width
The width of the Panel.
public final Panel setWidth(String value)
width100%
value - String
this to allow method chainingpublic final String getHeight()
height
When not set, the panel height is automatically adjusted to the content.
public final Panel setHeight(String value)
height
value - String
this to allow method chainingpublic final boolean isEnabled()
enabled
The enabled state of the Panel.
public final Panel setEnabled(boolean value)
enabledtrue
value - boolean
this to allow method chainingpublic final boolean isVisible()
visible
Invisible panels are not rendered.
public final Panel setVisible(boolean value)
visibletrue
value - boolean
this to allow method chainingpublic final int getScrollLeft()
scrollLeft
Specifies the scroll position from left to right. Value "0" means leftmost position.
public final Panel setScrollLeft(int value)
scrollLeft0
value - int
this to allow method chainingpublic final int getScrollTop()
scrollTop
Specifies the scroll position from top to bottom. Value "0" means topmost position.
public final Panel setScrollTop(int value)
scrollTop0
value - int
this to allow method chainingpublic final boolean isApplyContentPadding()
applyContentPadding
Padding is theme-dependent.
public final Panel setApplyContentPadding(boolean value)
applyContentPaddingtrue
value - boolean
this to allow method chainingpublic final boolean isCollapsed()
collapsed
A collapsed panel consumes minimal space. When initially collapsed, its contents are not rendered.
public final Panel setCollapsed(boolean value)
collapsedfalse
value - boolean
this to allow method chainingpublic final AreaDesign getAreaDesign()
areaDesign
Defines the background color. Depending on the current theme, this setting may or may not have any effect.
public final Panel setAreaDesign(AreaDesign value)
areaDesignFill
value - com.sap.ui.commons.client.enums.AreaDesign
this to allow method chainingpublic final BorderDesign getBorderDesign()
borderDesign
The panel can have a box as frame. Depending on the current theme, this setting may or may not have any effect.
public final Panel setBorderDesign(BorderDesign value)
borderDesignBox
value - com.sap.ui.commons.client.enums.BorderDesign
this to allow method chainingpublic final boolean isShowCollapseIcon()
showCollapseIcon
Determines whether the Panel should have an icon for collapsing/expanding.
public final Panel setShowCollapseIcon(boolean value)
showCollapseIcontrue
value - boolean
this to allow method chainingpublic final com.sap.ui.core.client.js.JsArray<com.sap.ui.core.client.Control> getContent()
public final Panel 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 Panel 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 Panel destroyContent()
this to allow method chainingpublic final Title getTitle()
public final Panel setTitle(Title title)
otitle - {com.sap.ui.commons.client.Title}
this to allow method chainingpublic final Panel destroyTitle()
this to allow method chainingpublic final com.sap.ui.core.client.js.JsArray<Button> getButtons()
public final Panel insertButton(Button 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 Panel addButton(Button button)
buttons.
button - com.sap.ui.commons.client.Button the button to add
this to allow method chainingpublic final com.sap.ui.core.client.js.JsArray<Button> 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<Button>> removeAllButtons()
public final int indexOfButton(Button button)
com.sap.ui.commons.client.Button in the buttons-aggregation and
returns its index if found or -1 otherwise.
button - the button whose index is looked for.
public final Panel destroyButtons()
this to allow method chaining
public final void setDimensions(String width,
String height)
width - Panel width as CSS size.height - Panel height as CSS size.public final void setText(String text)
text - Title text to be displayed.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||