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 |
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, setTabCaptionsAsHtml
add, add, adjustIndex, checkIndexBoundsForAccess, checkIndexBoundsForInsertion, getChildren, getWidget, getWidgetCount, getWidgetIndex, getWidgetIndex, insert, insert, iterator, remove, remove
add, add, adopt, clear, doAttachChildren, doDetachChildren, orphan, remove
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onDetach, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEvents
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
forEach, spliterator
public 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 boolean loadTabSheet(int tabIndex)
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.EventListener
onBrowserEvent
in class com.google.gwt.user.client.ui.Widget
public void handleStyleNames(AbstractComponentState state)
public void updateDynamicWidth()
public void renderTab(TabState tabState, int index)
VTabsheetBase
renderTab
in class VTabsheetBase
public 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()
VTabsheetBase
clearPaintables
in class VTabsheetBase
public Iterator<com.google.gwt.user.client.ui.Widget> getWidgetIterator()
getWidgetIterator
in class VTabsheetBase
public int getContentAreaBorderWidth()
public int getTabCount()
VTabsheetBase
getTabCount
in class VTabsheetBase
public ComponentConnector getTab(int index)
VTabsheetBase
getTab
in class VTabsheetBase
public void removeTab(int index)
VTabsheetBase
removeTab
in class VTabsheetBase
public void selectTab(int index)
VTabsheetBase
selectTab
in class VTabsheetBase
public void focus()
Focusable
public void blur()
public void setConnector(AbstractComponentConnector connector)
VTabsheetBase
setConnector
in class VTabsheetBase
protected 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)
SubPartAware
subPart
. The subPart
identifier is component specific and
may be any string of characters, numbers, space characters and brackets.getSubPartElement
in interface SubPartAware
subPart
- The identifier for the element inside the componentpublic String getSubPartName(com.google.gwt.user.client.Element subElement)
SubPartAware
subElement
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 SubPartAware
subElement
- The element the identifier string should uniquely identifysubElement
or null
if no identifier could be provided.Copyright © 2019 Vaadin Ltd. All rights reserved.