|
||||||||||
| 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.PanelWidget
public class PanelWidget
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.
| 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 | |
|---|---|
|
PanelWidget()
constructs the class PanelWidget |
protected |
PanelWidget(Panel control)
constructs the class PanelWidget |
|
PanelWidget(String id)
constructs the class PanelWidget |
| Method Summary | |
|---|---|
void |
addButton(Button 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 |
destroyButtons()
Destroys all the buttons in the Buttons-aggregation. |
void |
destroyContent()
Destroys all the content in the Content-aggregation. |
void |
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. |
Panel |
getControl()
returns the reference to the Phoenix Control |
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. |
void |
insertButton(Button 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 |
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. |
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 |
setApplyContentPadding(boolean value)
Setter for property applyContentPaddingDefault value is: true |
void |
setAreaDesign(AreaDesign value)
Setter for property areaDesignDefault value is: Fill |
void |
setBorderDesign(BorderDesign value)
Setter for property borderDesignDefault value is: Box |
void |
setCollapsed(boolean value)
Setter for property collapsedDefault value is: false |
void |
setDimensions(String width,
String height)
Sets panel dimensions width and height. |
void |
setEnabled(boolean value)
Setter for property enabledDefault value is: true |
void |
setHeight(String value)
Setter for property height |
void |
setScrollLeft(int value)
Setter for property scrollLeftDefault value is: 0 |
void |
setScrollTop(int value)
Setter for property scrollTopDefault value is: 0 |
void |
setShowCollapseIcon(boolean value)
Setter for property showCollapseIconDefault value is: true |
void |
setText(String text)
Defines title text (quick version). |
void |
setTitle(Title title)
Setter for the aggregated title. |
void |
setVisible(boolean value)
Setter for property visibleDefault value is: true |
void |
setWidth(String value)
Setter for property widthDefault value is: 100% |
| 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, getTitle, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, setElement, setElement, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, sinkBitlessEvent, toString, unsinkEvents |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public PanelWidget()
PanelWidget
public PanelWidget(String id)
PanelWidget
id - id of the PanelWidgetprotected PanelWidget(Panel control)
PanelWidget
control - reference to an existing Panel| Method Detail |
|---|
public Panel getControl()
Control
getControl in class com.sap.ui.core.client.ControlWidgetControlpublic String getWidth()
width
The width of the Panel.
public void setWidth(String value)
width100%
setWidth in class com.google.gwt.user.client.ui.UIObjectvalue - Stringpublic String getHeight()
height
When not set, the panel height is automatically adjusted to the content.
public void setHeight(String value)
height
setHeight in class com.google.gwt.user.client.ui.UIObjectvalue - Stringpublic boolean isEnabled()
enabled
The enabled state of the Panel.
public void setEnabled(boolean value)
enabledtrue
value - booleanpublic boolean isVisible()
visible
Invisible panels are not rendered.
isVisible in class com.google.gwt.user.client.ui.UIObjectpublic void setVisible(boolean value)
visibletrue
setVisible in class com.google.gwt.user.client.ui.UIObjectvalue - booleanpublic int getScrollLeft()
scrollLeft
Specifies the scroll position from left to right. Value "0" means leftmost position.
public void setScrollLeft(int value)
scrollLeft0
value - intpublic int getScrollTop()
scrollTop
Specifies the scroll position from top to bottom. Value "0" means topmost position.
public void setScrollTop(int value)
scrollTop0
value - intpublic boolean isApplyContentPadding()
applyContentPadding
Padding is theme-dependent.
public void setApplyContentPadding(boolean value)
applyContentPaddingtrue
value - booleanpublic boolean isCollapsed()
collapsed
A collapsed panel consumes minimal space. When initially collapsed, its contents are not rendered.
public void setCollapsed(boolean value)
collapsedfalse
value - booleanpublic AreaDesign getAreaDesign()
areaDesign
Defines the background color. Depending on the current theme, this setting may or may not have any effect.
public void setAreaDesign(AreaDesign value)
areaDesignFill
value - com.sap.ui.commons.client.enums.AreaDesignpublic 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 void setBorderDesign(BorderDesign value)
borderDesignBox
value - com.sap.ui.commons.client.enums.BorderDesignpublic boolean isShowCollapseIcon()
showCollapseIcon
Determines whether the Panel should have an icon for collapsing/expanding.
public void setShowCollapseIcon(boolean value)
showCollapseIcontrue
value - booleanpublic 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 Title getTitle_()
public void setTitle(Title title)
title - {com.sap.ui.commons.client.Title}public void destroyTitle()
public com.sap.ui.core.client.js.JsArray<Button> getButtons()
public void insertButton(Button button,
int index)
button - the button to insertindex - int the 0-based index the button should be inserted at.public void addButton(Button button)
button - com.sap.ui.commons.client.Button 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(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 void destroyButtons()
public void setDimensions(String width,
String height)
width - Panel width as CSS size.height - Panel height as CSS size.public 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 | |||||||||