abstract class InputFieldSkin extends java.lang.Object implements Skin<InputField>
| Modifier and Type | Class and Description |
|---|---|
private class |
InputFieldSkin.InnerTextField |
| Modifier and Type | Field and Description |
|---|---|
protected InputField |
control
The
Control that is referencing this Skin. |
private InvalidationListener |
InputFieldFocusListener |
private InvalidationListener |
InputFieldStyleClassListener |
private InputFieldSkin.InnerTextField |
textField
This textField is used to represent the InputField.
|
| Constructor and Description |
|---|
InputFieldSkin(InputField control)
Create a new InputFieldSkin.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract boolean |
accept(java.lang.String text) |
void |
dispose()
Called by a Skinnable when the Skin is replaced on the Skinnable.
|
Node |
getNode()
Gets the Node which represents this Skin.
|
InputField |
getSkinnable()
Gets the Skinnable to which this Skin is assigned.
|
protected TextField |
getTextField() |
protected abstract void |
updateText() |
protected abstract void |
updateValue() |
protected InputField control
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.private InputFieldSkin.InnerTextField textField
private InvalidationListener InputFieldFocusListener
private InvalidationListener InputFieldStyleClassListener
public InputFieldSkin(InputField control)
control - The InputFieldpublic InputField getSkinnable()
SkinSkin.dispose().
The caller who constructs a Skinnable must also construct a Skin and properly establish the relationship between the Control and its Skin.
getSkinnable in interface Skin<InputField>public Node getNode()
SkinSkin.dispose(), and must never change except when
changing to null.getNode in interface Skin<InputField>public void dispose()
getSkinnable() and getNode()
should return null following a call to dispose. Calling dispose twice
has no effect.dispose in interface Skin<InputField>protected abstract boolean accept(java.lang.String text)
protected abstract void updateText()
protected abstract void updateValue()
protected TextField getTextField()