com.jtechlabs.ui.widget.directorychooser
Class DirectoryChooserDefaults

java.lang.Object
  extended bycom.jtechlabs.ui.widget.directorychooser.DirectoryChooserDefaults

public final class DirectoryChooserDefaults
extends java.lang.Object

Provides access to the default values of JDirectoryChooser properties.

Version:
1.0
Author:
Aleksey Prochukhan

Field Summary
static java.lang.String PROP_ACCESS
          Default access rights.
static java.lang.String PROP_CANCEL_TEXT
          Default text for the Cancel button of the directory chooser dialog.
static java.lang.String PROP_COLLAPSED_ICON
          Default icon for the collapsed node handler.
static java.lang.String PROP_COPY_ICON
          Default icon for the 'Copy' action button in the directory chooser dialog.
static java.lang.String PROP_COPY_TEXT
          Default text for the 'Copy' action.
static java.lang.String PROP_CUT_ICON
          Default icon for the 'Cut' action button in the directory chooser dialog.
static java.lang.String PROP_CUT_TEXT
          Default text for the 'Cut' action.
static java.lang.String PROP_DELETE_ICON
          Default icon for the 'Delete' action button in the directory chooser dialog.
static java.lang.String PROP_DELETE_TEXT
          Default text for the 'Delete' action.
static java.lang.String PROP_DIALOG_CAPTION_TEXT
          Default caption for the directory chooser dialog.
static java.lang.String PROP_DIALOG_SIZE
          Default size of the directory chooser dialog.
static java.lang.String PROP_DIALOG_TEXT
          Default information text for the directory chooser dialog.
static java.lang.String PROP_DIRECTORY_ICON
          Default icon for the directory nodes.
static java.lang.String PROP_EXPANDED_ICON
          Default icon for the expanded node handler.
static java.lang.String PROP_HOME_ICON
          Default icon for the 'Home' action button in the directory chooser dialog.
static java.lang.String PROP_HOME_TEXT
          Default text for the 'Home' action.
static java.lang.String PROP_ICONS_THEME
          Default icons' theme.
static java.lang.String PROP_INITIAL_DIRECTORY
          Default initial directory.
static java.lang.String PROP_NEW_ICON
          Default icon for the 'New Directory' action button in the directory chooser dialog.
static java.lang.String PROP_NEW_TEXT
          Default text for the 'New Directory' action.
static java.lang.String PROP_OK_TEXT
          Default text for the OK button of the directory chooser dialog.
static java.lang.String PROP_PASTE_ICON
          Default icon for the 'Paste' action button in the directory chooser dialog.
static java.lang.String PROP_PASTE_TEXT
          Default text for the 'Paste' action.
static java.lang.String PROP_RENAME_TEXT
          Default text for the 'Rename' action.
static java.lang.String PROP_ROOT_ICON
          Default icon for the root nodes.
static java.lang.String PROP_SELECTED_DIRECTORY_ICON
          Default icon for the selected directory node.
static java.lang.String PROP_SIZE
          Default size of the JDirectoryChooser component.
static java.lang.String PROP_SYNCHRONIZE_ICON
          Default icon for the 'Synchronize' action button in the directory chooser dialog.
static java.lang.String PROP_SYNCHRONIZE_TEXT
          Default text for the 'Synchronize' action.
static java.lang.String PROP_WAIT_TEXT
          Default text displayed during directory expansion process.
 
Constructor Summary
DirectoryChooserDefaults()
           
 
Method Summary
static java.lang.Object getOption(java.lang.String option)
          Returns the default value of the given option.
static java.io.File getOptionFile(java.lang.String option)
          Returns the default value of the given option.
static javax.swing.Icon getOptionIcon(java.lang.String option)
          Returns the default value of the given option.
static int getOptionInt(java.lang.String option)
          Returns the default value of the given option.
static java.lang.String getOptionString(java.lang.String option)
          Returns the default value of the given option.
static void putOption(java.lang.String option, int value)
          Sets default value for the given option.
static void putOption(java.lang.String option, java.lang.Object value)
          Sets default value for the given option.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROP_ICONS_THEME

public static final java.lang.String PROP_ICONS_THEME
Default icons' theme.

See Also:
Constant Field Values

PROP_ROOT_ICON

public static final java.lang.String PROP_ROOT_ICON
Default icon for the root nodes.

See Also:
Constant Field Values

PROP_DIRECTORY_ICON

public static final java.lang.String PROP_DIRECTORY_ICON
Default icon for the directory nodes.

See Also:
Constant Field Values

PROP_SELECTED_DIRECTORY_ICON

public static final java.lang.String PROP_SELECTED_DIRECTORY_ICON
Default icon for the selected directory node.

See Also:
Constant Field Values

PROP_COLLAPSED_ICON

public static final java.lang.String PROP_COLLAPSED_ICON
Default icon for the collapsed node handler.

See Also:
Constant Field Values

PROP_EXPANDED_ICON

public static final java.lang.String PROP_EXPANDED_ICON
Default icon for the expanded node handler.

See Also:
Constant Field Values

PROP_HOME_ICON

public static final java.lang.String PROP_HOME_ICON
Default icon for the 'Home' action button in the directory chooser dialog.

See Also:
Constant Field Values

PROP_NEW_ICON

