Package net.infonode.properties.util
Class ValueHandlerProperty
java.lang.Object
net.infonode.properties.util.AbstractProperty
net.infonode.properties.util.ValueHandlerProperty
- All Implemented Interfaces:
Property
- Direct Known Subclasses:
BooleanProperty,BorderProperty,ButtonFactoryProperty,ColorProperty,ComponentPainterProperty,DimensionProviderProperty,DockingWindowActionProperty,DockingWindowTitleProviderProperty,DropFilterProperty,EnumProperty,FloatProperty,FontProperty,HoverListenerProperty,IconProperty,InsetsProperty,NumberProperty,PropertyGroupProperty,StringProperty
Base class for properties that use a
PropertyValueHandler.-
Constructor Summary
ConstructorsConstructorDescriptionValueHandlerProperty(PropertyGroup group, String name, Class type, String description, PropertyValueHandler valueHandler) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of this property in a value container.voidremoveValue(Object object) Removes the value of this property from an valueContainer.voidSets the value of this property in an object.booleanvalueIsRemovable(Object object) Returns true if the value of this property can be removed from the valueContainer.booleanvalueIsSet(Object object) Returns true if this property has a value in the valueContainer.Methods inherited from class net.infonode.properties.util.AbstractProperty
canBeAssiged, getDescription, getGroup, getName, getType, isMutable, toString
-
Constructor Details
-
ValueHandlerProperty
public ValueHandlerProperty(PropertyGroup group, String name, Class type, String description, PropertyValueHandler valueHandler) Constructor.- Parameters:
group- the property groupname- the property nametype- the property typedescription- the property descriptionvalueHandler- handles 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 classAbstractProperty- Parameters:
object- the object to set the property value invalue- the value of the property
-
getValue
Description copied from interface:PropertyReturns the value of this property in a value container.- 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
-
valueIsRemovable
Description copied from interface:PropertyReturns true if the value of this property can be removed from the valueContainer.- Parameters:
object- the object from which to remove the value- Returns:
- true if the value of this property can be removed from the valueContainer
-
removeValue
Description copied from interface:PropertyRemoves the value of this property from an valueContainer.- Parameters:
object- the object in which to remove the value
-
valueIsSet
Description copied from interface:PropertyReturns true if this property has a value in the valueContainer.- Parameters:
object- the object that might contain the value- Returns:
- true if this property has a value in the valueContainer
-