|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||
com.sas.lang.IntegerData
public class IntegerData
IntegerData is an implementation of IntegerDataInterface, for holding a int integer. The IntegerData container has a bound intData property, so the IntegerData object fires a PropertyChangeEvent when the object is changed with setIntegerData(Integer).
Creating a IntegerData Component
The IntegerData class also maintains a bound text property which is always equal to the String value of the integerData property.
Usage
The IntegerData component stores int data:
| Field Summary | |
|---|---|
static java.lang.String |
RB_KEY
|
| Constructor Summary | |
|---|---|
IntegerData()
Default Constructor |
|
IntegerData(int value)
Construct an object with an initial value. |
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()
Creates a copy of the current model |
boolean |
equals(IntegerData other)
Tests if this object equals another IntegerData object |
boolean |
equals(java.lang.Object object)
Tests if this object equals another object |
static com.sas.beans.ExtendedBeanInfo |
getExtendedBeanInfo()
Returns the ExtendedBeanInfo for this class. |
int |
getIntegerData()
Retrieves the int stored in the int model |
java.lang.String |
getText()
Retrieves the text value of the model. |
int |
hashCode()
Compute a hash code. |
void |
setIntegerData(int value)
Sets the int stored in the int 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 IntegerData()
public IntegerData(int value)
value - the initial value| 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(IntegerData other)
public boolean equals(java.lang.Object object)
equals in class java.lang.Objectpublic int getIntegerData()
getIntegerData in interface com.sas.lang.IntegerDataInterfacepublic java.lang.String getText()
getText in interface com.sas.lang.StringDataInterfacepublic int hashCode()
hashCode in class java.lang.Objectpublic void setIntegerData(int value)
setIntegerData in interface com.sas.lang.IntegerDataInterfacevalue - int datapublic void setText(java.lang.String string)
setText in interface com.sas.lang.StringDataInterfacestring - a string representation of the text.
java.lang.NumberFormatException - if the string
cannot be converted.public java.lang.String toString()
toString in class java.lang.Object
|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||