public class VAccordion.StackItem
extends com.google.gwt.user.client.ui.ComplexPanel
implements com.google.gwt.event.dom.client.ClickHandler
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled| Constructor and Description |
|---|
StackItem()
Constructs a stack item.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes this stack item and removes the wrapped widget from the DOM
tree and this stack item.
|
boolean |
contains(ComponentConnector p)
Deprecated.
This method is not called by the framework code anymore.
|
int |
getCaptionHeight()
Returns the offset height of the caption node.
|
int |
getCaptionWidth()
Returns caption width including padding.
|
com.google.gwt.user.client.ui.Widget |
getChildWidget()
Returns the wrapped widget of this stack item.
|
com.google.gwt.user.client.ui.Widget |
getComponent()
Deprecated.
This method is not called by the framework code anymore.
Use
getChildWidget() instead. |
com.google.gwt.user.client.Element |
getContainerElement()
Returns the container element for the content widget.
|
int |
getHeight()
Deprecated.
This method is not called by the framework code anymore.
Use
UIObject.getOffsetHeight() instead. |
int |
getWidgetWidth()
Returns the offset width of the wrapped widget.
|
void |
hide()
Deprecated.
This method is not called by the framework code anymore.
|
boolean |
isCaptionVisible()
Deprecated.
This method is not called by the framework code anymore.
|
boolean |
isOpen()
Returns whether this stack item is open or not.
|
void |
onBrowserEvent(com.google.gwt.user.client.Event event) |
void |
onClick(com.google.gwt.event.dom.client.ClickEvent event) |
void |
open()
Opens the stack item and clears any previous visibility settings.
|
void |
replaceWidget(com.google.gwt.user.client.ui.Widget newWidget)
Replaces the existing wrapped widget (if any) with a new widget.
|
void |
setContent(com.google.gwt.user.client.ui.Widget newWidget)
Updates the content of the open tab of the accordion.
|
void |
setHeight(int height)
Sets the height for this stack item's contents.
|
void |
setHeightFromWidget()
Queries the height from the wrapped widget and uses it to set this
stack item's height.
|
void |
setId(String newId)
Sets the identifier for this stack item.
|
void |
setWidth(int width)
Sets the width of the stack item, or removes it if given value is
-1. |
void |
updateCaption(TabState tabState)
Updates the caption to match the current tab state.
|
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, 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 StackItem()
public void setHeight(int height)
height - the height to set (in pixels), or -1 to remove
heightpublic void setId(String newId)
newId - the identifier to set@Deprecated public com.google.gwt.user.client.ui.Widget getComponent()
getChildWidget() instead.public void setHeightFromWidget()
public int getCaptionWidth()
public void setWidth(int width)
-1.width - the width to set (in pixels), or -1 to remove
width@Deprecated public int getHeight()
UIObject.getOffsetHeight() instead.public int getCaptionHeight()
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 com.google.gwt.user.client.Element getContainerElement()
public com.google.gwt.user.client.ui.Widget getChildWidget()
public void replaceWidget(com.google.gwt.user.client.ui.Widget newWidget)
newWidget - the new widget to wrappublic void open()
@Deprecated public void hide()
public void close()
public boolean isOpen()
true if open, false otherwisepublic void setContent(com.google.gwt.user.client.ui.Widget newWidget)
newWidget - new contentpublic void onClick(com.google.gwt.event.dom.client.ClickEvent event)
onClick in interface com.google.gwt.event.dom.client.ClickHandlerpublic void updateCaption(TabState tabState)
tabState - the state for this stack itempublic int getWidgetWidth()
@Deprecated public boolean contains(ComponentConnector p)
p - the container whose widget to settrue if the container's widget matches wrapped
widget, false otherwise@Deprecated public boolean isCaptionVisible()
true if visible, false otherwiseCopyright © 2021 Vaadin Ltd. All rights reserved.