|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.objectweb.cjdbc.console.text.ColorPrinter
This class defines a ColorPrinter
| Field Summary | |
private static int |
ATTR_BRIGHT
|
private static int |
ATTR_DIM
|
private static java.lang.String |
END_COLOR
|
private static java.lang.String |
ERR_COLOR
|
static int |
ERROR
Error color |
private static int |
FG_BLACK
|
private static int |
FG_BLUE
|
private static int |
FG_GREEN
|
private static int |
FG_MAGENTA
|
private static int |
FG_RED
|
static int |
INFO
Info color for commands |
private static java.lang.String |
INFO_COLOR
|
private static java.lang.String |
PREFIX
|
static int |
PROMPT
status color for commands |
private static java.lang.String |
PROMPT_COLOR
|
private static char |
SEPARATOR
|
static int |
STATUS
status color for commands |
private static java.lang.String |
STATUS_COLOR
|
static int |
STD
Standard color |
private static java.lang.String |
STD_COLOR
|
private static java.lang.String |
SUFFIX
|
| Constructor Summary | |
ColorPrinter()
|
|
| Method Summary | |
static void |
printMessage(java.lang.String message,
java.io.PrintStream stream,
int color)
Print a message in color |
static void |
printMessage(java.lang.String message,
java.io.PrintStream stream,
int color,
boolean endline)
Print a message in color |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private static final int ATTR_BRIGHT
private static final int ATTR_DIM
private static final int FG_BLACK
private static final int FG_RED
private static final int FG_GREEN
private static final int FG_BLUE
private static final int FG_MAGENTA
private static final java.lang.String PREFIX
private static final java.lang.String SUFFIX
private static final char SEPARATOR
private static final java.lang.String END_COLOR
private static final java.lang.String STD_COLOR
private static final java.lang.String ERR_COLOR
private static final java.lang.String INFO_COLOR
private static final java.lang.String STATUS_COLOR
private static final java.lang.String PROMPT_COLOR
public static final int STD
public static final int ERROR
public static final int INFO
public static final int STATUS
public static final int PROMPT
| Constructor Detail |
public ColorPrinter()
| Method Detail |
public static final void printMessage(java.lang.String message,
java.io.PrintStream stream,
int color)
message - Message to printstream - Stream where to send the messagecolor - Color for the message
public static final void printMessage(java.lang.String message,
java.io.PrintStream stream,
int color,
boolean endline)
message - Message to printstream - Stream where to send the messagecolor - Color for the messageendline - true if a carriage return should be appended to the message
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||