in the Authoring UI.
- See Also:
ContentComponent
|
Field Summary |
static int |
TYPE_DOUBLE
Type constant indicating that the Number returned will be a double. |
static int |
TYPE_INTEGER
Type constant indicating that the Number returned will be an integer. |
|
Method Summary |
java.lang.Number |
getNumber()
Returns the Number contained in this component as a Number. |
int |
getNumberType()
Returns the number type of this NumberComponent. |
void |
setNumber(java.lang.Number number)
Sets the Number contained in this NumericComponent. |
void |
setNumberType(int numberType)
Sets the Number Type contained in this NumericComponent. |
TYPE_INTEGER
public static final int TYPE_INTEGER
- Type constant indicating that the
Number returned will be an integer.
- See Also:
- Constant Field Values
TYPE_DOUBLE
public static final int TYPE_DOUBLE
- Type constant indicating that the
Number returned will be a double.
- See Also:
- Constant Field Values
getNumber
public java.lang.Number getNumber()
- Returns the Number contained in this component as a
Number.
Returns null if the Number is not set.
- Returns:
- the Number
setNumber
public void setNumber(java.lang.Number number)
throws OperationFailedException
- Sets the Number contained in this
NumericComponent.
Note. This method replaces any existing Number in this component.
- Parameters:
number - the Number
- Throws:
OperationFailedException - if the Number argument is null or the
Number could not be set
getNumberType
public int getNumberType()
- Returns the number type of this
NumberComponent.
Returns the default value NumericComponent.TYPE_INTEGER if the new number type has been set.
- Returns:
- the number type
setNumberType
public void setNumberType(int numberType)
throws OperationFailedException
- Sets the Number Type contained in this
NumericComponent.
Valid values are:
- TYPE_INTEGER - Number type integer
- TYPE_DOUBLE - Number type double