public class JetUnitNumber extends JetNumber implements jet.convert.UnitNumberInfo
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_EDITORBIGSTRING, BOOLEAN, CHG_FMTTINGBLNAME, CHG_FMTTINGFORMULA, CHG_OTHER, COLOR, COMPFML_RESOURCE, CUSTOMER, CUSTOMERLINK, DELIM, DELIMCHAR, DOUBLE, ENUMERATION, IGNORED, IMAGE, IMGVECTOR, MAPPINGTBL, MODE_PAGE, MODE_UNKNOWN, MODE_WEB, NORMAL_RESOURCE, NUMBER, POINT, REFERENCE, STRING, SUB1_DELIM, UNIT, VAL_NORMALLENGTH, VAL_NORMALSTART, VECTOR| Constructor and Description |
|---|
JetUnitNumber() |
JetUnitNumber(jet.controls.JetObject parent,
String name)
Constructor.
Create a JetUnitNumber instance with default value and normal value are 0unit. |
JetUnitNumber(jet.controls.JetObject parent,
String name,
int defval)
Constructor.
Create a JetUnitNumber instance with specified unit value. |
| Modifier and Type | Method and Description |
|---|---|
static int |
convertToPixel(String value,
int unit)
Deprecated.
|
static int |
convertToUnit(String value,
int unit)
Deprecated.
|
JetProperty |
copy()
Copies property with normal value
|
double |
doubleValue()
Deprecated.
|
double |
doubleValue(int mode)
Deprecated.
|
float |
floatValue()
Deprecated.
|
float |
floatValue(int mode)
Deprecated.
|
int |
get()
Deprecated.
|
int |
get(int mode)
Deprecated.
|
static String |
get(int value,
int unit,
int fraction)
Deprecated.
|
String |
getInspValue()
Only For Designer UI: Convert the unit value to pixel as string
|
String |
getInspValue(int unit,
int fractio)
Deprecated.
|
String |
getInspValue(int unit,
int fraction,
int mode)
Only For Designer UI: Converts the unit value to inch or centimeter as formated string
|
Object |
getObject()
Deprecated.
|
Object |
getObject(int mode)
Effective if
JetProperty.isCurrentAutoValue() is false, returns a Integer Object.comments by 'unknown' author: add for Layout group , they use "Integer" to cast getObject() of JetUnitNumber . |
int |
getUnit()
Deprecated.
|
int |
getUnit(int mode)
According to the following priority return : normal value > default value
|
static String |
getUnit(int value,
int unit,
int fraction)
Deprecated.
|
int |
intValue()
Deprecated.
|
int |
intValue(int mode)
Deprecated.
|
long |
longValue()
Deprecated.
|
long |
longValue(int mode)
Deprecated.
|
void |
set(double value)
Deprecated.
|
void |
set(double value,
int mode)
Deprecated.
|
void |
set(float value)
Deprecated.
|
void |
set(float value,
int mode)
Deprecated.
|
void |
set(int value)
Deprecated.
|
void |
set(int value,
int mode)
Deprecated.
|
void |
set(long value)
Deprecated.
|
void |
set(long value,
int mode)
Deprecated.
|
void |
set(String value)
Deprecated.
|
void |
set(String theval,
int mode)
Deprecated.
|
void |
setCanChangeByOthers(boolean bSet)
Sets can the property be changed by 'another object'.
|
void |
setInt(int value)
Deprecated.
|
void |
setInt(int value,
int mode)
Sets normal value via specified unit value;
|
void |
setObject(Object value)
Deprecated.
|
void |
setObject(Object value,
int mode)
Sets normal value
|
void |
setUnitValue(int theval)
Deprecated.
|
void |
setUnitValue(int theval,
int mode)
Sets normal value via specified unit value;
|
void |
setUnitValue(String theval)
Deprecated.
|
void |
setUnitValue(String theval,
int mode)
Sets normal value via specified String that be treated as unit value;
|
String |
toCentimeterString()
Deprecated.
|
String |
toCentimeterString(int mode)
Deprecated.
|
String |
toInchString()
Deprecated.
|
String |
toInchString(int mode)
Deprecated.
|
String |
toString()
Convert the unit value to pixel as string
|
String |
toUnitString() |
String |
toUnitString(int mode)
Effective if
JetProperty.isCurrentAutoValue() is false; returns the unit value as string, the unit value is (with priority)normal value > default value |
addToAtomicAction, getInt, getInt, getMatchingSqlType, getPropertyChoice, setPropertyChoice, setValue, setValueaddPropertyChangeListener, canChangeByBL, canChangeByFmtt, canChangeByOthers, checkValue, curValueEqual, enableAllChangeBys, equal, getChangeBy, getChangeBy, getChangeByBL, getChangeByBL, getChangeByBLName, getChangeByBLName, getChangeByBLType, getChangeByBLType, getChangeByFmtt, getChangeByFmtt, getChangeByFmttName, getChangeByFmttName, getChangeByObject, getChangeByObject, getChangeByObjectName, getChangeByObjectName, getChangeByOtherType, getChangeByOtherType, getCurrentChangedBy, getCurrentChangedBy, getCurrentValue, getCurrentValue, getCurrentValue, getCurrentValue, getEditFlag, getEditorType, getInspValue, getModeProperty, getName, getNormalObject, getNormalObject, getParent, getPropType, getRuntimeChangeBy, getRuntimeChangeBy, getUnifiedObject, getUnifiedObject, getValue, getValue, isChagneByFmtt, isChagneByFmtt, isChangeByBL, isChangeByBL, isChangeByOther, isChangeByOther, isCurrentAutoValue, isCurrentAutoValue, isCurrentChangedBy, isCurrentChangedBy, isEnableAutoValue, isModeProperty, isNull, isNull, isSetAnyChangeBy, isSetRuntimeChgBy, isSetRuntimeChgBy, isSupportMode, isTransient, isUnavailable, loadFullChangeBy, loadFullChangeBy, propertyChanged, removePropertyChangeListener, saveFullChangeBy, saveFullChangeBy, setAsAutoValue, setAsAutoValue, setCanChangeByBL, setCanChangeByFmtt, setChangeByBL, setChangeByBL, setChangeByBL, setChangeByBL, setChangeByFmtt, setChangeByFmtt, setChangeByObject, setChangeByObject, setChangeByObject, setChangeByObject, setEditFlag, setEditorType, setEnableAutoValue, setRuntimeChangeBy, setRuntimeChangeBy, setSupportMode, setTransient, setUnavailablepublic JetUnitNumber()
public JetUnitNumber(jet.controls.JetObject parent,
String name)
parent - ownername - namepublic JetUnitNumber(jet.controls.JetObject parent,
String name,
int defval)
parent - ownername - namedefval - the unit value set to default value and normal valuepublic static int convertToPixel(String value, int unit)
value - the string can converted to double valueunit - the unit-type of value, MUST BE Unit.INCH or Unit.CENTIMETERNumberFormatException - if the value does not contain parsable number.Unit.INCH,
Unit.CENTIMETER,
Unit.convertInchToPixel(double),
Unit.convertCentimeterToPixel(double),
DecimalFormat.parse(String, ParsePosition)public static String get(int value, int unit, int fraction)
value - the pixel valueunit - the unit-type of return MUST BE Unit.INCH or Unit.CENTIMETERfraction - the fractionUnit.INCH,
Unit.CENTIMETER,
Unit.convertPixelToInch(int),
Unit.convertPixelToCentimeter(int),
NumberFormat.format(double),
DecimalFormat.setMaximumFractionDigits(int)public static int convertToUnit(String value, int unit)
value - the string can converted to double valueunit - the unit-type of value, MUST BE Unit.INCH or Unit.CENTIMETERNumberFormatException - if the value does not contain parsable number.Unit.INCH,
Unit.CENTIMETER,
Unit.convertInchToUnit(double),
Unit.convertCentimeterToUnit(double),
DecimalFormat.parse(String, ParsePosition)public static String getUnit(int value, int unit, int fraction)
value - the unit valueunit - the unit-type of result MUST BE Unit.INCH or Unit.CENTIMETERfraction - the fractionUnit.INCH,
Unit.CENTIMETER,
Unit.convertUnitToInch(int),
Unit.convertUnitToCentimeter(int),
NumberFormat.format(double),
DecimalFormat.setMaximumFractionDigits(int)public void set(int value,
int mode)
set in class JetNumbervalue - the pixel valuesetUnitValue(int),
setInt(int),
Unit.convertPixelToUnit(int)@Deprecated public void set(int value)
public void set(long value,
int mode)
set in class JetNumbervalue - the pixel valuesetUnitValue(int),
Unit.convertPixelToUnit(long)@Deprecated public void set(long value)
public void set(float value,
int mode)
set in class JetNumbervalue - : the pixel valuesetUnitValue(int),
Unit.convertPixelToUnit(float)@Deprecated public void set(float value)
public void set(double value,
int mode)
set in class JetNumbervalue - the pixel valuesetUnitValue(int),
Unit.convertPixelToUnit(double)@Deprecated public void set(double value)
public void set(String theval, int mode)
set in interface jet.util.Propertiableset in class JetNumbertheval - a String that be treated as integer pixel valueNumberFormatException - if the value does not contain parsable integer.setUnitValue(String),
Unit.convertPixelToUnit(int)@Deprecated public void set(String value)
public void setInt(int value,
int mode)
setInt in interface jet.controls.IntegerablesetInt in class JetNumbervalue - a unit valuesetUnitValue(int)@Deprecated public void setInt(int value)
public void setUnitValue(String theval, int mode)
setUnitValue in class JetPropertytheval - a String that be treated as unit value, null or empty-string means default valueJetProperty.toUnitString()@Deprecated public void setUnitValue(String theval)
setUnitValue in class JetPropertypublic void setUnitValue(int theval,
int mode)
theval - a unit value@Deprecated public void setUnitValue(int theval)
public int intValue(int mode)
JetNumberJetProperty.isCurrentAutoValue() is false;according to the following priority return : normal value > default value as integer@Deprecated public int intValue()
public long longValue(int mode)
JetNumberJetProperty.isCurrentAutoValue() is false;according to the following priority return : normal value > default value as long@Deprecated public long longValue()
public float floatValue(int mode)
JetNumberJetProperty.isCurrentAutoValue() is false;according to the following priority return : normal value > default value as floatfloatValue in interface jet.convert.NumberInfofloatValue in class JetNumberUnit.convertUnitToPixel(float),
getUnit()@Deprecated public float floatValue()
floatValue in interface jet.convert.NumberInfofloatValue in class JetNumberpublic double doubleValue(int mode)
JetNumberJetProperty.isCurrentAutoValue() is false;according to the following priority return : normal value > default value as doubledoubleValue in interface jet.convert.NumberInfodoubleValue in class JetNumberUnit.convertUnitToPixel(double),
getUnit()@Deprecated public double doubleValue()
doubleValue in interface jet.convert.NumberInfodoubleValue in class JetNumberpublic int get(int mode)
JetNumberJetProperty.isCurrentAutoValue() is false; according to the following priority return : normal value > default value as integer@Deprecated public int get()
public int getUnit(int mode)
getUnit in interface jet.convert.UnitNumberInfopublic String getInspValue(int unit, int fraction, int mode)
unit - unit-type of return, must be one of Unit.INCH or Unit.CENTIMETERfraction - getUnit(int, int, int),
Unit.INCH,
Unit.CENTIMETER,
Unit.convertUnitToInch(int),
Unit.convertUnitToCentimeter(int),
DecimalFormat.setMaximumFractionDigits(int),
NumberFormat.format(double)@Deprecated public String getInspValue(int unit, int fractio)
JetPropertygetInspValue in class JetPropertyJetProperty.getInspValue()public String getInspValue()
getInspValue in interface jet.convert.PropInfogetInspValue in class JetPropertytoString()public String toInchString(int mode)
toInchString in interface jet.convert.UnitNumberInfoUnit.convertUnitToInch(int),
getUnit()public String toCentimeterString(int mode)
toCentimeterString in interface jet.convert.UnitNumberInfoUnit.convertUnitToCentimeter(int),
getUnit()public String toUnitString()
toUnitString in interface jet.convert.PropInfotoUnitString in interface jet.convert.UnitNumberInfotoUnitString in class JetPropertypublic String toUnitString(int mode)
JetPropertyJetProperty.isCurrentAutoValue() is false; returns the unit value as string, the unit value is (with priority)normal value > default valuetoUnitString in interface jet.convert.PropInfotoUnitString in interface jet.convert.UnitNumberInfotoUnitString in class JetPropertyObject.toString(),
JetProperty.isCurrentAutoValue()public String toString()
toString in interface jet.convert.PropInfotoString in class JetNumberJetNumber.set(String),
String.valueOf(int),
String.valueOf(float),
String.valueOf(double),
String.valueOf(long),
JetProperty.isCurrentAutoValue()public void setCanChangeByOthers(boolean bSet)
JetPropertysetCanChangeByOthers in class JetPropertyJetProperty.canChangeByOther,
JetProperty.canChangeByOthers(),
JetProperty.enableAllChangeBys(boolean)public Object getObject(int mode)
JetProperty.isCurrentAutoValue() is false, returns a Integer Object.getObject in interface jet.util.PropertiablegetObject in class JetPropertyJetProperty.isCurrentAutoValue()@Deprecated public Object getObject()
getObject in interface jet.util.PropertiablegetObject in class JetPropertypublic void setObject(Object value, int mode)
JetPropertysetObject in interface jet.util.PropertiablesetObject in class JetProperty@Deprecated public void setObject(Object value)
setObject in interface jet.util.PropertiablesetObject in class JetProperty@Deprecated public int getUnit()
getUnit in interface jet.convert.UnitNumberInfo@Deprecated public String toInchString()
toInchString in interface jet.convert.UnitNumberInfo@Deprecated public String toCentimeterString()
toCentimeterString in interface jet.convert.UnitNumberInfopublic JetProperty copy()
© insightsoftware. All rights reserved.