org.homeunix.thecave.buddi.plugin.builtin.preference
Class PluginPreferences

java.lang.Object
  extended by org.homeunix.thecave.buddi.plugin.api.PreferenceAccess
      extended by org.homeunix.thecave.buddi.plugin.api.BuddiPreferencePlugin
          extended by org.homeunix.thecave.buddi.plugin.builtin.preference.PluginPreferences
All Implemented Interfaces:
java.awt.event.ActionListener, java.util.EventListener, MossPlugin

public class PluginPreferences
extends BuddiPreferencePlugin
implements java.awt.event.ActionListener


Field Summary
static long serialVersionUID
           
 
Constructor Summary
PluginPreferences()
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
           
 java.lang.String getName()
          Returns the plugin name.
 javax.swing.JPanel getPreferencesPanel()
          Create the JPanel to show in the Preferences.
 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.
 void load()
          Loads the preferences which this panel is responsible for.
 boolean save()
          Saves the preferences which this panel is responsible for.
 
Methods inherited from class org.homeunix.thecave.buddi.plugin.api.BuddiPreferencePlugin
getDescription, getMaximumVersion, getMinimumVersion, isPluginActive
 
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
 

Field Detail

serialVersionUID

public static final long serialVersionUID
See Also:
Constant Field Values
Constructor Detail

PluginPreferences

public PluginPreferences()
Method Detail

getPreferencesPanel

public javax.swing.JPanel getPreferencesPanel()
Description copied from class: BuddiPreferencePlugin
Create the JPanel to show in the Preferences.

Specified by:
getPreferencesPanel in class BuddiPreferencePlugin
Returns:
A JPanel object which can be put into the Preferences panel

load

public void load()
Description copied from class: BuddiPreferencePlugin
Loads the preferences which this panel is responsible for.

Specified by:
load in class BuddiPreferencePlugin

save

public boolean save()
Description copied from class: BuddiPreferencePlugin
Saves the preferences which this panel is responsible for. If the changes nessecitate a restart, return true; otherwise, return false.

Specified by:
save in class BuddiPreferencePlugin

getName

public java.lang.String getName()
Description copied from interface: MossPlugin
Returns the plugin name. This may be used in different places, depending on the type of plugin.

Specified by:
getName in interface MossPlugin
Returns:

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Specified by:
actionPerformed in interface java.awt.event.ActionListener

isUseWrapper

public boolean isUseWrapper()
Description copied from class: BuddiPreferencePlugin
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. This is correct behaviour for most preference panes, especially if they contain multiple small widgets (buttons, check boxes, etc). If the panel is to contain a large widget which is to take up the entire frame (such as seen in the built in Plugins preference pane), override this and set to false.

Overrides:
isUseWrapper in class BuddiPreferencePlugin
Returns: