|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||
com.sas.lang.ByteData
public class ByteData
ByteData is an implementation of ByteDataInterface, for holding a byte integer.
The ByteData container has a bound byteData property,
so the ByteData object fires a PropertyChangeEvent when the
object is changed with
setByteData(Byte).
Creating a ByteData Component
The ByteData class also maintains a bound text property which is always equal to the String value of the byteData property.
Usage
The ByteData component stores byte data:
| Field Summary | |
|---|---|
static java.lang.String |
RB_KEY
|
| Constructor Summary | |
|---|---|
ByteData()
Default Constructor |
|
ByteData(byte value)
Construct an object with an initial value. |
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()
Creates a copy of the current model |
boolean |
equals(ByteData other)
Tests if this object equals another ByteData object |
boolean |
equals(java.lang.Object object)
Test if this object equals another object |
byte |
getByteData()
Retrieves the byte stored in the byte model |
static com.sas.beans.ExtendedBeanInfo |
getExtendedBeanInfo()
Returns the ExtendedBeanInfo for this class. |
java.lang.String |
getText()
Retrieves the text value of the model. |
int |
hashCode()
Computes a hash code. |
void |
setByteData(byte value)
Sets the byte stored in the byte model. |
void |
setText(java.lang.String string)
Assigns the value of the object from a string value. |
java.lang.String |
toString()
Returns the string representation of the object. |
| Field Detail |
|---|
public static final java.lang.String RB_KEY
| Constructor Detail |
|---|
public ByteData()
public ByteData(byte value)
value - the initial value| Method Detail |
|---|
public static com.sas.beans.ExtendedBeanInfo getExtendedBeanInfo()
public java.lang.Object clone()
clone in interface com.sas.PublicClonableclone in class Componentpublic byte getByteData()
getByteData in interface com.sas.lang.ByteDataInterfacepublic void setByteData(byte value)
setByteData in interface com.sas.lang.ByteDataInterfacevalue - byte datapublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String getText()
getText in interface com.sas.lang.StringDataInterfacepublic void setText(java.lang.String string)
setText in interface com.sas.lang.StringDataInterfacestring - a string representation of the text.
The first character is used as the value
java.lang.IllegalArgumentException - if the string
cannot be converted or the string length is 0.public boolean equals(ByteData other)
public boolean equals(java.lang.Object object)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object
|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||