public class AccordionView extends TabViewBase
Constructor and Description |
---|
AccordionView(AccordionView accordionView)
Copy constructor
|
AccordionView(boolean dynamic,
boolean cache,
boolean multiple)
Constructor.
|
AccordionView(org.w3c.dom.Element accordionViewElem)
Constructor with XML element.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getActiveIndexes()
Get active tab indexes as string such as 1,2,3.
|
java.lang.String |
getCollapsedIcon()
Get collapsed icon
|
java.lang.String |
getContentTheme()
Get content theme for mobile
|
java.lang.String |
getExpandedIcon()
Get expanded icon
|
boolean |
isActive(int index)
Is the tab active?
|
boolean |
isDisabled(int index)
Is the tab disabled?
|
boolean |
isLoaded(int index)
Is the tab loaded?
|
boolean |
isMultiple()
Whether multiple tabs can be active in the same time?
|
protected void |
parseElement(org.w3c.dom.Element childElem)
Parse the child element.
|
void |
setActive(int index,
boolean active)
Set active tab
|
void |
setActiveIndexes(java.lang.String indexes)
Set active indexes from string
|
void |
setCollapsedIcon(java.lang.String collapsedIcon)
Set collapsed icon
|
void |
setContentTheme(java.lang.String contentTheme)
Set content theme for mobile
|
void |
setDisabled(int index,
boolean disabled)
Enable/disable the tab at the index.
|
void |
setExpandedIcon(java.lang.String expandedIcon)
Set expanded icon
|
void |
setLoaded(int index,
boolean loaded)
Set the tab to be loaded or unloaded
|
void |
setMultiple(boolean multiple)
Set whether multiple tabs can be active in the same time.
|
getOnTabChange, getOnTabShow, getTabTitleStyleClass, isCache, isDynamic, setCache, setDynamic, setOnTabChange, setOnTabShow, setTabTitleStyleClass
public AccordionView(boolean dynamic, boolean cache, boolean multiple)
dynamic
- whether to load tabs on demandcache
- whether to cache tabs on clientmultiple
- Whether multiple tabs can be active in the same timepublic AccordionView(AccordionView accordionView)
accordionView
- the AccordionView to copy frompublic AccordionView(org.w3c.dom.Element accordionViewElem) throws ParseException
<accordionView> <multiple>false</multiple> <theme>b</theme> <inset>false</inset> <contentTheme>a</contentTheme> <collapsedIcon>plus</collapsedIcon> <expandedIcon>minus</expandedIcon> </accordionView>
accordionViewElem
- accordionView root elementParseException
- throw if a parsing error occursprotected void parseElement(org.w3c.dom.Element childElem) throws ParseException
Widget
parseElement
in class TabViewBase
childElem
- a child element of widget elementParseException
- throw if a parsing error occurspublic boolean isMultiple()
public void setMultiple(boolean multiple)
multiple
- true if multiple tabs can be activepublic boolean isActive(int index)
index
- the index of the tabpublic void setActive(int index, boolean active)
index
- the index of the tabactive
- true if activepublic java.lang.String getActiveIndexes()
public void setActiveIndexes(java.lang.String indexes)
indexes
- comma or space separated indexes such as 1,2public boolean isDisabled(int index)
index
- the index of the tabpublic void setDisabled(int index, boolean disabled)
index
- the index of the tabdisabled
- true to disable, false to enablepublic boolean isLoaded(int index)
index
- the index of the tabpublic void setLoaded(int index, boolean loaded)
index
- index the index of the tabloaded
- true if loadedpublic java.lang.String getContentTheme()
public void setContentTheme(java.lang.String contentTheme)
contentTheme
- color theme swatch: a-zpublic java.lang.String getCollapsedIcon()
public void setCollapsedIcon(java.lang.String collapsedIcon)
collapsedIcon
- icon name such as plus, arrow-rpublic java.lang.String getExpandedIcon()
public void setExpandedIcon(java.lang.String expandedIcon)
expandedIcon
- icon name such as minus, arrow-d
© 2014-2019 Cmobilecom and/or its licensors. All rights reserved.
Report an issue or request a new feature