public class IltNumericState extends IltSimpleState
This class models states which can have a numeric value.
Instances of this class should only be set together with an associated value. The value must be of any of the following types:
Number
,int[]
,long[]
,float[]
,double[]
, orNumber[]
.When instances of this class are created, it is possible to define default values, so that when a certain telecom object instance is created and uses a certain state model which contains this simple state, the default value is automatically assigned to the object.
Modifier and Type | Field and Description |
---|---|
static IltStateInfo |
metainfo
Contains metainformation about this
IltNumericState class. |
Constructor and Description |
---|
IltNumericState(String name,
String description,
Number defaultValue)
Creates an
IltNumericState . |
IltNumericState(String name,
String description,
String message,
Number defaultValue)
Creates an
IltNumericState . |
Modifier and Type | Method and Description |
---|---|
double |
getDouble(Object value)
Extracts a double from the value object stored for this state.
|
String |
getToolTipText(IlpContext context,
IltObject obj)
Returns a description of the state.
|
String |
getToolTipText(IltObject obj)
Deprecated.
Please use the two-argument
getToolTipText method
instead. |
boolean |
isValid(Object value)
This method verifies if the given value can be set in the state.
|
void |
list(IlpContext context,
IltStateListing listing,
Object value)
Generates a plain text listing of a state.
|
createValue, getDefault, hasDefault, setDefault
copy, CreateNameFilter, CreateStateFilter, equals, getAliases, getAllPaths, getAltName, getDescription, getName, getProperty, getStateInfo, hasDescription, hashCode, intern, isInside, IsPropertyTransient, removeProperty, setAltName, setDescription, setMessage, setName, setProperty, SetPropertyTransient, toString
public static IltStateInfo metainfo
IltNumericState
class.public IltNumericState(String name, String description, Number defaultValue)
IltNumericState
.description
- optional attribute, which defines a textual description of the state.defaultValue
- optional attribute which defines a default value for this state.public IltNumericState(String name, String description, String message, Number defaultValue)
IltNumericState
.description
- optional attribute, which defines a textual description of the state.message
- catalog messagedefaultValue
- optional attribute which defines a default value for this state.public boolean isValid(Object value)
true
.public void list(IlpContext context, IltStateListing listing, Object value)
@Deprecated public String getToolTipText(IltObject obj)
getToolTipText
method
instead.getToolTipText
in interface IltDecorationSource
getToolTipText
in class IltState
public String getToolTipText(IlpContext context, IltObject obj)
getToolTipText
in interface IltDecorationSource
getToolTipText
in class IltState
public double getDouble(Object value)
© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.