public static final java.lang.String PROP_NEW_ICON
Default icon for the 'New Directory' action button in the directory chooser dialog.

See Also:
Constant Field Values

PROP_DELETE_ICON

public static final java.lang.String PROP_DELETE_ICON
Default icon for the 'Delete' action button in the directory chooser dialog.

See Also:
Constant Field Values

PROP_CUT_ICON

public static final java.lang.String PROP_CUT_ICON
Default icon for the 'Cut' action button in the directory chooser dialog.

See Also:
Constant Field Values

PROP_COPY_ICON

public static final java.lang.String PROP_COPY_ICON
Default icon for the 'Copy' action button in the directory chooser dialog.

See Also:
Constant Field Values

PROP_PASTE_ICON

public static final java.lang.String PROP_PASTE_ICON
Default icon for the 'Paste' action button in the directory chooser dialog.

See Also:
Constant Field Values

PROP_SYNCHRONIZE_ICON

public static final java.lang.String PROP_SYNCHRONIZE_ICON
Default icon for the 'Synchronize' action button in the directory chooser dialog.

See Also:
Constant Field Values

PROP_WAIT_TEXT

public static final java.lang.String PROP_WAIT_TEXT
Default text displayed during directory expansion process.

See Also:
Constant Field Values

PROP_HOME_TEXT

public static final java.lang.String PROP_HOME_TEXT
Default text for the 'Home' action.

See Also:
Constant Field Values

PROP_NEW_TEXT

public static final java.lang.String PROP_NEW_TEXT
Default text for the 'New Directory' action.

See Also:
Constant Field Values

PROP_DELETE_TEXT

public static final java.lang.String PROP_DELETE_TEXT
Default text for the 'Delete' action.

See Also:
Constant Field Values

PROP_RENAME_TEXT

public static final java.lang.String PROP_RENAME_TEXT
Default text for the 'Rename' action.

See Also:
Constant Field Values

PROP_CUT_TEXT

public static final java.lang.String PROP_CUT_TEXT
Default text for the 'Cut' action.

See Also:
Constant Field Values

PROP_COPY_TEXT

public static final java.lang.String PROP_COPY_TEXT
Default text for the 'Copy' action.

See Also:
Constant Field Values

PROP_PASTE_TEXT

public static final java.lang.String PROP_PASTE_TEXT
Default text for the 'Paste' action.

See Also:
Constant Field Values

PROP_SYNCHRONIZE_TEXT

public static final java.lang.String PROP_SYNCHRONIZE_TEXT
Default text for the 'Synchronize' action.

See Also:
Constant Field Values

PROP_DIALOG_CAPTION_TEXT

public static final java.lang.String PROP_DIALOG_CAPTION_TEXT
Default caption for the directory chooser dialog.

See Also:
Constant Field Values

PROP_DIALOG_TEXT

public static final java.lang.String PROP_DIALOG_TEXT
Default information text for the directory chooser dialog.

See Also:
Constant Field Values

PROP_OK_TEXT

public static final java.lang.String PROP_OK_TEXT
Default text for the OK button of the directory chooser dialog.

See Also:
Constant Field Values

PROP_CANCEL_TEXT

public static final java.lang.String PROP_CANCEL_TEXT
Default text for the Cancel button of the directory chooser dialog.

See Also:
Constant Field Values

PROP_ACCESS

public static final java.lang.String PROP_ACCESS
Default access rights.

See Also:
Constant Field Values

PROP_INITIAL_DIRECTORY

public static final java.lang.String PROP_INITIAL_DIRECTORY
Default initial directory.

See Also:
Constant Field Values

PROP_SIZE

public static final java.lang.String PROP_SIZE
Default size of the JDirectoryChooser component.

See Also:
Constant Field Values

PROP_DIALOG_SIZE

public static final java.lang.String PROP_DIALOG_SIZE
Default size of the directory chooser dialog.

See Also:
Constant Field Values
Constructor Detail

DirectoryChooserDefaults

public DirectoryChooserDefaults()
Method Detail

getOption

public static java.lang.Object getOption(java.lang.String option)
Returns the default value of the given option.

Parameters:
option - the option name.
Returns:
the default value or null if option was not found.

getOptionInt

public static int getOptionInt(java.lang.String option)
Returns the default value of the given option.

Parameters:
option - the option name.
Returns:
the default value or 0 if option was not found.

getOptionString

public static java.lang.String getOptionString(java.lang.String option)
Returns the default value of the given option.

Parameters:
option - the option name.
Returns:
the default value or an empty string if option was not found.

getOptionIcon

public static javax.swing.Icon getOptionIcon(java.lang.String option)
Returns the default value of the given option.

Parameters:
option - the option name.
Returns:
the default value or an emtpy icon if option was not found.

getOptionFile

public static java.io.File getOptionFile(java.lang.String option)
Returns the default value of the given option.

Parameters:
option - the option name.
Returns:
the default value or an empty pathname if option was not found.

putOption

public static void putOption(java.lang.String option,
                             int value)
Sets default value for the given option.

Parameters:
option - the option name.
value - the option value.

putOption

public static void putOption(java.lang.String option,
                             java.lang.Object value)
Sets default value for the given option.

Parameters:
option - the option name.
value - the option value.


Copyright © 2005 JTechLabs.com All Rights Reserved.