|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||
com.sas.lang.DoubleData
public class DoubleData
DoubleData is an implementation of DoubleDataInterface, for holding a double integer.
The DoubleData container has a bound doubleData property,
so the DoubleData object fires a PropertyChangeEvent when the
object is changed with
setDoubleData(Double).
Creating a DoubleData Component
The DoubleData class also maintains a bound text property which is always equal to the String value of the doubleData property.
Usage
The DoubleData component stores double data:
doubleData1.addPropertyChangeListener(listener); doubleData1.setDoubleData(l); ... l = doubleData1.getDoubleData();
| Field Summary | |
|---|---|
static java.lang.String |
RB_KEY
|
| Constructor Summary | |
|---|---|
DoubleData()
Default Constructor |
|
DoubleData(double value)
Construct an object with an initial value. |
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()
Creates a copy of the current model |
boolean |
equals(DoubleData other)
Tests if this object equals another DoubleData object |
boolean |
equals(java.lang.Object object)
Tests if this object equals another object |
double |
getDoubleData()
Retrieves the double stored in the double 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 |
setDoubleData(double value)
Sets the double stored in the double 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. |
static java.lang.String |
toString(double d)
toString converts the passed in double primitive to a String properly formatted for the current locale. |
static java.lang.String |
toString(java.lang.Double value)
toString converts the passed in Double object to a String properly formatted for the current locale. |
static double |
valueOf(java.lang.String doubleString)
valueOf converts the passed in (locale specific) String to a double. |
| Field Detail |
|---|
public static final java.lang.String RB_KEY
| Constructor Detail |
|---|
public DoubleData()
public DoubleData(double value)
value - the initial value| Method Detail |
|---|
public static com.sas.beans.ExtendedBeanInfo getExtendedBeanInfo()
public static java.lang.String toString(java.lang.Double value)
value - The Double value to convert to a String.
public static java.lang.String toString(double d)
value - The double value to convert to a String.
public static double valueOf(java.lang.String doubleString)
doubleString - A String to convert to a double.
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(DoubleData other)
public boolean equals(java.lang.Object object)
equals in class java.lang.Objectpublic double getDoubleData()
getDoubleData in interface com.sas.lang.DoubleDataInterfacepublic java.lang.String getText()
getText in interface com.sas.lang.StringDataInterfacepublic int hashCode()
hashCode in class java.lang.Objectpublic void setDoubleData(double value)
setDoubleData in interface com.sas.lang.DoubleDataInterfacevalue - double 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 | |||||||||||||