com.l2fprod.common.swing
Class UserPreferences

java.lang.Object
  extended by com.l2fprod.common.swing.UserPreferences

public class UserPreferences
extends java.lang.Object

UserPreferences.


Constructor Summary
UserPreferences()
           
 
Method Summary
static javax.swing.JFileChooser getDefaultDirectoryChooser()
          Gets the default directory chooser.
static javax.swing.JFileChooser getDefaultFileChooser()
          Gets the default file chooser.
static javax.swing.JFileChooser getDirectoryChooser(java.lang.String id)
          Gets the directory chooser with the given id.
static javax.swing.JFileChooser getFileChooser(java.lang.String id)
          Gets the file chooser with the given id.
static void track(javax.swing.JRadioButton button)
           
static void track(javax.swing.JSplitPane split)
           
static void track(javax.swing.JTable table)
           
static void track(javax.swing.text.JTextComponent text)
          Restores the text.
static void track(java.awt.Window window)
          Restores the window size, position and state if possible.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserPreferences

public UserPreferences()
Method Detail

getDefaultFileChooser

public static javax.swing.JFileChooser getDefaultFileChooser()
Gets the default file chooser. Its current directory will be tracked and restored on subsequent calls.

Returns:
the default file chooser

getDefaultDirectoryChooser

public static javax.swing.JFileChooser getDefaultDirectoryChooser()
Gets the default directory chooser. Its current directory will be tracked and restored on subsequent calls.

Returns:
the default directory chooser

getFileChooser

public static javax.swing.JFileChooser getFileChooser(java.lang.String id)
Gets the file chooser with the given id. Its current directory will be tracked and restored on subsequent calls.

Parameters:
id -
Returns:
the file chooser with the given id

getDirectoryChooser

public static javax.swing.JFileChooser getDirectoryChooser(java.lang.String id)
Gets the directory chooser with the given id. Its current directory will be tracked and restored on subsequent calls.

Parameters:
id -
Returns:
the directory chooser with the given id

track

public static void track(javax.swing.JRadioButton button)

track

public static void track(java.awt.Window window)
Restores the window size, position and state if possible. Tracks the window size, position and state.

Parameters:
window -

track

public static void track(javax.swing.JTable table)

track

public static void track(javax.swing.text.JTextComponent text)
Restores the text. Stores the text.

Parameters:
text -

track

public static void track(javax.swing.JSplitPane split)