| net.infonode.properties.util.ValueHandlerProperty net.infonode.properties.types.FloatProperty
FloatProperty | public class FloatProperty extends ValueHandlerProperty (Code) | | A float property.
author: $Author: jesper $ version: $Revision: 1.5 $ |
Constructor Summary | |
public | FloatProperty(PropertyGroup group, String name, String description, PropertyValueHandler valueHandler) Constructor. | public | FloatProperty(PropertyGroup group, String name, String description, PropertyValueHandler valueHandler, float minValue, float maxValue) Constructor. | public | FloatProperty(PropertyGroup group, String name, String description, PropertyValueHandler valueHandler, float minValue, float maxValue, int preferredDigitCount, float preferredDelta) Constructor. |
Method Summary | |
public boolean | canBeAssiged(Object value) | public float | get(Object valueContainer) Returns the float value of this property in a value container. | public float | getMaxValue() Returns the largest value that this property can have. | public float | getMinValue() Returns the smallest value that this property can have. | public float | getPreferredDelta() Returns the preferred amount to increase and decrease a property value by. | public int | getPreferredDigitCount() Returns the preferred number of digits to allocate space for in an editor for a property value. | public void | set(Object valueContainer, float value) Sets the float value of this property in a value container. |
FloatProperty | public FloatProperty(PropertyGroup group, String name, String description, PropertyValueHandler valueHandler)(Code) | | Constructor.
Creates an unbounded float property.
Parameters: group - the property group Parameters: name - the property name Parameters: description - the property description Parameters: valueHandler - handles values for this property |
FloatProperty | public FloatProperty(PropertyGroup group, String name, String description, PropertyValueHandler valueHandler, float minValue, float maxValue)(Code) | | Constructor.
Parameters: group - the property group Parameters: name - the property name Parameters: description - the property description Parameters: valueHandler - handles values for this property Parameters: minValue - the smallest value that this property can have Parameters: maxValue - the largest value that this property can have |
FloatProperty | public FloatProperty(PropertyGroup group, String name, String description, PropertyValueHandler valueHandler, float minValue, float maxValue, int preferredDigitCount, float preferredDelta)(Code) | | Constructor.
Parameters: group - the property group Parameters: name - the property name Parameters: description - the property description Parameters: valueHandler - handles values for this property Parameters: minValue - the smallest value that this property can have Parameters: maxValue - the largest value that this property can have Parameters: preferredDigitCount - the preferred number of digits to allocate space for in an editor for a property value Parameters: preferredDelta - the preferred amount to increase and decrease a property value by |
get | public float get(Object valueContainer)(Code) | | Returns the float value of this property in a value container.
Parameters: valueContainer - the value container the float value of this property |
getMaxValue | public float getMaxValue()(Code) | | Returns the largest value that this property can have.
the largest value that this property can have |
getMinValue | public float getMinValue()(Code) | | Returns the smallest value that this property can have.
the smallest value that this property can have |
getPreferredDelta | public float getPreferredDelta()(Code) | | Returns the preferred amount to increase and decrease a property value by.
the preferred amount to increase and decrease a property value by |
getPreferredDigitCount | public int getPreferredDigitCount()(Code) | | Returns the preferred number of digits to allocate space for in an editor for a property value.
the preferred number of digits to allocate space for in an editor for a property value |
set | public void set(Object valueContainer, float value)(Code) | | Sets the float value of this property in a value container.
Parameters: valueContainer - the value container Parameters: value - the float value |
|
|