com.ibm.di.admin
Class UserPreferences

java.lang.Object
  extended by java.util.Dictionary
      extended by java.util.Hashtable
          extended by java.util.Properties
              extended by com.ibm.di.admin.UserPreferences
All Implemented Interfaces:
Serializable, Cloneable, Map

public class UserPreferences
extends Properties

See Also:
Serialized Form

Field Summary
static String AUTO_LOAD
           
static String DEFAULT_BROWSER
           
static String EDITOR_CONFIRMUPDATE
           
static String EDITOR_FIREFORGET
           
static String EDITOR_FONT
           
static String EXECTASK_LINES
           
static String EXTERNAL_EDITOR
           
static String JAVA_LOOK_AND_FEEL
           
static String JAVA_LOOK_AND_FEEL_THEME
           
static String LRU_LIST
           
static String LRU_MAX
           
static String TITLE_FONT
           
 
Constructor Summary
UserPreferences()
           
 
Method Summary
 void addActionListener(ActionListener listener)
           
 void addAutoLoad(String url)
          Autoopen files
 void addLRU(File path)
          Last Recently Used files
 void addLRU(String path)
           
 void addToList(String key, int maxItems, String value)
           
 void fireActionPerformed(ActionEvent event)
           
 void fromBaseConfiguration(BaseConfiguration b)
           
 String fromVector(Vector v)
           
 String[] getAutoLoad()
           
 boolean getBoolean(String name, boolean defval)
           
 String getBrowser()
           
 Color getColor(String key, Color defval)
           
static UserPreferences getDefaultInstance()
           
 Font getEditorFont()
           
 String getExternalEditor()
           
 Font getFont(String key)
           
 File getHomeDirectory()
           
 int getInteger(String name, int def)
           
 String[] getList(String key)
           
 String getLookAndFeel()
           
 String getLookAndFeelTheme()
           
 String[] getLRU()
           
 String getProperty(String key, String defval)
           
 Rectangle getRectangle(String key)
           
 Font getTitleFont()
           
 void loadPreferences()
           
 void removeActionListener(ActionListener listener)
           
 void savePreferences()
           
 void setBrowser(String browser)
           
 void setDefaultColors()
           
 void setDefaults()
           
 void setFont(String key, Font font)
           
 void setInteger(String name, int value)
           
 void setLookAndFeel(String lf)
           
 void setLookAndFeelTheme(String lf)
           
 Object setProperty(String key, String value)
           
 void setRectangle(String key, Rectangle rect)
           
 BaseConfiguration toBaseConfiguration()
           
 BaseConfiguration toBaseConfiguration(BaseConfiguration base)
           
 Vector toVector(String str)
           
 
Methods inherited from class java.util.Properties
getProperty, list, list, load, loadFromXML, propertyNames, save, store, storeToXML, storeToXML
 
Methods inherited from class java.util.Hashtable
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, put, putAll, rehash, remove, size, toString, values
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

LRU_LIST

public static final String LRU_LIST
See Also:
Constant Field Values

LRU_MAX

public static final String LRU_MAX
See Also:
Constant Field Values

JAVA_LOOK_AND_FEEL

public static final String JAVA_LOOK_AND_FEEL
See Also:
Constant Field Values

JAVA_LOOK_AND_FEEL_THEME

public static final String JAVA_LOOK_AND_FEEL_THEME
See Also:
Constant Field Values

AUTO_LOAD

public static final String AUTO_LOAD
See Also:
Constant Field Values

EDITOR_FONT

public static final String EDITOR_FONT
See Also:
Constant Field Values

EXTERNAL_EDITOR

public static final String EXTERNAL_EDITOR
See Also:
Constant Field Values

EDITOR_FIREFORGET

public static final String EDITOR_FIREFORGET
See Also:
Constant Field Values

EDITOR_CONFIRMUPDATE

public static final String EDITOR_CONFIRMUPDATE
See Also:
Constant Field Values

EXECTASK_LINES

public static final String EXECTASK_LINES
See Also:
Constant Field Values

DEFAULT_BROWSER

public static final String DEFAULT_BROWSER
See Also:
Constant Field Values

TITLE_FONT

public static final String TITLE_FONT
See Also:
Constant Field Values
Constructor Detail

UserPreferences

public UserPreferences()
Method Detail

getDefaultInstance

public static UserPreferences getDefaultInstance()

setDefaults

public void setDefaults()

setDefaultColors

public void setDefaultColors()

getExternalEditor

public String getExternalEditor()

getBrowser

public String getBrowser()

setBrowser

public void setBrowser(String browser)

getEditorFont

public Font getEditorFont()

getTitleFont

public Font getTitleFont()

getLookAndFeel

public String getLookAndFeel()

setLookAndFeel

public void setLookAndFeel(String lf)

getLookAndFeelTheme

public String getLookAndFeelTheme()

setLookAndFeelTheme

public void setLookAndFeelTheme(String lf)

toBaseConfiguration

public BaseConfiguration toBaseConfiguration()

toBaseConfiguration

public BaseConfiguration toBaseConfiguration(BaseConfiguration base)

toVector

public Vector toVector(String str)

fromVector

public String fromVector(Vector v)

fromBaseConfiguration

public void fromBaseConfiguration(BaseConfiguration b)

loadPreferences

public void loadPreferences()
                     throws Exception
Throws:
Exception

savePreferences

public void savePreferences()
                     throws Exception
Throws:
Exception

setInteger

public void setInteger(String name,
                       int value)

getInteger

public int getInteger(String name,
                      int def)

getBoolean

public boolean getBoolean(String name,
                          boolean defval)

getHomeDirectory

public File getHomeDirectory()

addLRU

public void addLRU(File path)
Last Recently Used files


addLRU

public void addLRU(String path)

getLRU

public String[] getLRU()

addAutoLoad

public void addAutoLoad(String url)
Autoopen files


getAutoLoad

public String[] getAutoLoad()

addToList

public void addToList(String key,
                      int maxItems,
                      String value)

getList

public String[] getList(String key)

setRectangle

public void setRectangle(String key,
                         Rectangle rect)

getRectangle

public Rectangle getRectangle(String key)

getFont

public Font getFont(String key)

setFont

public void setFont(String key,
                    Font font)

getColor

public Color getColor(String key,
                      Color defval)

getProperty

public String getProperty(String key,
                          String defval)
Overrides:
getProperty in class Properties

setProperty

public Object setProperty(String key,
                          String value)
Overrides:
setProperty in class Properties

addActionListener

public void addActionListener(ActionListener listener)

removeActionListener

public void removeActionListener(ActionListener listener)

fireActionPerformed

public void fireActionPerformed(ActionEvent event)