|
||||||||||
| 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.commons.client.AccordionSection
public class AccordionSection
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.
| Constructor Summary | |
|---|---|
protected |
AccordionSection()
constructs the class AccordionSectionhidden 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 collapsedDefault value is: false |
AccordionSection |
setEnabled(boolean value)
Setter for property enabledDefault 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 |
|---|
protected AccordionSection()
AccordionSectionJavaScriptObject restriction
| Method Detail |
|---|
public static AccordionSection create()
AccordionSection
public static AccordionSection create(String idOrConfig)
AccordionSection
id - id of the AccordionSection or configuration JSON string
public static AccordionSection create(String id,
String config)
AccordionSection
id - id of the AccordionSectionconfig - configuration JSON stringpublic final String getMaxHeight()
maxHeight
When the section content exceeds the maxHeight, a vertical scrollbar appears.
public final AccordionSection setMaxHeight(String value)
maxHeight
value - String
this to allow method chainingpublic final boolean isEnabled()
enabled
Requirement is that the used theme supports the control.
public final AccordionSection setEnabled(boolean value)
enabledtrue
value - boolean
this to allow method chainingpublic final boolean isCollapsed()
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.
public final AccordionSection setCollapsed(boolean value)
collapsedfalse
value - boolean
this to allow method chainingpublic final String getTitle()
title
Section header text.
public final AccordionSection setTitle(String value)
title
value - String
this to allow method chainingpublic final com.sap.ui.core.client.js.JsArray<com.sap.ui.core.client.Control> getContent()
public final AccordionSection 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 AccordionSection 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 AccordionSection destroyContent()
this to allow method chainingpublic final AccordionSection attachScrollEvent(com.sap.ui.core.client.event.EventListener listener)
EventListener
Event is fired when the user scrolls the panel.
listener - reference to the EventListener
this to allow method chainingpublic final AccordionSection detachScrollEvent(com.sap.ui.core.client.event.EventListener listener)
EventListener
Event is fired when the user scrolls the panel.
listener - reference to the EventListener
this to allow method chaining
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||