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 texteventHandler - the value of the property onActionCheckBox 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 texteventHandler - the value of the property onActionisSelected - the value of the property selectedCheckBox 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 texteventHandler - the value of the property onActionCheckMenuItem 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 texteventHandler - the value of the property onActionisSelected - the value of the property selectedCheckMenuItem instancepublic static javafx.scene.control.Menu newMenu(java.lang.String text,
javafx.scene.control.MenuItem... menuItems)
Menu instance.text - the value of the property textmenuItems - the MenuItems 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 texteventHandler - the value of the property onActionMenuItem 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 texteventHandler - the value of the property onActiontoggleGroup - a ToggleGroupisSelected - 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 minmax - the value of the property maxvalue - the value of the property valueblockIncrement - the value of the property blockIncrementmajorTickUnit - the value of the property majorTickUnitshowTickLabels - the value of the property showTickLabelsshowTickMarks - the value of the property showTickMarkssnapToTicks - the value of the property snapToTickschangeListener - a ChangeListenerSlider instance