public class IntegerProperty extends NumberProperty
Constructor and Description |
---|
IntegerProperty(PropertyGroup group,
java.lang.String name,
java.lang.String description,
int min,
int max,
int preferredDigitCount,
PropertyValueHandler valueHandler)
Constructor.
|
IntegerProperty(PropertyGroup group,
java.lang.String name,
java.lang.String description,
PropertyValueHandler valueHandler)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
static IntegerProperty |
createPositive(PropertyGroup group,
java.lang.String name,
java.lang.String description,
int preferredDigitCount,
PropertyValueHandler valueHandler)
Creates an integer property that can only be set to zero and positive integers.
|
int |
get(java.lang.Object valueContainer)
Returns the integer value of this property in a value container.
|
void |
set(java.lang.Object valueContainer,
int value)
Sets the integer value of this property in a value container.
|
canBeAssiged, getLongValue, getMaxValue, getMinValue, getPreferredDigitCount
getValue, removeValue, setValue, valueIsRemovable, valueIsSet
getDescription, getGroup, getName, getType, isMutable, toString
public IntegerProperty(PropertyGroup group, java.lang.String name, java.lang.String description, PropertyValueHandler valueHandler)
group
- the property groupname
- the property namedescription
- the property descriptionvalueHandler
- handles values for this propertypublic IntegerProperty(PropertyGroup group, java.lang.String name, java.lang.String description, int min, int max, int preferredDigitCount, PropertyValueHandler valueHandler)
group
- the property groupname
- the property namedescription
- the property descriptionmin
- the smallest value that this property can havemax
- the largest value that this property can havepreferredDigitCount
- the preferred number of digits to allocate space for in an editor for a property valuevalueHandler
- handles values for this propertypublic static IntegerProperty createPositive(PropertyGroup group, java.lang.String name, java.lang.String description, int preferredDigitCount, PropertyValueHandler valueHandler)
group
- the property groupname
- the property namedescription
- the property descriptionpreferredDigitCount
- the preferred number of digits to allocate space for in an editor for a property valuevalueHandler
- handles values for this propertypublic int get(java.lang.Object valueContainer)
valueContainer
- the value containerpublic void set(java.lang.Object valueContainer, int value)
valueContainer
- the value containervalue
- the float value