public final class JavaFX
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static javafx.scene.control.CheckBox |
newCheckBox(java.lang.String text,
javafx.event.EventHandler<javafx.event.ActionEvent> eventHandler)
Returns a new
CheckBox instance. |
static javafx.scene.control.CheckBox |
newCheckBox(java.lang.String text,
javafx.event.EventHandler<javafx.event.ActionEvent> eventHandler,
boolean isSelected)
Returns a new
CheckBox instance. |
static javafx.scene.control.CheckMenuItem |
newCheckMenuItem(java.lang.String text,
javafx.event.EventHandler<javafx.event.ActionEvent> eventHandler)
Returns a new
CheckMenuItem instance. |
static javafx.scene.control.CheckMenuItem |
newCheckMenuItem(java.lang.String text,
javafx.event.EventHandler<javafx.event.ActionEvent> eventHandler,
boolean isSelected)
Returns a new
CheckMenuItem instance. |
static javafx.scene.control.Menu |
newMenu(java.lang.String text,
javafx.scene.control.MenuItem... menuItems)
Returns a new
Menu instance. |
static javafx.scene.control.MenuItem |
newMenuItem(java.lang.String text,
javafx.event.EventHandler<javafx.event.ActionEvent> eventHandler)
Returns a new
MenuItem instance. |
static javafx.scene.control.RadioMenuItem |
newRadioMenuItem(java.lang.String text,
javafx.event.EventHandler<javafx.event.ActionEvent> eventHandler,
javafx.scene.control.ToggleGroup toggleGroup,
boolean isSelected)
Returns a new
RadioMenuItem instance. |
static javafx.scene.layout.Region |
newRegion(double top,
double right,
double bottom,
double left)
Returns a new
Region instance. |
static javafx.scene.control.Slider |
newSlider(double min,
double max,
double value,
double blockIncrement,
double majorTickUnit,
boolean showTickLabels,
boolean showTickMarks,
boolean snapToTicks,
javafx.beans.value.ChangeListener<? super java.lang.Number> changeListener)
Returns a new
Slider instance. |
public static javafx.scene.control.CheckBox newCheckBox(java.lang.String text, javafx.event.EventHandler<javafx.event.ActionEvent> eventHandler)
CheckBox
instance.
Calling this method is equivalent to newCheckBox(text, eventHandler, false)
.
text
- the value of the property text
eventHandler
- the value of the property onAction
CheckBox
instancepublic static javafx.scene.control.CheckBox newCheckBox(java.lang.String text, javafx.event.EventHandler<javafx.event.ActionEvent> eventHandler, boolean isSelected)
CheckBox
instance.text
- the value of the property text
eventHandler
- the value of the property onAction
isSelected
- the value of the property selected
CheckBox
instancepublic static javafx.scene.control.CheckMenuItem newCheckMenuItem(java.lang.String text, javafx.event.EventHandler<javafx.event.ActionEvent> eventHandler)
CheckMenuItem
instance.
Calling this method is equivalent to newCheckMenuItem(text, eventHandler, false)
.
text
- the value of the property text
eventHandler
- the value of the property onAction
CheckMenuItem
instancepublic static javafx.scene.control.CheckMenuItem newCheckMenuItem(java.lang.String text, javafx.event.EventHandler<javafx.event.ActionEvent> eventHandler, boolean isSelected)
CheckMenuItem
instance.text
- the value of the property text
eventHandler
- the value of the property onAction
isSelected
- the value of the property selected
CheckMenuItem
instancepublic static javafx.scene.control.Menu newMenu(java.lang.String text, javafx.scene.control.MenuItem... menuItems)
Menu
instance.text
- the value of the property text
menuItems
- the MenuItem
s to addMenu
instancepublic static javafx.scene.control.MenuItem newMenuItem(java.lang.String text, javafx.event.EventHandler<javafx.event.ActionEvent> eventHandler)
MenuItem
instance.text
- the value of the property text
eventHandler
- the value of the property onAction
MenuItem
instancepublic static javafx.scene.control.RadioMenuItem newRadioMenuItem(java.lang.String text, javafx.event.EventHandler<javafx.event.ActionEvent> eventHandler, javafx.scene.control.ToggleGroup toggleGroup, boolean isSelected)
RadioMenuItem
instance.text
- the value of the property text
eventHandler
- the value of the property onAction
toggleGroup
- a ToggleGroup
isSelected
- true
if, and only if, the RadioMenuItem
Toggle
should be selected, false
otherwiseRadioMenuItem
instancepublic static javafx.scene.layout.Region newRegion(double top, double right, double bottom, double left)
Region
instance.top
- the top offsetright
- the right offsetbottom
- the bottom offsetleft
- the left offsetRegion
instancepublic static javafx.scene.control.Slider newSlider(double min, double max, double value, double blockIncrement, double majorTickUnit, boolean showTickLabels, boolean showTickMarks, boolean snapToTicks, javafx.beans.value.ChangeListener<? super java.lang.Number> changeListener)
Slider
instance.min
- the value of the property min
max
- the value of the property max
value
- the value of the property value
blockIncrement
- the value of the property blockIncrement
majorTickUnit
- the value of the property majorTickUnit
showTickLabels
- the value of the property showTickLabels
showTickMarks
- the value of the property showTickMarks
snapToTicks
- the value of the property snapToTicks
changeListener
- a ChangeListener
Slider
instance