|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.infonode.properties.util.AbstractProperty net.infonode.properties.util.ValueHandlerProperty net.infonode.properties.types.NumberProperty
public class NumberProperty
Base class for number properties.
Field Summary | |
---|---|
private long |
maxValue
|
private long |
minValue
|
private int |
preferredDigitCount
|
Constructor Summary | |
---|---|
NumberProperty(PropertyGroup group,
java.lang.String name,
java.lang.Class cl,
java.lang.String description,
long minValue,
long maxValue,
int preferredDigitCount,
PropertyValueHandler valueHandler)
Constructor. |
Method Summary | |
---|---|
boolean |
canBeAssiged(java.lang.Object value)
Returns true if the value can be assigned to this property. |
long |
getLongValue(java.lang.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 |
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 |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private long minValue
private long maxValue
private int preferredDigitCount
Constructor Detail |
---|
public NumberProperty(PropertyGroup group, java.lang.String name, java.lang.Class cl, java.lang.String description, long minValue, long maxValue, int preferredDigitCount, PropertyValueHandler valueHandler)
group
- the property groupname
- the property namecl
- the property typedescription
- the property descriptionminValue
- the smallest value that this property can havemaxValue
- 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 int getPreferredDigitCount()
public long getMinValue()
public long getMaxValue()
public long getLongValue(java.lang.Object valueContainer)
valueContainer
- the value container
public boolean canBeAssiged(java.lang.Object value)
Property
canBeAssiged
in interface Property
canBeAssiged
in class AbstractProperty
value
- the value to assign
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |