Top Fields Constructors Methods
com.dlsc.unitfx.skins

public abstract Class CustomTextFieldSkin

extends TextFieldSkin
Class Inheritance
Imports
javafx.beans.property.ObjectProperty, javafx.css.PseudoClass, javafx.geometry.Pos, javafx.scene.Node, javafx.scene.control.TextField, javafx.scene.control.skin.TextFieldSkin, javafx.scene.layout.StackPane, javafx.scene.text.HitInfo

Field Summary

Modifier and TypeField and Description
private final TextField
private static final PseudoClass
private static final PseudoClass
private static final PseudoClass
private Node
private StackPane
private Node
private StackPane

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected double
computeMinHeight(double
The width of the Skin, in case this value might dictate the minimum height.
w
,
double
the pixel snapped top inset
topInset
,
double
the pixel snapped right inset
rightInset
,
double
the pixel snapped bottom inset
bottomInset
,
double
the pixel snapped left inset
leftInset
)

Overrides javafx.scene.control.skin.TextFieldSkin.computeMinHeight.

Computes the minimum allowable height of the Skin, based on the provided width.

protected double
computeMinWidth(double
The height of the Skin, in case this value might dictate the minimum width.
h
,
double
the pixel snapped top inset
topInset
,
double
the pixel snapped right inset
rightInset
,
double
the pixel snapped bottom inset
bottomInset
,
double
the pixel snapped left inset
leftInset
)

Overrides javafx.scene.control.SkinBase.computeMinWidth.

Computes the minimum allowable width of the Skin, based on the provided height.

protected double
computePrefHeight(double
the width that should be used if preferred height depends on it
w
,
double
the pixel snapped top inset
topInset
,
double
the pixel snapped right inset
rightInset
,
double
the pixel snapped bottom inset
bottomInset
,
double
the pixel snapped left inset
leftInset
)

Overrides javafx.scene.control.skin.TextFieldSkin.computePrefHeight.

Calculates the preferred height of this SkinBase.

protected double
computePrefWidth(double
the height that should be used if preferred width depends on it
h
,
double
the pixel snapped top inset
topInset
,
double
the pixel snapped right inset
rightInset
,
double
the pixel snapped bottom inset
bottomInset
,
double
the pixel snapped left inset
leftInset
)

Overrides javafx.scene.control.skin.TextFieldSkin.computePrefWidth.

Calculates the preferred width of this SkinBase.

public HitInfo
getIndex(double
the x coordinate of the point.
x
,
double
the y coordinate of the point.
y
)

Overrides javafx.scene.control.skin.TextFieldSkin.getIndex.

Performs a hit test, mapping point to index in the content.

protected void
layoutChildren(double
the x position
x
,
double
the y position
y
,
double
the width
w
,
double
the height
h
)

Overrides javafx.scene.control.skin.TextFieldSkin.layoutChildren.

Called during the layout pass of the scenegraph.

public abstract ObjectProperty<Node>
public abstract ObjectProperty<Node>
private void
Inherited from javafx.scene.control.skin.TextFieldSkin:
addHighlightcomputeBaselineOffsetcomputeMaxHeightdeleteChardisposegetCharacterBoundsgetMenuPositiongetRangeShapegetUnderlineShapemaskTextmoveCaretpositionCaretqueryAccessibleAttributeremoveHighlightreplaceText

Field Detail

controlback to summary
private final TextField control

Hides javafx.scene.control.SkinBase.control.

HAS_LEFT_NODEback to summary
private static final PseudoClass HAS_LEFT_NODE
HAS_NO_SIDE_NODEback to summary
private static final PseudoClass HAS_NO_SIDE_NODE
HAS_RIGHT_NODEback to summary
private static final PseudoClass HAS_RIGHT_NODE
leftback to summary
private Node left
leftPaneback to summary
private StackPane leftPane
rightPaneback to summary
private StackPane rightPane

Constructor Detail

CustomTextFieldSkinback to summary
public CustomTextFieldSkin(final TextField control)

Method Detail

computeMinHeightback to summary
protected double computeMinHeight(double w, double topInset, double rightInset, double bottomInset, double leftInset)

Overrides javafx.scene.control.skin.TextFieldSkin.computeMinHeight.

Doc from javafx.scene.control.skin.TextFieldSkin.computeMinHeight.

Computes the minimum allowable height of the Skin, based on the provided width.

Parameters
w:double

Doc from javafx.scene.control.SkinBase.computeMinHeight.

The width of the Skin, in case this value might dictate the minimum height.

topInset:double

Doc from javafx.scene.control.SkinBase.computeMinHeight.

the pixel snapped top inset

rightInset:double

Doc from javafx.scene.control.SkinBase.computeMinHeight.

