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>

public class LimitedTextAreaSkin extends ResizableTextAreaSkin
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

  • Constructor Summary

    Constructors
    Constructor
    Description
    LimitedTextAreaSkin(LimitedTextArea control, javafx.beans.property.ReadOnlyBooleanWrapper outOfRange)
    Creates a skin for the given limited text area.
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    layoutChildren(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, updateHighlightFill

    Methods 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, updateTextFill

    Methods 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

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 skin
      outOfRange - 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:
      layoutChildren in class ResizableTextAreaSkin