de.uni_paderborn.fujaba.preferences
Class AbstractPreferences

java.lang.Object
  extended byde.uni_paderborn.fujaba.preferences.AbstractPreferences
Direct Known Subclasses:
CodeGenPreferences, ColorsPreferences, DebugPreferences, GeneralPreferences, IconsPreferences, JavaPreferences, LayoutPreferences, LoggingPreferences, PlugInsPreferences

public abstract class AbstractPreferences
extends java.lang.Object

Provides an abstract definition for an options class.

Version:
$Revision: 1.6 $
Author:
$Author: schneider $

Constructor Summary
AbstractPreferences()
          Constructor for class AbstractPreferences
 
Method Summary
 void addPropertyChangeListener(java.lang.String propertyName, java.beans.PropertyChangeListener listener)
          To be overridden by inheriting classes.
 boolean isModified()
          Get the modified attribute of the AbstractPreferences object
 void removePropertyChangeListener(java.lang.String propertyName, java.beans.PropertyChangeListener listener)
          To be overridden by inheriting classes.
abstract  void setDefaults()
          Sets the defaults attribute of the AbstractPreferences object
 void setModified(boolean value)
          Sets the modified attribute of the AbstractPreferences object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractPreferences

public AbstractPreferences()
Constructor for class AbstractPreferences

Method Detail

isModified

public boolean isModified()
Get the modified attribute of the AbstractPreferences object

Returns:
The modified value

setModified

public void setModified(boolean value)
Sets the modified attribute of the AbstractPreferences object

Parameters:
value - The new modified value

setDefaults

public abstract void setDefaults()
Sets the defaults attribute of the AbstractPreferences object


addPropertyChangeListener

public void addPropertyChangeListener(java.lang.String propertyName,
                                      java.beans.PropertyChangeListener listener)
To be overridden by inheriting classes. Method call should be delegated like this: PreferencesProperties.get(PROPERTY_KEY).addPropertyChangeListener(propertyName, listener); with the appropreate PROPERTY_KEY of the Fujaba core or the plugin.

Parameters:
propertyName - The name of the property to listen for
listener - The property listener

removePropertyChangeListener

public void removePropertyChangeListener(java.lang.String propertyName,
                                         java.beans.PropertyChangeListener listener)
To be overridden by inheriting classes. Method call should be delegated like this: PreferencesProperties.get(PROPERTY_KEY).removePropertyChangeListener(propertyName, listener); with the appropreate PROPERTY_KEY of the Fujaba core or the plugin.

Parameters:
propertyName - The name of the property to listen for
listener - The property listener