/* * Created on May 17, 2004 */ package textfile; /** Constants defining options for the FileOrURL classes. For the * most part, the options tell how hard the software should look * for files that are not in the most obvious place. * @author dickey */ public class FileFinderOption { /** If all else fails, bring up a file chooser dialog box * and let the user choose a file. */ public final static FileFinderOption PROMPT_FOR_FILE = new FileFinderOption("Prompt User for file"); /** Even if all else fails, do not prompt the user. */ public final static FileFinderOption DONT_PROMPT_FOR_FILE = new FileFinderOption("Don't prompt User for file"); private String optionName; /** Construct an option; private! * * @param optionName a string briefly describing the option. */ private FileFinderOption(String optionName) { this.optionName = optionName; } /** Gives brief string description of the option. * @return a brief desciption of the option. */ public String toString() { return this.optionName; } }