|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.infonode.properties.util.AbstractProperty
net.infonode.properties.util.ValueHandlerProperty
net.infonode.properties.types.NumberProperty
net.infonode.properties.types.IntegerProperty
An integer property.
Constructor Summary | |
IntegerProperty(PropertyGroup group,
String name,
String description,
int min,
int max,
int preferredDigitCount,
PropertyValueHandler valueHandler)
Constructor. |
|
IntegerProperty(PropertyGroup group,
String name,
String description,
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. |
Methods inherited from class net.infonode.properties.types.NumberProperty |
canBeAssiged, getLongValue, getMaxValue, getMinValue, getPreferredDigitCount |
Methods inherited from class net.infonode.properties.util.ValueHandlerProperty |
getValue, removeValue, setValue, valueIsRemovable, valueIsSet |
Methods inherited from class net.infonode.properties.util.AbstractProperty |
getDescription, getGroup, getName, getType, isMutable, toString |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public IntegerProperty(PropertyGroup group, String name, String description, PropertyValueHandler valueHandler)
group
- the property groupname
- the property namedescription
- the property descriptionvalueHandler
- handles values for this propertypublic IntegerProperty(PropertyGroup group, String name, 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 propertyMethod Detail |
public static IntegerProperty createPositive(PropertyGroup group, String name, 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 property
public int get(Object valueContainer)
valueContainer
- the value container
public void set(Object valueContainer, int value)
valueContainer
- the value containervalue
- the float value
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |