当前页面:
在线文档首页 >
NetBeans API Javadoc 5.5.0
NbDocument.CustomEditor (NetBeans Text API) - NetBeans API Javadoc 5.5.0
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
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