Top Description Fields Constructors Methods
org.controlsfx.property.editor

public abstract Class AbstractPropertyEditor<T, C extends Node>

extends Object
implements PropertyEditor<T>
Class Inheritance
All Implemented Interfaces
org.controlsfx.property.editor.PropertyEditor
Type Parameters
<T>
The type of the property being edited.
<C>
The type of Node that is used to edit this property.
Imports
javafx.beans.value.ObservableValue, javafx.scene.Node, org.controlsfx.control.PropertySheet.Item

An abstract implementation of the PropertyEditor interface.

Field Summary

Modifier and TypeField and Description
private final C
private final PropertySheet.Item
property

Private fields

private boolean

Constructor Summary

AccessConstructor and Description
public
AbstractPropertyEditor(PropertySheet.Item
The property that the instance is responsible for editing.
property
,
C
The control that is responsible for editing the property.
control
)

Creates an editable AbstractPropertyEditor instance for the given property using the given editing control.

public
AbstractPropertyEditor(PropertySheet.Item
The property that the instance is responsible for editing.
property
,
C
The control that is responsible for editing the property.
control
,
boolean
Specifies whether the editor should allow input or not.
readonly
)

Creates an AbstractPropertyEditor instance for the given property using the given editing control.

Method Summary

Modifier and TypeMethod and Description
public C
getEditor()

Implements org.controlsfx.property.editor.PropertyEditor.getEditor.

Returns the editor responsible for editing this property.

protected abstract ObservableValue<T>
getObservableValue()

Returns an ObservableValue of the property that this property editor is responsible for editing.

public final PropertySheet.Item
getProperty()

Returns the property that this property editor is responsible for editing.

public T
getValue()

Implements org.controlsfx.property.editor.PropertyEditor.getValue.

Returns the current value in the editor - this may not be the value of the property itself!

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

controlback to summary
private final C control
propertyback to summary
private final PropertySheet.Item property

Private fields

suspendUpdateback to summary
private boolean suspendUpdate

Constructor Detail

AbstractPropertyEditorback to summary
public AbstractPropertyEditor(PropertySheet.Item property, C control)

Creates an editable AbstractPropertyEditor instance for the given property using the given editing control.

Parameters
property:PropertySheet.Item

The property that the instance is responsible for editing.

control:C

The control that is responsible for editing the property.

AbstractPropertyEditorback to summary
public AbstractPropertyEditor(PropertySheet.Item property, C control, boolean readonly)

Creates an AbstractPropertyEditor instance for the given property using the given editing control. It may be read-only or editable, based on the readonly boolean parameter being true or false.

Parameters
property:PropertySheet.Item

The property that the instance is responsible for editing.

control:C

The control that is responsible for editing the property.

readonly:boolean

Specifies whether the editor should allow input or not.

Method Detail

getEditorback to summary
public C getEditor()

Implements org.controlsfx.property.editor.PropertyEditor.getEditor.

Doc from org.controlsfx.property.editor.PropertyEditor.getEditor.

Returns the editor responsible for editing this property.

Annotations
@Override
getObservableValueback to summary
protected abstract ObservableValue<T> getObservableValue()

Returns an ObservableValue of the property that this property editor is responsible for editing. This is the editor's value, e.g. a TextField's textProperty().

getPropertyback to summary
public final PropertySheet.Item getProperty()

Returns the property that this property editor is responsible for editing.

getValueback to summary
public T getValue()

Implements org.controlsfx.property.editor.PropertyEditor.getValue.

Doc from org.controlsfx.property.editor.PropertyEditor.getValue.

Returns the current value in the editor - this may not be the value of the property itself!

Annotations
@Override