Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.jabbee.resources
Class PreferencesHandler  view PreferencesHandler download PreferencesHandler.java

java.lang.Object
  extended byorg.jabbee.resources.PreferencesHandler

public final class PreferencesHandler
extends java.lang.Object

PreferencesHandler is the interface between the Jabbee application and any/all preferences that are saved from it, or need to be retreived by it.

Version:
0.01

Field Summary
private  java.lang.String configFile
           
private  java.util.prefs.Preferences prefs
           
private  boolean relativePaths
           
private  boolean toolTips
           
 
Constructor Summary
PreferencesHandler(java.util.prefs.Preferences p)
          Creates a new instance of PreferencesHandler
 
Method Summary
 boolean areToolTipsEnabled()
          Retreives the current state of tooltips
 java.lang.String getConfigFile()
          Gets the full path to the Jabber Configuration file.
 void setConfigFile(java.lang.String cf)
          Sets the full path to the Jabber Configuration file to the user's preferences.
 void setRelativePaths(boolean rp)
          Sets whether or not to userelative paths in the Jabber configuration file.
 void setToolTips(boolean bool)
          Sets tooltips to be visible or not visible
 boolean useRelativePaths()
          Gets whether or not to use relative paths for all files in the Jabber configuration file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

prefs

private java.util.prefs.Preferences prefs

configFile

private java.lang.String configFile

relativePaths

private boolean relativePaths

toolTips

private boolean toolTips
Constructor Detail

PreferencesHandler

public PreferencesHandler(java.util.prefs.Preferences p)
Creates a new instance of PreferencesHandler

Method Detail

areToolTipsEnabled

public boolean areToolTipsEnabled()
Retreives the current state of tooltips


getConfigFile

public java.lang.String getConfigFile()
Gets the full path to the Jabber Configuration file.


setConfigFile

public void setConfigFile(java.lang.String cf)
Sets the full path to the Jabber Configuration file to the user's preferences.


setRelativePaths

public void setRelativePaths(boolean rp)
Sets whether or not to userelative paths in the Jabber configuration file.


setToolTips

public void setToolTips(boolean bool)
Sets tooltips to be visible or not visible


useRelativePaths

public boolean useRelativePaths()
Gets whether or not to use relative paths for all files in the Jabber configuration file.