Top Inners Fields Constructors Methods
com.sun.javafx.scene.control.skin

public abstract Class InputFieldSkin

extends Object
implements Skin<InputField>
Class Inheritance
All Implemented Interfaces
javafx.scene.control.Skin
Known Direct Subclasses
com.sun.javafx.scene.control.skin.IntegerFieldSkin, com.sun.javafx.scene.control.skin.WebColorFieldSkin, com.sun.javafx.scene.control.skin.DoubleFieldSkin
Imports
com.sun.javafx.event.EventDispatchChainImpl, com.sun.javafx.scene.control.InputField, javafx.beans.InvalidationListener, javafx.event.EventDispatchChain, javafx.scene.Node, javafx.scene.control.Skin, .TextField

Nested and Inner Type Summary

Modifier and TypeClass and Description
private class

Field Summary

Modifier and TypeField and Description
protected InputField
control

The Control that is referencing this Skin.

private InvalidationListener
private InvalidationListener
private InputFieldSkin.InnerTextField
textField

This textField is used to represent the InputField.

Constructor Summary

AccessConstructor and Description
public
InputFieldSkin(final InputField
The InputField
control
)

Create a new InputFieldSkin.

Method Summary

Modifier and TypeMethod and Description
protected abstract boolean
accept(String text)

public void
dispose()

Implements javafx.scene.control.Skin.dispose.

Called by a Skinnable when the Skin is replaced on the Skinnable.

public Node
getNode()

Implements javafx.scene.control.Skin.getNode.

Gets the Node which represents this Skin.

public InputField
getSkinnable()

Implements javafx.scene.control.Skin.getSkinnable.

Gets the Skinnable to which this Skin is assigned.

protected TextField
protected abstract void
protected abstract void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

controlback to summary
protected InputField control

The Control that is referencing this Skin. There is a one-to-one relationship between a Skin and a Control. When a Skin is set on a Control, this variable is automatically updated.

InputFieldFocusListenerback to summary
private InvalidationListener InputFieldFocusListener
InputFieldStyleClassListenerback to summary
private InvalidationListener InputFieldStyleClassListener
textFieldback to summary
private InputFieldSkin.InnerTextField textField

This textField is used to represent the InputField.

Constructor Detail

InputFieldSkinback to summary
public InputFieldSkin(final InputField control)

Create a new InputFieldSkin.

Parameters
control:InputField

The InputField

Method Detail

acceptback to summary
protected abstract boolean accept(String text)
disposeback to summary
public void dispose()

Implements javafx.scene.control.Skin.dispose.

Called by a Skinnable when the Skin is replaced on the Skinnable. This method allows a Skin to implement any logic necessary to clean up itself after the Skin is no longer needed. It may be used to release native resources. The methods getSkinnable() and getNode() should return null following a call to dispose. Calling dispose twice has no effect.

Annotations
@Override
getNodeback to summary
public Node getNode()

Implements javafx.scene.control.Skin.getNode.

Doc from javafx.scene.control.Skin.getNode.

Gets the Node which represents this Skin. This must never be null, except after a call to dispose(), and must never change except when changing to null.

Annotations
@Override
getSkinnableback to summary
public InputField getSkinnable()

Implements javafx.scene.control.Skin.getSkinnable.

Doc from javafx.scene.control.Skin.getSkinnable.

Gets the Skinnable to which this Skin is assigned. A Skin must be created for one and only one Skinnable. This value will only ever go from a non-null to null value when the Skin is removed from the Skinnable, and only as a consequence of a call to dispose().

The caller who constructs a Skinnable must also construct a Skin and properly establish the relationship between the Control and its Skin.

Annotations
@Override
getTextFieldback to summary
protected TextField getTextField()
updateTextback to summary
protected abstract void updateText()
updateValueback to summary
protected abstract void updateValue()
com.sun.javafx.scene.control.skin back to summary

private Class InputFieldSkin.InnerTextField

extends TextField
Class Inheritance

Field Summary

Inherited from javafx.scene.control.TextField:
DEFAULT_PREF_COLUMN_COUNT

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public EventDispatchChain
public void
handleFocus(boolean b)

Inherited from javafx.scene.control.TextField:
alignmentPropertycreateDefaultSkingetAlignmentgetCharactersgetClassCssMetaDatagetControlCssMetaDatagetOnActiongetPrefColumnCountonActionPropertyprefColumnCountPropertysetAlignmentsetOnActionsetPrefColumnCount

Constructor Detail

InnerTextFieldback to summary
private InnerTextField()

Method Detail

buildEventDispatchChainback to summary
public EventDispatchChain buildEventDispatchChain(EventDispatchChain tail)

Overrides javafx.scene.Node.buildEventDispatchChain.

Implements javafx.event.EventTarget.buildEventDispatchChain.

Doc from javafx.event.EventTarget.buildEventDispatchChain.

Construct an event dispatch chain for this target. The event dispatch chain contains event dispatchers which might be interested in processing of events targeted at this EventTarget. This event target is not automatically added to the chain, so if it wants to process events, it needs to add an EventDispatcher for itself to the chain.

In the case the event target is part of some hierarchy, the chain for it is usually built from event dispatchers collected from the root of the hierarchy to the event target.

The event dispatch chain is constructed by modifications to the provided initial event dispatch chain. The returned chain should have the initial chain at its end so the dispatchers should be prepended to the initial chain.

The caller shouldn't assume that the initial chain remains unchanged nor that the returned value will reference a different chain.

Annotations
@Override
handleFocusback to summary
public void handleFocus(boolean b)