|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.infonode.properties.util.AbstractProperty
net.infonode.properties.util.ValueHandlerProperty
net.infonode.properties.types.EnumProperty
public class EnumProperty
A property which value is one in a fixed set of values.
Constructor Summary | |
---|---|
EnumProperty(PropertyGroup group,
java.lang.String name,
java.lang.Class type,
java.lang.String description,
PropertyValueHandler valueHandler,
java.lang.Object[] validValues)
Constructor. |
Method Summary | |
---|---|
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. |
Methods inherited from class net.infonode.properties.util.ValueHandlerProperty |
---|
removeValue, valueIsRemovable, valueIsSet |
Methods inherited from class net.infonode.properties.util.AbstractProperty |
---|
canBeAssiged, getDescription, getGroup, getName, getType, isMutable, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
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 propertyMethod Detail |
---|
public 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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |