|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.homeunix.thecave.buddi.plugin.api.PreferenceAccess
org.homeunix.thecave.buddi.plugin.api.BuddiPreferencePlugin
public abstract class BuddiPreferencePlugin
A Buddi plugin which will be loaded into the Preferences screen. If your plugin needs user configuration, it is highly recommended to use this class to perform that. It is quite simple to do this; you need to create a JPanel of the component layout in getPreferencesPanel(), and provide the logic to load and save these values in the load() and save() methods. See the documentation for BuddiPluginPreference to see how to access the preferences file.
| Constructor Summary | |
|---|---|
BuddiPreferencePlugin()
|
|
| Method Summary | |
|---|---|
java.lang.String |
getDescription()
Not used in PreferencePlugin |
Version |
getMaximumVersion()
Returns the maximum program version needed to run this plugin. |
Version |
getMinimumVersion()
Returns the minimum program version needed to run this plugin. |
abstract javax.swing.JPanel |
getPreferencesPanel()
Create the JPanel to show in the Preferences. |
boolean |
isPluginActive()
Not used in PreferencePlugin |
boolean |
isUseWrapper()
If true, we put a JPanel wrapper around this JPanel, so that it keeps all the components at the top of the window, even if there is extra room. |
abstract void |
load()
Loads the preferences which this panel is responsible for. |
abstract boolean |
save()
Saves the preferences which this panel is responsible for. |
| Methods inherited from class org.homeunix.thecave.buddi.plugin.api.PreferenceAccess |
|---|
getListPreference, getPreference, getSecurePreference, putListPreference, putPreference, putSecurePreference |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.homeunix.thecave.moss.plugin.MossPlugin |
|---|
getName |
| Constructor Detail |
|---|
public BuddiPreferencePlugin()
| Method Detail |
|---|
public abstract boolean save()
throws PluginException
PluginException
public abstract void load()
throws PluginException
PluginExceptionpublic boolean isUseWrapper()
public abstract javax.swing.JPanel getPreferencesPanel()
public boolean isPluginActive()
isPluginActive in interface MossPluginpublic java.lang.String getDescription()
getDescription in interface MossPluginpublic Version getMaximumVersion()
MossPlugin
getMaximumVersion in interface MossPluginpublic Version getMinimumVersion()
MossPlugin
getMinimumVersion in interface MossPlugin
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||