Class ResizableTextAreaSkin

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
All Implemented Interfaces:
javafx.scene.control.Skin<javafx.scene.control.TextArea>
Direct Known Subclasses:
LimitedTextAreaSkin

public class ResizableTextAreaSkin extends javafx.scene.control.skin.TextAreaSkin
Skin for ResizableTextArea.

The skin wraps the standard text area scroll pane with a resize corner node and updates resize-related pseudo classes from the enabled resize directions.

  • 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
    Modifier and Type
    Field
    Description
    protected final javafx.scene.layout.StackPane
    The pane containing the scroll pane and resize corner.
    protected javafx.scene.control.ScrollBar
    The horizontal scroll bar discovered in the text area scroll pane.
    protected final javafx.scene.layout.StackPane
    The corner node used as the resize handle.
    protected final javafx.scene.control.ScrollPane
    The scroll pane created by the standard text area skin.
    protected javafx.scene.control.ScrollBar
    The vertical scroll bar discovered in the text area scroll pane.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates a new skin for the given resizable 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
  • Field Details

    • resizeCorner

      protected final javafx.scene.layout.StackPane resizeCorner
      The corner node used as the resize handle.
    • scrollPane

      protected final javafx.scene.control.ScrollPane scrollPane
      The scroll pane created by the standard text area skin.
    • contentPane

      protected final javafx.scene.layout.StackPane contentPane
      The pane containing the scroll pane and resize corner.
    • verticalScrollBar

      protected javafx.scene.control.ScrollBar verticalScrollBar
      The vertical scroll bar discovered in the text area scroll pane.
    • horizontalScrollBar

      protected javafx.scene.control.ScrollBar horizontalScrollBar
      The horizontal scroll bar discovered in the text area scroll pane.
  • Constructor Details

    • ResizableTextAreaSkin

      public ResizableTextAreaSkin(ResizableTextArea control)
      Creates a new skin for the given resizable text area.
      Parameters:
      control - the resizable text area to skin
  • Method Details

    • layoutChildren

      protected void layoutChildren(double contentX, double contentY, double contentWidth, double contentHeight)
      Overrides:
      layoutChildren in class javafx.scene.control.skin.TextAreaSkin