|
|||||||||||
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
A property which value is one in a fixed set of values.
Constructor Summary | |
EnumProperty(PropertyGroup group,
String name,
Class type,
String description,
PropertyValueHandler valueHandler,
Object[] validValues)
Constructor. |
Method Summary | |
Object[] |
getValidValues()
Returns the valid values for this property. |
Object |
getValue(Object object)
Returns the value of this property in a value container. |
void |
setValue(Object object,
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 |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public EnumProperty(PropertyGroup group, String name, Class type, String description, PropertyValueHandler valueHandler, 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(Object object, Object value)
Property
setValue
in interface Property
setValue
in class ValueHandlerProperty
public Object[] getValidValues()
public Object getValue(Object object)
Property
getValue
in interface Property
getValue
in class ValueHandlerProperty
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |