public abstract class AbstractEditorPlugin extends java.lang.Object implements EditorPlugin
AbstractEditorPlugin
provides a starting point
implementation for an editor plugin that provides many of the
common methods and fields used by plugins. EditorPlugin
,
BasicEditorPane
Modifier and Type | Field and Description |
---|---|
protected BasicEditorPane |
_editor
The current installed editor (if any).
|
Constructor and Description |
---|
AbstractEditorPlugin() |
Modifier and Type | Method and Description |
---|---|
void |
deinstall(BasicEditorPane editor)
Called when the plugin is being removed from the BasicEditorPane
(for example when the editor is closed.) This is used to notify
plugins that they should unregister any listeners that were
attached.
|
protected void |
deinstallImpl(BasicEditorPane editor)
Deinstall routine for subclasses that have added deinstallation
code to execute.
|
protected BasicDocument |
getDocument()
Fetch the document for the current installed editor apen.
|
protected BasicEditorPane |
getEditorPane()
Fetch the current installed editor pane.
|
void |
install(BasicEditorPane editor)
Called when this plugin is being installed into the BasicEditorPane.
|
protected void |
installImpl(BasicEditorPane editor)
Install routine for subclasses that have added installation code to
execute.
|
void |
propertyChange(java.beans.PropertyChangeEvent event)
This method gets called when a bound property is changed.
|
protected void |
propertyChangeImpl(java.beans.PropertyChangeEvent event)
Property change notification routine for subclasses that have want
to respond to property changes.
|
protected BasicEditorPane _editor
public final void install(BasicEditorPane editor)
install
in interface EditorPlugin
editor
- the editor panepublic final void deinstall(BasicEditorPane editor)
deinstall
in interface EditorPlugin
editor
- the editor panepublic final void propertyChange(java.beans.PropertyChangeEvent event)
propertyChange
in interface java.beans.PropertyChangeListener
event
- A PropertyChangeEvent object describing the event source
and the property that has changed.protected BasicEditorPane getEditorPane()
protected BasicDocument getDocument()
protected void installImpl(BasicEditorPane editor)
editor
- the editor paneprotected void deinstallImpl(BasicEditorPane editor)
editor
- the editor paneprotected void propertyChangeImpl(java.beans.PropertyChangeEvent event)
event
- A PropertyChangeEvent object describing the event source
and the property that has changed.