the pixel snapped right inset

bottomInset:double

Doc from javafx.scene.control.SkinBase.computeMinHeight.

the pixel snapped bottom inset

leftInset:double

Doc from javafx.scene.control.SkinBase.computeMinHeight.

the pixel snapped left inset

Returns:double

Doc from javafx.scene.control.SkinBase.computeMinHeight.

A double representing the minimum height of this Skin.

Annotations
@Override
computeMinWidthback to summary
protected double computeMinWidth(double h, double topInset, double rightInset, double bottomInset, double leftInset)

Overrides javafx.scene.control.SkinBase.computeMinWidth.

Doc from javafx.scene.control.SkinBase.computeMinWidth.

Computes the minimum allowable width of the Skin, based on the provided height.

Parameters
h:double

The height of the Skin, in case this value might dictate the minimum width.

topInset:double

the pixel snapped top inset

rightInset:double

the pixel snapped right inset

bottomInset:double

the pixel snapped bottom inset

leftInset:double

the pixel snapped left inset

Returns:double

A double representing the minimum width of this Skin.

Annotations
@Override
computePrefHeightback to summary
protected double computePrefHeight(double w, double topInset, double rightInset, double bottomInset, double leftInset)

Overrides javafx.scene.control.skin.TextFieldSkin.computePrefHeight.

Doc from javafx.scene.control.skin.TextFieldSkin.computePrefHeight.

Calculates the preferred height of this SkinBase. 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.

Parameters
w:double

Doc from javafx.scene.control.SkinBase.computePrefHeight.

the width that should be used if preferred height depends on it

topInset:double

Doc from javafx.scene.control.SkinBase.computePrefHeight.

the pixel snapped top inset

rightInset:double

Doc from javafx.scene.control.SkinBase.computePrefHeight.

the pixel snapped right inset

bottomInset:double

Doc from javafx.scene.control.SkinBase.computePrefHeight.

the pixel snapped bottom inset

leftInset:double

Doc from javafx.scene.control.SkinBase.computePrefHeight.

the pixel snapped left inset

Returns:double

Doc from javafx.scene.control.SkinBase.computePrefHeight.

the calculated preferred height

Annotations
@Override
computePrefWidthback to summary
protected double computePrefWidth(double h, double topInset, double rightInset, double bottomInset, double leftInset)

Overrides javafx.scene.control.skin.TextFieldSkin.computePrefWidth.

Doc from javafx.scene.control.skin.TextFieldSkin.computePrefWidth.

Calculates the preferred width of this SkinBase. The default implementation calculates this width as the width of the area occupied by its managed children when they are positioned at their current positions at their preferred widths.

Parameters
h:double

Doc from javafx.scene.control.SkinBase.computePrefWidth.

the height that should be used if preferred width depends on it

topInset:double

Doc from javafx.scene.control.SkinBase.computePrefWidth.

the pixel snapped top inset

rightInset:double

Doc from javafx.scene.control.SkinBase.computePrefWidth.

the pixel snapped right inset

bottomInset:double

Doc from javafx.scene.control.SkinBase.computePrefWidth.

the pixel snapped bottom inset

leftInset:double

Doc from javafx.scene.control.SkinBase.computePrefWidth.

the pixel snapped left inset

Returns:double

Doc from javafx.scene.control.SkinBase.computePrefWidth.

the calculated preferred width

Annotations
@Override
getIndexback to summary
public HitInfo getIndex(double x, double y)

Overrides javafx.scene.control.skin.TextFieldSkin.getIndex.

Doc from javafx.scene.control.skin.TextFieldSkin.getIndex.

Performs a hit test, mapping point to index in the content.

Parameters
x:double

the x coordinate of the point.

y:double

the y coordinate of the point.

Returns:HitInfo

a HitInfo object describing the index and forward bias.

Annotations
@Override
layoutChildrenback to summary
protected void layoutChildren(double x, double y, double w, double h)

Overrides javafx.scene.control.skin.TextFieldSkin.layoutChildren.

Doc from javafx.scene.control.skin.TextFieldSkin.layoutChildren.

Called during the layout pass of the scenegraph.

Parameters
x:double

Doc from javafx.scene.control.SkinBase.layoutChildren.

the x position

y:double

Doc from javafx.scene.control.SkinBase.layoutChildren.

the y position

w:double

Doc from javafx.scene.control.SkinBase.layoutChildren.

the width

h:double

Doc from javafx.scene.control.SkinBase.layoutChildren.

the height

Annotations
@Override
leftPropertyback to summary
public abstract ObjectProperty<Node> leftProperty()
rightPropertyback to summary
public abstract ObjectProperty<Node> rightProperty()
updateChildrenback to summary
private void updateChildren()