|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jet.controls.JetProperty jet.controls.JetColor
public class JetColor
JetColor is for saving/retrieving a java.awt.Color value.
Color.lightGray
(alpha=1, red=192/255, green=192/255, blue=192/255).
Field Summary |
---|
Fields inherited from interface jet.util.Propertiable |
---|
BIGSTRING, 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 Summary | |
---|---|
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. |
Method Summary | |
---|---|
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 designer UI : get Matching SQL Type of this property Usage in UI : list all the (normal-)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. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface jet.convert.PropInfo |
---|
getChangeByObjectName, getInspValue, getName, getValue, isChangeByOther, isNull, toUnitString |
Constructor Detail |
---|
public JetColor()
public JetColor(jet.controls.JetObject parent, java.lang.String name)
parent
- Owner.name
- Name.Color.lightGray
public 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.Method Detail |
---|
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.Propertiable
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()
,
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.ColorInfo
null
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.PropInfo
toString
in class java.lang.Object
get()
,
MiscTools.mapColorToString(Color)
,
JetProperty.isCurrentAutoValue()
public int[] getMatchingSqlType()
JetProperty
getMatchingSqlType
in class JetProperty
Db
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |