Class CustomTextFieldSkin

java.lang.Object
javafx.scene.control.SkinBase<javafx.scene.control.TextField>
javafx.scene.control.skin.TextInputControlSkin<javafx.scene.control.TextField>
javafx.scene.control.skin.TextFieldSkin
com.dlsc.gemsfx.skins.CustomTextFieldSkin
All Implemented Interfaces:
javafx.scene.control.Skin<javafx.scene.control.TextField>
Direct Known Subclasses:
EnhancedPasswordFieldSkin

public abstract class CustomTextFieldSkin extends javafx.scene.control.skin.TextFieldSkin
The default skin for the CustomTextField control.
  • 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
    Type
    Property
    Description
    abstract javafx.beans.property.ObjectProperty<javafx.scene.Node>
    The node displayed on the left side of the text field.
    abstract javafx.beans.property.ObjectProperty<javafx.scene.Node>
    The node displayed on the right side of the text field.

    Properties inherited from class javafx.scene.control.skin.TextInputControlSkin

    forwardBias, highlightFill, highlightTextFill, promptTextFill, textFill
  • Constructor Summary

    Constructors
    Constructor
    Description
    CustomTextFieldSkin(javafx.scene.control.TextField control)
    Creates a skin for the given text field.
  • Method Summary

    Modifier and Type
    Method
    Description
    protected double
    computeMinHeight(double w, double topInset, double rightInset, double bottomInset, double leftInset)
     
    protected double
    computeMinWidth(double h, double topInset, double rightInset, double bottomInset, double leftInset)
     
    protected double
    computePrefHeight(double w, double topInset, double rightInset, double bottomInset, double leftInset)
     
    protected double
    computePrefWidth(double h, double topInset, double rightInset, double bottomInset, double leftInset)
     
    javafx.scene.text.HitInfo
    getIndex(double x, double y)
     
    protected void
    layoutChildren(double x, double y, double w, double h)
     
    abstract javafx.beans.property.ObjectProperty<javafx.scene.Node>
    The node displayed on the left side of the text field.
    abstract javafx.beans.property.ObjectProperty<javafx.scene.Node>
    The node displayed on the right side of the text field.

    Methods inherited from class javafx.scene.control.skin.TextFieldSkin

    addHighlight, computeBaselineOffset, computeMaxHeight, deleteChar, dispose, getCharacterBounds, getMenuPosition, getRangeShape, getUnderlineShape, maskText, moveCaret, positionCaret, queryAccessibleAttribute, removeHighlight, replaceText

    Methods inherited from class javafx.scene.control.skin.TextInputControlSkin

    executeAccessibleAction, forwardBiasProperty, getClassCssMetaData, getCssMetaData, getHighlightFill, getHighlightTextFill, getInsertionPoint, getPromptTextFill, getTextFill, handleInputMethodEvent, highlightFillProperty, highlightTextFillProperty, invalidateMetrics, isForwardBias, promptTextFillProperty, scrollCharacterToVisible, setCaretAnimating, setForwardBias, setHighlightFill, setHighlightTextFill, setPromptTextFill, setTextFill, textFillProperty, updateHighlightFill, updateHighlightTextFill, updateTextFill

    Methods inherited from class javafx.scene.control.SkinBase

    computeMaxWidth, 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
  • Property Details

    • left

      public abstract javafx.beans.property.ObjectProperty<javafx.scene.Node> leftProperty
      The node displayed on the left side of the text field.
      See Also:
    • right

      public abstract javafx.beans.property.ObjectProperty<javafx.scene.Node> rightProperty
      The node displayed on the right side of the text field.
      See Also:
  • Constructor Details

    • CustomTextFieldSkin

      public CustomTextFieldSkin(javafx.scene.control.TextField control)
      Creates a skin for the given text field.
      Parameters:
      control - the text field rendered by this skin
  • Method Details

    • leftProperty

      public abstract javafx.beans.property.ObjectProperty<javafx.scene.Node> leftProperty()
      The node displayed on the left side of the text field.
      Returns:
      the left node property
    • rightProperty

      public abstract javafx.beans.property.ObjectProperty<javafx.scene.Node> rightProperty()
      The node displayed on the right side of the text field.
      Returns:
      the right node property
    • layoutChildren

      protected void layoutChildren(double x, double y, double w, double h)
      Overrides:
      layoutChildren in class javafx.scene.control.skin.TextFieldSkin
    • getIndex

      public javafx.scene.text.HitInfo getIndex(double x, double y)
      Overrides:
      getIndex in class javafx.scene.control.skin.TextFieldSkin
    • computePrefWidth

      protected double computePrefWidth(double h, double topInset, double rightInset, double bottomInset, double leftInset)
      Overrides:
      computePrefWidth in class javafx.scene.control.skin.TextFieldSkin
    • computePrefHeight

      protected double computePrefHeight(double w, double topInset, double rightInset, double bottomInset, double leftInset)
      Overrides:
      computePrefHeight in class javafx.scene.control.skin.TextFieldSkin
    • computeMinWidth

      protected double computeMinWidth(double h, double topInset, double rightInset, double bottomInset, double leftInset)
      Overrides:
      computeMinWidth in class javafx.scene.control.SkinBase<javafx.scene.control.TextField>
    • computeMinHeight

      protected double computeMinHeight(double w, double topInset, double rightInset, double bottomInset, double leftInset)
      Overrides:
      computeMinHeight in class javafx.scene.control.skin.TextFieldSkin