|
||||||||||
| 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.Accordion
public class Accordion
The class Accordion is the GWT wrapper
for the Phoenix control: sap.ui.commons.Accordion.
Contains N sections which act as containers for any library control.
| Constructor Summary | |
|---|---|
protected |
Accordion()
constructs the class Accordionhidden due to JavaScriptObject restriction |
| Method Summary | |
|---|---|
Accordion |
addSection(AccordionSection section)
Appends a section to the aggregation sections. |
Accordion |
attachSectionCloseEvent(com.sap.ui.core.client.event.EventListener listener)
attach an EventListener
Triggered when user closes a section. |
Accordion |
attachSectionOpenEvent(com.sap.ui.core.client.event.EventListener listener)
attach an EventListener
Triggered when user opens a section. |
Accordion |
attachSectionsReorderEvent(com.sap.ui.core.client.event.EventListener listener)
attach an EventListener
Triggered when user changes the position of a section. |
void |
closeSection(String sectionId)
Closes a given section and opens the default section. |
static Accordion |
create()
creates a new instance of the class Accordion |
static Accordion |
create(String idOrConfig)
creates a new instance of the class Accordion |
static Accordion |
create(String id,
String config)
creates a new instance of the class Accordion |
Accordion |
destroySections()
Destroys all the sections in the Sections-aggregation. |
Accordion |
detachSectionCloseEvent(com.sap.ui.core.client.event.EventListener listener)
detach an EventListener
Triggered when user closes a section. |
Accordion |
detachSectionOpenEvent(com.sap.ui.core.client.event.EventListener listener)
detach an EventListener
Triggered when user opens a section. |
Accordion |
detachSectionsReorderEvent(com.sap.ui.core.client.event.EventListener listener)
detach an EventListener
Triggered when user changes the position of a section. |
String |
getOpenedSectionsId()
Getter for property openedSectionsId
IDs of the opened sections by default and on first rendering. |
com.sap.ui.core.client.js.JsArray<AccordionSection> |
getSections()
Getter for aggregation sections Empty container used to display any library controls. |
String |
getWidth()
Getter for property width
When the width specified is smaller than a section content, a horizontal scrollbar is provided. |
int |
indexOfSection(AccordionSection section)
Checks for the provided com.sap.ui.commons.client.AccordionSection in the sections-aggregation and
returns its index if found or -1 otherwise. |
Accordion |
insertSection(AccordionSection section,
int index)
Inserts some section into the aggregation named sections. |
void |
openSection(String sectionId)
Opens a given section. |
com.sap.ui.core.client.js.JsArray<com.sap.ui.core.client.js.JsArray<AccordionSection>> |
removeAllSections()
Removes all the items in the sections-aggregation. |
com.sap.ui.core.client.js.JsArray<AccordionSection> |
removeSection(int index)
Removes a section from the aggregation named sections. |
Accordion |
setOpenedSectionsId(String value)
Setter for property openedSectionsId |
Accordion |
setWidth(String value)
Setter for property widthDefault value is: 200px |
| 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 Accordion()
AccordionJavaScriptObject restriction
| Method Detail |
|---|
public static Accordion create()
Accordion
public static Accordion create(String idOrConfig)
Accordion
id - id of the Accordion or configuration JSON string
public static Accordion create(String id,
String config)
Accordion
id - id of the Accordionconfig - configuration JSON stringpublic final String getWidth()
width
When the width specified is smaller than a section content, a horizontal scrollbar is provided.
public final Accordion setWidth(String value)
width200px
value - String
this to allow method chainingpublic final String getOpenedSectionsId()
openedSectionsId
IDs of the opened sections by default and on first rendering.
public final Accordion setOpenedSectionsId(String value)
openedSectionsId
value - String
this to allow method chainingpublic final com.sap.ui.core.client.js.JsArray<AccordionSection> getSections()
public final Accordion insertSection(AccordionSection section,
int index)
sections.
section - the section to insertindex - int the 0-based index the section should be inserted at.
this to allow method chainingpublic final Accordion addSection(AccordionSection section)
sections.
section - com.sap.ui.commons.client.AccordionSection the section to add
this to allow method chainingpublic final com.sap.ui.core.client.js.JsArray<AccordionSection> removeSection(int index)
sections.
index - int the position of the section to remove.
public final com.sap.ui.core.client.js.JsArray<com.sap.ui.core.client.js.JsArray<AccordionSection>> removeAllSections()
public final int indexOfSection(AccordionSection section)
com.sap.ui.commons.client.AccordionSection in the sections-aggregation and
returns its index if found or -1 otherwise.
section - the section whose index is looked for.
public final Accordion destroySections()
this to allow method chainingpublic final Accordion attachSectionOpenEvent(com.sap.ui.core.client.event.EventListener listener)
EventListener
Triggered when user opens a section.
listener - reference to the EventListener
this to allow method chainingpublic final Accordion detachSectionOpenEvent(com.sap.ui.core.client.event.EventListener listener)
EventListener
Triggered when user opens a section.
listener - reference to the EventListener
this to allow method chainingpublic final Accordion attachSectionCloseEvent(com.sap.ui.core.client.event.EventListener listener)
EventListener
Triggered when user closes a section.
listener - reference to the EventListener
this to allow method chainingpublic final Accordion detachSectionCloseEvent(com.sap.ui.core.client.event.EventListener listener)
EventListener
Triggered when user closes a section.
listener - reference to the EventListener
this to allow method chainingpublic final Accordion attachSectionsReorderEvent(com.sap.ui.core.client.event.EventListener listener)
EventListener
Triggered when user changes the position of a section.
listener - reference to the EventListener
this to allow method chainingpublic final Accordion detachSectionsReorderEvent(com.sap.ui.core.client.event.EventListener listener)
EventListener
Triggered when user changes the position of a section.
listener - reference to the EventListener
this to allow method chainingpublic final void openSection(String sectionId)
sectionId - Section to open.public final void closeSection(String sectionId)
sectionId - Section to close.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||