|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.sap.ui.core.client.ControlWidget
com.sap.ui.commons.client.AccordionWidget
public class AccordionWidget
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.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled |
| Field Summary |
|---|
| Fields inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
DEBUG_ID_PREFIX |
| Constructor Summary | |
|---|---|
|
AccordionWidget()
constructs the class AccordionWidget |
protected |
AccordionWidget(Accordion control)
constructs the class AccordionWidget |
|
AccordionWidget(String id)
constructs the class AccordionWidget |
| Method Summary | |
|---|---|
void |
addSection(AccordionSection section)
Appends some section to the sections-aggregation. |
void |
attachSectionCloseEvent(com.sap.ui.core.client.event.EventListener listener)
attach an EventListener
Triggered when user closes a section. |
void |
attachSectionOpenEvent(com.sap.ui.core.client.event.EventListener listener)
attach an EventListener
Triggered when user opens a section. |
void |
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. |
void |
destroySections()
Destroys all the sections in the Sections-aggregation. |
void |
detachSectionCloseEvent(com.sap.ui.core.client.event.EventListener listener)
detach an EventListener
Triggered when user closes a section. |
void |
detachSectionOpenEvent(com.sap.ui.core.client.event.EventListener listener)
detach an EventListener
Triggered when user opens a section. |
void |
detachSectionsReorderEvent(com.sap.ui.core.client.event.EventListener listener)
detach an EventListener
Triggered when user changes the position of a section. |
Accordion |
getControl()
returns the reference to the Phoenix Control |
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. |
void |
insertSection(AccordionSection section,
int index)
Inserts some section into the aggregation named sections. |
void |
openSection(String sectionId)
Opens a given section. |
void |
removeAllSections()
Removes all the items in the sections-aggregation. |
void |
removeSection(int index)
Removes the section at position index in the sections-aggregation named. |
void |
setOpenedSectionsId(String value)
Setter for property openedSectionsId |
void |
setWidth(String value)
Setter for property widthDefault value is: 200px |
| Methods inherited from class com.sap.ui.core.client.ControlWidget |
|---|
destroy, doAttachChildren, doDetachChildren, isDesignTime, wrap |
| Methods inherited from class com.google.gwt.user.client.ui.Widget |
|---|
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onBrowserEvent, onDetach, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents |
| Methods inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, sinkBitlessEvent, toString, unsinkEvents |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AccordionWidget()
AccordionWidget
public AccordionWidget(String id)
AccordionWidget
id - id of the AccordionWidgetprotected AccordionWidget(Accordion control)
AccordionWidget
control - reference to an existing Accordion| Method Detail |
|---|
public Accordion getControl()
Control
getControl in class com.sap.ui.core.client.ControlWidgetControlpublic String getWidth()
width
When the width specified is smaller than a section content, a horizontal scrollbar is provided.
public void setWidth(String value)
width200px
setWidth in class com.google.gwt.user.client.ui.UIObjectvalue - Stringpublic String getOpenedSectionsId()
openedSectionsId
IDs of the opened sections by default and on first rendering.
public void setOpenedSectionsId(String value)
openedSectionsId
value - Stringpublic com.sap.ui.core.client.js.JsArray<AccordionSection> getSections()
public void insertSection(AccordionSection section,
int index)
section - the section to insertindex - int the 0-based index the section should be inserted at.public void addSection(AccordionSection section)
section - com.sap.ui.commons.client.AccordionSection the section to addpublic void removeSection(int index)
index in the sections-aggregation named.
index - int the position of the section to remove.public void removeAllSections()
public 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 void destroySections()
public void attachSectionOpenEvent(com.sap.ui.core.client.event.EventListener listener)
EventListener
Triggered when user opens a section.
listener - reference to the EventListenerpublic void detachSectionOpenEvent(com.sap.ui.core.client.event.EventListener listener)
EventListener
Triggered when user opens a section.
listener - reference to the EventListenerpublic void attachSectionCloseEvent(com.sap.ui.core.client.event.EventListener listener)
EventListener
Triggered when user closes a section.
listener - reference to the EventListenerpublic void detachSectionCloseEvent(com.sap.ui.core.client.event.EventListener listener)
EventListener
Triggered when user closes a section.
listener - reference to the EventListenerpublic void attachSectionsReorderEvent(com.sap.ui.core.client.event.EventListener listener)
EventListener
Triggered when user changes the position of a section.
listener - reference to the EventListenerpublic void detachSectionsReorderEvent(com.sap.ui.core.client.event.EventListener listener)
EventListener
Triggered when user changes the position of a section.
listener - reference to the EventListenerpublic void openSection(String sectionId)
sectionId - Section to open.public void closeSection(String sectionId)
sectionId - Section to close.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||