T
- The type of the property of the OptionBase valuepublic 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 and Description |
---|---|
javafx.beans.property.Property<T> |
value
Returns the underlying
Property , where one exists,
that the editor can monitor for changes. |
editorFactory, id
caption, category, children, description, editorFactory, extendedDescription, graphic, isEditable, layout, stringConverter, value
Constructor and Description |
---|
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
|
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
|
Modifier and Type | Method and Description |
---|---|
javafx.beans.property.Property<T> |
valueProperty()
Returns the underlying
Property , where one exists,
that the editor can monitor for changes. |
editorFactoryProperty, getCaption, getCategory, getChildren, getDescription, getExtendedDescription, getGraphic, getId, getLayout, getStringConverter, idProperty, isEditable, setExtendedDescription, setId, setLayout, setStringConverter, valueProperty
public 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.SEPARATOR
public 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 Option
public 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 Option
public 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