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 |
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 |
com.google.gwt.dom.client.Element |
contentNode
For internal use only.
|
static String |
SCROLLER_CLASSNAME |
protected VTabsheetPanel |
tabPanel
For internal use only.
|
com.google.gwt.dom.client.Element |
tabs
For internal use only.
|
static String |
TABS_CLASSNAME |
boolean |
waitingForResponse
For internal use only.
|
activeTabIndex, client, connector, disabled, disabledTabKeys, readonly, tabKeys| Constructor and Description |
|---|
VTabsheet() |
| Modifier and Type | Method and Description |
|---|---|
void |
blur() |
protected void |
clearPaintables()
Clears current tabs and contents.
|
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() |
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() |
protected int |
getPreviousTabKey() |
protected TabsheetServerRpc |
getRpcProxy()
Returns the client to server RPC proxy for the tabsheet.
|
protected int |
getSelectTabKey()
Gets the key to activate the selected 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)
Load 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) |
void |
updateContentNodeHeight()
For internal use only.
|
void |
updateDynamicWidth()
For internal use only.
|
void |
updateOpenTabSize()
Sets the size of the visible tab (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
protected final VTabsheetPanel tabPanel
public final com.google.gwt.dom.client.Element contentNode
public boolean waitingForResponse
public void setTabIndex(int tabIndex)
tabIndex - tabulator index for the active tab of the tab sheetpublic boolean loadTabSheet(int tabIndex)
tabIndex - The index of the tab to loadpublic com.google.gwt.user.client.ui.Widget getCurrentlyDisplayedWidget()
protected TabsheetServerRpc getRpcProxy()
@Deprecated public ApplicationConnection getApplicationConnection()
public void tabSizeMightHaveChanged(VTabsheet.Tab tab)
public 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)
public void updateDynamicWidth()
public void renderTab(TabState tabState, int index)
VTabsheetBaserenderTab in class VTabsheetBasepublic void renderContent(com.google.gwt.user.client.ui.Widget newWidget)
newWidget - public void updateContentNodeHeight()
public void iLayout()
public void updateOpenTabSize()
For internal use only. May be removed or replaced in the future.
public void showAllTabs()
protected void clearPaintables()
VTabsheetBaseclearPaintables 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 VTabsheetBasepublic void removeTab(int index)
VTabsheetBaseremoveTab in class VTabsheetBasepublic void selectTab(int index)
VTabsheetBaseselectTab in class VTabsheetBasepublic void focus()
Focusablepublic void blur()
public void setConnector(AbstractComponentConnector connector)
VTabsheetBasesetConnector in class VTabsheetBaseprotected 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 © 2018 Vaadin Ltd. All rights reserved.