public class JetUnitNumber extends JetNumber
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| Constructor and Description |
|---|
JetUnitNumber() |
JetUnitNumber(JetObject parent,
java.lang.String name)
Constructor.
Create a JetUnitNumber instance with default value and normal value are 0unit. |
JetUnitNumber(JetObject parent,
java.lang.String name,
int defval)
Constructor.
Create a JetUnitNumber instance with specified unit value. |
| Modifier and Type | Method and Description |
|---|---|
static int |
convertToPixel(java.lang.String value,
int unit)
Deprecated.
|
static int |
convertToUnit(java.lang.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 java.lang.String |
get(int value,
int unit,
int fraction)
Deprecated.
|
java.lang.String |
getInspValue()
Only For Designer UI: Convert the unit value to pixel as string
|
java.lang.String |
getInspValue(int unit,
int fractio)
Deprecated.
|
java.lang.String |
getInspValue(int unit,
int fraction,
int mode)
Only For Designer UI: Converts the unit value to inch or centimeter as formated string
|
java.lang.Object |
getObject()
Deprecated.
|
java.lang.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 java.lang.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(java.lang.String value)
Deprecated.
|
void |
set(java.lang.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(java.lang.Object value)
Deprecated.
|
void |
setObject(java.lang.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(java.lang.String theval)
Deprecated.
|
void |
setUnitValue(java.lang.String theval,
int mode)
Sets normal value via specified String that be treated as unit value;
|
java.lang.String |
toCentimeterString()
Deprecated.
|
java.lang.String |
toCentimeterString(int mode)
Deprecated.
|
java.lang.String |
toInchString()
Deprecated.
|
java.lang.String |
toInchString(int mode)
Deprecated.
|
java.lang.String |
toString()
Convert the unit value to pixel as string
|
java.lang.String |
toUnitString() |
java.lang.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(JetObject parent,
java.lang.String name)
parent - ownername - namepublic JetUnitNumber(JetObject parent,
java.lang.String name,
int defval)
parent - ownername - namedefval - the unit value set to default value and normal valuepublic static int convertToPixel(java.lang.String value,
int unit)
value - the string can converted to double valueunit - the unit-type of value, MUST BE Unit#INCH or Unit#CENTIMETERjava.lang.NumberFormatException - if the value does not contain parsable number.Unit#INCH,
Unit#CENTIMETER,
Unit#convertInchToPixel(double),
Unit#convertCentimeterToPixel(double),
DecimalFormat.parse(String, ParsePosition)public static java.lang.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(java.lang.String value,
int unit)
value - the string can converted to double valueunit - the unit-type of value, MUST BE Unit#INCH or Unit#CENTIMETERjava.lang.NumberFormatException - if the value does not contain parsable number.Unit#INCH,
Unit#CENTIMETER,
Unit#convertInchToUnit(double),
Unit#convertCentimeterToUnit(double),
DecimalFormat.parse(String, ParsePosition)public static java.lang.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)public void set(long value,
int mode)
set in class JetNumbervalue - the pixel valuesetUnitValue(int),
Unit#convertPixelToUnit(long)public void set(float value,
int mode)
set in class JetNumbervalue - : the pixel valuesetUnitValue(int),
Unit#convertPixelToUnit(float)public void set(double value,
int mode)
set in class JetNumbervalue - the pixel valuesetUnitValue(int),
Unit#convertPixelToUnit(double)public void set(java.lang.String theval,
int mode)
set in class JetNumbertheval - a String that be treated as integer pixel valuejava.lang.NumberFormatException - if the value does not contain parsable integer.setUnitValue(String),
Unit#convertPixelToUnit(int)@Deprecated public void set(java.lang.String value)
public void setInt(int value,
int mode)
setInt in class JetNumbervalue - a unit valuesetUnitValue(int)public void setUnitValue(java.lang.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(java.lang.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 integerpublic long longValue(int mode)
JetNumberJetProperty.isCurrentAutoValue() is false;according to the following priority return : normal value > default value as longpublic float floatValue(int mode)
JetNumberJetProperty.isCurrentAutoValue() is false;according to the following priority return : normal value > default value as floatfloatValue in class JetNumberUnit#convertUnitToPixel(float),
getUnit()@Deprecated public float floatValue()
floatValue in class JetNumberpublic double doubleValue(int mode)
JetNumberJetProperty.isCurrentAutoValue() is false;according to the following priority return : normal value > default value as doubledoubleValue in class JetNumberUnit#convertUnitToPixel(double),
getUnit()@Deprecated public double doubleValue()
doubleValue in class JetNumberpublic int get(int mode)
JetNumberJetProperty.isCurrentAutoValue() is false; according to the following priority return : normal value > default value as integerpublic int getUnit(int mode)
public java.lang.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 java.lang.String getInspValue(int unit,
int fractio)
JetPropertygetInspValue in class JetPropertyJetProperty.getInspValue()public java.lang.String getInspValue()
getInspValue in class JetPropertytoString()public java.lang.String toInchString(int mode)
Unit#convertUnitToInch(int),
getUnit()public java.lang.String toCentimeterString(int mode)
Unit#convertUnitToCentimeter(int),
getUnit()public java.lang.String toUnitString()
toUnitString in class JetPropertypublic java.lang.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 class JetPropertyObject.toString(),
JetProperty.isCurrentAutoValue()public java.lang.String toString()
toString 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 java.lang.Object getObject(int mode)
JetProperty.isCurrentAutoValue() is false, returns a Integer Object.getObject in class JetPropertyJetProperty.isCurrentAutoValue()@Deprecated public java.lang.Object getObject()
getObject in class JetPropertypublic void setObject(java.lang.Object value,
int mode)
JetPropertysetObject in class JetProperty@Deprecated public void setObject(java.lang.Object value)
setObject in class JetProperty@Deprecated public int getUnit()
@Deprecated public java.lang.String toInchString()
@Deprecated public java.lang.String toCentimeterString()
public JetProperty copy()