public class EnumProperty extends ValueHandlerProperty
Constructor and Description |
---|
EnumProperty(PropertyGroup group,
java.lang.String name,
java.lang.Class type,
java.lang.String description,
PropertyValueHandler valueHandler,
java.lang.Object[] validValues)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object[] |
getValidValues()
Returns the valid values for this property.
|
java.lang.Object |
getValue(java.lang.Object object)
Returns the value of this property in a value container.
|
void |
setValue(java.lang.Object object,
java.lang.Object value)
Sets the value of this property in an object.
|
removeValue, valueIsRemovable, valueIsSet
canBeAssiged, getDescription, getGroup, getName, getType, isMutable, toString
public EnumProperty(PropertyGroup group, java.lang.String name, java.lang.Class type, java.lang.String description, PropertyValueHandler valueHandler, java.lang.Object[] validValues)
group
- the property groupname
- the property nametype
- the property typedescription
- the property descriptionvalueHandler
- handles values for this propertyvalidValues
- valid values for this propertypublic void setValue(java.lang.Object object, java.lang.Object value)
Property
setValue
in interface Property
setValue
in class ValueHandlerProperty
object
- the object to set the property value invalue
- the value of the propertypublic java.lang.Object[] getValidValues()
public java.lang.Object getValue(java.lang.Object object)
Property
getValue
in interface Property
getValue
in class ValueHandlerProperty
object
- the object containing the value