kawigi.properties
Interface PrefProxy

All Known Implementing Classes:
AbstractPrefs, ChainedPrefs, StandAlonePrefs, TCPrefs

public interface PrefProxy

Interface implemented by preference binding classes used by KawigiEdit.


Method Summary
 void commit()
          Saves the values stored as preferences.
 boolean getBoolean(java.lang.String property)
          Returns the value of a property as a boolean.
 boolean getBoolean(java.lang.String property, boolean defaultValue)
          Returns the value of a property as a boolean, setting it to defaultValue if it isn't set yet.
 java.awt.Color getColor(java.lang.String property)
          Returns the value of a property as a Color.
 java.awt.Color getColor(java.lang.String property, java.awt.Color defaultValue)
          Returns the value of a property as a Color, setting it to defaultValue if it isn't set yet.
 double getDouble(java.lang.String property)
          Returns the value of a property as a double.
 double getDouble(java.lang.String property, double defaultValue)
          Returns the value of a property as a double, setting it to defaultValue if it isn't set yet.
 java.awt.Font getFont(java.lang.String property)
          Returns the value of a property as a Font.
 java.awt.Font getFont(java.lang.String property, java.awt.Font defaultValue)
          Returns the value of a property as a Font, setting it to defaultValue if it isn't set yet.
 int getInt(java.lang.String property)
          Returns the value of a property as an integer.
 int getInt(java.lang.String property, int defaultValue)
          Returns the value of a property as an integer, setting it to defaultValue if it isn't set yet.
 java.lang.String getProperty(java.lang.String property)
          Returns the value of a property as a String.
 java.lang.String getProperty(java.lang.String property, java.lang.String defaultValue)
          Returns the value of a property as a String, setting it to defaultValue if it isn't set yet.
 java.io.File getWorkingDirectory()
          Gets the directory that should be used locally by KawigiEdit.
 void setBoolean(java.lang.String property, boolean value)
          Sets a property to a boolean value.
 void setColor(java.lang.String property, java.awt.Color value)
          Sets a property to a Color value.
 void setDouble(java.lang.String property, double value)
          Sets a property to a double-precision value.
 void setFont(java.lang.String property, java.awt.Font value)
          Sets a property to a Font value.
 void setInt(java.lang.String property, int value)
          Sets a property to an integer value.
 void setProperty(java.lang.String property, java.lang.String value)
          Sets a property to a String value.
 void setWorkingDirectory(java.io.File f)
          Sets the directory that should be used locally by KawigiEdit.
 

Method Detail

getBoolean

boolean getBoolean(java.lang.String property)
Returns the value of a property as a boolean.


getBoolean

boolean getBoolean(java.lang.String property,
                   boolean defaultValue)
Returns the value of a property as a boolean, setting it to defaultValue if it isn't set yet.


setBoolean

void setBoolean(java.lang.String property,
                boolean value)
Sets a property to a boolean value.


getFont

java.awt.Font getFont(java.lang.String property)
Returns the value of a property as a Font.


getFont

java.awt.Font getFont(java.lang.String property,
                      java.awt.Font defaultValue)
Returns the value of a property as a Font, setting it to defaultValue if it isn't set yet.


setFont

void setFont(java.lang.String property,
             java.awt.Font value)
Sets a property to a Font value.


getColor

java.awt.Color getColor(java.lang.String property)
Returns the value of a property as a Color.


getColor

java.awt.Color getColor(java.lang.String property,
                        java.awt.Color defaultValue)
Returns the value of a property as a Color, setting it to defaultValue if it isn't set yet.


setColor

void setColor(java.lang.String property,
              java.awt.Color value)
Sets a property to a Color value.


getInt

int getInt(java.lang.String property)
Returns the value of a property as an integer.


getInt

int getInt(java.lang.String property,
           int defaultValue)
Returns the value of a property as an integer, setting it to defaultValue if it isn't set yet.


setInt

void setInt(java.lang.String property,
            int value)
Sets a property to an integer value.


getDouble

double getDouble(java.lang.String property)
Returns the value of a property as a double.


getDouble

double getDouble(java.lang.String property,
                 double defaultValue)
Returns the value of a property as a double, setting it to defaultValue if it isn't set yet.


setDouble

void setDouble(java.lang.String property,
               double value)
Sets a property to a double-precision value.


getProperty

java.lang.String getProperty(java.lang.String property)
Returns the value of a property as a String.


getProperty

java.lang.String getProperty(java.lang.String property,
                             java.lang.String defaultValue)
Returns the value of a property as a String, setting it to defaultValue if it isn't set yet.


setProperty

void setProperty(java.lang.String property,
                 java.lang.String value)
Sets a property to a String value.


getWorkingDirectory

java.io.File getWorkingDirectory()
Gets the directory that should be used locally by KawigiEdit.


setWorkingDirectory

void setWorkingDirectory(java.io.File f)
Sets the directory that should be used locally by KawigiEdit.


commit

void commit()
Saves the values stored as preferences.