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