|
||||||||||
| 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.AbsoluteLayout
public class AbsoluteLayout
The class AbsoluteLayout is the GWT wrapper
for the Phoenix control: sap.ui.commons.layout.AbsoluteLayout.
The Absolute Layout positions its child controls absolutely. When a child control is added (or explicitly with function 'setPositionOfChild') it is possible to define the position of this control via a JSON-like object which can have the following properties: - top (type: sap.ui.core/CSSSize): Defines the distance to the top of the layout as specified in HTML. - bottom (type: sap.ui.core/CSSSize): Defines the distance of the bottom of the layout as specified in HTML. - left (type: sap.ui.core/CSSSize): Defines the distance of the left of the layout as specified in HTML. - right (type: sap.ui.core/CSSSize): Defines the distance of the right of the layout as specified in HTML. - wrap (type: boolean): Defines whether the child control should be wrapped with a div (default=false). More details below. - wrapWidth (type: sap.ui.core/CSSSize): Width of the wrapping span (see parameter wrap). - wrapHeight (type: sap.ui.core/CSSSize): Height of the wrapping span (see parameter wrap). If no top and bottom is set top=0px is used. If no left and right is set left=0px is used. Meaning of wrap parameter: - wrap=false (default): The child control is directly embedded into the layout without additional markup (as far as this is possible). The given position information is applied to the root tag of the control. In case the control has a property "width", the value of this property is not "auto" or "inherited", and left and right are both defined in the position information a collision occurs. In this case the right position is ignored. A control which does not provide a property "width" is interpreted as not stretchable. Therefore also here the right position is ignored, if left and right are both defined in the position information. The same mechanism is valid for property "height" and position information top/bottom. Due to this collision detection it is necessary for an application to explicitly call invalidate() on the AbsoluteLayout when the width/height of a child control is changed after it was added to the layout and was rendered already. - wrap=true: The child control is wrapped with a div HTML tag. The given position information is applied to this tag. The width/height of this tag can be influenced by the parameter wrapWidth and wrapHeight (both sap.ui.core/CSSSize). The width and height attributes of the child control (if available) must be used to change the visual size of the child control. Since additional HTML markup is used the option wrap=true should only be used if really needed.
| Constructor Summary | |
|---|---|
protected |
AbsoluteLayout()
constructs the class AbsoluteLayouthidden due to JavaScriptObject restriction |
| Method Summary | |
|---|---|
AbsoluteLayout |
addContent(com.sap.ui.core.client.Control content)
Appends a content to the aggregation content. |
static AbsoluteLayout |
create()
creates a new instance of the class AbsoluteLayout |
static AbsoluteLayout |
create(String idOrConfig)
creates a new instance of the class AbsoluteLayout |
static AbsoluteLayout |
create(String id,
String config)
creates a new instance of the class AbsoluteLayout |
AbsoluteLayout |
destroyContent()
Destroys all the content in the Content-aggregation. |
com.sap.ui.core.client.js.JsArray<com.sap.ui.core.client.Control> |
getContent()
Getter for aggregation content Child Controls within the layout. |
String |
getHeight()
Getter for property height
The height of the AbsoluteLayout. |
com.sap.ui.core.client.Scrolling |
getHorizontalScrolling()
Getter for property horizontalScrolling
The horizontal scrolling mode. |
com.sap.ui.core.client.Scrolling |
getVerticalScrolling()
Getter for property verticalScrolling
The vertical scrolling mode. |
String |
getWidth()
Getter for property width
The width of the AbsoluteLayout. |
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. |
AbsoluteLayout |
insertContent(com.sap.ui.core.client.Control content,
int index)
Inserts some content into the aggregation named content. |
boolean |
isVisible()
Getter for property visible
The visibility of the AbsoluteLayout |
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<com.sap.ui.core.client.Control> |
removeContent(int index)
Removes a content from the aggregation named content. |
AbsoluteLayout |
setHeight(String value)
Setter for property height |
AbsoluteLayout |
setHorizontalScrolling(com.sap.ui.core.client.Scrolling value)
Setter for property horizontalScrollingDefault value is: Hidden |
void |
setPositionOfChild(com.sap.ui.core.client.Control child,
Object position)
Adds some position information to the child oChild in the aggregation named children. |
AbsoluteLayout |
setVerticalScrolling(com.sap.ui.core.client.Scrolling value)
Setter for property verticalScrollingDefault value is: Hidden |
AbsoluteLayout |
setVisible(boolean value)
Setter for property visibleDefault value is: true |
AbsoluteLayout |
setWidth(String value)
Setter for property width |
| 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 AbsoluteLayout()
AbsoluteLayoutJavaScriptObject restriction
| Method Detail |
|---|
public static AbsoluteLayout create()
AbsoluteLayout
public static AbsoluteLayout create(String idOrConfig)
AbsoluteLayout
id - id of the AbsoluteLayout or configuration JSON string
public static AbsoluteLayout create(String id,
String config)
AbsoluteLayout
id - id of the AbsoluteLayoutconfig - configuration JSON stringpublic final boolean isVisible()
visible
The visibility of the AbsoluteLayout
public final AbsoluteLayout setVisible(boolean value)
visibletrue
value - boolean
this to allow method chainingpublic final String getWidth()
width
The width of the AbsoluteLayout. When not set, 100% is used.
public final AbsoluteLayout setWidth(String value)
width
value - String
this to allow method chainingpublic final String getHeight()
height
The height of the AbsoluteLayout. When not set, 100% is used.
public final AbsoluteLayout setHeight(String value)
height
value - String
this to allow method chainingpublic final com.sap.ui.core.client.Scrolling getVerticalScrolling()
verticalScrolling
The vertical scrolling mode. When not set, 'Hidden' is used.
public final AbsoluteLayout setVerticalScrolling(com.sap.ui.core.client.Scrolling value)
verticalScrollingHidden
value - com.sap.ui.core.client.Scrolling
this to allow method chainingpublic final com.sap.ui.core.client.Scrolling getHorizontalScrolling()
horizontalScrolling
The horizontal scrolling mode. When not set, 'Hidden' is used.
public final AbsoluteLayout setHorizontalScrolling(com.sap.ui.core.client.Scrolling value)
horizontalScrollingHidden
value - com.sap.ui.core.client.Scrolling
this to allow method chainingpublic final com.sap.ui.core.client.js.JsArray<com.sap.ui.core.client.Control> getContent()
public final AbsoluteLayout 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 AbsoluteLayout 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 AbsoluteLayout destroyContent()
this to allow method chaining
public final void setPositionOfChild(com.sap.ui.core.client.Control child,
Object position)
oChild in the aggregation named children.
child - The child to add the position information; if empty or not contained in aggregation named children, nothing is insertedposition - JSON-like object which defines the position of the child control in the absolute layout. The object is expected to have one or more out of the attributes top, bottom, left, right (each with a value of type sap.ui.core.CSSSize). If no object is given the default (left=0px,right=0px) is used.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||