Class LimitedTextAreaSkin
java.lang.Object
javafx.scene.control.SkinBase<javafx.scene.control.TextArea>
javafx.scene.control.skin.TextInputControlSkin<javafx.scene.control.TextArea>
javafx.scene.control.skin.TextAreaSkin
com.dlsc.gemsfx.skins.ResizableTextAreaSkin
com.dlsc.gemsfx.skins.LimitedTextAreaSkin
- All Implemented Interfaces:
javafx.scene.control.Skin<javafx.scene.control.TextArea>
Skin for
LimitedTextArea.
The skin extends the resizable text area with a bottom bar containing optional tips, a length label, and a progress indicator that reflect the configured character range.
-
Nested Class Summary
Nested classes/interfaces inherited from class javafx.scene.control.skin.TextInputControlSkin
javafx.scene.control.skin.TextInputControlSkin.Direction, javafx.scene.control.skin.TextInputControlSkin.TextUnit -
Property Summary
Properties inherited from class javafx.scene.control.skin.TextInputControlSkin
forwardBias, highlightFill, highlightTextFill, promptTextFill, textFill -
Field Summary
Fields inherited from class ResizableTextAreaSkin
contentPane, horizontalScrollBar, resizeCorner, scrollPane, verticalScrollBar -
Constructor Summary
ConstructorsConstructorDescriptionLimitedTextAreaSkin(LimitedTextArea control, javafx.beans.property.ReadOnlyBooleanWrapper outOfRange) Creates a skin for the given limited text area. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidlayoutChildren(double contentX, double contentY, double contentWidth, double contentHeight) Methods inherited from class javafx.scene.control.skin.TextAreaSkin
addHighlight, computeBaselineOffset, dispose, getCaretBounds, getCharacterBounds, getIndex, getInsertionPoint, getMenuPosition, getRangeShape, getUnderlineShape, invalidateMetrics, moveCaret, positionCaret, queryAccessibleAttribute, removeHighlight, scrollCharacterToVisible, updateHighlightFillMethods inherited from class javafx.scene.control.skin.TextInputControlSkin
executeAccessibleAction, forwardBiasProperty, getClassCssMetaData, getCssMetaData, getHighlightFill, getHighlightTextFill, getPromptTextFill, getTextFill, handleInputMethodEvent, highlightFillProperty, highlightTextFillProperty, isForwardBias, maskText, promptTextFillProperty, setCaretAnimating, setForwardBias, setHighlightFill, setHighlightTextFill, setPromptTextFill, setTextFill, textFillProperty, updateHighlightTextFill, updateTextFillMethods inherited from class javafx.scene.control.SkinBase
computeMaxHeight, computeMaxWidth, computeMinHeight, computeMinWidth, computePrefHeight, computePrefWidth, consumeMouseEvents, getChildren, getNode, getSkinnable, layoutInArea, layoutInArea, layoutInArea, positionInArea, positionInArea, pseudoClassStateChanged, registerChangeListener, registerInvalidationListener, registerListChangeListener, snappedBottomInset, snappedLeftInset, snappedRightInset, snappedTopInset, snapPosition, snapPositionX, snapPositionY, snapSize, snapSizeX, snapSizeY, snapSpace, snapSpaceX, snapSpaceY, unregisterChangeListeners, unregisterInvalidationListeners, unregisterListChangeListeners
-
Constructor Details
-
LimitedTextAreaSkin
public LimitedTextAreaSkin(LimitedTextArea control, javafx.beans.property.ReadOnlyBooleanWrapper outOfRange) Creates a skin for the given limited text area.- Parameters:
control- the limited text area rendered by this skinoutOfRange- the read-only state wrapper updated when the text length is outside the configured range
-
-
Method Details
-
layoutChildren
protected void layoutChildren(double contentX, double contentY, double contentWidth, double contentHeight) - Overrides:
layoutChildrenin classResizableTextAreaSkin
-