T
- public abstract class AbstractNumericProperty<T> extends AbstractScalarProperty<T> implements NumericPropertyDescriptor<T>
Modifier and Type | Field and Description |
---|---|
static java.util.Map<java.lang.String,java.lang.Boolean> |
numberFieldTypesByKey |
Modifier | Constructor and Description |
---|---|
protected |
AbstractNumericProperty(java.lang.String theName,
java.lang.String theDescription,
java.lang.Number lower,
java.lang.Number upper,
T theDefault,
float theUIOrder) |
Modifier and Type | Method and Description |
---|---|
protected void |
addAttributesTo(java.util.Map<java.lang.String,java.lang.String> attributes)
Method addAttributesTo.
|
protected java.lang.String |
defaultAsString() |
java.lang.Number |
lowerLimit()
Returns the minimum value that instances of the property can have
|
java.lang.String |
rangeString() |
java.lang.Number |
upperLimit()
Returns the maximum value that instances of the property can have
|
protected java.lang.String |
valueErrorFor(java.lang.Object value)
Returns a string describing any error the value may have when
characterized by the receiver.
|
arrayFor, createFrom, valueFrom
areEqual, asDelimitedString, asDelimitedString, asString, attributeValuesById, choices, compareTo, defaultHasNullValue, defaultValue, description, equals, errorFor, hashCode, isArray, isMultiValue, isRequired, multiValueDelimiter, name, preferredRowCount, propertyErrorFor, toString, typeErrorFor, uiOrder, valuesErrorFor
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
asDelimitedString, attributeValuesById, choices, defaultValue, description, errorFor, isMultiValue, isRequired, multiValueDelimiter, name, preferredRowCount, propertyErrorFor, type, uiOrder, valueFrom
public static final java.util.Map<java.lang.String,java.lang.Boolean> numberFieldTypesByKey
protected AbstractNumericProperty(java.lang.String theName, java.lang.String theDescription, java.lang.Number lower, java.lang.Number upper, T theDefault, float theUIOrder)
theName
- theDescription
- lower
- upper
- theDefault
- theUIOrder
- java.lang.IllegalArgumentException
public java.lang.Number lowerLimit()
lowerLimit
in interface NumericPropertyDescriptor<T>
NumericPropertyDescriptor.lowerLimit()
protected java.lang.String defaultAsString()
defaultAsString
in class AbstractProperty<T>
public java.lang.Number upperLimit()
upperLimit
in interface NumericPropertyDescriptor<T>
NumericPropertyDescriptor.upperLimit()
public java.lang.String rangeString()
protected java.lang.String valueErrorFor(java.lang.Object value)
valueErrorFor
in class AbstractProperty<T>
value
- Objectprotected void addAttributesTo(java.util.Map<java.lang.String,java.lang.String> attributes)
addAttributesTo
in class AbstractProperty<T>
attributes
- MapCopyright © 2002-2014 InfoEther. All Rights Reserved.