public class UITextBox extends UIInputBox implements UICopy, UIPaste
UIInputBox.FillStyle, UIInputBox.ProgressIndicator
UIContextActions.Action
editable, editBuffer, editing, enabled, fillColor, fillStyle, hasFill, progressFillStyle, returnKeyEdit
DEFAULT_HEIGHT, useCommandEngine
bottomMargin, height, leftMargin, rightMargin, textAlignHorizontal, textAlignVertical, textOffsetX, textOffsetY, topMargin, width, x, y
children, hasFocus, mousePressContextMenu, visible
Constructor and Description |
---|
UITextBox() |
UITextBox(float x,
float y,
float w,
float h) |
Modifier and Type | Method and Description |
---|---|
String |
getDescription()
Objects are encouraged to override this method providing a helpful String displayed to the user explaining
the function of this UI component.
|
protected String |
getEditBufferValue() |
LXParameter |
getParameter() |
String |
getValue() |
protected String |
getValueString() |
protected boolean |
isValidCharacter(char keyChar) |
static boolean |
isValidTextCharacter(char keyChar) |
LXClipboardItem |
onCopy() |
void |
onPaste(LXClipboardItem item) |
protected void |
onValueChange(String value)
Subclasses may override to handle value changes
|
protected void |
saveEditBuffer() |
UITextBox |
setParameter(StringParameter parameter) |
UITextBox |
setValue(String value) |
UITextBox |
setValue(String value,
boolean pushToParameter) |
decrementValue, edit, enableImmediateEdit, enableMousePressEdit, enableReturnKeyEdit, getFillWidthNormalized, incrementMouseValue, incrementValue, isEditable, isEnabled, onBlur, onDraw, onKeyPressed, onMouseDragged, onMousePressed, onMouseReleased, setEditable, setEnabled, setProgressColor, setProgressColor, setProgressFillStyle, setProgressIndicator, setValueCommand
getContextActions, getOscAddress, setNormalizedCommand, setUseCommandEngine
addToContainer, addToContainer, breakTextToWidth, clipTextToWidth, contains, drawBackground, drawBorder, drawFocus, drawFocusCorners, drawFocusCorners, getBackgroundColor, getBorderColor, getBorderRounding, getBorderWeight, getContainer, getFocusColor, getFocusSize, getFont, getFontColor, getHeight, getNextSibling, getParent, getPrevSibling, getWidth, getX, getY, hasBackground, hasBorder, hasFont, hasFontColor, isMappable, onResize, redraw, removeFromContainer, setBackground, setBackgroundColor, setBorder, setBorderColor, setBorderRounding, setBorderWeight, setBottomMargin, setContainerIndex, setDescription, setFocusBackground, setFocusBackgroundColor, setFocusColor, setFocusCorners, setFont, setFontColor, setFontColor, setHeight, setLeftMargin, setMappable, setMargin, setMargin, setMargin, setPosition, setPosition, setPosition, setPosition, setRightMargin, setSize, setTextAlignment, setTextAlignment, setTextOffset, setTopMargin, setVisible, setWidth, setX, setY
addLoopTask, beginDraw, blur, bringToFront, consumeKeyEvent, consumeMousePress, consumeMouseWheelEvent, endDraw, focus, getFocusedChild, getLX, getUI, hasDirectFocus, hasFocus, isVisible, keyEventConsumed, loop, mousePressConsumed, onFocus, onUIResize, removeLoopTask, toggleVisible
onKeyReleased, onKeyTyped, onMouseClicked, onMouseMoved, onMouseOut, onMouseOver, onMouseWheel
public UITextBox()
public UITextBox(float x, float y, float w, float h)
public LXParameter getParameter()
getParameter
in class UIParameterComponent
public UITextBox setParameter(StringParameter parameter)
public String getDescription()
UIObject
getDescription
in class UIObject
public String getValue()
protected String getValueString()
getValueString
in class UIInputBox
protected String getEditBufferValue()
getEditBufferValue
in class UIInputBox
protected void onValueChange(String value)
value
- New value being setprotected void saveEditBuffer()
saveEditBuffer
in class UIInputBox
public static boolean isValidTextCharacter(char keyChar)
protected boolean isValidCharacter(char keyChar)
isValidCharacter
in class UIInputBox
public LXClipboardItem onCopy()
public void onPaste(LXClipboardItem item)
LX library by Mark C. Slee. © 2012-2020