public class TabButton extends Button
Tab
Modifier and Type | Field and Description |
---|---|
protected Image |
icon |
protected Label |
label |
asyncAddQueue, asyncRemoveAll, asyncRemoveQueue, children, renderNode
Constructor and Description |
---|
TabButton() |
TabButton(java.lang.String id) |
TabButton(java.lang.String id,
HorizontalAlignment iconAlignment) |
Modifier and Type | Method and Description |
---|---|
void |
attach(ParentRenderNode<?,?> parentRenderNode)
Attaches a
RenderNode for this element to a parent
RenderNode |
Image |
getIcon() |
Label |
getLabel() |
boolean |
isCurrentTab() |
void |
setHorizontalLayout(java.lang.String layout)
Sets the current horizontal layout rules
|
void |
setIconPath(java.lang.String imagePath) |
void |
setText(java.lang.String text) |
addActionListener, createRenderNode, isEnabled, notifyActionListenersOfBeginEvent, notifyActionListenersOfEndEvent, removeActionListener, setEnabled
add, add, addAsync, detach, get, getElementById, getFlexDirection, getHorizontalLayout, getTotalChildren, getVerticalLayout, isOverflowClipped, remove, remove, removeAll, removeAllAsync, removeAsync, setFlexDirection, setOverflowClipped, setStyleId, setVerticalLayout, setVisibility, setZIndex, syncWithRenderNode
addEffectListener, addHoverListener, applyEffect, defer, defer, equals, getId, getStyleId, getVisibility, getZIndex, hashCode, isDebugEnabled, notifyEffectListenersOnFinished, notifyHoverListenersOnBeginHover, notifyHoverListenersOnEndHover, processDeferred, removeEffectListener, removeHoverListener, setDebugEnabled
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
addHoverListener, getId, notifyHoverListenersOnBeginHover, notifyHoverListenersOnEndHover, removeHoverListener
public TabButton()
public TabButton(java.lang.String id)
public TabButton(java.lang.String id, HorizontalAlignment iconAlignment)
public void attach(ParentRenderNode<?,?> parentRenderNode)
UiElement
RenderNode
for this element to a parent
RenderNode
attach
in class ParentUiElement
parentRenderNode
- The parent RenderNode
to attach topublic void setText(java.lang.String text)
public void setIconPath(java.lang.String imagePath)
public boolean isCurrentTab()
public void setHorizontalLayout(java.lang.String layout)
ParentUiElement
setHorizontalLayout
in class ParentUiElement
public Label getLabel()
public Image getIcon()