Package javafx.scene.control.skin
Class TextFieldSkin
java.lang.Object
javafx.scene.control.SkinBase<C>
com.sun.javafx.scene.control.skin.BehaviorSkinBase<T,B>
javafx.scene.control.skin.TextInputControlSkin<TextField,TextFieldBehavior>
javafx.scene.control.skin.TextFieldSkin
Text field skin.
(empty as we rely on the target toolkit for now)
-
Field Summary
Fields inherited from class com.sun.javafx.scene.control.skin.BehaviorSkinBase
IS_TOUCH_SUPPORTED
-
Constructor Summary
ConstructorDescriptionTextFieldSkin
(TextField textField) Create a new TextFieldSkin.TextFieldSkin
(TextField textField, TextFieldBehavior behavior) -
Method Summary
Modifier and TypeMethodDescriptionprotected double
computeMaxHeight
(double width, double topInset, double rightInset, double bottomInset, double leftInset) Computes the maximum allowable height of the Skin, based on the provided width.protected double
computeMinHeight
(double width, double topInset, double rightInset, double bottomInset, double leftInset) Computes the minimum allowable height of the Skin, based on the provided width.protected double
computePrefHeight
(double width, double topInset, double rightInset, double bottomInset, double leftInset) Calculates the preferred height of thisSkinBase
.Methods inherited from class com.sun.javafx.scene.control.skin.BehaviorSkinBase
dispose, getBehavior, handleControlPropertyChanged, registerChangeListener
Methods inherited from class javafx.scene.control.SkinBase
computeBaselineOffset, computeMaxWidth, computeMinWidth, computePrefWidth, consumeMouseEvents, getChildren, getNode, getSkinnable, layoutChildren, layoutInArea, layoutInArea, layoutInArea, positionInArea, positionInArea, registerChangeListener, snappedBottomInset, snappedLeftInset, snappedRightInset, snappedTopInset, snapPosition, snapSize, snapSizeX, snapSizeY, snapSpace, snapSpaceX, snapSpaceY, unregisterChangeListeners
-
Constructor Details
-
TextFieldSkin
Create a new TextFieldSkin.- Parameters:
textField
- not null
-
TextFieldSkin
-
-
Method Details
-
computeMinHeight
protected double computeMinHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset) Description copied from class:SkinBase
Computes the minimum allowable height of the Skin, based on the provided width.- Overrides:
computeMinHeight
in classSkinBase<TextField>
- Parameters:
width
- The width of the Skin, in case this value might dictate the minimum height.topInset
- the pixel snapped top insetrightInset
- the pixel snapped right insetbottomInset
- the pixel snapped bottom insetleftInset
- the pixel snapped left inset- Returns:
- A double representing the minimum height of this Skin.
-
computePrefHeight
protected double computePrefHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset) Description copied from class:SkinBase
Calculates the preferred height of thisSkinBase
. The default implementation calculates this height as the height of the area occupied by its managed children when they are positioned at their current positions at their preferred heights.- Overrides:
computePrefHeight
in classSkinBase<TextField>
- Parameters:
width
- the width that should be used if preferred height depends on ittopInset
- the pixel snapped top insetrightInset
- the pixel snapped right insetbottomInset
- the pixel snapped bottom insetleftInset
- the pixel snapped left inset- Returns:
- the calculated preferred height
-
computeMaxHeight
protected double computeMaxHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset) Description copied from class:SkinBase
Computes the maximum allowable height of the Skin, based on the provided width.- Overrides:
computeMaxHeight
in classSkinBase<TextField>
- Parameters:
width
- The width of the Skin, in case this value might dictate the maximum height.topInset
- the pixel snapped top insetrightInset
- the pixel snapped right insetbottomInset
- the pixel snapped bottom insetleftInset
- the pixel snapped left inset- Returns:
- A double representing the maximum height of this Skin.
-