Top Fields Constructors Methods
impl.org.controlsfx.skin

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 w, double topInset, double rightInset, double bottomInset, double 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 h, double topInset, double rightInset, double bottomInset, double leftInset)

Overrides javafx.scene.control.SkinBase.computeMinWidth.

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

protected double
computePrefHeight(double w, double topInset, double rightInset, double bottomInset, double leftInset)

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

Calculates the preferred height of this SkinBase.

protected double
computePrefWidth(double h, double topInset, double rightInset, double bottomInset, double leftInset)

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

Calculates the preferred width of this SkinBase.

public HitInfo
getIndex(double x, double y)

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

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

protected void
layoutChildren(double x, double y, double w, double 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.

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.

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.

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.

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.

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.

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