The StatusBarPlugin provides a status bar UI component
that works with the BasicEditorPane. It is implemented as a plugin
as a convenient way to attach to the editor pane.
To use this plugin, install it into the editor pane by calling
installPlugin()
on the BasicEditorPane.

Nested Class Summary

protected static class

StatusBarPlugin.StatusBarCell
The StatusBarCell is just a label that can be added
to our status bar which takes care of making sure that its size
remains fairly constant for the types of strings which can contain
it (otherwise, it looks pretty bad for the cells to be changing
in width, say when you switch between insert and overwrite mode.)

Field Summary

static javax.swing.border.Border

BEVEL_BORDER
This is a bevel border that can be used for the status bar
cells.

static java.lang.String

BLANK_MESSAGE
An empty message just to set the height of the status bar.

StatusBarPlugin()
Constructs a new StatusBarPlugin instance that
is not currently associated with an editor or document, and which
uses the default border.

StatusBarPlugin(javax.swing.border.Border border)
Constructs a new StatusBarPlugin that is not
currently associated with any editor or document.

StatusBarPlugin(javax.swing.border.Border border,
java.awt.Font font)
Constructs a new StatusBarPlugin that is not
currently associated with any editor or document.

StatusBarPlugin(java.awt.Font font)
Constructs a new StatusBarPlugin instance that
is not currently associated with an editor or document, and which
uses the default border, and the specified font.

Method Summary

void

actionPerformed(java.awt.event.ActionEvent event)
This is invoked when an action is performed.

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.