Class SimpleProperty<T>
- java.lang.Object
-
- com.macrofocus.properties.implementation.AbstractProperty<T>
-
- com.macrofocus.properties.implementation.AbstractMutableProperty<T>
-
- com.macrofocus.properties.implementation.SimpleProperty<T>
-
- Type Parameters:
T
- the type of elements that the property can hold
- All Implemented Interfaces:
MutableProperty<T>
,Property<T>
public class SimpleProperty<T> extends AbstractMutableProperty<T> implements MutableProperty<T>
Default data model a property.
-
-
Constructor Summary
Constructors Constructor Description SimpleProperty(T value)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description T
getValue()
static <T> SimpleProperty<T>
newInstance(T value)
void
setValue(T value)
java.lang.String
toString()
-
Methods inherited from class com.macrofocus.properties.implementation.AbstractMutableProperty
bind, bindBidirectional
-
Methods inherited from class com.macrofocus.properties.implementation.AbstractProperty
addPropertyListener, addWeakPropertyListener, notifyPropertyChanged, removePropertyListener
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.macrofocus.properties.MutableProperty
bind, bindBidirectional
-
Methods inherited from interface com.macrofocus.properties.Property
addPropertyListener, addWeakPropertyListener, removePropertyListener
-
-
-
-
Constructor Detail
-
SimpleProperty
public SimpleProperty(T value)
-
-
Method Detail
-
newInstance
public static <T> SimpleProperty<T> newInstance(T value)
-
setValue
public void setValue(T value)
- Specified by:
setValue
in interfaceMutableProperty<T>
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-