Package net.infonode.properties.types
Class EnumProperty
java.lang.Object
net.infonode.properties.util.AbstractProperty
net.infonode.properties.util.ValueHandlerProperty
net.infonode.properties.types.EnumProperty
- All Implemented Interfaces:
Property
- Direct Known Subclasses:
AlignmentProperty,DirectionProperty,TabAreaVisiblePolicyProperty,TabbedPanelHoverPolicyProperty,TabDepthOrderPolicyProperty,TabDropDownListVisiblePolicyProperty,TabLayoutPolicyProperty,TabSelectTriggerProperty,TitledTabBorderSizePolicyProperty,TitledTabSizePolicyProperty
A property which value is one in a fixed set of values.
-
Constructor Summary
ConstructorsConstructorDescriptionEnumProperty(PropertyGroup group, String name, Class type, String description, PropertyValueHandler valueHandler, Object[] validValues) Constructor. -
Method Summary
Methods inherited from class net.infonode.properties.util.ValueHandlerProperty
removeValue, valueIsRemovable, valueIsSetMethods inherited from class net.infonode.properties.util.AbstractProperty
canBeAssiged, getDescription, getGroup, getName, getType, isMutable, toString
-
Constructor Details
-
EnumProperty
public EnumProperty(PropertyGroup group, String name, Class type, String description, PropertyValueHandler valueHandler, Object[] validValues) Constructor.- Parameters:
group- the property groupname- the property nametype- the property typedescription- the property descriptionvalueHandler- handles values for this propertyvalidValues- valid values for this property
-
-
Method Details
-
setValue
Description copied from interface:PropertySets the value of this property in an object.- Specified by:
setValuein interfaceProperty- Overrides:
setValuein classValueHandlerProperty- Parameters:
object- the object to set the property value invalue- the value of the property
-
getValidValues
Returns the valid values for this property.- Returns:
- the valid values for this property
-
getValue
Description copied from interface:PropertyReturns the value of this property in a value container.- Specified by:
getValuein interfaceProperty- Overrides:
getValuein classValueHandlerProperty- Parameters:
object- the object containing the value- Returns:
- the value of this property in an valueContainer, null if the container doesn't contain the value
-