|
org.openide.io 1.16.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openide.windows.IOColorLines
public abstract class IOColorLines
Line printing with custom color.
Client usage:
// print green line InputOutput io = ...; IOColors.println(io, "Green line", Color.GREEN);How to support
IOColorLines
in own IOProvider
implementation:
InputOutput
provided by IOProvider
has to implement Lookup.Provider
IOColorLines
and implement its abstract methods
IOColorLines
to Lookup
provided by InputOutput
Constructor Summary | |
---|---|
IOColorLines()
|
Method Summary | |
---|---|
static boolean |
isSupported(InputOutput io)
Checks whether this feature is supported for provided IO |
protected abstract void |
println(CharSequence text,
OutputListener listener,
boolean important,
Color color)
Prints line with selected color |
static void |
println(InputOutput io,
CharSequence text,
Color color)
Prints line with selected color |
static void |
println(InputOutput io,
CharSequence text,
OutputListener listener,
boolean important,
Color color)
Prints line with selected color |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IOColorLines()
Method Detail |
---|
public static void println(InputOutput io, CharSequence text, Color color) throws IOException
io
- IO to print totext
- a string to print to the tabcolor
- a color for the line of text
IOException
public static void println(InputOutput io, CharSequence text, OutputListener listener, boolean important, Color color) throws IOException
io
- IO to print totext
- a string to print to the tablistener
- a listener that will receive events about this lineimportant
- important mark the line as important.
Makes the UI respond appropriately, eg. stop the automatic scrolling
or highlight the hyperlink.color
- a color for the line of text
IOException
public static boolean isSupported(InputOutput io)
io
- IO to check on
protected abstract void println(CharSequence text, OutputListener listener, boolean important, Color color) throws IOException
text
- a string to print to the tablistener
- a listener that will receive events about this line (null allowed)important
- important mark the line as important.
Makes the UI respond appropriately, eg. stop the automatic scrolling
or highlight the hyperlink.color
- a color for the line of text
IOException
|
org.openide.io 1.16.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |