|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.adrabi.nbe.NBEditorFactory
public class NBEditorFactory
NBEditorFactory is
Field Summary | |
---|---|
private static boolean |
initialized
Flag indicating if default settings have been initialized. |
Constructor Summary | |
---|---|
private |
NBEditorFactory()
|
Method Summary | |
---|---|
static void |
addSyntax(org.netbeans.editor.ext.ExtKit anEditorKit,
org.netbeans.editor.Settings.AbstractInitializer aSettingsInitializer)
Registers a given content type (from the ExtKit) and installs appropriate settings for it. |
private static void |
initEditorSettings()
Initializes default settings. |
static javax.swing.JComponent |
newTextRenderer(org.netbeans.editor.ext.ExtKit anEditorKit,
javax.swing.JEditorPane anEditorPane)
Obtains a JComponent responsible for visualization of the contents of a JEditorPane, and prepares the JEditorPane to accept the content-type of the given EditorKit. |
private static void |
updateKeyBindings(javax.swing.JEditorPane anEditorPane)
Updates key bindings for a JEditorPane |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static boolean initialized
Constructor Detail |
---|
private NBEditorFactory()
Method Detail |
---|
private static void initEditorSettings()
public static void addSyntax(org.netbeans.editor.ext.ExtKit anEditorKit, org.netbeans.editor.Settings.AbstractInitializer aSettingsInitializer)
anEditorKit
- an ExtKit to use.aSettingsInitializer
- an object that initializes editor settings
for that ExtKit type.private static void updateKeyBindings(javax.swing.JEditorPane anEditorPane)
anEditorPane
- the JEditorPane on which the key bindings are to
be installed.public static javax.swing.JComponent newTextRenderer(org.netbeans.editor.ext.ExtKit anEditorKit, javax.swing.JEditorPane anEditorPane)
anEditorKit
- an ExtKit with an appropriate content-type.anEditorPane
- a JEditorPane whose UI will be replaced with the
JComponent. This JEditorPane can be used to modify the text, but not
for visualization.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |