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
PropertiesTypePropertyDescriptionabstract 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
ConstructorsConstructorDescriptionCustomTextFieldSkin(javafx.scene.control.TextField control) Creates a skin for the given text field. -
Method Summary
Modifier and TypeMethodDescriptionprotected doublecomputeMinHeight(double w, double topInset, double rightInset, double bottomInset, double leftInset) protected doublecomputeMinWidth(double h, double topInset, double rightInset, double bottomInset, double leftInset) protected doublecomputePrefHeight(double w, double topInset, double rightInset, double bottomInset, double leftInset) protected doublecomputePrefWidth(double h, double topInset, double rightInset, double bottomInset, double leftInset) javafx.scene.text.HitInfogetIndex(double x, double y) protected voidlayoutChildren(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, replaceTextMethods 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, updateTextFillMethods 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
-
Property Details
-
left
public abstract javafx.beans.property.ObjectProperty<javafx.scene.Node> leftPropertyThe node displayed on the left side of the text field.- See Also:
-
right
public abstract javafx.beans.property.ObjectProperty<javafx.scene.Node> rightPropertyThe 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:
layoutChildrenin classjavafx.scene.control.skin.TextFieldSkin
-
getIndex
public javafx.scene.text.HitInfo getIndex(double x, double y) - Overrides:
getIndexin classjavafx.scene.control.skin.TextFieldSkin
-
computePrefWidth
protected double computePrefWidth(double h, double topInset, double rightInset, double bottomInset, double leftInset) - Overrides:
computePrefWidthin classjavafx.scene.control.skin.TextFieldSkin
-
computePrefHeight
protected double computePrefHeight(double w, double topInset, double rightInset, double bottomInset, double leftInset) - Overrides:
computePrefHeightin classjavafx.scene.control.skin.TextFieldSkin
-
computeMinWidth
protected double computeMinWidth(double h, double topInset, double rightInset, double bottomInset, double leftInset) - Overrides:
computeMinWidthin classjavafx.scene.control.SkinBase<javafx.scene.control.TextField>
-
computeMinHeight
protected double computeMinHeight(double w, double topInset, double rightInset, double bottomInset, double leftInset) - Overrides:
computeMinHeightin classjavafx.scene.control.skin.TextFieldSkin
-