public class JetEnumeration extends JetProperty
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 |
---|
JetEnumeration() |
JetEnumeration(JetObject parent,
java.lang.String name)
Create a JetEnumeration instance with no value
|
JetEnumeration(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.
|
void |
addAliasKey(java.lang.String aliasKey,
java.lang.String actualKey)
ONLY FOR DEVELOPER, set a aliasKey to actual Key, ONLY CAN CALLED DURING Constructing.
|
JetProperty |
copy()
Copies property with normal value
|
java.lang.Object |
get()
Deprecated.
|
java.lang.Object |
get(int mode) |
java.lang.String |
getCurKey()
Deprecated.
|
java.lang.String |
getCurKey(int mode) |
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()
Deprecated.
|
java.lang.Object |
getObject(int mode)
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 JetProperty.isCurrentAutoValue() is false |
java.util.Vector |
getPropertyChoice()
Effective if
JetProperty.isCurrentAutoValue() is false. |
int |
getValue(java.lang.Object key)
Deprecated.
|
int |
getValue(java.lang.Object key,
int mode) |
int |
intValue()
Deprecated.
|
int |
intValue(int mode) |
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)
Deprecated.
|
void |
set(java.lang.Object obj,
int mode) |
void |
set(java.lang.String key)
Deprecated.
|
void |
set(java.lang.String key,
int mode)
sets the normal value via a String.
|
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.Object obj,
int mode) |
void |
setValue(java.lang.String key)
Deprecated.
|
void |
setValue(java.lang.String key,
int mode) |
java.lang.String |
toString()
Effective if
JetProperty.isCurrentAutoValue() is false. |
addPropertyChangeListener, addToAtomicAction, 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, getInspValue, 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, setCanChangeByOthers, setChangeByBL, setChangeByBL, setChangeByBL, setChangeByBL, setChangeByFmtt, setChangeByFmtt, setChangeByObject, setChangeByObject, setChangeByObject, setChangeByObject, setEditFlag, setEditorType, setEnableAutoValue, setObject, setObject, setRuntimeChangeBy, setRuntimeChangeBy, setSupportMode, setTransient, setUnavailable, setUnitValue, setUnitValue, toUnitString, toUnitString
public JetEnumeration()
public JetEnumeration(JetObject parent, java.lang.String name)
parent
- ownername
- namepublic JetEnumeration(JetObject parent, java.lang.String name, int enumType)
parent
- ownername
- nameenumType
- the entries-set defined in EnumerationConstantEnumerationConstant
public void addAliasKey(java.lang.String aliasKey, java.lang.String actualKey)
aliasKey
- actualKey
- public 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 null
public 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 null
public void set(java.lang.Object obj)
obj
- : the valuesetValue(Object)
public void set(java.lang.Object obj, int mode)
public void set(java.lang.String key)
set
in class JetProperty
key
- the item's name, can not empty-string and null
.setValue(String)
public void set(java.lang.String key, int mode)
JetProperty
set
in class JetProperty
If the subclass supports mode type, need to copy this method
public void setValue(java.lang.Object obj)
obj
- the valuepublic void setValue(java.lang.Object obj, int mode)
public void setValue(java.lang.String key)
key
- the item's name, can not empty string and null
.public void setValue(java.lang.String key, int mode)
public java.lang.Object get()
JetProperty.isCurrentAutoValue()
is false.JetProperty.isCurrentAutoValue()
public java.lang.Object get(int mode)
public java.lang.String getCurKey()
JetProperty.isCurrentAutoValue()
is false.set(Object)
,
set(String)
,
setValue(Object)
,
setValue(String)
,
get()
,
toString()
,
JetProperty.isCurrentAutoValue()
public java.lang.String getCurKey(int mode)
public java.lang.String toString()
JetProperty.isCurrentAutoValue()
is false.toString
in class java.lang.Object
set(Object)
,
set(String)
,
setValue(Object)
,
setValue(String)
,
get()
,
getCurKey()
,
JetProperty.isCurrentAutoValue()
public int intValue()
JetProperty.isCurrentAutoValue()
is false. getValue(Object)
,
JetProperty.isCurrentAutoValue()
public int intValue(int mode)
public void removeAll()
public int getValue(java.lang.Object key)
jet.convert.EnumerationInfo
key
- the enumeration item's name whose associated value is to be returnedkey
is mapped,java.lang.NullPointerException
- if no mapping for the key
java.lang.ClassCastException
- if not all enumeration item's value is Integer.intValue()
public int getValue(java.lang.Object key, int mode)
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 JetProperty
JetProperty.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 class JetProperty
get()
,
JetProperty.isCurrentAutoValue()
public java.lang.Object getObject(int mode)
JetProperty
JetProperty.isCurrentAutoValue()
is falsegetObject
in class JetProperty
JetProperty.isChangeByOther()
,
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()
JetProperty
getMatchingSqlType
in class JetProperty
Db
public JetProperty copy()
copy
in class JetProperty