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 ArrayList<String> |
tabKeys
For internal use only.
|
Constructor and Description |
---|
VTabsheetBase(String classname) |
Modifier and Type | Method and Description |
---|---|
void |
addTabKey(String key,
boolean disabled)
For internal use only.
|
protected abstract void |
clearPaintables()
Clears current tabs and contents
|
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 true if the height of the widget is undefined, false otherwise.
|
protected boolean |
isDynamicWidth()
Returns true if the width of the widget is undefined, false otherwise.
|
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, remove
add, add, adopt, clear, doAttachChildren, doDetachChildren, orphan, remove
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onBrowserEvent, 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
protected ApplicationConnection client
protected final ArrayList<String> tabKeys
protected Set<String> disabledTabKeys
protected int activeTabIndex
protected boolean disabled
protected boolean readonly
protected AbstractComponentConnector connector
public VTabsheetBase(String classname)
public abstract Iterator<com.google.gwt.user.client.ui.Widget> getWidgetIterator()
protected abstract void clearPaintables()
public abstract void renderTab(TabState tabState, int index)
public abstract int getTabCount()
public abstract ComponentConnector getTab(int index)
public abstract void removeTab(int index)
protected boolean isDynamicWidth()
protected boolean isDynamicHeight()
public void setConnector(AbstractComponentConnector connector)
connector
- public void clearTabKeys()
public void addTabKey(String key, boolean disabled)
public void setClient(ApplicationConnection client)
public void setActiveTabIndex(int activeTabIndex)
public void setEnabled(boolean enabled)
setEnabled
in interface com.google.gwt.user.client.ui.HasEnabled
public void setReadonly(boolean readonly)
protected ComponentConnector getConnectorForWidget(com.google.gwt.user.client.ui.Widget widget)
public abstract void selectTab(int index)
public boolean isEnabled()
isEnabled
in interface com.google.gwt.user.client.ui.HasEnabled
public void setTabCaptionsAsHtml(boolean tabCaptionsAsHtml)
The default is false, i.e. render tab captions as plain text
captionAsHtml
- true if the captions are rendered as HTML, false if rendered
as plain textpublic boolean isTabCaptionsAsHtml()
Copyright © 2019 Vaadin Ltd. All rights reserved.