org.speakright.sro
Class SROStringItem
java.lang.Object
org.speakright.core.ModelItemBase
org.speakright.sro.SROStringItem
- All Implemented Interfaces:
- java.io.Serializable, IModelItem
public class SROStringItem
- extends ModelItemBase
- implements java.io.Serializable
A string value, used in SROs such as SROListNavigator.
Even though we derived from ModelItemBase, these string values do not have
to be from the model.
- Author:
- IanRaeLaptop
- See Also:
- Serialized Form
|
Method Summary |
void |
clear()
clear the value back to its default, and clear the
'set' flag. |
java.lang.String |
get()
|
java.lang.Object |
rawValue()
get raw value as object. |
void |
set(java.lang.String val)
|
java.lang.String |
toString()
IModel items should override toString because the default item formatter
uses toString. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
rawValue
public java.lang.Object rawValue()
- Description copied from interface:
IModelItem
- get raw value as object. (for internal use)
- Specified by:
rawValue in interface IModelItem
- Returns:
clear
public void clear()
- Description copied from interface:
IModelItem
- clear the value back to its default, and clear the
'set' flag.
- Specified by:
clear in interface IModelItem
get
public java.lang.String get()
set
public void set(java.lang.String val)
toString
public java.lang.String toString()
- IModel items should override toString because the default item formatter
uses toString.
Return the value of this item as a ptext. DO NOT invoke the formatter here
or you'll get stack overflow.
- Overrides:
toString in class java.lang.Object