public class JetColor extends JetProperty
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_EDITOR
Constructor and Description |
---|
JetColor() |
JetColor(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(JetObject parent,
java.lang.String name,
java.awt.Color value)
Constructor.
Creates a JetColor instance which can not support 'Transparent'(no color). |
JetColor(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()
Deprecated.
|
java.awt.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(java.awt.Color color)
Deprecated.
|
void |
set(java.awt.Color color,
int mode) |
void |
set(java.lang.String color)
Deprecated.
|
void |
set(java.lang.String color,
int mode)
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. |
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, toUnitString
public JetColor()
public JetColor(JetObject parent, java.lang.String name)
parent
- Owner.name
- Name.Color.lightGray
public JetColor(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(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.awt.Color color, int mode)
public void set(java.lang.String color)
set
in class JetProperty
color
- 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()
,
jet.util.MiscTools#_mapStringToColor(String)
,
nullEnabled
,
#setValue(String)
public void set(java.lang.String color, int mode)
JetProperty
set
in class JetProperty
If the subclass supports mode type, need to copy this method
public java.awt.Color get()
JetProperty.isCurrentAutoValue()
is false; returns a value according to the following priority: normal value > default value.null
which means 'Transparent'(no color).JetProperty.isCurrentAutoValue()
public java.awt.Color get(int mode)
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 class java.lang.Object
get()
,
jet.util.MiscTools#mapColorToString(Color)
,
JetProperty.isCurrentAutoValue()
public int[] getMatchingSqlType()
JetProperty
getMatchingSqlType
in class JetProperty
Db