com.sap.ui.commons.client.layout
Class VerticalLayout

java.lang.Object
  extended by com.google.gwt.core.client.JavaScriptObject
      extended by com.sap.ui.core.client.Element
          extended by com.sap.ui.core.client.Control
              extended by com.sap.ui.commons.client.layout.VerticalLayout

public class VerticalLayout
extends com.sap.ui.core.client.Control

The class VerticalLayout is the GWT wrapper for the Phoenix control: sap.ui.commons.layout.VerticalLayout.

In this layout the elemnts are orderd one below the other

Version:
0.18.0-SNAPSHOT
Author:
GENERATOR (JavaScript control: sap.ui.commons.layout.VerticalLayout)

Constructor Summary
protected VerticalLayout()
          constructs the class VerticalLayout
hidden due to JavaScriptObject restriction
 
Method Summary
 VerticalLayout addContent(com.sap.ui.core.client.Control content)
          Appends a content to the aggregation content.
static VerticalLayout create()
          creates a new instance of the class VerticalLayout
static VerticalLayout create(String idOrConfig)
          creates a new instance of the class VerticalLayout
static VerticalLayout create(String id, String config)
          creates a new instance of the class VerticalLayout
 VerticalLayout 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 getWidth()
          Getter for property width CSS width of the vertical layout.
 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.
 VerticalLayout insertContent(com.sap.ui.core.client.Control content, int index)
          Inserts some content into the aggregation named content.
 boolean isEnabled()
          Getter for property enabled If not enabled all controls inside are not enabled automatically.
 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.
 VerticalLayout setEnabled(boolean value)
          Setter for property enabled
Default value is: true
 VerticalLayout 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

VerticalLayout

protected VerticalLayout()
constructs the class VerticalLayout
hidden due to JavaScriptObject restriction

Method Detail

create

public static VerticalLayout create()
creates a new instance of the class VerticalLayout


create

public static VerticalLayout create(String idOrConfig)
creates a new instance of the class VerticalLayout

Parameters:
id - id of the VerticalLayout or configuration JSON string

create

public static VerticalLayout create(String id,
                                    String config)
creates a new instance of the class VerticalLayout

Parameters:
id - id of the VerticalLayout
config - configuration JSON string

getWidth

public final String getWidth()
Getter for property width CSS width of the vertical layout.

Returns:
the value of property width

setWidth

public final VerticalLayout setWidth(String value)
Setter for property width

Parameters:
value - String
Returns:
this to allow method chaining

isEnabled

public final boolean isEnabled()
Getter for property enabled If not enabled all controls inside are not enabled automatically.

Returns:
the value of property enabled

setEnabled

public final VerticalLayout setEnabled(boolean value)
Setter for property enabled
Default value is: true

Parameters:
value - boolean
Returns:
this to allow method chaining

getContent

public final com.sap.ui.core.client.js.JsArray<com.sap.ui.core.client.Control> getContent()
Getter for aggregation content Child Controls within the layout.

Returns:
com.sap.ui.core.client.Control[]

insertContent

public final VerticalLayout insertContent(com.sap.ui.core.client.Control content,
                                          int index)
Inserts some content into the aggregation named content.

Parameters:
content - the content to insert
index - int the 0-based index the content should be inserted at.
Returns:
this to allow method chaining

addContent

public final VerticalLayout addContent(com.sap.ui.core.client.Control content)
Appends a content to the aggregation content.

Parameters:
content - com.sap.ui.core.client.Control the content to add
Returns:
this to allow method chaining

removeContent

public final com.sap.ui.core.client.js.JsArray<com.sap.ui.core.client.Control> removeContent(int index)
Removes a content from the aggregation named content.

Parameters:
index - int the position of the content to remove.
Returns:
reference to this instance

removeAllContent

public final 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.

Returns:
an array of the removed elements (might be empty)

indexOfContent

public final 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.

Parameters:
content - the content whose index is looked for.
Returns:
the index of the provided control in the aggregation.

destroyContent

public final VerticalLayout destroyContent()
Destroys all the content in the Content-aggregation.

Returns:
this to allow method chaining


Copyright © 2011 SAP. All Rights Reserved.