com.vaadin.client.ui.

Class VAccordion

  • All Implemented Interfaces:

    com.google.gwt.event.logical.shared.HasAttachHandlers, com.google.gwt.event.shared.HasHandlers, com.google.gwt.user.client.EventListener, com.google.gwt.user.client.ui.HasEnabled, com.google.gwt.user.client.ui.HasVisibility, com.google.gwt.user.client.ui.HasWidgets, com.google.gwt.user.client.ui.HasWidgets.ForIsWidget, com.google.gwt.user.client.ui.IndexedPanel, com.google.gwt.user.client.ui.IndexedPanel.ForIsWidget, com.google.gwt.user.client.ui.IsWidget, Iterable<com.google.gwt.user.client.ui.Widget>


    public class VAccordion
    extends VTabsheetBase
    • Nested Class Summary

      Nested Classes
      Modifier and Type Class and Description
      class  VAccordion.StackItem

      A StackItem has always two children, Child 0 is a VCaption, Child 1 is the actual child widget.

      • 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
      • Nested classes/interfaces inherited from interface com.google.gwt.user.client.ui.IndexedPanel

        com.google.gwt.user.client.ui.IndexedPanel.ForIsWidget
      • Nested classes/interfaces inherited from interface com.google.gwt.user.client.ui.HasWidgets

        com.google.gwt.user.client.ui.HasWidgets.ForIsWidget
    • Constructor Summary

      Constructors
      Constructor and Description
      VAccordion() 
    • Field Detail

      • 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(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(String style)

        Overrides:

        setStylePrimaryName in class com.google.gwt.user.client.ui.UIObject

      • setStyleName

        public void setStyleName(String style)

        Overrides:

        setStyleName in class com.google.gwt.user.client.ui.UIObject

      • updateStyleNames

        protected void updateStyleNames(String primaryStyleName)
      • setTabIndex

        public void setTabIndex(int tabIndex)

        For internal use only. May be renamed or removed in a future release.

        Parameters:

        tabIndex - tabulator index for the open stack item

        Since:

        8.1.7

      • 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.

      • getWidgetIterator

        public Iterator<com.google.gwt.user.client.ui.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.