com.sap.ui.commons.client
Class AccordionSection

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

public class AccordionSection
extends com.sap.ui.core.client.Element

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

Represents a UI panel that is a simple container for controls. The panel does not layout the contained controls.

For further parameters see {@link com.sap.ui.core.client.Element

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

Constructor Summary
protected AccordionSection()
          constructs the class AccordionSection
hidden due to JavaScriptObject restriction
 
Method Summary
 AccordionSection addContent(com.sap.ui.core.client.Control content)
          Appends a content to the aggregation content.
 AccordionSection attachScrollEvent(com.sap.ui.core.client.event.EventListener listener)
          attach an EventListener Event is fired when the user scrolls the panel.
static AccordionSection create()
          creates a new instance of the class AccordionSection
static AccordionSection create(String idOrConfig)
          creates a new instance of the class AccordionSection
static AccordionSection create(String id, String config)
          creates a new instance of the class AccordionSection
 AccordionSection destroyContent()
          Destroys all the content in the Content-aggregation.
 AccordionSection detachScrollEvent(com.sap.ui.core.client.event.EventListener listener)
          detach an EventListener Event is fired when the user scrolls the panel.
 com.sap.ui.core.client.js.JsArray<com.sap.ui.core.client.Control> getContent()
          Getter for aggregation content Aggregates the controls that are contained in the panel.
 String getMaxHeight()
          Getter for property maxHeight When the section content exceeds the maxHeight, a vertical scrollbar appears.
 String getTitle()
          Getter for property title Section header text.
 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.
 AccordionSection insertContent(com.sap.ui.core.client.Control content, int index)
          Inserts some content into the aggregation named content.
 boolean isCollapsed()
          Getter for property collapsed A collapsed panel consumes minimal space.
 boolean isEnabled()
          Getter for property enabled Requirement is that the used theme supports the control.
 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.
 AccordionSection setCollapsed(boolean value)
          Setter for property collapsed
Default value is: false
 AccordionSection setEnabled(boolean value)
          Setter for property enabled
Default value is: true
 AccordionSection setMaxHeight(String value)
          Setter for property maxHeight
 AccordionSection setTitle(String value)
          Setter for property title
 
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

AccordionSection

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

Method Detail

create

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


create

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

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

create

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

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

getMaxHeight

public final String getMaxHeight()
Getter for property maxHeight When the section content exceeds the maxHeight, a vertical scrollbar appears.

Returns:
the value of property maxHeight

setMaxHeight

public final AccordionSection setMaxHeight(String value)
Setter for property maxHeight

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

isEnabled

public final boolean isEnabled()
Getter for property enabled Requirement is that the used theme supports the control.

Returns:
the value of property enabled

setEnabled

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

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

isCollapsed

public final boolean isCollapsed()
Getter for property collapsed A collapsed panel consumes minimal space. When initially collapsed, its contents are not rendered. The recommendation is to set the panel width if the control shall be collapsed.

Returns:
the value of property collapsed

setCollapsed

public final AccordionSection setCollapsed(boolean value)
Setter for property collapsed
Default value is: false

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

getTitle

public final String getTitle()
Getter for property title Section header text.

Returns:
the value of property title

setTitle

public final AccordionSection setTitle(String value)
Setter for property title

Parameters:
value - String
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 Aggregates the controls that are contained in the panel. Control layouting is browser-dependent. For a stable content layout, use a layout control as direct single child. When the panel dimensions are set, the child control may have width and height of 100%; when the panel dimensions are not set, the child defines the panel size.

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

insertContent

public final AccordionSection 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 AccordionSection 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 AccordionSection destroyContent()
Destroys all the content in the Content-aggregation.

Returns:
this to allow method chaining

attachScrollEvent

public final AccordionSection attachScrollEvent(com.sap.ui.core.client.event.EventListener listener)
attach an EventListener Event is fired when the user scrolls the panel.
Event Parameters:
{int} left Horizontal scroll position.
{int} top Vertical scroll position.

Parameters:
listener - reference to the EventListener
Returns:
this to allow method chaining

detachScrollEvent

public final AccordionSection detachScrollEvent(com.sap.ui.core.client.event.EventListener listener)
detach an EventListener Event is fired when the user scrolls the panel.

Parameters:
listener - reference to the EventListener
Returns:
this to allow method chaining


Copyright © 2011 SAP. All Rights Reserved.