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, MODE_PAGE, MODE_UNKNOWN, MODE_WEB, NORMAL_RESOURCE, NUMBER, POINT, REFERENCE, STRING, SUB1_DELIM, UNIT, VAL_NORMALLENGTH, VAL_NORMALSTART, VECTOR| Constructor and Description |
|---|
JetColor() |
JetColor(jet.controls.JetObject parent,
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,
String name,
Color value)
Constructor.
Creates a JetColor instance which can not support 'Transparent'(no color). |
JetColor(jet.controls.JetObject parent,
String name,
Color value,
boolean nullEnabled)
Constructor.
Creates a JetColor instance. |
| Modifier and Type | Method and Description |
|---|---|
Color |
get()
Deprecated.
|
Color |
get(int mode) |
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(Color color)
Deprecated.
|
void |
set(Color color,
int mode) |
void |
set(String color)
Deprecated.
|
void |
set(String color,
int mode)
sets the normal value via a String.
|
String |
toString()
Effective if
JetProperty.isCurrentAutoValue() is false; convert a string value and returns it according to the following priority: normal value > default value. |
addPropertyChangeListener, addToAtomicAction, canChangeByBL, canChangeByFmtt, canChangeByOthers, checkValue, copy, 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, getObject, getObject, getParent, getPropertyChoice, 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, toUnitStringpublic JetColor()
public JetColor(jet.controls.JetObject parent,
String name)
parent - Owner.name - Name.Color.lightGraypublic JetColor(jet.controls.JetObject parent,
String name,
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,
String name,
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(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(Color color, int mode)
public void set(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 void set(String color, int mode)
JetPropertyset in interface jet.util.Propertiableset in class JetPropertyIf the subclass supports mode type, need to copy this methodpublic 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 Color get(int mode)
get in interface jet.convert.ColorInfopublic 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 Objectget(),
MiscTools.mapColorToString(Color),
JetProperty.isCurrentAutoValue()public int[] getMatchingSqlType()
JetPropertygetMatchingSqlType in class JetPropertyDb© insightsoftware. All rights reserved.