public class JetEnumeration extends JetProperty implements jet.convert.EnumerationInfo
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, NORMAL_RESOURCE, NUMBER, REFERENCE, STRING, SUB1_DELIM, UNIT, VAL_NORMALLENGTH, VAL_NORMALSTART, VECTOR| Constructor and Description |
|---|
JetEnumeration() |
JetEnumeration(jet.controls.JetObject parent,
java.lang.String name)
Create a JetEnumeration instance with no value
|
JetEnumeration(jet.controls.JetObject parent,
java.lang.String name,
int enumType)
Create a JetEnumeration instance with specified entries-set id but no value
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
add(java.lang.String key,
java.lang.Object value)
Adds/Overwrites an entry to/in entry-table.
|
java.lang.Object |
get()
Effective if
JetProperty.isCurrentAutoValue() is false. |
java.lang.String |
getCurKey()
Effective if
JetProperty.isCurrentAutoValue() is false. |
java.util.Hashtable |
getEnumerationSet() |
int |
getEnumerationType() |
java.lang.String |
getKeyByValue(int value)
Notice:
1) before call it, please make sure that all entries' value are Integer 2) Before call it, please make sure that this instance is constructed by entries-set id, and no any operation about entry-table after construct |
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.Object |
getObject()
Effective if
JetProperty.isCurrentAutoValue() is false;returns normal value's value, or last entry(hash order)'s value in entry-table if not set |
java.util.Vector |
getPropertyChoice()
Effective if
JetProperty.isCurrentAutoValue() is false. |
int |
getValue(java.lang.Object key)
Notice:
1) before call it, please make sure that all entries' value are Integer 2) It has not been deleted because it is an API in EnumerationInfo |
int |
intValue()
Notice1: before call it, please make sure that all entries' value are Integer
Notice2: effective if JetProperty.isCurrentAutoValue() is false. |
java.lang.Object |
remove(java.lang.String key)
Removes the an entry from entry-table.
|
void |
removeAll()
Clears so that entry-table contains no enumeration items
|
void |
set(java.lang.Object obj)
Sets normal value specified entry's value.
|
void |
set(java.lang.String key)
Sets normal value via specified entry's name if can found mapping in
|
void |
setEnumerationSet(java.util.Hashtable enumerationSet)
Sets entry-table, notice : it would not change normal value.
|
void |
setValue(java.lang.Object obj)
Sets normal value via specified entry's value.
|
void |
setValue(java.lang.String key)
Sets normal value via specified entry's name if can found mapping in
|
java.lang.String |
toString()
Effective if
JetProperty.isCurrentAutoValue() is false. |
canChangeByBL, canChangeByFmtt, canChangeByOthers, enableAllChangeBys, getChangeBy, getChangeByBL, getChangeByBLName, getChangeByBLType, getChangeByFmtt, getChangeByFmttName, getChangeByObject, getChangeByObjectName, getChangeByOtherType, getCurrentChangedBy, getCurrentValue, getCurrentValue, getEditFlag, getEditorType, getInspValue, getInspValue, getName, getNormalObject, 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, toUnitStringpublic JetEnumeration()
public JetEnumeration(jet.controls.JetObject parent,
java.lang.String name)
parent - ownername - namepublic JetEnumeration(jet.controls.JetObject parent,
java.lang.String name,
int enumType)
parent - ownername - nameenumType - the entries-set defined in EnumerationConstantEnumerationConstantpublic java.lang.Object add(java.lang.String key,
java.lang.Object value)
key - the entry's name, can not empty-string and null.value - the entry's valuenull if it did not have onejava.lang.NullPointerException - if the key or value is nullpublic java.lang.Object remove(java.lang.String key)
key - the item's name that needs to be removed, can not empty-string and null.null if the key did not have a mappingjava.lang.NullPointerException - if the key is nullpublic void set(java.lang.Object obj)
obj - : the valuesetValue(Object)public void set(java.lang.String key)
set in interface jet.util.Propertiableset in class JetPropertykey - the item's name, can not empty-string and null.setValue(String)public void setValue(java.lang.Object obj)
obj - the valuepublic void setValue(java.lang.String key)
key - the item's name, can not empty string and null.public java.lang.Object get()
JetProperty.isCurrentAutoValue() is false.JetProperty.isCurrentAutoValue()public java.lang.String getCurKey()
JetProperty.isCurrentAutoValue() is false.getCurKey in interface jet.convert.EnumerationInfoset(Object),
set(String),
setValue(Object),
setValue(String),
get(),
toString(),
JetProperty.isCurrentAutoValue()public java.lang.String toString()
JetProperty.isCurrentAutoValue() is false.toString in interface jet.convert.PropInfotoString in class java.lang.Objectset(Object),
set(String),
setValue(Object),
setValue(String),
get(),
getCurKey(),
JetProperty.isCurrentAutoValue()public int intValue()
JetProperty.isCurrentAutoValue() is false. intValue in interface jet.convert.EnumerationInfogetValue(Object),
JetProperty.isCurrentAutoValue()public void removeAll()
public int getValue(java.lang.Object key)
EnumerationInfogetValue in interface jet.convert.EnumerationInfokey - the enumeration item's name whose associated value is to be returnedkey is mapped,java.lang.NullPointerException - if no mapping for the keyjava.lang.ClassCastException - if not all enumeration item's value is Integer.intValue()public java.lang.String getKeyByValue(int value)
value - the value whose associated name is to be returnednull if no mapping for the value.public java.util.Vector getPropertyChoice()
JetProperty.isCurrentAutoValue() is false.getPropertyChoice in class JetPropertyJetProperty.isEnableAutoValue()public java.lang.Object getObject()
JetProperty.isCurrentAutoValue() is false;returns normal value's value, or last entry(hash order)'s value in entry-table if not setgetObject in interface jet.util.PropertiablegetObject in class JetPropertyget(),
JetProperty.isCurrentAutoValue()public java.util.Hashtable getEnumerationSet()
public void setEnumerationSet(java.util.Hashtable enumerationSet)
enumerationSet - a Hashtable, DO NOT null.public int getEnumerationType()
public int[] getMatchingSqlType()
JetPropertygetMatchingSqlType in class JetPropertyDb