| 
 | org.openide.io 1.9.31 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openide.windows.IOProvider
public abstract class IOProvider
A factory for IO tabs shown in the output window.  To create a new tab to
 write to, call e.g. IOProvider.getDefault().getIO("MyTab", false)
 (pass true if there may be an existing tab with the same name and you want
 to write to a new tab).
| Constructor Summary | |
|---|---|
| protected  | IOProvider()Subclass constructor. | 
| Method Summary | |
|---|---|
| static IOProvider | getDefault()Get the default I/O provider. | 
|  InputOutput | getIO(String name,
      Action[] additionalActions)Gets a named instance of InputOutput with additional actions displayed in the toolbar. | 
| abstract  InputOutput | getIO(String name,
      boolean newIO)Get a named instance of InputOutput, which represents an output tab in the output window. | 
| abstract  OutputWriter | getStdOut()Support writing to the Output Window on the main tab or a similar output device. | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
protected IOProvider()
| Method Detail | 
|---|
public static IOProvider getDefault()
 Normally this is taken from Lookup.getDefault() but if there is no
 instance in lookup, a fallback instance is created which just uses the
 standard system I/O streams. This is useful for unit tests and perhaps
 for standalone usage of various libraries.
 
 Assuming you want to ensure that a real output window implementation is actually
 installed and enabled, you must require the token org.openide.windows.IOProvider
 from the module calling this method.
public abstract InputOutput getIO(String name, boolean newIO)
name - A localized display name for the tabnewIO - if true, a new InputOutput is returned, else an existing InputOutput of the same name may be returned
InputOutput instance for accessing the new tabInputOutputpublic InputOutput getIO(String name, Action[] additionalActions)
name - A localized display name for the tabadditionalActions - array of actions that are added to the toolbar, Can be empty array, but not null.
   The number of actions should not exceed 5 and each should have the Action.SMALL_ICON property defined.
InputOutput instance for accessing the new tabIOProvider and implementing its abstract classes, you are encouraged to override
 this method as well. The default implementation falls back to the getIO(name, newIO) method, ignoring the actions passed.InputOutputpublic abstract OutputWriter getStdOut()
| 
 | org.openide.io 1.9.31 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||