|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjet.controls.JetProperty
jet.controls.JetNumber
public class JetNumber
JetNumber, for saving/retrieving a Number(integer, float, double, long) value.
| Field Summary |
|---|
| Fields inherited from interface jet.util.Propertiable |
|---|
BIGSTRING, BOOLEAN, CHG_FMTTINGBLNAME, CHG_FMTTINGFORMULA, CHG_OTHER, COLOR, COMPFML_RESOURCE, CUSTOMER, CUSTOMERLINK, DELIM, DELIMCHAR, DOUBLE, ENUMERATION, IGNORED, IMAGE, IMGVECTOR, MAPPINGTBL, NORMAL_RESOURCE, NUMBER, REFERENCE, STRING, SUB1_DELIM, UNIT, VAL_NORMALLENGTH, VAL_NORMALSTART, VECTOR |
| Constructor Summary | |
|---|---|
JetNumber()
|
|
JetNumber(jet.controls.JetObject parent,
java.lang.String name)
Create a JetNumber instance with default value and normal value are 0. |
|
JetNumber(jet.controls.JetObject parent,
java.lang.String name,
int defval)
Create a JetNumber instance with specified value. |
|
| Method Summary | |
|---|---|
boolean |
addToAtomicAction(java.lang.String newValue)
|
double |
doubleValue()
Effective if JetProperty.isCurrentAutoValue() is false;according to the following priority return : normal value > default value as double |
float |
floatValue()
Effective if JetProperty.isCurrentAutoValue() is false;according to the following priority return : normal value > default value as float |
int |
get()
Effective if JetProperty.isCurrentAutoValue() is false; according to the following priority return : normal value > default value as integer |
int |
getInt()
Effective if JetProperty.isCurrentAutoValue() is false. |
int[] |
getMatchingSqlType()
Now, this API only for designer UI : get Matching SQL Type of this property Usage in UI : list all the (normal-)formula whose data-type in returned array |
java.util.Vector |
getPropertyChoice()
Only For Designer UI |
int |
intValue()
Effective if JetProperty.isCurrentAutoValue() is false;according to the following priority return : normal value > default value as integer |
long |
longValue()
Effective if JetProperty.isCurrentAutoValue() is false;according to the following priority return : normal value > default value as long |
void |
set(double value)
Sets normal value via double value |
void |
set(float value)
Sets normal value via float value |
void |
set(int value)
Sets normal value via specified int value; |
void |
set(long value)
Sets normal value via long value |
void |
set(java.lang.String theval)
Sets normal value via a String. |
void |
setInt(int i)
Sets normal value via specified value; |
void |
setPropertyChoice(java.util.Vector propertyChoice)
set property choice |
void |
setValue(int value)
Sets normal value via specified value; |
java.lang.String |
toString()
Effective if JetProperty.isCurrentAutoValue() is false;according to the following priority return : normal value > default value as String |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface jet.convert.PropInfo |
|---|
getChangeByObjectName, getInspValue, getName, getValue, isChangeByOther, isNull, toUnitString |
| Constructor Detail |
|---|
public JetNumber()
public JetNumber(jet.controls.JetObject parent,
java.lang.String name)
parent - ownername - name
public JetNumber(jet.controls.JetObject parent,
java.lang.String name,
int defval)
parent - ownername - namedefval - the value to be set to default value and normal value| Method Detail |
|---|
public void set(int value)
value - a integer valuesetInt(int),
setValue(int),
set(String),
getInt(),
intValue(),
get()public void set(long value)
value - the long valueset(String),
longValue(),
setValue(long)public void set(float value)
value - the float valueset(String),
floatValue(),
setValue(float)public void set(double value)
value - the double valueset(String),
doubleValue(),
setValue(double)public void set(java.lang.String theval)
set in interface jet.util.Propertiableset in class JetPropertyjava.lang.NumberFormatExceptiontoString(),
set(double),
set(float),
set(int),
set(long),
setValue(double),
setValue(float),
setValue(int),
setValue(long)public int intValue()
JetProperty.isCurrentAutoValue() is false;according to the following priority return : normal value > default value as integer
intValue in interface jet.convert.NumberInfoset(int),
setInt(int),
set(String),
get(),
getInt(),
JetProperty.isCurrentAutoValue()public long longValue()
JetProperty.isCurrentAutoValue() is false;according to the following priority return : normal value > default value as long
longValue in interface jet.convert.NumberInfoset(long),
set(String),
setValue(long),
JetProperty.isCurrentAutoValue()public float floatValue()
JetProperty.isCurrentAutoValue() is false;according to the following priority return : normal value > default value as float
floatValue in interface jet.convert.NumberInfoset(float),
set(String),
setValue(float),
JetProperty.isCurrentAutoValue()public double doubleValue()
JetProperty.isCurrentAutoValue() is false;according to the following priority return : normal value > default value as double
doubleValue in interface jet.convert.NumberInfoset(double),
set(String),
setValue(double),
JetProperty.isCurrentAutoValue()public java.lang.String toString()
JetProperty.isCurrentAutoValue() is false;according to the following priority return : normal value > default value as String
toString in interface jet.convert.PropInfotoString in class java.lang.Objectset(String),
String.valueOf(int),
String.valueOf(float),
String.valueOf(double),
String.valueOf(long),
JetProperty.isCurrentAutoValue()public int get()
JetProperty.isCurrentAutoValue() is false; according to the following priority return : normal value > default value as integer
get in interface jet.convert.NumberInfoset(int),
setInt(int),
setValue(int),
set(String),
intValue(),
getInt(),
JetProperty.isCurrentAutoValue()public void setValue(int value)
value - an integer value.setInt(int),
set(int),
set(String),
getInt(),
intValue(),
get()public int getInt()
JetProperty.isCurrentAutoValue() is false.
getInt in interface jet.controls.IntegerablegetInt in interface jet.convert.NumberInfoset(int),
setValue(int),
setInt(int),
intValue(),
get(),
JetProperty.isCurrentAutoValue()public void setInt(int i)
setInt in interface jet.controls.Integerablei - an integer valueset(int),
setValue(int),
set(String),
intValue(),
get(),
getInt()public boolean addToAtomicAction(java.lang.String newValue)
public int[] getMatchingSqlType()
JetProperty
getMatchingSqlType in class JetPropertyDbpublic java.util.Vector getPropertyChoice()
JetProperty
getPropertyChoice in class JetPropertypublic void setPropertyChoice(java.util.Vector propertyChoice)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||