T - the type of the underlying Java objectV - the type of the propertypublic class SimpleProperty<T,V> extends ReadOnlyProperty<V> implements BackedProperty<T,V>
Property implementation backed by a Java object.
The Property is defined using a PropertyDef along with a PropertyExtractor
that is capable of reading the property's value from the underlying Java object.
SimpleContainer,
SimpleItem,
Serialized FormProperty.Editor, Property.ReadOnlyException, Property.ReadOnlyStatusChangeEvent, Property.ReadOnlyStatusChangeListener, Property.ReadOnlyStatusChangeNotifier, Property.Transactional<T>, Property.ValueChangeEvent, Property.ValueChangeListener, Property.ValueChangeNotifier, Property.Viewer| Constructor and Description |
|---|
SimpleProperty(T object,
PropertyDef<V> propertyDef,
PropertyExtractor<? super T> propertyExtractor)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
T |
getObject()
Retrieve the underlying Java object.
|
Class<V> |
getType() |
V |
getValue() |
addListener, addListener, addReadOnlyStatusChangeListener, addValueChangeListener, fireValueChange, firstListenerAdded, isReadOnly, lastListenerRemoved, removeListener, removeListener, removeReadOnlyStatusChangeListener, removeValueChangeListener, setReadOnly, setValueclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisReadOnly, setReadOnly, setValuepublic SimpleProperty(T object, PropertyDef<V> propertyDef, PropertyExtractor<? super T> propertyExtractor)
object - underlying Java objectpropertyDef - property definitionpropertyExtractor - extracts the property value from objectIllegalArgumentException - if any parameter is nullpublic T getObject()
BackedPropertygetObject in interface BackedProperty<T,V>Copyright © 2017. All rights reserved.