T - The type of the property being edited.C - The type of Node that is used to edit this property.public abstract class AbstractPropertyEditor<T,C extends javafx.scene.Node> extends java.lang.Object implements PropertyEditor<T>
PropertyEditor interface.| Constructor and Description |
|---|
AbstractPropertyEditor(PropertySheet.Item property,
C control)
Creates an editable AbstractPropertyEditor instance for the given property
using the given editing control.
|
AbstractPropertyEditor(PropertySheet.Item property,
C control,
boolean readonly)
Creates an AbstractPropertyEditor instance for the given property
using the given editing control.
|
| Modifier and Type | Method and Description |
|---|---|
C |
getEditor()
Returns the editor responsible for editing this property.
|
protected abstract javafx.beans.value.ObservableValue<T> |
getObservableValue()
Returns an
ObservableValue of the property that this property
editor is responsible for editing. |
PropertySheet.Item |
getProperty()
Returns the property that this property editor is responsible for editing.
|
T |
getValue()
Returns the current value in the editor - this may not be the value of
the property itself!
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetValuepublic AbstractPropertyEditor(PropertySheet.Item property, C control)
property - The property that the instance is responsible for editing.control - The control that is responsible for editing the property.public AbstractPropertyEditor(PropertySheet.Item property, C control, boolean readonly)
property - The property that the instance is responsible for editing.control - The control that is responsible for editing the property.readonly - Specifies whether the editor should allow input or not.protected abstract javafx.beans.value.ObservableValue<T> getObservableValue()
ObservableValue of the property that this property
editor is responsible for editing. This is the editor's value, e.g. a
TextField's textProperty().public final PropertySheet.Item getProperty()
public C getEditor()
getEditor in interface PropertyEditor<T>public T getValue()
getValue in interface PropertyEditor<T>