|
org.openide.io 1.35.1 | |||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||
See:
Description
| I/O APIs | |
|---|---|
| org.openide.windows | Interfaces for working with input/output tabs. |
Just an API/SPI for defining the output window.
Added method IOProvider.getIO that takes all
4 supported parameters and that complements other
getIO methods. See
IOProvider
The original mapping from IO name to IO object has been replaced with mapping from pair [IO container, IO name] to IO object. This mapping is used for reusing of IO objects.
Added class for fine control over select:
IOSelect
After fixing bug#185209
IOContainer.select()
no longer performs these operations for us so implementations of IOProvider
have to do them:
IOContainer.open()
,
IOContainer.requestVisible()
.
Existing implementation of InputOutput.select() has been adjusted and is still compatible.
Adding class for color printing.
IOColorPrint,
Adding "feature class" to control output color and programmatical scrolling.
IOColorLines,
IOColors,
IOPosition,
There is an SPI but additional implementations are not expected. The API is most important.
Simple usage example:
InputOutput io = IOProvider.getDefault().getIO("My Window", true); io.select(); OutputWriter w = io.getOut(); w.println("Line of plain text."); OutputListener listener = new OutputListener() { public void outputLineAction(OutputEvent ev) { StatusDisplayer.getDefault().setStatusText("Hyperlink clicked!"); } public void outputLineSelected(OutputEvent ev) { // Let's not do anything special. } public void outputLineCleared(OutputEvent ev) { // Leave it blank, no state to remove. } }; w.println("Line of hyperlinked text.", listener, true);
|
You will very likely also want to declare
OpenIDE-Module-Requires: org.openide.windows.IOProvider
to ensure that an Output Window implementation is in fact enabled.
Read more about the implementation in the answers to architecture questions.
|
org.openide.io 1.35.1 | |||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||