Package | Description |
---|---|
org.openide.windows |
Interfaces for working with input/output tabs.
|
Just an API/SPI for defining the output window.
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,
Added static
IOProvider.get(String name)
to get specific implementation of IOProvider. Added
IOProvider.getName()
which should be overriden by subclasses to provide its name (ID).
IOContainer
was introduced as an accessor to "parent container" for IO components (tab).
IOProvider.getIO(String name, Action[] additionalActions, IOContainer ioContainer)
can be used to specify alternative container.
First "feature class" IOTab added to provide API for getting/setting icon/tooltip for IO tab.
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.
Built on March 29 2013. | Portions Copyright 1997-2013 Sun Microsystems, Inc. All rights reserved.