|
||||||||||
| 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.SplitterWidget
public class SplitterWidget
The class Splitter is the GWT wrapper
for the Phoenix control: sap.ui.commons.Splitter.
Allows to split the screen into two areas. Make sure that the container for the splitter has an absolute height or set an absolute height for the splitter using the height property. Otherwise the height of the splitter is calculated by the height of its contents.
| 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 | |
|---|---|
|
SplitterWidget()
constructs the class SplitterWidget |
protected |
SplitterWidget(Splitter control)
constructs the class SplitterWidget |
|
SplitterWidget(String id)
constructs the class SplitterWidget |
| Method Summary | |
|---|---|
void |
addFirstPaneContent(com.sap.ui.core.client.Control firstPaneContent)
Appends some firstPaneContent to the firstPaneContent-aggregation. |
void |
addSecondPaneContent(com.sap.ui.core.client.Control secondPaneContent)
Appends some secondPaneContent to the secondPaneContent-aggregation. |
void |
destroyFirstPaneContent()
Destroys all the firstPaneContent in the FirstPaneContent-aggregation. |
void |
destroySecondPaneContent()
Destroys all the secondPaneContent in the SecondPaneContent-aggregation. |
Splitter |
getControl()
returns the reference to the Phoenix Control |
com.sap.ui.core.client.js.JsArray<com.sap.ui.core.client.Control> |
getFirstPaneContent()
Getter for aggregation firstPaneContent Controls inside the first pane. |
String |
getHeight()
Getter for property height
The height of the split area in px or in % |
String |
getMinSizeFirstPane()
Getter for property minSizeFirstPane
The minimum size (width for vertical splitter or height for horizontal splitter) of the first Pane |
String |
getMinSizeSecondPane()
Getter for property minSizeSecondPane
The minimum size (width for vertical splitter or height for horizontal splitter) of the second Pane |
com.sap.ui.core.client.js.JsArray<com.sap.ui.core.client.Control> |
getSecondPaneContent()
Getter for aggregation secondPaneContent Controls inside the second pane. |
Orientation |
getSplitterOrientation()
Getter for property splitterOrientation
The line can have horizontal or vertical orientation. |
String |
getSplitterPosition()
Getter for property splitterPosition
Position of splitter bar in percentage. |
String |
getWidth()
Getter for property width
The width of the split area in px or in % |
int |
indexOfFirstPaneContent(com.sap.ui.core.client.Control firstPaneContent)
Checks for the provided com.sap.ui.core.client.Control in the firstPaneContent-aggregation and
returns its index if found or -1 otherwise. |
int |
indexOfSecondPaneContent(com.sap.ui.core.client.Control secondPaneContent)
Checks for the provided com.sap.ui.core.client.Control in the secondPaneContent-aggregation and
returns its index if found or -1 otherwise. |
void |
insertFirstPaneContent(com.sap.ui.core.client.Control firstPaneContent,
int index)
Inserts some firstPaneContent into the aggregation named firstPaneContent. |
void |
insertSecondPaneContent(com.sap.ui.core.client.Control secondPaneContent,
int index)
Inserts some secondPaneContent into the aggregation named secondPaneContent. |
boolean |
isShowScrollBars()
Getter for property showScrollBars
Specifies if the browser should display scroll bars or simply cut the content of a splitter pane when the content does not fit into its pane. |
boolean |
isVisible()
Getter for property visible
Invisible splitters are not rendered. |
void |
removeAllFirstPaneContent()
Removes all the items in the firstPaneContent-aggregation. |
void |
removeAllSecondPaneContent()
Removes all the items in the secondPaneContent-aggregation. |
void |
removeFirstPaneContent(int index)
Removes the firstPaneContent at position index in the firstPaneContent-aggregation named. |
void |
removeSecondPaneContent(int index)
Removes the secondPaneContent at position index in the secondPaneContent-aggregation named. |
void |
setHeight(String value)
Setter for property heightDefault value is: 100% |
void |
setMinSizeFirstPane(String value)
Setter for property minSizeFirstPaneDefault value is: 0% |
void |
setMinSizeSecondPane(String value)
Setter for property minSizeSecondPaneDefault value is: 0% |
void |
setShowScrollBars(boolean value)
Setter for property showScrollBarsDefault value is: true |
void |
setSplitterOrientation(Orientation value)
Setter for property splitterOrientationDefault value is: vertical |
void |
setSplitterPosition(String value)
Setter for property splitterPositionDefault value is: 50% |
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 SplitterWidget()
SplitterWidget
public SplitterWidget(String id)
SplitterWidget
id - id of the SplitterWidgetprotected SplitterWidget(Splitter control)
SplitterWidget
control - reference to an existing Splitter| Method Detail |
|---|
public Splitter getControl()
Control
getControl in class com.sap.ui.core.client.ControlWidgetControlpublic Orientation getSplitterOrientation()
splitterOrientation
The line can have horizontal or vertical orientation.
public void setSplitterOrientation(Orientation value)
splitterOrientationvertical
value - com.sap.ui.commons.client.Orientationpublic String getSplitterPosition()
splitterPosition
Position of splitter bar in percentage.
The default value means that the splitter is positioned in the middle of the area that is available for the splitter.
public void setSplitterPosition(String value)
splitterPosition50%
value - Stringpublic String getMinSizeFirstPane()
minSizeFirstPane
The minimum size (width for vertical splitter or height for horizontal splitter) of the first Pane
public void setMinSizeFirstPane(String value)
minSizeFirstPane0%
value - Stringpublic String getMinSizeSecondPane()
minSizeSecondPane
The minimum size (width for vertical splitter or height for horizontal splitter) of the second Pane
public void setMinSizeSecondPane(String value)
minSizeSecondPane0%
value - Stringpublic String getWidth()
width
The width of the split area in px or in %
public void setWidth(String value)
width100%
setWidth in class com.google.gwt.user.client.ui.UIObjectvalue - Stringpublic String getHeight()
height
The height of the split area in px or in %
public void setHeight(String value)
height100%
setHeight in class com.google.gwt.user.client.ui.UIObjectvalue - Stringpublic boolean isVisible()
visible
Invisible splitters 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 boolean isShowScrollBars()
showScrollBars
Specifies if the browser should display scroll bars or simply cut the content of a splitter pane when the content does not fit into its pane.
public void setShowScrollBars(boolean value)
showScrollBarstrue
value - booleanpublic com.sap.ui.core.client.js.JsArray<com.sap.ui.core.client.Control> getFirstPaneContent()
public void insertFirstPaneContent(com.sap.ui.core.client.Control firstPaneContent,
int index)
firstPaneContent - the firstPaneContent to insertindex - int the 0-based index the firstPaneContent should be inserted at.public void addFirstPaneContent(com.sap.ui.core.client.Control firstPaneContent)
firstPaneContent - com.sap.ui.core.client.Control the firstPaneContent to addpublic void removeFirstPaneContent(int index)
index in the firstPaneContent-aggregation named.
index - int the position of the firstPaneContent to remove.public void removeAllFirstPaneContent()
public int indexOfFirstPaneContent(com.sap.ui.core.client.Control firstPaneContent)
com.sap.ui.core.client.Control in the firstPaneContent-aggregation and
returns its index if found or -1 otherwise.
firstPaneContent - the firstPaneContent whose index is looked for.
public void destroyFirstPaneContent()
public com.sap.ui.core.client.js.JsArray<com.sap.ui.core.client.Control> getSecondPaneContent()
public void insertSecondPaneContent(com.sap.ui.core.client.Control secondPaneContent,
int index)
secondPaneContent - the secondPaneContent to insertindex - int the 0-based index the secondPaneContent should be inserted at.public void addSecondPaneContent(com.sap.ui.core.client.Control secondPaneContent)
secondPaneContent - com.sap.ui.core.client.Control the secondPaneContent to addpublic void removeSecondPaneContent(int index)
index in the secondPaneContent-aggregation named.
index - int the position of the secondPaneContent to remove.public void removeAllSecondPaneContent()
public int indexOfSecondPaneContent(com.sap.ui.core.client.Control secondPaneContent)
com.sap.ui.core.client.Control in the secondPaneContent-aggregation and
returns its index if found or -1 otherwise.
secondPaneContent - the secondPaneContent whose index is looked for.
public void destroySecondPaneContent()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||