public class Tab extends Row implements Navigatable
asyncQueue, children, renderNode
effects, styleId, visibility, 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 |
attach(ParentRenderNode<?,?> parentRenderNode)
Attaches a
RenderNode for this element to a parent
RenderNode |
java.lang.String |
getIconPath() |
UiNavigation |
getNavigation()
Returns the
UiNavigation currently being navigated |
java.lang.String |
getTitle() |
ActionableRenderNode |
hotkey(ControllerButton button)
Returns the corresponding mapped to a
ControllerButton hotkey |
ActionableRenderNode |
hotkey(int keycode)
Returns the corresponding mapped to a keyboard hotkey
|
ActionableRenderNode |
navigate(int keycode)
Triggers a navigation and returns the newly highlighted
ActionableRenderNode |
void |
setHotkey(ControllerButton button,
Actionable actionable)
Maps a
ControllerButton 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 |
syncWithRenderNode()
Syncs data between the
UiElement and RenderNode |
void |
unsetHotkey(ControllerButton button)
Unmaps a
ControllerButton hotkey |
void |
unsetHotkey(int keycode)
Unmaps a keyboard hotkey
|
withElements, withElements
add, add, addAsync, detach, getElementById, getLayout, remove, remove, removeAll, setLayout, setStyleId
addEffectListener, addHoverListener, applyEffect, equals, getId, getStyleId, getVisibility, getZIndex, hashCode, isDebugEnabled, notifyEffectListenersOnFinished, notifyHoverListenersOnBeginHover, notifyHoverListenersOnEndHover, removeEffectListener, removeHoverListener, setDebugEnabled
public Tab()
public Tab(java.lang.String id)
public Tab(java.lang.String id, java.lang.String title)
public void attach(ParentRenderNode<?,?> parentRenderNode)
UiElement
RenderNode
for this element to a parent
RenderNode
attach
in class Row
parentRenderNode
- The parent RenderNode
to attach topublic 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)
UiElement
UiElement
. Elements will be rendered on
different Z layers in ascending Z order (negatives values first, positive values last)public void setVisibility(Visibility visibility)
UiElement
Visibility
of this UiElement
setVisibility
in class Column
visibility
- The Visibility
to setpublic void syncWithRenderNode()
UiElement
UiElement
and RenderNode
syncWithRenderNode
in class Column
public ActionableRenderNode navigate(int keycode)
Navigatable
ActionableRenderNode
navigate
in interface Navigatable
keycode
- The navigation Input.Keys
valueUiNavigation
is availablepublic ActionableRenderNode hotkey(int keycode)
Navigatable
hotkey
in interface Navigatable
keycode
- The Input.Keys
keycode that is the hotkeypublic ActionableRenderNode hotkey(ControllerButton button)
Navigatable
ControllerButton
hotkeyhotkey
in interface Navigatable
button
- The ControllerButton
that is the hotkeypublic void setHotkey(ControllerButton button, Actionable actionable)
Navigatable
ControllerButton
to a Actionable
setHotkey
in interface Navigatable
button
- The ControllerButton
that is the hotkeyactionable
- The Actionable
to trigger when the hotkey is pressedpublic void setHotkey(int keycode, Actionable actionable)
Navigatable
Actionable
setHotkey
in interface Navigatable
keycode
- The Input.Keys
keycode that is the hotkeyactionable
- The Actionable
to trigger when the key is pressedpublic void unsetHotkey(ControllerButton button)
Navigatable
ControllerButton
hotkeyunsetHotkey
in interface Navigatable
button
- The ControllerButton
that is the hotkeypublic void unsetHotkey(int keycode)
Navigatable
unsetHotkey
in interface Navigatable
keycode
- The Input.Keys
keycode that is the hotkeypublic UiNavigation getNavigation()
Navigatable
UiNavigation
currently being navigatedgetNavigation
in interface Navigatable
public void setNavigation(UiNavigation navigation)