Skip to content

TextFieldNode

class TextFieldNode
Extends: LineFieldNode<String>
Package: dev.joid.lib.ui.node.impl.control.field · Module: core · Source: TextFieldNode.java

A one-line field whose value is its text.

It needs only a TextInfo and optional styling; a background(...) gives it a look.

ReturnsSignatureSummary
TextFieldNodecreate(double x, double y, double width) factoryCreates the field at x, y with a width in design pixels; its height is the height of its font plus its top and bottom margins.
TextFieldNodecreate(double x, double y, double width, double height) factoryCreates the field at x, y with a width and a height in design pixels.
TextFieldNode(double x, double y, double width, double height) protectedCreates the field, from the constructor of a subclass.

Inherited from LineFieldNode (3)

align · alignX · alignY

Inherited from FieldNode (21)

background · cursorColor · selectionColor · placeholderColor · cursorMargin · cursorPosition · text · placeholder · info · accept · normalize · allowEmpty · maxTextLength · markup · margin · marginTop · marginBottom · marginLeft · marginRight · marginHorizontal · marginVertical

Inherited from Node (24)

x · y · width · height · position · anchor · anchorX · anchorY · aspectRatio · zindex · zlevel · skeleton · visible · enabled · interactive · cursor · hoverDuration · hoverEquation · hover · overflow · scrollSpeed · scrollbar · label · draggable

ReturnsSignatureSummary
Stringparse(String text) protectedReturns the text itself: every text is a value.
Stringformat(String value) protectedReturns the value itself.
Inherited from LineFieldNode (1)

getCursorArea

Inherited from FieldNode (17)

cursorPosition · moveCursor · beforeCursorMove · focused · focus · beforeFocus · isFocused · getValue · isValid · getSelection · selection · change · beforeChange · blur · beforeBlur · select · beforeSelect

Inherited from Node (128)

load · render · renderHover · updateScroll · updateScrollX · updateScrollY · append · attach · body · clearChildren · getChild · getChildren · getNodeListAt · getParent · isAttached · getAbsoluteX · getAbsoluteY · getAbsoluteDefaultX · getAbsoluteDefaultY · toDrawX · toDrawY · w · h · dw · dh · mw · mh · aw · ah · ax · ay · getDefaultWidth · getDefaultHeight · removeHover · clearHover · refreshHover · getResolvedCursor · hoverValue · getHoverAnimator · isHovered · handleMousePressed · handleMouseReleased · handleMouseDragged · handleMouseScroll · handleCharTyped · handleKeyPressed · handleKeyReleased · getLastClickTime · getLastClickButton · getLastKey · getLastKeyTime · scrollX · scrollY · scrollTo · beforeScroll · hasOverflowX · hasOverflowY · getOverflowArea · getScrollX · getScrollY · getTargetScrollX · getTargetScrollY · getMaxScrollX · getMaxScrollY · isScrollEndX · isScrollEndY · startDragging · stopDragging · beforeDragStart · beforeDragDrop · isDragging · getDragX · getDragY · isDragged · getDragSource · getDraggedNode · getStartDragX · getStartDragY · getTargetDragX · getTargetDragY · effect · removeEffect · clearEffects · hasEffect · getEffect · layer · clearLayers · animate · removeAnimator · wait · watch · hasListener · isVisibleProperty · isMounted · getIndex · getUi · getHierarchy · getMappedIndex · getTaskList · getShortcutList · toJson · toString · getEventBus · getBodyConsumer · getDefaultX · getDefaultY · getLayoutX · getLayoutY · getShiftX · getShiftY · isStepping · getLastCodepoint · getLoadCount · getRenderTime · remove · self · copy · useStore · addTask · removeTask · addShortcut · removeShortcut · layoutPosition · layoutSize · fit · move · beforeMove · hoverColor

Inherited from LineFieldNode (1)

onSubmit

Inherited from FieldNode (5)

onChange · onFocus · onBlur · onCursorMove · onSelect

Inherited from Node (21)

onUpdate · onDetach · onInit · onRender · onDraw · onMount · onHoverStart · onHover · onHoverEnd · onScroll · onScrollToEnd · onScrollEndReached · onDragStart · onDrag · onDragDrop · onDragSnap · onMove · onChildAppend · onClick · onAnimate · onWatch

TextFieldNode create(double x, double y, double width) factory

Creates the field at x, y with a width in design pixels; its height is the height of its font plus its top and bottom margins.

TextFieldNode create(double x, double y, double width, double height) factory

Creates the field at x, y with a width and a height in design pixels.

TextFieldNode(double x, double y, double width, double height) protected

Creates the field, from the constructor of a subclass.

String parse(String text) protected

Returns the text itself: every text is a value.

String format(String value) protected

Returns the value itself.


fluent returns the instance, typed for chaining · factory creates an instance · signal also accepts a value that follows signals, as a signal, an expression or a lambda (When does JOID compute this value again?) · hook called by JOID, override it · abstract you implement it · default interface method with a body · static called on the class · protected visible to subclasses

Report a problem with this page