public class JetColor extends JetProperty implements jet.convert.ColorInfo
Color.lightGray(alpha=1, red=192/255, green=192/255, blue=192/255).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 |
|---|
JetColor() |
JetColor(jet.controls.JetObject parent,
java.lang.String name)
Creates a JetColor instance with the normal value is light-gray, and it can not support 'Transparent'(no color).
|
JetColor(jet.controls.JetObject parent,
java.lang.String name,
java.awt.Color value)
Constructor.
Creates a JetColor instance which can not support 'Transparent'(no color). |
JetColor(jet.controls.JetObject parent,
java.lang.String name,
java.awt.Color value,
boolean nullEnabled)
Constructor.
Creates a JetColor instance. |
| Modifier and Type | Method and Description |
|---|---|
java.awt.Color |
get()
Effective if
JetProperty.isCurrentAutoValue() is false; returns a value according to the following priority: normal value > default value. |
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 |
boolean |
isNullEnabled()
Specifies whether to support 'Transparent'(no color).
|
void |
set(java.awt.Color color)
Sets the normal value via java.awt.Color.
|
void |
set(java.lang.String color)
Sets the normal value via a string.
|
java.lang.String |
toString()
Effective if
JetProperty.isCurrentAutoValue() is false; convert a string value and returns it according to the following priority: normal value > default value. |
canChangeByBL, canChangeByFmtt, canChangeByOthers, enableAllChangeBys, getChangeBy, getChangeByBL, getChangeByBLName, getChangeByBLType, getChangeByFmtt, getChangeByFmttName, getChangeByObject, getChangeByObjectName, getChangeByOtherType, getCurrentChangedBy, getCurrentValue, getCurrentValue, getEditFlag, getEditorType, getInspValue, getInspValue, getName, getNormalObject, getObject, getParent, getPropertyChoice, 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 JetColor()
public JetColor(jet.controls.JetObject parent,
java.lang.String name)
parent - Owner.name - Name.Color.lightGraypublic JetColor(jet.controls.JetObject parent,
java.lang.String name,
java.awt.Color value)
parent - Owner.name - Name.value - The value to be set for the normal value; null means the default value.public JetColor(jet.controls.JetObject parent,
java.lang.String name,
java.awt.Color value,
boolean nullEnabled)
parent - The owner of the property.name - The property namevalue - The value to be set to normal value, null means default value if nullEnabled is false, otherwise 'Transparent'(no color).nullEnabled - Specifies whether to support 'Transparent'(no color) or not.public boolean isNullEnabled()
public void set(java.awt.Color color)
color - The color to be set for the normal value; null means the default value if 'Transparent'(no color) is not supported, otherwise 'Transparent'(no color).set(String),
isNullEnabled(),
nullEnabled,
setValue(Color)public void set(java.lang.String color)
set in interface jet.util.Propertiableset in class JetPropertycolor - The string to be set for the normal value, which must be one of the following:null which means the default value if 'Transparent'(no color) is not supported, otherwise 'Transparent'(no color).set(Color),
isNullEnabled(),
MiscTools._mapStringToColor(String),
nullEnabled,
setValue(String)public java.awt.Color get()
JetProperty.isCurrentAutoValue() is false; returns a value according to the following priority: normal value > default value.get in interface jet.convert.ColorInfonull which means 'Transparent'(no color).JetProperty.isCurrentAutoValue()public java.lang.String toString()
JetProperty.isCurrentAutoValue() is false; convert a string value and returns it according to the following priority: normal value > default value.toString in interface jet.convert.PropInfotoString in class java.lang.Objectget(),
MiscTools.mapColorToString(Color),
JetProperty.isCurrentAutoValue()public int[] getMatchingSqlType()
JetPropertygetMatchingSqlType in class JetPropertyDb