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

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
                      extended by com.vaadin.terminal.gwt.client.ui.tabsheet.VTabsheet
All Implemented Interfaces:
com.google.gwt.event.dom.client.BlurHandler, com.google.gwt.event.dom.client.FocusHandler, com.google.gwt.event.dom.client.KeyDownHandler, com.google.gwt.event.logical.shared.HasAttachHandlers, com.google.gwt.event.shared.EventHandler, 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, Focusable, Iterable<com.google.gwt.user.client.ui.Widget>

public class VTabsheet
extends VTabsheetBase
implements Focusable, com.google.gwt.event.dom.client.FocusHandler, com.google.gwt.event.dom.client.BlurHandler, com.google.gwt.event.dom.client.KeyDownHandler


Nested Class Summary
 class VTabsheet.PlaceHolder
           
static class VTabsheet.TabCaption
           
 
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
static String CLASSNAME
           
static String SCROLLER_CLASSNAME
           
static String TAB_STYLE_NAME
           
static String TABS_CLASSNAME
           
 
Fields inherited from class com.vaadin.terminal.gwt.client.ui.tabsheet.VTabsheetBase
activeTabIndex, client, disabled, disabledTabKeys, id, readonly, tabKeys
 
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
 
Constructor Summary
VTabsheet()
           
 
Method Summary
 void blur()
           
protected  void clearPaintables()
          Clears current tabs and contents
 void focus()
          Sets focus to this widget.
 ApplicationConnection getApplicationConnection()
           
protected  int getCloseTabKey()
           
protected  int getNextTabKey()
           
protected  int getPreviousTabKey()
           
protected  ComponentConnector getTab(int index)
          Implement in extending classes.
protected  int getTabCount()
          Implement in extending classes.
protected  Iterator<com.google.gwt.user.client.ui.Widget> getWidgetIterator()
           
 void iLayout()
           
 void onBlur(com.google.gwt.event.dom.client.BlurEvent event)
           
 void onBrowserEvent(com.google.gwt.user.client.Event event)
           
 void onFocus(com.google.gwt.event.dom.client.FocusEvent event)
           
 void onKeyDown(com.google.gwt.event.dom.client.KeyDownEvent event)
           
protected  void removeTab(int index)
          Implement in extending classes.
protected  void renderTab(UIDL tabUidl, int index, boolean selected, boolean hidden)
          Implement in extending classes.
protected  void selectTab(int index, UIDL contentUidl)
          Implement in extending classes.
 void tabSizeMightHaveChanged(com.vaadin.terminal.gwt.client.ui.tabsheet.VTabsheet.Tab tab)
           
 
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, 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

CLASSNAME

public static final String CLASSNAME
See Also:
Constant Field Values

TABS_CLASSNAME

public static final String TABS_CLASSNAME
See Also:
Constant Field Values

SCROLLER_CLASSNAME

public static final String SCROLLER_CLASSNAME
See Also:
Constant Field Values

TAB_STYLE_NAME

public static final String TAB_STYLE_NAME
See Also:
Constant Field Values
Constructor Detail

VTabsheet

public VTabsheet()
Method Detail

getApplicationConnection

public ApplicationConnection getApplicationConnection()

tabSizeMightHaveChanged

public void tabSizeMightHaveChanged(com.vaadin.terminal.gwt.client.ui.tabsheet.VTabsheet.Tab tab)

onBrowserEvent

public void onBrowserEvent(com.google.gwt.user.client.Event event)
Specified by:
onBrowserEvent in interface com.google.gwt.user.client.EventListener
Overrides:
onBrowserEvent in class com.google.gwt.user.client.ui.Widget

renderTab

protected void renderTab(UIDL tabUidl,
                         int index,
                         boolean selected,
                         boolean hidden)
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

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

Specified by:
selectTab in class VTabsheetBase

iLayout

public void iLayout()

clearPaintables

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

Specified by:
clearPaintables in class VTabsheetBase

getWidgetIterator

protected Iterator<com.google.gwt.user.client.ui.Widget> getWidgetIterator()
Specified by:
getWidgetIterator in class VTabsheetBase
Returns:
a list of currently shown Widgets

getTabCount

protected 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

getTab

protected 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

removeTab

protected 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

onBlur

public void onBlur(com.google.gwt.event.dom.client.BlurEvent event)
Specified by:
onBlur in interface com.google.gwt.event.dom.client.BlurHandler

onFocus

public void onFocus(com.google.gwt.event.dom.client.FocusEvent event)
Specified by:
onFocus in interface com.google.gwt.event.dom.client.FocusHandler

focus

public void focus()
Description copied from interface: Focusable
Sets focus to this widget.

Specified by:
focus in interface Focusable

blur

public void blur()

onKeyDown

public void onKeyDown(com.google.gwt.event.dom.client.KeyDownEvent event)
Specified by:
onKeyDown in interface com.google.gwt.event.dom.client.KeyDownHandler

getPreviousTabKey

protected int getPreviousTabKey()
Returns:
The key code of the keyboard shortcut that selects the previous tab in a focused tabsheet.

getNextTabKey

protected int getNextTabKey()
Returns:
The key code of the keyboard shortcut that selects the next tab in a focused tabsheet.

getCloseTabKey

protected int getCloseTabKey()
Returns:
The key code of the keyboard shortcut that closes the currently selected tab in a focused tabsheet.


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