|
||||||||||
| 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.layout.BorderLayout
public class BorderLayout
The class BorderLayout is the GWT wrapper
for the Phoenix control: sap.ui.commons.layout.BorderLayout.
A BorderLayout control based upon the JAVA border-layout. With this layout you are able to divide your available space into 5 areas whose sizes can be defined. The 5 areas are: Top: Header; Bottom: Footer; Begin: left/right handed side panel; Center: content area in the middle; End: right/left handed side panel.
| Constructor Summary | |
|---|---|
protected |
BorderLayout()
constructs the class BorderLayouthidden due to JavaScriptObject restriction |
| Method Summary | |
|---|---|
void |
addContent(String areaId,
com.sap.ui.core.client.Control controls)
Adds controls to the specified area. |
static BorderLayout |
create()
creates a new instance of the class BorderLayout |
static BorderLayout |
create(String idOrConfig)
creates a new instance of the class BorderLayout |
static BorderLayout |
create(String id,
String config)
creates a new instance of the class BorderLayout |
com.sap.ui.core.client.Element |
createArea(String areaId,
com.sap.ui.core.client.Control controls)
Creates the specified area and adds the given controls to it. |
BorderLayout |
destroyBegin()
Destroys the begin in the Begin-aggregation. |
BorderLayout |
destroyBottom()
Destroys the bottom in the Bottom-aggregation. |
BorderLayout |
destroyCenter()
Destroys the center in the Center-aggregation. |
void |
destroyContent(String areaId)
Destroys the content of the specified area. |
BorderLayout |
destroyEnd()
Destroys the end in the End-aggregation. |
BorderLayout |
destroyTop()
Destroys the top in the Top-aggregation. |
com.sap.ui.core.client.Element |
getAreaById(String areaId)
Returns the object of the specified area. |
Object |
getAreaData(String areaId)
Returns a JSON like object that contains all properties values of the requested area. |
com.sap.ui.core.client.Element |
getBegin()
Getter for aggregation begin Represents the begin area |
com.sap.ui.core.client.Element |
getBottom()
Getter for aggregation bottom Represents the bottom area |
com.sap.ui.core.client.Element |
getCenter()
Getter for aggregation center Represents the center area |
Object |
getContent(String areaId)
Returns all controls inside the specified area inside an array. |
com.sap.ui.core.client.Element |
getEnd()
Getter for aggregation end Represents the end area |
String |
getHeight()
Getter for property height
Defines the height of the BorderLayout |
com.sap.ui.core.client.Element |
getTop()
Getter for aggregation top Represents the top area |
String |
getWidth()
Getter for property width
Defines the width of the BorderLayout |
int |
indexOfContent(String areaId,
com.sap.ui.core.client.Control content)
Determines the index of a given content control. |
void |
insertContent(String areaId,
int index,
com.sap.ui.core.client.Control control)
Inserts controls to an area at a given index. |
boolean |
isRtl()
Getter for property rtl
RTL will rotate the begin and end areas. |
void |
removeAllContent(String areaId)
Removes all content from an area. |
void |
removeContent(String areaId,
int index)
Removes the content with the given index from an area. |
void |
setAreaData(String areaId,
Object data)
Set the properties of the specified area with the given values. |
BorderLayout |
setBegin(com.sap.ui.core.client.Element begin)
Setter for the aggregated begin. |
BorderLayout |
setBottom(com.sap.ui.core.client.Element bottom)
Setter for the aggregated bottom. |
BorderLayout |
setCenter(com.sap.ui.core.client.Element center)
Setter for the aggregated center. |
BorderLayout |
setEnd(com.sap.ui.core.client.Element end)
Setter for the aggregated end. |
BorderLayout |
setHeight(String value)
Setter for property heightDefault value is: 100% |
BorderLayout |
setRtl(boolean value)
Setter for property rtlDefault value is: false |
BorderLayout |
setTop(com.sap.ui.core.client.Element top)
Setter for the aggregated top. |
BorderLayout |
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 BorderLayout()
BorderLayoutJavaScriptObject restriction
| Method Detail |
|---|
public static BorderLayout create()
BorderLayout
public static BorderLayout create(String idOrConfig)
BorderLayout
id - id of the BorderLayout or configuration JSON string
public static BorderLayout create(String id,
String config)
BorderLayout
id - id of the BorderLayoutconfig - configuration JSON stringpublic final boolean isRtl()
rtl
RTL will rotate the begin and end areas.
public final BorderLayout setRtl(boolean value)
rtlfalse
value - boolean
this to allow method chainingpublic final String getWidth()
width
Defines the width of the BorderLayout
public final BorderLayout setWidth(String value)
width100%
value - String
this to allow method chainingpublic final String getHeight()
height
Defines the height of the BorderLayout
public final BorderLayout setHeight(String value)
height100%
value - String
this to allow method chainingpublic final com.sap.ui.core.client.Element getTop()
public final BorderLayout setTop(com.sap.ui.core.client.Element top)
otop - {com.sap.ui.core.client.Element}
this to allow method chainingpublic final BorderLayout destroyTop()
this to allow method chainingpublic final com.sap.ui.core.client.Element getBegin()
public final BorderLayout setBegin(com.sap.ui.core.client.Element begin)
obegin - {com.sap.ui.core.client.Element}
this to allow method chainingpublic final BorderLayout destroyBegin()
this to allow method chainingpublic final com.sap.ui.core.client.Element getCenter()
public final BorderLayout setCenter(com.sap.ui.core.client.Element center)
ocenter - {com.sap.ui.core.client.Element}
this to allow method chainingpublic final BorderLayout destroyCenter()
this to allow method chainingpublic final com.sap.ui.core.client.Element getEnd()
public final BorderLayout setEnd(com.sap.ui.core.client.Element end)
oend - {com.sap.ui.core.client.Element}
this to allow method chainingpublic final BorderLayout destroyEnd()
this to allow method chainingpublic final com.sap.ui.core.client.Element getBottom()
public final BorderLayout setBottom(com.sap.ui.core.client.Element bottom)
obottom - {com.sap.ui.core.client.Element}
this to allow method chainingpublic final BorderLayout destroyBottom()
this to allow method chaining
public final com.sap.ui.core.client.Element createArea(String areaId,
com.sap.ui.core.client.Control controls)
areaId - Specifies which area will be created. If the area has already been created, nothing is done.controls - n Controls can be submitted to be added to the new created area. Each control is submitted as one argument.
public final void setAreaData(String areaId,
Object data)
areaId - Specifies the area whose properties will be set.data - JSON-like object that contains the values to be set.
public final void addContent(String areaId,
com.sap.ui.core.client.Control controls)
areaId - Specifies the area where controls will be added.controls - n Controls can be submitted to be added. Each control is submitted as one argument.
public final void insertContent(String areaId,
int index,
com.sap.ui.core.client.Control control)
areaId - Specifies the area where controls will be inserted.index - Specifies the index where controls will be added. For a negative value of iIndex, the content is inserted at position 0; for a value greater than the current size of the aggregation, the content is inserted at the last position.control - n Controls can be submitted to be added. Each control is submitted as one argument.
public final void removeContent(String areaId,
int index)
areaId - Specifies the area whose content will be removed.index - Specifies the index of the control that will be removed.public final void removeAllContent(String areaId)
areaId - Specifies the area whose content will be removed.public final Object getContent(String areaId)
areaId - Specifies the area whose content controls will be returned.
public final int indexOfContent(String areaId,
com.sap.ui.core.client.Control content)
areaId - Specifies the area that will be searched.content - Specifies the control whose index will be searched.public final void destroyContent(String areaId)
areaId - Specifies the area whose content will be destroyed.public final Object getAreaData(String areaId)
areaId - Specifies the area whose data will be returned.public final com.sap.ui.core.client.Element getAreaById(String areaId)
areaId - Specifies the area whose object will be returned.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||