public class Tab extends Div implements Navigatable
asyncRemoveAll, children, renderNodedeferredLayout, deferredRender, deferredUpdate, effects, height, styleId, visibility, width, x, y, zIndex| Constructor and Description |
|---|
Tab() |
Tab(java.lang.String id) |
Tab(java.lang.String id,
java.lang.String title) |
| Modifier and Type | Method and Description |
|---|---|
void |
clearGamePadHotkeys()
Unmaps all gamepad hotkeys
|
void |
clearHotkeys()
Unmaps all hotkeys
|
void |
clearKeyboardHotkeys()
Unmaps all keyboard hotkeys
|
protected ParentRenderNode<?,?> |
createRenderNode(ParentRenderNode<?,?> parent)
Creates the
ParentRenderNode for this UiElement |
java.lang.String |
getIconPath() |
UiNavigation |
getNavigation()
Returns the
UiNavigation currently being navigated |
java.lang.String |
getTitle() |
ActionableRenderNode |
hotkey(GamePadButton button)
Returns the corresponding
ActionableRenderNode mapped to a GamePadButton hotkey |
ActionableRenderNode |
hotkey(int keycode)
Returns the corresponding
ActionableRenderNode mapped to a keyboard hotkey |
ActionableRenderNode |
navigate(int keycode)
Triggers a navigation and returns the newly highlighted
ActionableRenderNode |
void |
setHotkey(GamePadButton button,
Actionable actionable)
Maps a
GamePadButton to a Actionable |
void |
setHotkey(int keycode,
Actionable actionable)
Maps a keyboard button to a
Actionable |
void |
setIconPath(java.lang.String iconPath) |
void |
setNavigation(UiNavigation navigation) |
void |
setTitle(java.lang.String title) |
void |
setVisibility(Visibility visibility)
Sets the current
Visibility of this UiElement |
void |
setZIndex(int zIndex)
Sets the Z index of this
UiElement. |
void |
syncWithUpdate(UiContainerRenderTree rootNode)
Syncs data between the
UiElement and RenderNode during update |
void |
unsetHotkey(GamePadButton button)
Unmaps a
GamePadButton hotkey |
void |
unsetHotkey(int keycode)
Unmaps a keyboard hotkey
|
getStyleRule, withElements, withElementsadd, add, attach, detach, get, getChild, getElementById, getFlexLayout, getRenderHeight, getRenderWidth, getRenderX, getRenderY, getTotalChildren, invokeBeginHover, invokeEndHover, isFlexLayout, isInitialLayoutOccurred, isInitialUpdateOccurred, isOverflowClipped, isRenderNodeDirty, remove, remove, removeAll, removeAllAsync, setFlex, setFlexLayout, setHeightFlex, setOverflowClipped, setRenderNodeDirty, setStyleId, setWidthFlex, setXFlex, setXYFlex, setYFlex, shrinkToContents, shrinkToContentsaddEffectListener, addHoverListener, addNodeStateListener, alignAbove, alignBelow, alignEdgeToEdge, alignLeftOf, alignRightOf, applyEffect, deferUntilLayout, deferUntilLayout, deferUntilRender, deferUntilRender, deferUntilUpdate, deferUntilUpdate, deferUntilUpdate, deferUntilUpdate, equals, getContentHeight, getContentWidth, getHeight, getId, getMarginBottom, getMarginLeft, getMarginRight, getMarginTop, getPaddingBottom, getPaddingLeft, getPaddingRight, getPaddingTop, getStyleId, getVisibility, getWidth, getX, getY, getZIndex, hashCode, isDebugEnabled, isInitialised, notifyEffectListenersOnFinished, notifyHoverListenersOnBeginHover, notifyHoverListenersOnEndHover, notifyNodeStateListeners, removeEffectListener, removeHoverListener, removeNodeStateListener, set, setContentHeight, setContentWidth, setDebugEnabled, setHeight, setHeightToContentHeightOf, setHeightToHeightOf, setWidth, setWidthToContentWidthOf, setWidthToWidthOf, setX, setXY, setY, snapTo, snapTo, syncWithLayout, syncWithRenderclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitgetIdpublic Tab()
public Tab(java.lang.String id)
public Tab(java.lang.String id,
java.lang.String title)
protected ParentRenderNode<?,?> createRenderNode(ParentRenderNode<?,?> parent)
ParentUiElementParentRenderNode for this UiElementcreateRenderNode in class Divparent - The parent of this nodeParentRenderNodepublic java.lang.String getTitle()
public void setTitle(java.lang.String title)
public java.lang.String getIconPath()
public void setIconPath(java.lang.String iconPath)
public void setZIndex(int zIndex)
UiElementUiElement. Elements will be rendered on
different Z layers in ascending Z order (negatives values first, positive values last)setZIndex in class ParentUiElementzIndex - The Z indexpublic void setVisibility(Visibility visibility)
UiElementVisibility of this UiElementsetVisibility in class ParentUiElementvisibility - The Visibility to setpublic void syncWithUpdate(UiContainerRenderTree rootNode)
UiElementUiElement and RenderNode during updatesyncWithUpdate in class ParentUiElementpublic ActionableRenderNode navigate(int keycode)
NavigatableActionableRenderNodenavigate in interface Navigatablekeycode - The navigation Input.Keys valueUiNavigation is availablepublic ActionableRenderNode hotkey(int keycode)
NavigatableActionableRenderNode mapped to a keyboard hotkeyhotkey in interface Navigatablekeycode - The Input.Keys keycode that is the hotkeypublic ActionableRenderNode hotkey(GamePadButton button)
NavigatableActionableRenderNode mapped to a GamePadButton hotkeyhotkey in interface Navigatablebutton - The GamePadButton that is the hotkeypublic void setHotkey(GamePadButton button, Actionable actionable)
NavigatableGamePadButton to a ActionablesetHotkey in interface Navigatablebutton - The GamePadButton that is the hotkeyactionable - The Actionable to trigger when the hotkey is pressedpublic void setHotkey(int keycode,
Actionable actionable)
NavigatableActionablesetHotkey in interface Navigatablekeycode - The Input.Keys keycode that is the hotkeyactionable - The Actionable to trigger when the key is pressedpublic void unsetHotkey(GamePadButton button)
NavigatableGamePadButton hotkeyunsetHotkey in interface Navigatablebutton - The GamePadButton that is the hotkeypublic void unsetHotkey(int keycode)
NavigatableunsetHotkey in interface Navigatablekeycode - The Input.Keys keycode that is the hotkeypublic void clearGamePadHotkeys()
NavigatableclearGamePadHotkeys in interface Navigatablepublic void clearKeyboardHotkeys()
NavigatableclearKeyboardHotkeys in interface Navigatablepublic void clearHotkeys()
NavigatableclearHotkeys in interface Navigatablepublic UiNavigation getNavigation()
NavigatableUiNavigation currently being navigatedgetNavigation in interface Navigatablepublic void setNavigation(UiNavigation navigation)