org.openide.text
Interface NbDocument.CustomEditor
- All Superinterfaces:
- Document
- Enclosing class:
- 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.
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 |
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 December 12 2001. | Portions Copyright 1997-2001 Sun Microsystems, Inc. All rights reserved.