org.ceryle.ui.prefs
Class SetPathPrefListener

java.lang.Object
  extended by org.ceryle.ui.prefs.SetPathPrefListener
All Implemented Interfaces:
ActionListener, EventListener

public class SetPathPrefListener
extends Object
implements ActionListener

Sets a pref based on selecting a file or directory. The preference is to be stored as a String in URL format.

Author:
Murray Altheim

Constructor Summary
SetPathPrefListener(PreferencePanel prefPanel, JTextField field, String dialogTitle, ExtensionFileFilter filter, boolean chooseFiles)
          Set the path of the content as a path based on a user query, also setting the dirty flag if the user doesn't cancel.
 
Method Summary
 void actionPerformed(ActionEvent e)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SetPathPrefListener

public SetPathPrefListener(PreferencePanel prefPanel,
                           JTextField field,
                           String dialogTitle,
                           ExtensionFileFilter filter,
                           boolean chooseFiles)
Set the path of the content as a path based on a user query, also setting the dirty flag if the user doesn't cancel.

Parameters:
field - the JTextField whose content is to be set
dialogTitle - the title of the displayed dialog
filter - the optional ExtensionFileFilter on selecting files
chooseFiles - if chooseFiles is true, only files are choosable; otherwise, only directories.
Method Detail

actionPerformed

public void actionPerformed(ActionEvent e)
Specified by:
actionPerformed in interface ActionListener


The Ceryle Project. Copyright ©2001-2007 Murray Altheim, All Rights Reserved. See LICENSE included with distribution.