|
IBM Branch Transformation Toolkit Javadoc | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.dse.gui.ColorSettings
The ColorSettings class is used by the SpColorEditor to encapsulate the colors.
Field Summary | |
---|---|
static int |
SPCOMBOBOX
When typeComponent property is SPCOMBOBOX, ColorSettings is a SpComboBox colors property |
static int |
SPLIST
When typeComponent property is SPLIST ColorSettings is a SpList colors property |
static int |
SPTABLE
When typeComponent property is SPTABLE ColorSettings is a SpTable colors property |
static int |
SPTEXTFIELD
When typeComponent property is SPTEXFIELD, ColorSettings is a SpTextField colors property |
Constructor Summary | |
---|---|
ColorSettings()
This constructor creates a ColorSettings object. |
|
ColorSettings(java.awt.Color mbc,
java.awt.Color mfc,
java.awt.Color ebc,
java.awt.Color efc,
java.awt.Color obc,
java.awt.Color ofc,
java.awt.Color nedbc,
java.awt.Color nedfc,
java.awt.Color nenbc,
java.awt.Color nenfc,
java.awt.Color sbc,
java.awt.Color sfc,
java.awt.Color caret)
This constructor creates a ColorSettings object. |
|
ColorSettings(int typeCompo)
This constructor creates a ColorSettings object. |
|
ColorSettings(int typeCompo,
java.awt.Color mbc,
java.awt.Color mfc,
java.awt.Color ebc,
java.awt.Color efc,
java.awt.Color obc,
java.awt.Color ofc,
java.awt.Color nedbc,
java.awt.Color nedfc,
java.awt.Color nenbc,
java.awt.Color nenfc,
java.awt.Color sbc,
java.awt.Color sfc,
java.awt.Color caret)
This constructor creates a ColorSettings object. |
|
ColorSettings(int typeCompo,
int mdbk,
int mdfg,
int erbk,
int erfg,
int opbg,
int opfg,
int nedbg,
int nedfg,
int nenbg,
int nenfg,
int caret,
int slbg,
int slfg)
This constructor creates a ColorSettings object. |
|
ColorSettings(int type,
java.util.Vector vc)
This constructor creates a ColorSettings object. |
Method Summary | |
---|---|
java.awt.Color |
getCaretColor()
Gets the Caret color property value. |
java.lang.String |
getCaretColorString()
Gets the Caret color property value in a Java line code. |
java.awt.Color |
getErrorBackgroundColor()
Gets the Error background color property value. |
java.lang.String |
getErrorBackgroundColorString()
Gets the Error background color property value in a Java line code. |
java.awt.Color |
getErrorForegroundColor()
Gets the Error foreground color property value. |
java.lang.String |
getErrorForegroundColorString()
Gets the Error foreground color property value in a Java line code. |
java.awt.Color |
getMandatoryBackgroundColor()
Gets the Mandatory background color property value. |
java.lang.String |
getMandatoryBackgroundColorString()
Gets the Mandatory background color property value in a Java line code. |
java.awt.Color |
getMandatoryForegroundColor()
Gets the Mandatory foreground color property value. |
java.lang.String |
getMandatoryForegroundColorString()
Gets the Mandatory foreground color property value in a Java line code. |
java.awt.Color |
getNonEditableBackgroundColor()
Gets the Non editable background color property value. |
java.lang.String |
getNonEditableBackgroundColorString()
Gets the Non editable background color property value in a Java line code. |
java.awt.Color |
getNonEditableForegroundColor()
Gets the Non editable foreground color property value. |
java.lang.String |
getNonEditableForegroundColorString()
Gets the Non editable foreground color property value in a Java line code. |
java.awt.Color |
getNonEnabledBackgroundColor()
Gets the Non enabled background color property value. |
java.lang.String |
getNonEnabledBackgroundColorString()
Gets the Non enabled background color property value in a Java line code. |
java.awt.Color |
getNonEnabledForegroundColor()
Gets the Non enabled foreground color property value. |
java.lang.String |
getNonEnabledForegroundColorString()
Gets the Non enabled foreground color property value in a Java line code. |
java.awt.Color |
getOptionalBackgroundColor()
Gets the Optional background color property value. |
java.lang.String |
getOptionalBackgroundColorString()
Gets the Optional background color property value in a Java line code. |
java.awt.Color |
getOptionalForegroundColor()
Gets the Optional foreground color property value. |
java.lang.String |
getOptionalForegroundColorString()
Gets the Optional foreground color property value in a Java line code. |
java.awt.Color |
getSelectionBackgroundColor()
Gets the Selection background color property value. |
java.lang.String |
getSelectionBackgroundColorString()
Gets the Selection background color property value in a Java line code. |
java.awt.Color |
getSelectionForegroundColor()
Gets the Selection foreground color property value. |
java.lang.String |
getSelectionForegroundColorString()
Gets the Selection foreground color property value in a Java line code. |
int |
getTypeComponent()
Gets the Type component property value. |
ColorSettings |
newCopy()
returns a copy of this object. |
void |
setCaretColor(java.awt.Color c)
Sets the Caret color property (java.awt.color) value. |
void |
setErrorBackgroundColor(java.awt.Color c)
Sets the Error background color property (java.awt.color) value. |
void |
setErrorForegroundColor(java.awt.Color c)
Sets the Error foreground color property (java.awt.color) value. |
void |
setMandatoryBackgroundColor(java.awt.Color c)
Sets the Mandatory background color property (java.awt.color) value. |
void |
setMandatoryForegroundColor(java.awt.Color c)
Sets the Mandatory foreground color property (java.awt.color) value. |
void |
setNonEditableBackgroundColor(java.awt.Color c)
Sets the Non editable background color property (java.awt.color) value. |
void |
setNonEditableForegroundColor(java.awt.Color c)
Sets the Non editable foreground color property (java.awt.color) value. |
void |
setNonEnabledBackgroundColor(java.awt.Color c)
Sets the Non Enabled background color property (java.awt.color) value. |
void |
setNonEnabledForegroundColor(java.awt.Color c)
Sets the Non enabled foreground color property (java.awt.color) value. |
void |
setOptionalBackgroundColor(java.awt.Color c)
Sets the Optional background color property (java.awt.color) value. |
void |
setOptionalForegroundColor(java.awt.Color c)
Sets the Optional foreground color property (java.awt.color) value. |
void |
setSelectionBackgroundColor(java.awt.Color c)
Sets the Selection background color property (java.awt.color) value. |
void |
setSelectionForegroundColor(java.awt.Color c)
Sets the Selection foreground color property (java.awt.color) value. |
void |
setTypeComponent(int typeCompo)
Sets the Type Component property value. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int SPTEXTFIELD
public static final int SPCOMBOBOX
public static final int SPLIST
public static final int SPTABLE
Constructor Detail |
public ColorSettings()
public ColorSettings(int typeCompo)
public ColorSettings(int typeCompo, int mdbk, int mdfg, int erbk, int erfg, int opbg, int opfg, int nedbg, int nedfg, int nenbg, int nenfg, int caret, int slbg, int slfg)
mdbk
- int, Mandatory background color (the RGB value representing the color in the default sRGB)mdfg
- int, Mandatory foreground color (the RGB value representing the color in the default sRGB)erbk
- int, Error background color (the RGB value representing the color in the default sRGB)erfg
- int, Error foreground color (the RGB value representing the color in the default sRGB)opbg
- int, Optional background color (the RGB value representing the color in the default sRGB)opfg
- int, Optional foreground color (the RGB value representing the color in the default sRGB)nedbg
- int, NonEditable background color (the RGB value representing the color in the default sRGB)nedfg
- int, NonEditable foreground color (the RGB value representing the color in the default sRGB)nenbg
- int, NonEnabled background color (the RGB value representing the color in the default sRGB)nenfg
- int, NonEnabled foreground color (the RGB value representing the color in the default sRGB)slbg
- int, Selection background color (the RGB value representing the color in the default sRGB)slfg
- int, Selection foreground color (the RGB value representing the color in the default sRGB)caret
- int, Caret color (the RGB value representing the color in the default sRGB)public ColorSettings(int typeCompo, java.awt.Color mbc, java.awt.Color mfc, java.awt.Color ebc, java.awt.Color efc, java.awt.Color obc, java.awt.Color ofc, java.awt.Color nedbc, java.awt.Color nedfc, java.awt.Color nenbc, java.awt.Color nenfc, java.awt.Color sbc, java.awt.Color sfc, java.awt.Color caret)
mbc
- java.awt.Color, Mandatory background colormfc
- java.awt.Color, Mandatory foreground colorebc
- java.awt.Color, Error background colorefc
- java.awt.Color, Error foreground colorobc
- java.awt.Color, Optional background colorofc
- java.awt.Color, Optional foreground colornedbc
- java.awt.Color, Non editable background colornedfc
- java.awt.Color, Non editable foreground colornenbc
- java.awt.Color, Non enabled background colornenfc
- java.awt.Color, Non enabled foreground colorsbc
- java.awt.Color, Selection background colorsfc
- java.awt.Color, Selection foreground colorcaret
- java.awt.Color, Caret colorpublic ColorSettings(int type, java.util.Vector vc)
type
- int, One of the following constants defined in ColorSettings: SPTEXTFIELD, SPCOMBOBOX, SPLIST or SPTABLE.vc
- java.util.Vector with:public ColorSettings(java.awt.Color mbc, java.awt.Color mfc, java.awt.Color ebc, java.awt.Color efc, java.awt.Color obc, java.awt.Color ofc, java.awt.Color nedbc, java.awt.Color nedfc, java.awt.Color nenbc, java.awt.Color nenfc, java.awt.Color sbc, java.awt.Color sfc, java.awt.Color caret)
mbc
- java.awt.Color, Mandatory background colormfc
- java.awt.Color, Mandatory foreground colorebc
- java.awt.Color, Error background colorefc
- java.awt.Color, Error foreground colorobc
- java.awt.Color, Optional background colorofc
- java.awt.Color, Optional foreground colornedbc
- java.awt.Color, Non editable background colornedfc
- java.awt.Color, Non editable foreground colornenbc
- java.awt.Color, Non enabled background colornenfc
- java.awt.Color, Non enabled foreground colorsbc
- java.awt.Color, Selection background colorsfc
- java.awt.Color, Selection foreground colorcaret
- java.awt.Color, Caret colorMethod Detail |
public java.awt.Color getCaretColor()
public java.lang.String getCaretColorString()
public java.awt.Color getErrorBackgroundColor()
public java.lang.String getErrorBackgroundColorString()
public java.awt.Color getErrorForegroundColor()
public java.lang.String getErrorForegroundColorString()
public java.awt.Color getMandatoryBackgroundColor()
public java.lang.String getMandatoryBackgroundColorString()
public java.awt.Color getMandatoryForegroundColor()
public java.lang.String getMandatoryForegroundColorString()
public java.awt.Color getNonEditableBackgroundColor()
public java.lang.String getNonEditableBackgroundColorString()
public java.awt.Color getNonEditableForegroundColor()
public java.lang.String getNonEditableForegroundColorString()
public java.awt.Color getNonEnabledBackgroundColor()
public java.lang.String getNonEnabledBackgroundColorString()
public java.awt.Color getNonEnabledForegroundColor()
public java.lang.String getNonEnabledForegroundColorString()
public java.awt.Color getOptionalBackgroundColor()
public java.lang.String getOptionalBackgroundColorString()
public java.awt.Color getOptionalForegroundColor()
public java.lang.String getOptionalForegroundColorString()
public java.awt.Color getSelectionBackgroundColor()
public java.lang.String getSelectionBackgroundColorString()
public java.awt.Color getSelectionForegroundColor()
public java.lang.String getSelectionForegroundColorString()
public int getTypeComponent()
public ColorSettings newCopy()
public void setCaretColor(java.awt.Color c)
c
- java.awt.Color, the new value for the property.getCaretColor()
public void setErrorBackgroundColor(java.awt.Color c)
c
- java.awt.Color, the new value for the property.getErrorBackgroundColor()
public void setErrorForegroundColor(java.awt.Color c)
c
- java.awt.Color, the new value for the property.getErrorForegroundColor()
public void setMandatoryBackgroundColor(java.awt.Color c)
c
- java.awt.Color, the new value for the property.getMandatoryBackgroundColor()
public void setMandatoryForegroundColor(java.awt.Color c)
c
- java.awt.Color, the new value for the property.getMandatoryForegroundColor()
public void setNonEditableBackgroundColor(java.awt.Color c)
c
- java.awt.Color, the new value for the property.getNonEditableBackgroundColor()
public void setNonEditableForegroundColor(java.awt.Color c)
c
- java.awt.Color, the new value for the property.getNonEditableForegroundColor()
public void setNonEnabledBackgroundColor(java.awt.Color c)
c
- java.awt.Color, the new value for the property.#getEnabledBackgroundColor
public void setNonEnabledForegroundColor(java.awt.Color c)
c
- java.awt.Color, the new value for the property.getNonEnabledForegroundColor()
public void setOptionalBackgroundColor(java.awt.Color c)
c
- java.awt.Color, the new value for the property.getOptionalBackgroundColor()
public void setOptionalForegroundColor(java.awt.Color c)
c
- java.awt.Color, the new value for the property.getOptionalForegroundColor()
public void setSelectionBackgroundColor(java.awt.Color c)
c
- java.awt.Color, the new value for the property.getSelectionBackgroundColor()
public void setSelectionForegroundColor(java.awt.Color c)
c
- java.awt.Color, the new value for the property.getSelectionForegroundColor()
public void setTypeComponent(int typeCompo)
typeCompo
- int, the new value for the property.getTypeComponent()
|
IBM Branch Transformation Toolkit Javadoc | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |