org.fife.ui.app
Class AbstractPlugin

java.lang.Object
  extended by org.fife.ui.app.AbstractPlugin
All Implemented Interfaces:
Plugin
Direct Known Subclasses:
GUIPlugin, MacroPlugin, Plugin, Plugin

public abstract class AbstractPlugin
extends java.lang.Object
implements Plugin

Base class for Plugin implementations that don't need to extend a specific class.

Version:
1.0
Author:
Robert Futrell
See Also:
StatusBarPlugin, GUIPlugin

Constructor Summary
protected AbstractPlugin()
           
 
Method Summary
 java.lang.String getOptionsDialogPanelParentPanelID()
          Returns the panel that this plug-in's option panels should be added as children of.
protected  void lookAndFeelChanged(javax.swing.LookAndFeel newLaf)
          Called when the LookAndFeel changes.
 void setOptionsDialogPanelParentPanelID(java.lang.String id)
          Sets the option panel to add this plug-in's option panels to.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.fife.ui.app.Plugin
getOptionsDialogPanel, getPluginAuthor, getPluginIcon, getPluginName, getPluginVersion, install, savePreferences, uninstall
 

Constructor Detail

AbstractPlugin

protected AbstractPlugin()
Method Detail

getOptionsDialogPanelParentPanelID

public java.lang.String getOptionsDialogPanelParentPanelID()
Returns the panel that this plug-in's option panels should be added as children of.

Specified by:
getOptionsDialogPanelParentPanelID in interface Plugin
Returns:
The ID of the parent panel, or null if they should be added at the "root" level of option panels.
See Also:
Plugin.getOptionsDialogPanel()

lookAndFeelChanged

protected void lookAndFeelChanged(javax.swing.LookAndFeel newLaf)
Called when the LookAndFeel changes. This is a hook for plugins to manually update their popup dialogs. Subclasses should override if necessary, but always call the super implementation.

Parameters:
newLaf - The new LookAndFeel.

setOptionsDialogPanelParentPanelID

public void setOptionsDialogPanelParentPanelID(java.lang.String id)
Sets the option panel to add this plug-in's option panels to.

Parameters:
id - The ID of the parent panel, or null if there should be no parent.
See Also:
getOptionsDialogPanelParentPanelID()