public class Property<T,K> extends PropertyBase<T,K>
| Constructor and Description |
|---|
Property(String name)
Constructs a property with null value
|
Property(String name,
Class genericType)
Constructs a property with null value
|
Property(String name,
Class genericType,
T value)
Constructs a property with the given name and value
|
Property(String name,
T value)
Constructs a property with the given name and value
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj)
Compares this property to another property
|
T |
get()
Gets the property value
|
int |
hashCode()
Returns the internal hashcode or 0 for null property
|
K |
set(T value)
Sets the property value and potentially fires a change event
|
String |
toString()
Default toString that provides easier debug information
|
addChangeListener, bindGlobalGetListener, bindGlobalSetListener, firePropertyChanged, getClientProperty, getGenericType, getLabel, getName, putClientProperty, removeChangeListener, setLabel, stopListening, validateCollectionTypepublic Property(String name, T value)
name - the name of the propertyvalue - the default value for the propertypublic Property(String name, Class genericType, T value)
name - the name of the propertygenericType - the type of the propertyvalue - the default value for the propertypublic Property(String name)
name - the name of the propertypublic T get()
public K set(T value)
value - the new valuepublic boolean equals(Object obj)
equals in class PropertyBase<T,K>obj - the other propertypublic int hashCode()
public String toString()
PropertyBasetoString in class PropertyBase<T,K>