APIdia Launch Partner
Top Fields Constructors Methods
com.sun.javafx.scene.control

public Class IntegerField

extends InputField
Class Inheritance
Imports
javafx.beans.property.IntegerProperty, .SimpleIntegerProperty, javafx.scene.control.Skin, com.sun.javafx.scene.control.skin.IntegerFieldSkin

Field Summary

Modifier and TypeField and Description
private IntegerProperty
private IntegerProperty
value

The value of the IntegerField.

Inherited from com.sun.javafx.scene.control.InputField:
DEFAULT_PREF_COLUMN_COUNT

Constructor Summary

AccessConstructor and Description
public
IntegerField()

Creates a new IntegerField.

public
IntegerField(int maxVal)

Method Summary

Modifier and TypeMethod and Description
protected Skin<?>
createDefaultSkin()

Overrides javafx.scene.control.Control.createDefaultSkin.

Create a new instance of the default skin for this control.

public final int
public final int
public final IntegerProperty
public final void
setMaxValue(int maxVal)

public final void
setValue(int value)

public final IntegerProperty
Inherited from com.sun.javafx.scene.control.InputField:
editablePropertygetOnActiongetPrefColumnCountgetPromptTextisEditableonActionPropertyprefColumnCountPropertypromptTextPropertysetEditablesetOnActionsetPrefColumnCountsetPromptText

Field Detail

maxValueback to summary
private IntegerProperty maxValue
valueback to summary
private IntegerProperty value

The value of the IntegerField. If null, the value will be treated as "0", but will still actually be null.

Constructor Detail

IntegerFieldback to summary
public IntegerField()

Creates a new IntegerField. The style class is set to "money-field".

IntegerFieldback to summary
public IntegerField(int maxVal)

Method Detail

createDefaultSkinback to summary
protected Skin<?> createDefaultSkin()

Overrides javafx.scene.control.Control.createDefaultSkin.

Doc from javafx.scene.control.Control.createDefaultSkin.

Create a new instance of the default skin for this control. This is called to create a skin for the control if no skin is provided via CSS -fx-skin or set explicitly in a sub-class with setSkin(...).

Annotations
@Override
getMaxValueback to summary
public final int getMaxValue()
getValueback to summary
public final int getValue()
maxValuePropertyback to summary
public final IntegerProperty maxValueProperty()
setMaxValueback to summary
public final void setMaxValue(int maxVal)
setValueback to summary
public final void setValue(int value)
valuePropertyback to summary
public final IntegerProperty valueProperty()