public class VTabsheet extends VTabsheetBase implements Focusable, SubPartAware
| Modifier and Type | Class and Description |
|---|---|
class |
VTabsheet.PlaceHolder
Deprecated.
as of 7.1, VTabsheet only keeps the active tab in the DOM
without any place holders.
|
static class |
VTabsheet.Tab
Representation of a single "tab" shown in the
TabBar. |
static class |
VTabsheet.TabCaption
Caption implementation for a
VTabsheet.Tab. |
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled| Modifier and Type | Field and Description |
|---|---|
static String |
CLASSNAME
Default classname for this widget.
|
com.google.gwt.dom.client.Element |
contentNode
For internal use only.
|
static String |
SCROLLER_CLASSNAME
Default classname for the scroller element.
|
protected VTabsheetPanel |
tabPanel
For internal use only.
|
com.google.gwt.dom.client.Element |
tabs
For internal use only.
|
static String |
TABS_CLASSNAME
Default classname for the element that contains tab bar and scroller.
|
boolean |
waitingForResponse
For internal use only.
|
activeTabIndex, client, connector, disabled, disabledTabKeys, readonly, tabKeys| Constructor and Description |
|---|
VTabsheet()
Constructs a widget for a TabSheet component.
|
| Modifier and Type | Method and Description |
|---|---|
void |
blur()
Deprecated.
This method is not called by the framework code anymore.
|
protected void |
clearPaintables()
Deprecated.
This method is not called by the framework code anymore.
|
void |
focus()
Sets focus to this widget.
|
ApplicationConnection |
getApplicationConnection()
Deprecated.
since 7.2 - use more specific methods instead (getRpcProxy(),
getConnectorForWidget(Widget) etc.)
|
protected int |
getCloseTabKey()
Returns the key code of the keyboard shortcut that closes the currently
focused tab (if closable) in a focused tabsheet.
|
int |
getContentAreaBorderWidth()
For internal use only.
|
com.google.gwt.user.client.ui.Widget |
getCurrentlyDisplayedWidget()
Returns the currently displayed widget in the tab panel.
|
protected int |
getNextTabKey()
Returns the key code of the keyboard shortcut that focuses the next tab
in a focused tabsheet.
|
protected int |
getPreviousTabKey()
Returns the key code of the keyboard shortcut that focuses the previous
tab in a focused tabsheet.
|
protected TabsheetServerRpc |
getRpcProxy()
Returns the client to server RPC proxy for the tabsheet.
|
protected int |
getSelectTabKey()
Gets the key to select the focused tab when navigating using
previous/next (left/right) keys.
|
com.google.gwt.user.client.Element |
getSubPartElement(String subPart)
Locates an element inside a component using the identifier provided in
subPart. |
String |
getSubPartName(com.google.gwt.user.client.Element subElement)
Provides an identifier that identifies the element within the component.
|
ComponentConnector |
getTab(int index)
Implement in extending classes.
|
int |
getTabCount()
Implement in extending classes.
|
Iterator<com.google.gwt.user.client.ui.Widget> |
getWidgetIterator() |
void |
handleStyleNames(AbstractComponentState state)
For internal use only.
|
void |
hideTabs()
Makes tab bar invisible.
|
void |
iLayout()
Run internal layouting.
|
boolean |
loadTabSheet(int tabIndex)
Begin loading of the content of a tab of the provided index.
|
void |
onBrowserEvent(com.google.gwt.user.client.Event event) |
void |
removeTab(int index)
Implement in extending classes.
|
void |
renderContent(com.google.gwt.user.client.ui.Widget newWidget)
Renders the widget content for a tab sheet.
|
void |
renderTab(TabState tabState,
int index)
Implement in extending classes.
|
void |
selectTab(int index)
For internal use only.
|
void |
setConnector(AbstractComponentConnector connector)
Sets the connector that should be notified of events etc.
|
void |
setTabIndex(int tabIndex)
For internal use only.
|
void |
showAllTabs()
For internal use only.
|
void |
showTabs()
Makes tab bar visible.
|
void |
tabSizeMightHaveChanged(VTabsheet.Tab tab)
This should be triggered from an onload event within the given tab's
caption to signal that icon contents have finished loading.
|
void |
updateContentNodeHeight()
For internal use only.
|
void |
updateDynamicWidth()
For internal use only.
|
void |
updateOpenTabSize()
Sets the size of the visible tab content (component).
|
addTabKey, clearTabKeys, getConnectorForWidget, isDynamicHeight, isDynamicWidth, isEnabled, isTabCaptionsAsHtml, setActiveTabIndex, setClient, setEnabled, setReadonly, setTabCaptionsAsHtmladd, add, adjustIndex, checkIndexBoundsForAccess, checkIndexBoundsForInsertion, getChildren, getWidget, getWidgetCount, getWidgetIndex, getWidgetIndex, insert, insert, iterator, remove, removeadd, add, adopt, clear, doAttachChildren, doDetachChildren, orphan, removeaddAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onDetach, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEventsaddStyleDependentName, 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, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic static final String CLASSNAME
public static final String TABS_CLASSNAME
public static final String SCROLLER_CLASSNAME
public final com.google.gwt.dom.client.Element tabs
Container element for tab bar and 'scroller'.
protected final VTabsheetPanel tabPanel
The content panel that contains the widget of the content component that has been assigned to the selected tab. There should be at most one tab's content widget added to the panel at the same time.
public final com.google.gwt.dom.client.Element contentNode
The content wrapper element around the content panel.
public boolean waitingForResponse
true if waiting for a server roundtrip to return after requesting
selection change, false otherwise
public void setTabIndex(int tabIndex)
Sets the tabulator index for the active tab of the tab sheet. The active tab represents the entire tab sheet in the browser's focus cycle (excluding any focusable elements within the content panel).
This value is delegated from the TabsheetState.
tabIndex - tabulator index for the active tab of the tab sheetpublic boolean loadTabSheet(int tabIndex)
tabIndex - The index of the tab to loadtrue if loading of the specified sheet gets successfully
initialized, false otherwise.public com.google.gwt.user.client.ui.Widget getCurrentlyDisplayedWidget()
protected TabsheetServerRpc getRpcProxy()
@Deprecated public ApplicationConnection getApplicationConnection()
public void tabSizeMightHaveChanged(VTabsheet.Tab tab)
tab - the tab whose size may have changedpublic void onBrowserEvent(com.google.gwt.user.client.Event event)
onBrowserEvent in interface com.google.gwt.user.client.EventListeneronBrowserEvent in class com.google.gwt.user.client.ui.Widgetpublic void handleStyleNames(AbstractComponentState state)
state - the state object for this componentpublic void updateDynamicWidth()
VTabsheetBase.isDynamicWidth()public void renderTab(TabState tabState, int index)
VTabsheetBaserenderTab in class VTabsheetBasetabState - shared state of a single tabindex - the index of that tabpublic void renderContent(com.google.gwt.user.client.ui.Widget newWidget)
newWidget - the content widget or null if there is nonepublic void updateContentNodeHeight()
public void iLayout()
public void updateOpenTabSize()
For internal use only. May be removed or replaced in the future.
public void showAllTabs()
@Deprecated protected void clearPaintables()
clearPaintables in class VTabsheetBasepublic Iterator<com.google.gwt.user.client.ui.Widget> getWidgetIterator()
getWidgetIterator in class VTabsheetBasepublic int getContentAreaBorderWidth()
public int getTabCount()
VTabsheetBasegetTabCount in class VTabsheetBasepublic ComponentConnector getTab(int index)
VTabsheetBasegetTab in class VTabsheetBaseindex - the index of the tab whose connector to findnull if not foundpublic void removeTab(int index)
VTabsheetBaseremoveTab in class VTabsheetBaseindex - the index of the tab to removepublic void selectTab(int index)
VTabsheetBaseselectTab in class VTabsheetBaseindex - the index of the tab to selectpublic void focus()
Focusable@Deprecated public void blur()
public void setConnector(AbstractComponentConnector connector)
VTabsheetBasesetConnector in class VTabsheetBaseconnector - the connector of this widgetprotected int getPreviousTabKey()
protected int getSelectTabKey()
getNextTabKey(),
getPreviousTabKey()protected int getNextTabKey()
protected int getCloseTabKey()
public void showTabs()
public void hideTabs()
public com.google.gwt.user.client.Element getSubPartElement(String subPart)
SubPartAwaresubPart. The subPart identifier is component specific and
may be any string of characters, numbers, space characters and brackets.getSubPartElement in interface SubPartAwaresubPart - The identifier for the element inside the componentpublic String getSubPartName(com.google.gwt.user.client.Element subElement)
SubPartAwaresubElement is a part of the component and must never be null.
Note!
getSubPartElement(getSubPartName(element)) == element is not
always true. A component can choose to provide a more generic
identifier for any given element if the results of all interactions with
subElement are the same as interactions with the element
identified by the return value. For example a button can return an
identifier for the root element even though a DIV inside the button was
passed as subElement because interactions with the DIV and the
root button element produce the same result.
getSubPartName in interface SubPartAwaresubElement - The element the identifier string should uniquely identifysubElement or null
if no identifier could be provided.Copyright © 2021 Vaadin Ltd. All rights reserved.