public abstract class JetProperty
extends java.lang.Object
implements jet.util.Propertiable, jet.convert.PropInfo
Propertiable.IGNORED
,Propertiable.BOOLEAN
....(detail please refer to Propertiable
)Modifier and Type | Field and Description |
---|---|
static int |
CHART_BACKGROUND_EDITOR
Editor: CHART_BACKGROUND_EDITOR;ONLY For Designer UI
|
static int |
CHART_FILLPATTERN_EDITOR
Editor: CHART_FILLPATTERN_EDITOR;ONLY For Designer UI
|
static int |
CHART_FILTER_EDITOR
Editor: CHART_FILTER_EDITOR; ONLY For Designer UI
|
static int |
CHART_FILTER_EDITOR_NO_DATE
Editor: CHART_FILTER_EDITOR_NO_DATE; ONLY For Designer UI
|
static int |
CHART_ICON_STYLE
Editor: CHART_ICON_STYLE;ONLY For Designer UI
|
static int |
CHART_PATTERN_LIST_EDITOR
Editor: CHART_PATTERN_LIST_EDITOR;ONLY For Designer UI
|
static int |
CHART_PENSTYLE_EDITOR
Editor: CHART_PENSTYLE_EDITOR;ONLY For Designer UI
|
static int |
CHART_TEXTSTYLE_EDITOR
Editor: CHART_TEXTSTYLE_EDITOR;ONLY For Designer UI
|
static int |
CHOICE_EDITOR
Editor: CHOICE_EDITOR;ONLY For Designer UI
|
static int |
COLOR_EDITOR
Editor: COLOR_EDITOR;ONLY For Designer UI
|
static int |
COMBO_EDITOR
Editor: COMBO_EDITOR;ONLY For Designer UI
|
static int |
COMMAND_EDITOR
Editor: COMMAND_EDITOR;ONLY For Designer UI
|
static int |
CONTROL_SELECT_ITEMS
Editor: CONTROL_SELECT_ITEMS; ONLY For Designer UI
|
static int |
DATASOURCE_EDITOR
Editor: DATASOURCE_EDITOR; ONLY For Designer UI
|
static int |
DBCOL_EDITOR
Editor: DBCOL_EDITOR;ONLY For Designer UI
|
static int |
DETAIL_REPORT_EDITOR
Editor: DETAIL_REPORT_EDITOR;ONLY For Designer UI
|
static int |
EDIT_FORBIDDEN
editor status: EDIT_FORBIDDEN;, ONLY For Designer UI
|
static int |
EDIT_FORBIDDEN_INIT
editor status: EDIT_FORBIDDEN_INIT; ONLY For Designer UI
|
static int |
EDITABLE_ALLTIME
editor status: EDITABLE_ALLTIME; ONLY For Designer UI
|
static int |
INTERNAL
editor status: INTERNAL; ONLY For Designer UI
|
static int |
LINK_EDITOR
Editor: LINK_EDITOR;ONLY For Designer UI
|
static int |
MULSEL_EDITOR
Editor: MULSEL_EDITOR;ONLY For Designer UI
|
static int |
PARAMCOL_EDITOR
Editor: PARAMCOL_EDITOR;ONLY For Designer UI
|
static int |
QUERY_EDITOR
Editor: QUERY_EDITOR;ONLY For Designer UI
|
static int |
RECORDDB_EDITOR
Editor: RECORDDB_EDITOR;ONLY For Designer UI
|
static int |
SECURITY_EDITOR
Editor: SECURITY_EDITOR;ONLY For Designer UI
|
static int |
TEXT_EDITOR
Editor: TEXT_EDITOR;ONLY For Designer UI
|
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 |
---|
JetProperty() |
JetProperty(jet.controls.JetObject parent,
java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
boolean |
canChangeByBL()
Can the property be changed by 'on the fly formula'
|
boolean |
canChangeByFmtt()
Can the property be changed by 'conditional formatting'
|
boolean |
canChangeByOthers()
Can the property be changed by 'another object'
|
void |
enableAllChangeBys(boolean bEnable)
Batch set can the property be changed by ChangeBy value
|
jet.controls.JetChangeBy |
getChangeBy()
Deprecated.
|
java.lang.Object |
getChangeByBL()
Effective if
isCurrentAutoValue() is false AND isChangeByBL() is true. |
java.lang.String |
getChangeByBLName()
Deprecated.
|
short |
getChangeByBLType()
Effective if
isCurrentAutoValue() is false AND isChangeByBL() is trueReturns the resource type of 'another object': Propertiable.NORMAL_RESOURCE (Catalog/Report Level resource) or Propertiable.COMPFML_RESOURCE (Component Level resource) |
java.lang.Object |
getChangeByFmtt()
|
java.lang.String |
getChangeByFmttName()
Deprecated.
|
java.lang.Object |
getChangeByObject()
Effective if
isCurrentAutoValue() is false AND isChangeByOther() is true. |
java.lang.String |
getChangeByObjectName()
Deprecated.
|
short |
getChangeByOtherType()
Effective if
isCurrentAutoValue() is false AND isChangeByOther() is true Returns the resource type of 'another object': Propertiable.NORMAL_RESOURCE (Catalog/Report Level resource) or Propertiable.COMPFML_RESOURCE (Component Level resource) |
java.lang.Object |
getCurrentChangedBy(boolean isIncludeRTChgBy) |
jet.icontrols.PropValueInfo |
getCurrentValue()
Note to developer0:Now, it only can be used in Property Edit Actions and simple value parser.
|
jet.icontrols.PropValueInfo |
getCurrentValue(boolean isFmttContext)
Note to developer0:Now, it only can be used in Property Edit Actions and simple value parser.
|
int |
getEditFlag()
Only for Designer UI.
|
int |
getEditorType()
Only For Designer UI.
|
java.lang.String |
getInspValue()
Effective if
isCurrentAutoValue() is false. |
java.lang.String |
getInspValue(int unit,
int fraction)
Deprecated.
|
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.lang.String |
getName() |
java.lang.Object |
getNormalObject()
According to the following priority return : normal value > default value
Effective if isCurrentAutoValue() is false |
java.lang.Object |
getObject()
According to the following priority return : 'another object' > normal value > default value
Notice1: returned 'another object' is the description of 'changed by' Notice2: Effective if isCurrentAutoValue() is false |
jet.controls.JetObject |
getParent() |
java.util.Vector<?> |
getPropertyChoice()
Only For Designer UI
|
int |
getPropType() |
java.lang.Object |
getRuntimeChangeBy() |
java.lang.Object |
getUnifiedObject()
Effective if
isCurrentAutoValue() is falseAccording to the following priority return : ChangeBy value > normal value > default value Notice: returned ChangeBy value is the description of 'changed by' |
java.lang.Object |
getValue()
Effective if
isCurrentAutoValue() is false |
boolean |
isChagneByFmtt()
Effective if
isCurrentAutoValue() is false |
boolean |
isChangeByBL()
Effective if
isCurrentAutoValue() is false |
boolean |
isChangeByOther()
Effective if
isCurrentAutoValue() is false |
boolean |
isCurrentAutoValue()
Returns current is Auto value flag or not; always return false if did not enable Auto value
|
boolean |
isCurrentChangedBy(boolean isIncludeRTChgBy) |
boolean |
isEnableAutoValue()
Returns is enable or disable Auto value, default return false
|
boolean |
isNull()
Is set normal value?
Notice: This function has disabled from V8. |
boolean |
isSetAnyChangeBy()
return true if ChangeBy Value: conditional formatting or ChangeBy Value: on the fly formula or ChangeBy Value: another object is set
|
boolean |
isSetRuntimeChgBy() |
boolean |
isTransient()
Gets attribute for 'export to RST'.
|
void |
loadFullChangeBy(java.lang.String changeBy)
ONLY FOR LOAD CHANGE BY STRING
|
void |
propertyChanged()
Force refresh the property information that managed in/by owner.
Note to developer: No 'call hierarchy' found, but maybe can be found in other products |
java.lang.String |
saveFullChangeBy()
ONLY FOR SAVE CHANGE BY AS STRING
Notice: Can called ONLY this property has ChangeBy value |
void |
set(java.lang.String theval)
sets the normal value via a String.
|
boolean |
setAsAutoValue(boolean b)
Sets current is Auto value or not; effective if
isEnableAutoValue() is true Returns true if set, and false if any exception or Auto value is disabled now Notice: if sets not, muse set other value at same time |
void |
setCanChangeByBL(boolean bSet)
Sets can the property be changed by 'on the fly formula'
|
void |
setCanChangeByFmtt(boolean bSet)
Sets can the property be changed by 'conditional formatting'
|
void |
setCanChangeByOthers(boolean bSet)
Sets can the property be changed by 'another object'.
|
void |
setChangeByBL(java.lang.Object obj)
Deprecated.
|
void |
setChangeByBL(java.lang.Object obj,
short chgByResType)
Sets properties value changing by 'on the fly formula' if canChangeByBL
|
void |
setChangeByFmtt(java.lang.Object obj)
Sets properties value changing by 'conditional formatting' if canChangeByFmtt
|
void |
setChangeByObject(java.lang.Object obj)
Deprecated.
|
void |
setChangeByObject(java.lang.Object obj,
short chgByResType)
Sets properties value changing by 'another object' if canChangeByOther
|
void |
setEditFlag(int flag)
Only For Designer UI.Sets the editor status
|
void |
setEditorType(int type)
Only For Designer UI.
|
void |
setEnableAutoValue(boolean b)
Sets enable or disable Auto value
|
void |
setObject(java.lang.Object value)
Sets normal value
|
void |
setRuntimeChangeBy(java.lang.Object runtimeChgBy)
Sets runtime change by description.
|
void |
setTransient(boolean tran)
Sets attribute for 'export to RST'.
|
void |
setUnitValue(java.lang.String theval)
Sets the normal value via a String based on unit,
|
java.lang.String |
toUnitString()
Effective if
isCurrentAutoValue() is false; returns the unit value as string, the unit value is (with priority)normal value > default value |
public static int TEXT_EDITOR
public static int COMBO_EDITOR
public static int COLOR_EDITOR
public static int COMMAND_EDITOR
public static int CHOICE_EDITOR
public static int DBCOL_EDITOR
public static int PARAMCOL_EDITOR
public static int QUERY_EDITOR
public static int CHART_PATTERN_LIST_EDITOR
public static int LINK_EDITOR
public static int RECORDDB_EDITOR
public static int MULSEL_EDITOR
public static int CHART_FILTER_EDITOR
public static int CHART_FILTER_EDITOR_NO_DATE
public static int CHART_ICON_STYLE
public static int DATASOURCE_EDITOR
public static int SECURITY_EDITOR
public static int DETAIL_REPORT_EDITOR
public static int CONTROL_SELECT_ITEMS
public static final int EDIT_FORBIDDEN
public static final int EDIT_FORBIDDEN_INIT
public static final int EDITABLE_ALLTIME
public static final int INTERNAL
public static int CHART_TEXTSTYLE_EDITOR
public static int CHART_PENSTYLE_EDITOR
public static int CHART_FILLPATTERN_EDITOR
public static int CHART_BACKGROUND_EDITOR
public JetProperty()
public JetProperty(jet.controls.JetObject parent, java.lang.String name)
parent
- ownername
- namepublic java.lang.String getName()
getName
in interface jet.convert.PropInfo
public boolean isNull()
PropInfo
.isNull
in interface jet.convert.PropInfo
public java.util.Vector<?> getPropertyChoice()
public java.lang.Object getObject()
isCurrentAutoValue()
is falsegetObject
in interface jet.util.Propertiable
isChangeByOther()
,
isCurrentAutoValue()
public java.lang.Object getUnifiedObject()
isCurrentAutoValue()
is falsegetUnifiedObject
in interface jet.util.Propertiable
isChagneByFmtt()
,
isChangeByBL()
,
isChangeByOther()
,
isCurrentAutoValue()
public java.lang.Object getNormalObject()
isCurrentAutoValue()
is falsegetNormalObject
in interface jet.util.Propertiable
isCurrentAutoValue()
public void setObject(java.lang.Object value)
setObject
in interface jet.util.Propertiable
public java.lang.Object getValue()
isCurrentAutoValue()
is falsegetValue
in interface jet.convert.PropInfo
isCurrentAutoValue()
public void set(java.lang.String theval)
set
in interface jet.util.Propertiable
jet.exception.UnsupportedFunctionException
Object.toString()
public void setUnitValue(java.lang.String theval)
jet.exception.UnsupportedFunctionException
toUnitString()
public void setEditorType(int type)
type
- getEditorType()
public int getEditorType()
setEditorType(int)
public final void setChangeByObject(java.lang.Object obj)
Propertiable.NORMAL_RESOURCE
(Catalog/Report Level resource) setChangeByObject
in interface jet.util.Propertiable
setChangeByObject(Object, short)
public final void setChangeByObject(java.lang.Object obj, short chgByResType)
setChangeByObject
in interface jet.util.Propertiable
obj
- 'another object''s description: it can be formula-name, parameter-name and null
means clear 'change by'.chgByResType
- the resource type of 'another obejct', must be Propertiable.NORMAL_RESOURCE
(Catalog/Report Level resource) or Propertiable.COMPFML_RESOURCE
(Component Level resource)canChangeByOther
,
setCanChangeByOthers(boolean)
,
enableAllChangeBys(boolean)
,
isChangeByOther()
,
getChangeByObject()
,
getChangeByOtherType()
public final void setChangeByFmtt(java.lang.Object obj)
setChangeByFmtt
in interface jet.util.Propertiable
obj
- 'conditional formatting''s description and null
means clear.canChangeByFmtt
,
setCanChangeByFmtt(boolean)
,
enableAllChangeBys(boolean)
,
isChagneByFmtt()
,
getChangeByFmtt()
public final void setChangeByBL(java.lang.Object obj)
Propertiable.NORMAL_RESOURCE
(Catalog/Report Level resource) setChangeByBL
in interface jet.util.Propertiable
setChangeByBL(Object, short)
public final void setChangeByBL(java.lang.Object obj, short chgByResType)
setChangeByBL
in interface jet.util.Propertiable
obj
- 'on the fly formula''s description and null
means clear.chgByResType
- the resource type of 'on the fly formula', must be Propertiable.NORMAL_RESOURCE
(Catalog/Report Level resource) or Propertiable.COMPFML_RESOURCE
(Component Level resource)canChangeByBL
,
setCanChangeByBL(boolean)
,
enableAllChangeBys(boolean)
,
isChangeByBL()
,
getChangeByBL()
,
getChangeByBLType()
public final java.lang.Object getChangeByObject()
isCurrentAutoValue()
is false AND isChangeByOther()
is true. Must check getChangeByOtherType()
before used return valuenull
means no 'another object'.setChangeByObject(Object, short)
,
isChangeByOther()
,
isCurrentAutoValue()
,
getChangeByOtherType()
public final short getChangeByOtherType()
isCurrentAutoValue()
is false AND isChangeByOther()
is true Propertiable.NORMAL_RESOURCE
(Catalog/Report Level resource) or Propertiable.COMPFML_RESOURCE
(Component Level resource)getChangeByOtherType
in interface jet.util.Propertiable
getChangeByObject()
,
setChangeByBL(Object, short)
,
isChangeByOther()
,
isCurrentAutoValue()
public final java.lang.Object getChangeByFmtt()
getChangeByFmtt
in interface jet.util.Propertiable
null
means no 'conditional formatting'.setChangeByFmtt(Object)
,
isChagneByFmtt()
,
isCurrentAutoValue()
public final java.lang.Object getChangeByBL()
isCurrentAutoValue()
is false AND isChangeByBL()
is true. Must check getChangeByBLType()
before used return valuegetChangeByBL
in interface jet.util.Propertiable
null
means no 'on the fly formula'.#setChangeByBL(Object,Short)
,
isChangeByBL()
,
isCurrentAutoValue()
,
getChangeByBLType()
public final short getChangeByBLType()
isCurrentAutoValue()
is false AND isChangeByBL()
is truePropertiable.NORMAL_RESOURCE
(Catalog/Report Level resource) or Propertiable.COMPFML_RESOURCE
(Component Level resource)getChangeByBLType
in interface jet.util.Propertiable
getChangeByBL()
,
setChangeByBL(Object, short)
,
isChangeByBL()
,
isCurrentAutoValue()
public final java.lang.String getChangeByObjectName()
getChangeByObjectName
in interface jet.convert.PropInfo
getChangeByObject()
public final java.lang.String getChangeByFmttName()
getChangeByFmtt()
public final java.lang.String getChangeByBLName()
getChangeByBL()
public boolean isChangeByOther()
isCurrentAutoValue()
is falseisChangeByOther
in interface jet.convert.PropInfo
isChangeByOther
in interface jet.util.Propertiable
setChangeByObject(Object)
,
isCurrentAutoValue()
public boolean isChagneByFmtt()
isCurrentAutoValue()
is falseisChagneByFmtt
in interface jet.util.Propertiable
setChangeByFmtt(Object)
,
isCurrentAutoValue()
public boolean isChangeByBL()
isCurrentAutoValue()
is falseisChangeByBL
in interface jet.util.Propertiable
setChangeByBL(Object)
,
isEnableAutoValue()
public jet.controls.JetChangeBy getChangeBy()
getChangeByObject()
public void setCanChangeByOthers(boolean bSet)
public void setCanChangeByFmtt(boolean bSet)
canChangeByFmtt
,
canChangeByFmtt()
,
enableAllChangeBys(boolean)
public void setCanChangeByBL(boolean bSet)
canChangeByBL
,
canChangeByBL()
,
enableAllChangeBys(boolean)
public void enableAllChangeBys(boolean bEnable)
bEnable
- canChangeByOther
,
canChangeByBL
,
canChangeByFmtt
,
setCanChangeByBL(boolean)
,
setCanChangeByFmtt(boolean)
,
setCanChangeByOthers(boolean)
,
canChangeByBL()
,
canChangeByFmtt()
,
canChangeByOthers()
public boolean canChangeByOthers()
canChangeByOther
,
setCanChangeByOthers(boolean)
,
enableAllChangeBys(boolean)
public boolean canChangeByFmtt()
canChangeByFmtt
,
setCanChangeByFmtt(boolean)
,
enableAllChangeBys(boolean)
public boolean canChangeByBL()
canChangeByBL
,
setCanChangeByBL(boolean)
,
enableAllChangeBys(boolean)
public java.lang.String saveFullChangeBy()
saveFullChangeBy
in interface jet.util.Propertiable
loadFullChangeBy(String)
public void loadFullChangeBy(java.lang.String changeBy)
loadFullChangeBy
in interface jet.util.Propertiable
changeBy
- it MUST FIT following regular-expression:saveFullChangeBy()
public void propertyChanged()
public java.lang.String toUnitString()
isCurrentAutoValue()
is false; returns the unit value as string, the unit value is (with priority)normal value > default valuetoUnitString
in interface jet.convert.PropInfo
Object.toString()
,
isCurrentAutoValue()
public java.lang.String getInspValue(int unit, int fraction)
getInspValue()
public java.lang.String getInspValue()
isCurrentAutoValue()
is false. Only For Designer UI. In most cases, return string based on unitgetInspValue
in interface jet.convert.PropInfo
isCurrentAutoValue()
public void setEditFlag(int flag)
flag
- one of EDIT_FORBIDDEN
, EDIT_FORBIDDEN_INIT
, EDITABLE_ALLTIME
and INTERNAL
public int getEditFlag()
EDIT_FORBIDDEN
, EDIT_FORBIDDEN_INIT
, EDITABLE_ALLTIME
and INTERNAL
public jet.controls.JetObject getParent()
public int getPropType()
getPropType
in interface jet.util.Propertiable
Propertiable
public int[] getMatchingSqlType()
Db
public void setTransient(boolean tran)
tran
- true means not export to rst.bTransient
,
isTransient()
public boolean isTransient()
bTransient
,
setTransient(boolean)
public final boolean isCurrentAutoValue()
isCurrentAutoValue
in interface jet.util.Propertiable
isEnableAutoValue()
,
setEnableAutoValue(boolean)
,
setAsAutoValue(boolean)
public final boolean setAsAutoValue(boolean b)
isEnableAutoValue()
is true setAsAutoValue
in interface jet.util.Propertiable
b
- true set as Auto value and false is notisCurrentAutoValue()
,
isEnableAutoValue()
,
setEnableAutoValue(boolean)
public boolean isEnableAutoValue()
public final void setEnableAutoValue(boolean b)
b
- true if enable Auto valueisCurrentAutoValue()
,
setAsAutoValue(boolean)
,
isEnableAutoValue()
public java.lang.Object getRuntimeChangeBy()
getRuntimeChangeBy
in interface jet.util.Propertiable
public void setRuntimeChangeBy(java.lang.Object runtimeChgBy)
setRuntimeChangeBy
in interface jet.util.Propertiable
public boolean isSetRuntimeChgBy()
isSetRuntimeChgBy
in interface jet.util.Propertiable
public boolean isSetAnyChangeBy()
public boolean isCurrentChangedBy(boolean isIncludeRTChgBy)
isCurrentChangedBy
in interface jet.util.Propertiable
public java.lang.Object getCurrentChangedBy(boolean isIncludeRTChgBy)
getCurrentChangedBy
in interface jet.util.Propertiable
public jet.icontrols.PropValueInfo getCurrentValue()
#getCurrentValue(boolean)}
public jet.icontrols.PropValueInfo getCurrentValue(boolean isFmttContext)
isFmttContext
- is 'conditional formatting' used context? if false, will not return 'conditional formatting' settings.