T - The type of the property of the OptionBase valueOption<T>public class DefaultOption<T> extends OptionBase<T>
OptionBase for use in the
SettingsPane control based on the
given property.
When an T value is passed, based on the type of that value, a Property is created
and based on it, a proper editor will be selected.
Developers can override this, and provide their own editorOptionBase,
SettingsPane| Type | Property | Description |
|---|---|---|
javafx.beans.property.Property<T> |
value |
Returns the underlying
Property, where one exists,
that the editor can monitor for changes. |
editorFactory, idcaption, category, children, description, editorFactory, extendedDescription, graphic, isEditable, layout, stringConverter, value| Constructor | Description |
|---|---|
DefaultOption(java.lang.String caption) |
Creates an option instance, without graphic and without editor.
|
DefaultOption(java.lang.String caption,
java.lang.String description,
java.lang.String category) |
Creates an option instance, without graphic and without editor, intended
to open a new view with a new group of sub-options, that are set calling
Option.getChildren() |
DefaultOption(java.lang.String caption,
java.lang.String description,
java.lang.String category,
T value,
boolean isEditable) |
Creates an option instance, without graphic and with default editor, based on the
values set for the option
|
DefaultOption(java.lang.String caption,
java.lang.String description,
java.lang.String category,
T value,
boolean isEditable,
java.util.function.Function<Option<T>,OptionEditor<T>> editorFactory) |
Creates an option instance, without graphic and with custom editor, based on the
values set for the option
|
DefaultOption(javafx.scene.Node graphic,
java.lang.String caption,
java.lang.String description,
java.lang.String category) |
Creates an option instance, with graphic and without editor, intended
to open a new view with a new group of sub-options, that are set calling
Option.getChildren() |
DefaultOption(javafx.scene.Node graphic,
java.lang.String caption,
java.lang.String description,
java.lang.String category,
T value,
boolean isEditable) |
Creates an option instance, with graphic and with default editor, based on the
values set for the option
|
DefaultOption(javafx.scene.Node graphic,
java.lang.String caption,
java.lang.String description,
java.lang.String category,
T value,
boolean isEditable,
java.util.function.Function<Option<T>,OptionEditor<T>> editorFactory) |
Creates an option instance, with graphic and with custom editor, based on the
values set for the option
|
| Modifier and Type | Method | Description |
|---|---|---|
javafx.beans.property.Property<T> |
valueProperty() |
Returns the underlying
Property, where one exists,
that the editor can monitor for changes. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waiteditorFactoryProperty, getCaption, getCategory, getChildren, getDescription, getExtendedDescription, getGraphic, getId, getLayout, getStringConverter, idProperty, isEditable, setExtendedDescription, setId, setLayout, setStringConverter, valuePropertypublic javafx.beans.property.Property<T> valueProperty
Property, where one exists,
that the editor can monitor for changes.valueProperty in interface Option<T>valueProperty in class OptionBase<T>Property of type Tpublic DefaultOption(java.lang.String caption)
Option.SEPARATOR will create a Separator. Otherwise
it will create an empty optioncaption - a String, usually Option.SEPARATORpublic DefaultOption(java.lang.String caption,
java.lang.String description,
java.lang.String category)
Option.getChildren()caption - a String a short namedescription - a String more descriptivecategory - a String indicating the category, in case the option
belongs to a grouppublic DefaultOption(javafx.scene.Node graphic,
java.lang.String caption,
java.lang.String description,
java.lang.String category)
Option.getChildren()graphic - a Node with a graphiccaption - a String a short namedescription - a String more descriptivecategory - a String indicating the category, in case the option
belongs to a grouppublic DefaultOption(java.lang.String caption,
java.lang.String description,
java.lang.String category,
T value,
boolean isEditable)
caption - a String a short namedescription - a String more descriptivecategory - a String indicating the category, in case the option
belongs to a groupvalue - the underlying Property
that the editor can monitor for changesisEditable - if the option is editable or read-onlypublic DefaultOption(java.lang.String caption,
java.lang.String description,
java.lang.String category,
T value,
boolean isEditable,
java.util.function.Function<Option<T>,OptionEditor<T>> editorFactory)
caption - a String a short namedescription - a String more descriptivecategory - a String indicating the category, in case the option
belongs to a groupvalue - the underlying Property
that the editor can monitor for changesisEditable - if the option is editable or read-onlyeditorFactory - a Function that returns a valid
OptionEditor for editing this Optionpublic DefaultOption(javafx.scene.Node graphic,
java.lang.String caption,
java.lang.String description,
java.lang.String category,
T value,
boolean isEditable)
graphic - a Node with a graphiccaption - a String a short namedescription - a String more descriptivecategory - a String indicating the category, in case the option
belongs to a groupvalue - the underlying Property
that the editor can monitor for changesisEditable - if the option is editable or read-onlypublic DefaultOption(javafx.scene.Node graphic,
java.lang.String caption,
java.lang.String description,
java.lang.String category,
T value,
boolean isEditable,
java.util.function.Function<Option<T>,OptionEditor<T>> editorFactory)
graphic - a Node with a graphiccaption - a String a short namedescription - a String more descriptivecategory - a String indicating the category, in case the option
belongs to a groupvalue - the underlying Property
that the editor can monitor for changesisEditable - if the option is editable or read-onlyeditorFactory - a Function that returns a valid
OptionEditor for editing this Optionpublic javafx.beans.property.Property<T> valueProperty()
Property, where one exists,
that the editor can monitor for changes.valueProperty in interface Option<T>valueProperty in class OptionBase<T>Property of type T