net.infonode.properties.types
public class IntegerProperty extends NumberProperty
Version: $Revision: 1.4 $
Constructor Summary | |
---|---|
IntegerProperty(PropertyGroup group, String name, String description, PropertyValueHandler valueHandler)
Constructor.
| |
IntegerProperty(PropertyGroup group, String name, String description, int min, int max, int preferredDigitCount, PropertyValueHandler valueHandler)
Constructor.
|
Method Summary | |
---|---|
static IntegerProperty | createPositive(PropertyGroup group, String name, String description, int preferredDigitCount, PropertyValueHandler valueHandler)
Creates an integer property that can only be set to zero and positive integers.
|
int | get(Object valueContainer)
Returns the integer value of this property in a value container.
|
void | set(Object valueContainer, int value)
Sets the integer value of this property in a value container.
|
Parameters: group the property group name the property name description the property description valueHandler handles values for this property
Parameters: group the property group name the property name description the property description min the smallest value that this property can have max 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: group the property group name the property name description the property description preferredDigitCount the preferred number of digits to allocate space for in an editor for a property value valueHandler handles values for this property
Returns: an an integer property that can only be set to zero and positive integers
Parameters: valueContainer the value container
Returns: the integer value of this property
Parameters: valueContainer the value container value the float value