public abstract class IltSimpleState extends IltState
When instances of this class are created, it is possible to define a default value, so that when a telecom object instance is created and uses a state system which contains instances of this state, the default value is automatically assigned to the object.
| Modifier and Type | Field and Description |
|---|---|
static IltStateInfo |
metainfo
Contains metainformation about this
IltSimpleState class. |
| Modifier | Constructor and Description |
|---|---|
protected |
IltSimpleState(String name,
String description,
String message,
Object defaultValue)
Creates an
IltSimpleState. |
| Modifier and Type | Method and Description |
|---|---|
Object |
createValue()
Returns the value for this state.
|
Object |
getDefault()
Returns the default value of the state.
|
boolean |
hasDefault()
Returns
true if this state contains a default value. |
void |
setDefault(Object value)
Sets the default value of the state.
|
copy, CreateNameFilter, CreateStateFilter, equals, getAliases, getAllPaths, getAltName, getDescription, getName, getProperty, getStateInfo, getToolTipText, getToolTipText, hasDescription, hashCode, intern, isInside, IsPropertyTransient, isValid, list, removeProperty, setAltName, setDescription, setMessage, setName, setProperty, SetPropertyTransient, toStringpublic static IltStateInfo metainfo
IltSimpleState class.protected IltSimpleState(String name, String description, String message, Object defaultValue)
IltSimpleState.name - state namedescription - optional attribute, which defines a textual description of the state.message - catalog message, which allows description internationalization.defaultValue - optional attribute which defines a default value for this state.public boolean hasDefault()
true if this state contains a default value.hasDefault in class IltStatepublic Object getDefault()
getDefault in class IltStatepublic void setDefault(Object value) throws IltInvalidStateValueException
IltInvalidStateValueExceptionpublic Object createValue()
createValue in class IltState© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.