net.infonode.properties.types
public class NumberProperty extends ValueHandlerProperty
Version: $Revision: 1.4 $
Constructor Summary | |
---|---|
NumberProperty(PropertyGroup group, String name, Class cl, String description, long minValue, long maxValue, int preferredDigitCount, PropertyValueHandler valueHandler)
Constructor.
|
Method Summary | |
---|---|
boolean | canBeAssiged(Object value) |
long | getLongValue(Object valueContainer)
Returns the long value of this property in a value container.
|
long | getMaxValue()
Returns the largest value that this property can have.
|
long | getMinValue()
Returns the smallest value that this property can have.
|
int | getPreferredDigitCount()
Returns the preferred number of digits to allocate space for in an editor for a property value
|
Parameters: group the property group name the property name cl the property type description the property description minValue the smallest value that this property can have maxValue the largest value that this property can have preferredDigitCount the preferred number of digits to allocate space for in an editor for a property value valueHandler handles values for this property
Parameters: valueContainer the value container
Returns: the long value of this property
Returns: the largest value that this property can have
Returns: the smallest value that this property can have
Returns: the preferred number of digits to allocate space for in an editor for a property value