com.vaadin.terminal.gwt.client.ui.tabsheet
Class VTabsheetBase

java.lang.Object
  extended by com.google.gwt.user.client.ui.UIObject
      extended by com.google.gwt.user.client.ui.Widget
          extended by com.google.gwt.user.client.ui.Panel
              extended by com.google.gwt.user.client.ui.ComplexPanel
                  extended by com.vaadin.terminal.gwt.client.ui.tabsheet.VTabsheetBase
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.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>
Direct Known Subclasses:
VAccordion, VTabsheet

public abstract class VTabsheetBase
extends com.google.gwt.user.client.ui.ComplexPanel


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
 
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
 
Field Summary
protected  int activeTabIndex
           
protected  ApplicationConnection client
           
protected  boolean disabled
           
protected  Set<String> disabledTabKeys
           
protected  String id
           
protected  boolean readonly
           
protected  ArrayList<String> tabKeys
           
 
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
 
Constructor Summary
VTabsheetBase(String classname)
           
 
Method Summary
protected abstract  void clearPaintables()
          Clears current tabs and contents
protected abstract  ComponentConnector getTab(int index)
          Implement in extending classes.
protected abstract  int getTabCount()
          Implement in extending classes.
protected abstract  Iterator<com.google.gwt.user.client.ui.Widget> getWidgetIterator()
           
protected abstract  void removeTab(int index)
          Implement in extending classes.
protected abstract  void renderTab(UIDL tabUidl, int index, boolean selected, boolean hidden)
          Implement in extending classes.
protected abstract  void selectTab(int index, UIDL contentUidl)
          Implement in extending classes.
 
Methods inherited from class com.google.gwt.user.client.ui.ComplexPanel
add, adjustIndex, checkIndexBoundsForAccess, checkIndexBoundsForInsertion, getChildren, getWidget, getWidgetCount, getWidgetIndex, getWidgetIndex, insert, insert, iterator, remove, remove
 
Methods inherited from class com.google.gwt.user.client.ui.Panel
add, add, adopt, adopt, clear, disown, doAttachChildren, doDetachChildren, orphan, remove
 
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, resolvePotentialElement, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString, unsinkEvents
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

id

protected String id

client

protected ApplicationConnection client

tabKeys

protected final ArrayList<String> tabKeys

activeTabIndex

protected int activeTabIndex

disabled

protected boolean disabled

readonly

protected boolean readonly

disabledTabKeys

protected Set<String> disabledTabKeys
Constructor Detail

VTabsheetBase

public VTabsheetBase(String classname)
Method Detail

getWidgetIterator

protected abstract Iterator<com.google.gwt.user.client.ui.Widget> getWidgetIterator()
Returns:
a list of currently shown Widgets

clearPaintables

protected abstract void clearPaintables()
Clears current tabs and contents


renderTab

protected abstract void renderTab(UIDL tabUidl,
                                  int index,
                                  boolean selected,
                                  boolean hidden)
Implement in extending classes. This method should render needed elements and set the visibility of the tab according to the 'selected' parameter.


selectTab

protected abstract void selectTab(int index,
                                  UIDL contentUidl)
Implement in extending classes. This method should render any previously non-cached content and set the activeTabIndex property to the specified index.


getTabCount

protected abstract int getTabCount()
Implement in extending classes. This method should return the number of tabs currently rendered.


getTab

protected abstract ComponentConnector getTab(int index)
Implement in extending classes. This method should return the Paintable corresponding to the given index.


removeTab

protected abstract void removeTab(int index)
Implement in extending classes. This method should remove the rendered tab with the specified index.



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