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, valueIsSetcanBeAssiged, getDescription, getGroup, getName, getType, isMutable, toStringpublic 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)
PropertysetValue in interface PropertysetValue in class ValueHandlerPropertyobject - 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)
PropertygetValue in interface PropertygetValue in class ValueHandlerPropertyobject - the object containing the value