com.vaadin.terminal.gwt.client.ui.tabsheet
Class VTabsheet
java.lang.Object
com.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.google.gwt.user.client.ui.Panel
com.google.gwt.user.client.ui.ComplexPanel
com.vaadin.terminal.gwt.client.ui.tabsheet.VTabsheetBase
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 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 |
Fields inherited from class com.google.gwt.user.client.ui.UIObject |
DEBUG_ID_PREFIX |
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 |
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
VTabsheet
public VTabsheet()
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.