public class JetNumber extends JetProperty implements jet.controls.Integerable, jet.convert.NumberInfo
CHART_BACKGROUND_EDITOR, CHART_FILLPATTERN_EDITOR, CHART_FILTER_EDITOR, CHART_FILTER_EDITOR_NO_DATE, CHART_ICON_STYLE, CHART_PATTERN_LIST_EDITOR, CHART_PENSTYLE_EDITOR, CHART_TEXTSTYLE_EDITOR, CHOICE_EDITOR, COLOR_EDITOR, COMBO_EDITOR, COMMAND_EDITOR, CONTROL_SELECT_ITEMS, DATASOURCE_EDITOR, DBCOL_EDITOR, DETAIL_REPORT_EDITOR, EDIT_FORBIDDEN, EDIT_FORBIDDEN_INIT, EDITABLE_ALLTIME, INTERNAL, LINK_EDITOR, MULSEL_EDITOR, PARAMCOL_EDITOR, QUERY_EDITOR, RECORDDB_EDITOR, SECURITY_EDITOR, TEXT_EDITOR
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 and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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 DesignService : get Matching SQL Type of this property
Usage in UI : list all the 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 |
canChangeByBL, canChangeByFmtt, canChangeByOthers, enableAllChangeBys, getChangeBy, getChangeByBL, getChangeByBLName, getChangeByBLType, getChangeByFmtt, getChangeByFmttName, getChangeByObject, getChangeByObjectName, getChangeByOtherType, getCurrentChangedBy, getCurrentValue, getCurrentValue, getEditFlag, getEditorType, getInspValue, getInspValue, getName, getNormalObject, getObject, getParent, getPropType, getRuntimeChangeBy, getUnifiedObject, getValue, isChagneByFmtt, isChangeByBL, isChangeByOther, isCurrentAutoValue, isCurrentChangedBy, isEnableAutoValue, isNull, isSetAnyChangeBy, isSetRuntimeChgBy, isTransient, loadFullChangeBy, propertyChanged, saveFullChangeBy, setAsAutoValue, setCanChangeByBL, setCanChangeByFmtt, setCanChangeByOthers, setChangeByBL, setChangeByBL, setChangeByFmtt, setChangeByObject, setChangeByObject, setEditFlag, setEditorType, setEnableAutoValue, setObject, setRuntimeChangeBy, setTransient, setUnitValue, toUnitString
public JetNumber()
public JetNumber(jet.controls.JetObject parent, java.lang.String name)
parent
- ownername
- namepublic JetNumber(jet.controls.JetObject parent, java.lang.String name, int defval)
parent
- ownername
- namedefval
- the value to be set to default value and normal valuepublic 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.Propertiable
set
in class JetProperty
java.lang.NumberFormatException
toString()
,
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 integerintValue
in interface jet.convert.NumberInfo
set(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 longlongValue
in interface jet.convert.NumberInfo
set(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 floatfloatValue
in interface jet.convert.NumberInfo
set(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 doubledoubleValue
in interface jet.convert.NumberInfo
set(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 StringtoString
in interface jet.convert.PropInfo
toString
in class java.lang.Object
set(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 integerget
in interface jet.convert.NumberInfo
set(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.Integerable
getInt
in interface jet.convert.NumberInfo
set(int)
,
setValue(int)
,
setInt(int)
,
intValue()
,
get()
,
JetProperty.isCurrentAutoValue()
public void setInt(int i)
setInt
in interface jet.controls.Integerable
i
- 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 JetProperty
Db
public java.util.Vector getPropertyChoice()
JetProperty
getPropertyChoice
in class JetProperty
public void setPropertyChoice(java.util.Vector propertyChoice)