T
- the type of the value being configuredpublic final class Setting<T>
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDescription() |
java.lang.String |
getName() |
javafx.beans.property.Property<T> |
getProperty() |
static <T> Setting<T> |
of(java.lang.String name,
javafx.beans.property.Property<T> property)
Creates a new setting with no description.
|
static <T> Setting<T> |
of(java.lang.String name,
java.lang.String description,
javafx.beans.property.Property<T> property)
Creates a new setting.
|
public static <T> Setting<T> of(java.lang.String name, java.lang.String description, javafx.beans.property.Property<T> property)
T
- the type of the value to configurename
- the name of the setting. This cannot be null or emptydescription
- a description of the setting. This may be null or emptyproperty
- the property to configurepublic static <T> Setting<T> of(java.lang.String name, javafx.beans.property.Property<T> property)
T
- the type of the value to configurename
- the name of the settingproperty
- the property to configurepublic javafx.beans.property.Property<T> getProperty()
public java.lang.String getName()
public java.lang.String getDescription()