|
||||||||||
| 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.Splitter
public class Splitter
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.
| Constructor Summary | |
|---|---|
protected |
Splitter()
constructs the class Splitterhidden due to JavaScriptObject restriction |
| Method Summary | |
|---|---|
Splitter |
addFirstPaneContent(com.sap.ui.core.client.Control firstPaneContent)
Appends a firstPaneContent to the aggregation firstPaneContent. |
Splitter |
addSecondPaneContent(com.sap.ui.core.client.Control secondPaneContent)
Appends a secondPaneContent to the aggregation secondPaneContent. |
static Splitter |
create()
creates a new instance of the class Splitter |
static Splitter |
create(String idOrConfig)
creates a new instance of the class Splitter |
static Splitter |
create(String id,
String config)
creates a new instance of the class Splitter |
Splitter |
destroyFirstPaneContent()
Destroys all the firstPaneContent in the FirstPaneContent-aggregation. |
Splitter |
destroySecondPaneContent()
Destroys all the secondPaneContent in the SecondPaneContent-aggregation. |
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. |
Splitter |
insertFirstPaneContent(com.sap.ui.core.client.Control firstPaneContent,
int index)
Inserts some firstPaneContent into the aggregation named firstPaneContent. |
Splitter |
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. |
com.sap.ui.core.client.js.JsArray<com.sap.ui.core.client.js.JsArray<com.sap.ui.core.client.Control>> |
removeAllFirstPaneContent()
Removes all the items in the firstPaneContent-aggregation. |
com.sap.ui.core.client.js.JsArray<com.sap.ui.core.client.js.JsArray<com.sap.ui.core.client.Control>> |
removeAllSecondPaneContent()
Removes all the items in the secondPaneContent-aggregation. |
com.sap.ui.core.client.js.JsArray<com.sap.ui.core.client.Control> |
removeFirstPaneContent(int index)
Removes a firstPaneContent from the aggregation named firstPaneContent. |
com.sap.ui.core.client.js.JsArray<com.sap.ui.core.client.Control> |
removeSecondPaneContent(int index)
Removes a secondPaneContent from the aggregation named secondPaneContent. |
Splitter |
setHeight(String value)
Setter for property heightDefault value is: 100% |
Splitter |
setMinSizeFirstPane(String value)
Setter for property minSizeFirstPaneDefault value is: 0% |
Splitter |
setMinSizeSecondPane(String value)
Setter for property minSizeSecondPaneDefault value is: 0% |
Splitter |
setShowScrollBars(boolean value)
Setter for property showScrollBarsDefault value is: true |
Splitter |
setSplitterOrientation(Orientation value)
Setter for property splitterOrientationDefault value is: vertical |
Splitter |
setSplitterPosition(String value)
Setter for property splitterPositionDefault value is: 50% |
Splitter |
setVisible(boolean value)
Setter for property visibleDefault value is: true |
Splitter |
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 Splitter()
SplitterJavaScriptObject restriction
| Method Detail |
|---|
public static Splitter create()
Splitter
public static Splitter create(String idOrConfig)
Splitter
id - id of the Splitter or configuration JSON string
public static Splitter create(String id,
String config)
Splitter
id - id of the Splitterconfig - configuration JSON stringpublic final Orientation getSplitterOrientation()
splitterOrientation
The line can have horizontal or vertical orientation.
public final Splitter setSplitterOrientation(Orientation value)
splitterOrientationvertical
value - com.sap.ui.commons.client.Orientation
this to allow method chainingpublic final 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 final Splitter setSplitterPosition(String value)
splitterPosition50%
value - String
this to allow method chainingpublic final String getMinSizeFirstPane()
minSizeFirstPane
The minimum size (width for vertical splitter or height for horizontal splitter) of the first Pane
public final Splitter setMinSizeFirstPane(String value)
minSizeFirstPane0%
value - String
this to allow method chainingpublic final String getMinSizeSecondPane()
minSizeSecondPane
The minimum size (width for vertical splitter or height for horizontal splitter) of the second Pane
public final Splitter setMinSizeSecondPane(String value)
minSizeSecondPane0%
value - String
this to allow method chainingpublic final String getWidth()
width
The width of the split area in px or in %
public final Splitter setWidth(String value)
width100%
value - String
this to allow method chainingpublic final String getHeight()
height
The height of the split area in px or in %
public final Splitter setHeight(String value)
height100%
value - String
this to allow method chainingpublic final boolean isVisible()
visible
Invisible splitters are not rendered.
public final Splitter setVisible(boolean value)
visibletrue
value - boolean
this to allow method chainingpublic final 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 final Splitter setShowScrollBars(boolean value)
showScrollBarstrue
value - boolean
this to allow method chainingpublic final com.sap.ui.core.client.js.JsArray<com.sap.ui.core.client.Control> getFirstPaneContent()
public final Splitter insertFirstPaneContent(com.sap.ui.core.client.Control firstPaneContent,
int index)
firstPaneContent.
firstPaneContent - the firstPaneContent to insertindex - int the 0-based index the firstPaneContent should be inserted at.
this to allow method chainingpublic final Splitter addFirstPaneContent(com.sap.ui.core.client.Control firstPaneContent)
firstPaneContent.
firstPaneContent - com.sap.ui.core.client.Control the firstPaneContent to add
this to allow method chainingpublic final com.sap.ui.core.client.js.JsArray<com.sap.ui.core.client.Control> removeFirstPaneContent(int index)
firstPaneContent.
index - int the position of the firstPaneContent to remove.
public final com.sap.ui.core.client.js.JsArray<com.sap.ui.core.client.js.JsArray<com.sap.ui.core.client.Control>> removeAllFirstPaneContent()
public final 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 final Splitter destroyFirstPaneContent()
this to allow method chainingpublic final com.sap.ui.core.client.js.JsArray<com.sap.ui.core.client.Control> getSecondPaneContent()
public final Splitter insertSecondPaneContent(com.sap.ui.core.client.Control secondPaneContent,
int index)
secondPaneContent.
secondPaneContent - the secondPaneContent to insertindex - int the 0-based index the secondPaneContent should be inserted at.
this to allow method chainingpublic final Splitter addSecondPaneContent(com.sap.ui.core.client.Control secondPaneContent)
secondPaneContent.
secondPaneContent - com.sap.ui.core.client.Control the secondPaneContent to add
this to allow method chainingpublic final com.sap.ui.core.client.js.JsArray<com.sap.ui.core.client.Control> removeSecondPaneContent(int index)
secondPaneContent.
index - int the position of the secondPaneContent to remove.
public final com.sap.ui.core.client.js.JsArray<com.sap.ui.core.client.js.JsArray<com.sap.ui.core.client.Control>> removeAllSecondPaneContent()
public final 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 final Splitter destroySecondPaneContent()
this to allow method chaining
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||