org.ceryle.ui.prefs
Class SetPathPrefListener
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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 setdialogTitle - the title of the displayed dialogfilter - the optional ExtensionFileFilter on selecting fileschooseFiles - if chooseFiles is true, only files are
choosable; otherwise, only directories.
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.