|
|||||||||||
| 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
Base class for number properties.
| 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)
Returns true if the value can be assigned to this property. |
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 |
| 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 NumberProperty(PropertyGroup group,
String name,
Class cl,
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 property| Method Detail |
public int getPreferredDigitCount()
public long getMinValue()
public long getMaxValue()
public long getLongValue(Object valueContainer)
valueContainer - the value container
public boolean canBeAssiged(Object value)
Property
canBeAssiged in interface PropertycanBeAssiged in class AbstractProperty
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||