站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > NetBeans API Javadoc 5.0.0

Overview (NetBeans Input/Output API) - NetBeans API Javadoc 5.0.0

 

NetBeans Input/Output API

InputOutputAPI

See:
          Description

Input/Output API
org.openide.windows Interfaces for working with input/output tabs.

 

InputOutputAPI

Just an API/SPI for defining the output window.

What is New (see all changes)?

Use Cases

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);

Exported Interfaces

This table lists all of the module exported APIs with defined stability classifications. It is generated based on answers to questions about the architecture of the module. Read them all...
Group of java interfaces
Interface NameIn/OutStabilitySpecified in What Document?
InputOutputAPIExportedOfficial .../org/openide/windows/package-summary.html

Just an API/SPI for defining the output window.

Implementation Details

What do other modules need to do to declare a dependency on this one?

Declare a module dependency on org.openide.io 1.9.1. 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 May 3 2007.  |  Portions Copyright 1997-2005 Sun Microsystems, Inc. All rights reserved.