public class TextBoxRenderNode extends RenderNode<TextBox,TextBoxStyleRule> implements TextInputableRenderNode
RenderNode
implementation for TextBox
Modifier and Type | Field and Description |
---|---|
protected com.badlogic.gdx.graphics.g2d.BitmapFontCache |
bitmapFontCache |
protected LayoutRuleset |
layoutRuleset |
effects, element, hiddenByLayoutRule, initialLayoutOccurred, innerArea, outerArea, parent, preferredContentHeight, preferredContentWidth, rootNode, style, targetOuterArea, xOffset, yOffset, zIndex
Constructor and Description |
---|
TextBoxRenderNode(ParentRenderNode<?,?> parent,
TextBox element) |
Modifier and Type | Method and Description |
---|---|
void |
backspace() |
void |
beginAction(EventTrigger eventTrigger,
EventTriggerParams eventTriggerParams) |
void |
characterReceived(char c) |
void |
copy() |
void |
cut() |
protected float |
determinePreferredContentHeight(LayoutState layoutState) |
protected float |
determinePreferredContentWidth(LayoutState layoutState) |
protected TextBoxStyleRule |
determineStyleRule(LayoutState layoutState) |
protected float |
determineXOffset(LayoutState layoutState) |
protected float |
determineYOffset(LayoutState layoutState) |
void |
endAction(EventTrigger eventTrigger,
EventTriggerParams eventTriggerParams) |
boolean |
enter() |
LayoutRuleset |
getLayoutRuleset() |
boolean |
isReceivingInput() |
protected boolean |
isValidCharacter(char c) |
void |
layout(LayoutState layoutState) |
ActionableRenderNode |
mouseDown(int screenX,
int screenY,
int pointer,
int button) |
boolean |
mouseMoved(int screenX,
int screenY) |
void |
mouseUp(int screenX,
int screenY,
int pointer,
int button) |
void |
moveCursorLeft() |
void |
moveCursorRight() |
void |
paste() |
protected void |
renderElement(Graphics g) |
void |
setState(NodeState state) |
void |
update(UiContainerRenderTree uiContainer,
float delta) |
void |
updateBitmapFontCache() |
applyEffect, beginHover, contains, endHover, getContentRenderHeight, getContentRenderWidth, getContentRenderX, getContentRenderY, getElement, getElementById, getId, getInnerHeight, getInnerRenderHeight, getInnerRenderWidth, getInnerRenderX, getInnerRenderY, getInnerWidth, getInnerX, getInnerY, getOuterHeight, getOuterRenderHeight, getOuterRenderWidth, getOuterRenderX, getOuterRenderY, getOuterWidth, getOuterX, getOuterY, getParent, getPreferredContentHeight, getPreferredContentWidth, getPreferredInnerHeight, getPreferredInnerWidth, getPreferredOuterHeight, getPreferredOuterWidth, getRelativeX, getRelativeY, getState, getStyle, getXOffset, getYOffset, getZIndex, interpolate, isDirty, isIncludedInLayout, isIncludedInRender, mouseScrolled, render, setDirty, setRelativeX, setRelativeY, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getState
beginHover, contains, endHover, getElement, getId
protected LayoutRuleset layoutRuleset
protected com.badlogic.gdx.graphics.g2d.BitmapFontCache bitmapFontCache
public TextBoxRenderNode(ParentRenderNode<?,?> parent, TextBox element)
public void layout(LayoutState layoutState)
layout
in class RenderNode<TextBox,TextBoxStyleRule>
public void update(UiContainerRenderTree uiContainer, float delta)
update
in class RenderNode<TextBox,TextBoxStyleRule>
protected void renderElement(Graphics g)
renderElement
in class RenderNode<TextBox,TextBoxStyleRule>
protected float determinePreferredContentWidth(LayoutState layoutState)
determinePreferredContentWidth
in class RenderNode<TextBox,TextBoxStyleRule>
protected float determinePreferredContentHeight(LayoutState layoutState)
determinePreferredContentHeight
in class RenderNode<TextBox,TextBoxStyleRule>
protected float determineXOffset(LayoutState layoutState)
determineXOffset
in class RenderNode<TextBox,TextBoxStyleRule>
protected float determineYOffset(LayoutState layoutState)
determineYOffset
in class RenderNode<TextBox,TextBoxStyleRule>
protected TextBoxStyleRule determineStyleRule(LayoutState layoutState)
determineStyleRule
in class RenderNode<TextBox,TextBoxStyleRule>
public boolean mouseMoved(int screenX, int screenY)
mouseMoved
in class RenderNode<TextBox,TextBoxStyleRule>
public ActionableRenderNode mouseDown(int screenX, int screenY, int pointer, int button)
mouseDown
in interface TextInputableRenderNode
mouseDown
in class RenderNode<TextBox,TextBoxStyleRule>
public void mouseUp(int screenX, int screenY, int pointer, int button)
mouseUp
in interface ActionableRenderNode
mouseUp
in class RenderNode<TextBox,TextBoxStyleRule>
public void beginAction(EventTrigger eventTrigger, EventTriggerParams eventTriggerParams)
beginAction
in interface ActionableRenderNode
public void endAction(EventTrigger eventTrigger, EventTriggerParams eventTriggerParams)
endAction
in interface ActionableRenderNode
public void characterReceived(char c)
characterReceived
in interface TextInputableRenderNode
public void backspace()
backspace
in interface TextInputableRenderNode
public boolean enter()
enter
in interface TextInputableRenderNode
public void moveCursorRight()
moveCursorRight
in interface TextInputableRenderNode
public void moveCursorLeft()
moveCursorLeft
in interface TextInputableRenderNode
public void cut()
cut
in interface TextInputableRenderNode
public void copy()
copy
in interface TextInputableRenderNode
public void paste()
paste
in interface TextInputableRenderNode
public boolean isReceivingInput()
isReceivingInput
in interface TextInputableRenderNode
protected boolean isValidCharacter(char c)
public void updateBitmapFontCache()
public void setState(NodeState state)
setState
in interface ActionableRenderNode
setState
in class RenderNode<TextBox,TextBoxStyleRule>
public LayoutRuleset getLayoutRuleset()