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
FieldsModifier and TypeFieldDescriptionprotected final javafx.scene.layout.StackPaneThe pane containing the scroll pane and resize corner.protected javafx.scene.control.ScrollBarThe horizontal scroll bar discovered in the text area scroll pane.protected final javafx.scene.layout.StackPaneThe corner node used as the resize handle.protected final javafx.scene.control.ScrollPaneThe scroll pane created by the standard text area skin.protected javafx.scene.control.ScrollBarThe vertical scroll bar discovered in the text area scroll pane. -
Constructor Summary
ConstructorsConstructorDescriptionResizableTextAreaSkin(ResizableTextArea control) Creates a new skin for the given resizable 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
-
Field Details
-
resizeCorner
protected final javafx.scene.layout.StackPane resizeCornerThe corner node used as the resize handle. -
scrollPane
protected final javafx.scene.control.ScrollPane scrollPaneThe scroll pane created by the standard text area skin. -
contentPane
protected final javafx.scene.layout.StackPane contentPaneThe pane containing the scroll pane and resize corner. -
verticalScrollBar
protected javafx.scene.control.ScrollBar verticalScrollBarThe vertical scroll bar discovered in the text area scroll pane. -
horizontalScrollBar
protected javafx.scene.control.ScrollBar horizontalScrollBarThe horizontal scroll bar discovered in the text area scroll pane.
-
-
Constructor Details
-
ResizableTextAreaSkin
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:
layoutChildrenin classjavafx.scene.control.skin.TextAreaSkin
-