public abstract class VTabsheetBase
extends com.google.gwt.user.client.ui.ComplexPanel
implements com.google.gwt.user.client.ui.HasEnabled
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled| Modifier and Type | Field and Description |
|---|---|
protected int |
activeTabIndex
For internal use only.
|
protected ApplicationConnection |
client
For internal use only.
|
protected AbstractComponentConnector |
connector
For internal use only.
|
protected boolean |
disabled
For internal use only.
|
protected Set<String> |
disabledTabKeys
For internal use only.
|
protected boolean |
readonly
For internal use only.
|
protected List<String> |
tabKeys
For internal use only.
|
| Constructor and Description |
|---|
VTabsheetBase(String classname)
Constructs a multi-view widget with the given classname.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addTabKey(String key,
boolean disabled)
For internal use only.
|
protected abstract void |
clearPaintables()
Deprecated.
This method is not called by the framework code anymore.
|
void |
clearTabKeys()
For internal use only.
|
protected ComponentConnector |
getConnectorForWidget(com.google.gwt.user.client.ui.Widget widget)
For internal use only.
|
abstract ComponentConnector |
getTab(int index)
Implement in extending classes.
|
abstract int |
getTabCount()
Implement in extending classes.
|
abstract Iterator<com.google.gwt.user.client.ui.Widget> |
getWidgetIterator() |
protected boolean |
isDynamicHeight()
Returns whether the height of the widget is undefined.
|
protected boolean |
isDynamicWidth()
Returns whether the width of the widget is undefined.
|
boolean |
isEnabled() |
boolean |
isTabCaptionsAsHtml()
Checks whether captions are rendered as HTML
The default is false, i.e.
|
abstract void |
removeTab(int index)
Implement in extending classes.
|
abstract void |
renderTab(TabState tabState,
int index)
Implement in extending classes.
|
abstract void |
selectTab(int index)
For internal use only.
|
void |
setActiveTabIndex(int activeTabIndex)
For internal use only.
|
void |
setClient(ApplicationConnection client)
For internal use only.
|
void |
setConnector(AbstractComponentConnector connector)
Sets the connector that should be notified of events etc.
|
void |
setEnabled(boolean enabled)
For internal use only.
|
void |
setReadonly(boolean readonly)
For internal use only.
|
void |
setTabCaptionsAsHtml(boolean tabCaptionsAsHtml)
Sets whether the caption is rendered as HTML.
|
add, 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, onBrowserEvent, 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, spliteratorprotected ApplicationConnection client
protected final List<String> tabKeys
protected Set<String> disabledTabKeys
protected int activeTabIndex
protected boolean disabled
protected boolean readonly
protected AbstractComponentConnector connector
public VTabsheetBase(String classname)
classname - the style name to setpublic abstract Iterator<com.google.gwt.user.client.ui.Widget> getWidgetIterator()
@Deprecated protected abstract void clearPaintables()
public abstract void renderTab(TabState tabState, int index)
tabState - shared state of a single tabindex - the index of that tabpublic abstract int getTabCount()
public abstract ComponentConnector getTab(int index)
index - the index of the tab whose connector to findnull if not foundpublic abstract void removeTab(int index)
index - the index of the tab to removeprotected boolean isDynamicWidth()
true if width of the widget is determined by its content,
false otherwiseprotected boolean isDynamicHeight()
true if height of the widget is determined by its
content, false otherwisepublic void setConnector(AbstractComponentConnector connector)
connector - the connector of this widgetpublic void clearTabKeys()
public void addTabKey(String key, boolean disabled)
key - an internal key that corresponds with a tabdisabled - true if the tab should be disabled, false
otherwisepublic void setClient(ApplicationConnection client)
client - the current application connection instancepublic void setActiveTabIndex(int activeTabIndex)
activeTabIndex - the index of the currently active tabpublic void setEnabled(boolean enabled)
setEnabled in interface com.google.gwt.user.client.ui.HasEnabledpublic void setReadonly(boolean readonly)
readonly - true if this widget should be read-only, false
otherwiseprotected ComponentConnector getConnectorForWidget(com.google.gwt.user.client.ui.Widget widget)
widget - the widget whose connector to findpublic abstract void selectTab(int index)
index - the index of the tab to selectpublic boolean isEnabled()
isEnabled in interface com.google.gwt.user.client.ui.HasEnabledpublic void setTabCaptionsAsHtml(boolean tabCaptionsAsHtml)
The default is false, i.e. render tab captions as plain text
This value is delegated from the TabsheetState.
tabCaptionsAsHtml - true if the captions are rendered as HTML,
false if rendered as plain textpublic boolean isTabCaptionsAsHtml()
Copyright © 2021 Vaadin Ltd. All rights reserved.