public class VTabsheetPanel
extends com.google.gwt.user.client.ui.ComplexPanel
VTabsheet.
This class has the same basic functionality as the GWT
DeckPanel, with the exception
that it doesn't manipulate the child widgets' width and height attributes.com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled| Constructor and Description |
|---|
VTabsheetPanel()
Creates an empty tabsheet panel.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(com.google.gwt.user.client.ui.Widget w)
Adds the specified widget to the deck.
|
void |
fixVisibleTabSize(int width,
int height,
int minWidth)
Updates the size of the visible widget.
|
int |
getVisibleWidget()
Gets the index of the currently-visible widget.
|
void |
insert(com.google.gwt.user.client.ui.Widget w,
int beforeIndex)
Inserts a widget before the specified index.
|
boolean |
remove(com.google.gwt.user.client.ui.Widget w) |
void |
replaceComponent(com.google.gwt.user.client.ui.Widget oldComponent,
com.google.gwt.user.client.ui.Widget newComponent)
Removes the old component and sets the new component to its place.
|
void |
showWidget(int index)
Shows the widget at the specified index.
|
add, add, adjustIndex, checkIndexBoundsForAccess, checkIndexBoundsForInsertion, getChildren, getWidget, getWidgetCount, getWidgetIndex, getWidgetIndex, insert, insert, iterator, removeadd, 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, spliteratorpublic void add(com.google.gwt.user.client.ui.Widget w)
add in interface com.google.gwt.user.client.ui.HasWidgetsadd in class com.google.gwt.user.client.ui.Panelw - the widget to be addedpublic int getVisibleWidget()
public void insert(com.google.gwt.user.client.ui.Widget w,
int beforeIndex)
w - the widget to be insertedbeforeIndex - the index before which it will be insertedIndexOutOfBoundsException - if beforeIndex is out of rangepublic boolean remove(com.google.gwt.user.client.ui.Widget w)
remove in interface com.google.gwt.user.client.ui.HasWidgetsremove in class com.google.gwt.user.client.ui.ComplexPanelpublic void showWidget(int index)
index - the index of the widget to be shownpublic void fixVisibleTabSize(int width,
int height,
int minWidth)
width - the width to set (in pixels), or negative if the width should
be dynamic (final width might get overridden by the minimum
width if that is larger)height - the height to set (in pixels), or negative if the height
should be dynamicminWidth - the minimum width (in pixels) that can be setpublic void replaceComponent(com.google.gwt.user.client.ui.Widget oldComponent,
com.google.gwt.user.client.ui.Widget newComponent)
oldComponent - the component to removenewComponent - the component to add to the old locationCopyright © 2023 Vaadin Ltd. All rights reserved.