com.vaadin.client.ui
Class VAccordion

java.lang.Object
  extended by ComplexPanel
      extended by com.vaadin.client.ui.VTabsheetBase
          extended by com.vaadin.client.ui.VAccordion

public class VAccordion
extends VTabsheetBase


Nested Class Summary
 class VAccordion.StackItem
          A StackItem has always two children, Child 0 is a VCaption, Child 1 is the actual child widget.
 
Field Summary
static java.lang.String CLASSNAME
           
 int selectedItemIndex
          For internal use only.
 
Fields inherited from class com.vaadin.client.ui.VTabsheetBase
activeTabIndex, client, connector, disabled, disabledTabKeys, readonly, tabKeys
 
Constructor Summary
VAccordion()
           
 
Method Summary
protected  void clearPaintables()
          Clears current tabs and contents
 void close(VAccordion.StackItem item)
          For internal use only.
 VAccordion.StackItem getOpenStackItem()
           
 VAccordion.StackItem getStackItem(int index)
          For internal use only.
 java.lang.Iterable<VAccordion.StackItem> getStackItems()
           
 ComponentConnector getTab(int index)
          Implement in extending classes.
 int getTabCount()
          Implement in extending classes.
 java.util.Iterator<Widget> getWidgetIterator()
           
 void onSelectTab(VAccordion.StackItem item)
           
 void open(int itemIndex)
          For internal use only.
 void removeTab(int index)
          Implement in extending classes.
 void renderTab(com.vaadin.shared.ui.tabsheet.TabState tabState, int index)
          Implement in extending classes.
 void selectTab(int index)
          For internal use only.
 void setStyleName(java.lang.String style)
           
 void setStylePrimaryName(java.lang.String style)
           
protected  void updateStyleNames(java.lang.String primaryStyleName)
           
 
Methods inherited from class com.vaadin.client.ui.VTabsheetBase
addTabKey, clearTabKeys, getConnectorForWidget, isDynamicHeight, isDynamicWidth, isEnabled, setActiveTabIndex, setClient, setConnector, setEnabled, setReadonly
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CLASSNAME

public static final java.lang.String CLASSNAME
See Also:
Constant Field Values

selectedItemIndex

public int selectedItemIndex
For internal use only. May be removed or replaced in the future.

Constructor Detail

VAccordion

public VAccordion()
Method Detail

renderTab

public void renderTab(com.vaadin.shared.ui.tabsheet.TabState tabState,
                      int index)
Description copied from class: VTabsheetBase
Implement in extending classes. This method should render needed elements and set the visibility of the tab according to the 'selected' parameter.

Specified by:
renderTab in class VTabsheetBase

selectTab

public void selectTab(int index)
Description copied from class: VTabsheetBase
For internal use only. May be removed or replaced in the future.

Specified by:
selectTab in class VTabsheetBase

setStylePrimaryName

public void setStylePrimaryName(java.lang.String style)

setStyleName

public void setStyleName(java.lang.String style)

updateStyleNames

protected void updateStyleNames(java.lang.String primaryStyleName)

open

public void open(int itemIndex)
For internal use only. May be removed or replaced in the future.


close

public void close(VAccordion.StackItem item)
For internal use only. May be removed or replaced in the future.


onSelectTab

public void onSelectTab(VAccordion.StackItem item)

clearPaintables

protected void clearPaintables()
Description copied from class: VTabsheetBase
Clears current tabs and contents

Specified by:
clearPaintables in class VTabsheetBase

getWidgetIterator

public java.util.Iterator<Widget> getWidgetIterator()
Specified by:
getWidgetIterator in class VTabsheetBase
Returns:
a list of currently shown Widgets

getTabCount

public int getTabCount()
Description copied from class: VTabsheetBase
Implement in extending classes. This method should return the number of tabs currently rendered.

Specified by:
getTabCount in class VTabsheetBase

removeTab

public void removeTab(int index)
Description copied from class: VTabsheetBase
Implement in extending classes. This method should remove the rendered tab with the specified index.

Specified by:
removeTab in class VTabsheetBase

getTab

public ComponentConnector getTab(int index)
Description copied from class: VTabsheetBase
Implement in extending classes. This method should return the Paintable corresponding to the given index.

Specified by:
getTab in class VTabsheetBase

getStackItem

public VAccordion.StackItem getStackItem(int index)
For internal use only. May be removed or replaced in the future.


getStackItems

public java.lang.Iterable<VAccordion.StackItem> getStackItems()

getOpenStackItem

public VAccordion.StackItem getOpenStackItem()


Copyright © 2000-2014 Vaadin Ltd. All Rights Reserved.