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

NbDocument.CustomEditor (NetBeans APIs) - NetBeans API Javadoc 4.1.0


org.openide.text
Interface NbDocument.CustomEditor

All Superinterfaces:
Document
Enclosing interface:
NbDocument

public static interface NbDocument.CustomEditor
extends Document

Enabled documents to add special UI components to their Editor pane. If this interface is implemented by the Editor document, it can be used to add other components (such as toolbars) to the pane.


Field Summary
 
Fields inherited from interface javax.swing.text.Document
StreamDescriptionProperty, TitleProperty
 
Method Summary
 Component createEditor(JEditorPane j)
          Create a whole editor component over the given JEditorPane.
 
Methods inherited from interface javax.swing.text.Document
addDocumentListener, addUndoableEditListener, createPosition, getDefaultRootElement, getEndPosition, getLength, getProperty, getRootElements, getStartPosition, getText, getText, insertString, putProperty, remove, removeDocumentListener, removeUndoableEditListener, render
 

Method Detail

createEditor

public Component createEditor(JEditorPane j)
Create a whole editor component over the given JEditorPane. The implementation should generally add some kind of scrolling support to the given JEditorPane (typically with scrollbars), possibly some other components according to the desired layout, and return the resulting container.

Parameters:
j - editor pane over which the resulting component will be built
Returns:
component encapsulating the pane and all other custom UI components


Built on May 4 2005.  |  Portions Copyright 1997-2005 Sun Microsystems, Inc. All rights reserved.