public class ColorGui extends Color
| Modifier and Type | Field and Description |
|---|---|
private int |
bgcolor
Background color index.
|
private int |
fgcolor
Foreground color index.
|
| Constructor and Description |
|---|
ColorGui()
Default constructor.
|
ColorGui(int fgcolor,
int bgcolor)
Construct an instance using specified foreground and background colors.
|
| Modifier and Type | Method and Description |
|---|---|
void |
colorDisplay(GenericWidget<?> widget)
Execute the COLOR DISPLAY statement for the specified widget.
|
void |
colorPrompt(GenericWidget<?> widget)
Execute the COLOR PROMPT statement for the specified widget.
|
boolean |
equals(java.lang.Object obj) |
int |
getBgcolor()
Get bgcolor.
|
int |
getFgcolor()
Get fgcolor.
|
void |
readExternal(java.io.ObjectInput in) |
void |
writeExternal(java.io.ObjectOutput out) |
attribute, color, hasBlink, hasBold, hashCode, hasReverse, hasUnderline, readColor, toBackground, toColorValue, toForeground, withBlink, withBold, withoutBlink, withoutBold, withoutReverse, withoutUnderline, withReverse, withUnderline, writeColorprivate int bgcolor
private int fgcolor
public ColorGui(int fgcolor,
int bgcolor)
fgcolor - Foreground color.bgcolor - Background color.public ColorGui()
public void colorDisplay(GenericWidget<?> widget)
colorDisplay in class Colorwidget - The widget instance.public void colorPrompt(GenericWidget<?> widget)
colorPrompt in class Colorwidget - The widget instance.public int getBgcolor()
public int getFgcolor()
public boolean equals(java.lang.Object obj)
public void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
writeExternal in interface java.io.ExternalizablewriteExternal in class Colorjava.io.IOExceptionExternalizable.writeExternal(java.io.ObjectOutput)public void readExternal(java.io.ObjectInput in)
throws java.io.IOException
readExternal in interface java.io.ExternalizablereadExternal in class Colorjava.io.IOExceptionExternalizable.readExternal(java.io.ObjectInput)