|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||
com.sas.lang.StringData
public class StringData
StringData is an implementation of StringDataInterface, for holding a String. The StringData container has a bound stringData property, so the StringData object fires a PropertyChangeEvent when the object is changed with setStringData(String). The StringData class also maintains a bound text property which is always equal to the stringData property.
Creating a StringData Component
Usage
The StringData component stores String data:
| Field Summary | |
|---|---|
static java.lang.String |
RB_KEY
|
| Constructor Summary | |
|---|---|
StringData()
Default constructor |
|
StringData(java.lang.String str)
Create a StringData model with the specified string |
|
StringData(java.lang.StringBuffer strBuffer)
Create a StringData model with the specified StringBuffer |
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()
Creates a copy of the current model |
boolean |
equals(java.lang.Object object)
Tests if this object equals another object |
boolean |
equals(StringData other)
Tests if this object equals another StringData object |
static com.sas.beans.ExtendedBeanInfo |
getExtendedBeanInfo()
Returns the ExtendedBeanInfo for this class. |
java.lang.Object |
getObjectData()
Return the object stored here. |
java.lang.String |
getStringData()
Retrieves the text stored in the text model. |
java.lang.String |
getText()
Retrieves the text stored in the text model. |
int |
hashCode()
Computes a hash code. |
void |
setObjectData(java.lang.Object object)
Set the objecct stored here. |
void |
setStringData(java.lang.String newText)
Sets the text stored in the text model. |
void |
setText(java.lang.String newText)
Sets the text stored in the text model. |
| Field Detail |
|---|
public static final java.lang.String RB_KEY
| Constructor Detail |
|---|
public StringData()
public StringData(java.lang.String str)
public StringData(java.lang.StringBuffer strBuffer)
| Method Detail |
|---|
public static com.sas.beans.ExtendedBeanInfo getExtendedBeanInfo()
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
clone in interface com.sas.PublicClonableclone in class Componentjava.lang.CloneNotSupportedException - if the
object cannot be clonedpublic boolean equals(StringData other)
public boolean equals(java.lang.Object object)
equals in class java.lang.Objectpublic final java.lang.String getStringData()
public java.lang.String getText()
getText in interface com.sas.lang.StringDataInterfacepublic final java.lang.Object getObjectData()
getObjectData in interface com.sas.lang.ObjectDataInterfacepublic final void setObjectData(java.lang.Object object)
setObjectData in interface com.sas.lang.ObjectDataInterfaceobject - an object to store.
It must be null or a String
java.lang.ClassCastException - if object is not
null or a Stringpublic int hashCode()
hashCode in class java.lang.Objectpublic final void setStringData(java.lang.String newText)
newText - the new text valuepublic void setText(java.lang.String newText)
setText in interface com.sas.lang.StringDataInterfacenewText - the new text value
If newText is null, the text is stored as ""
|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||