com.alee.laf.filechooser
Enum FileChooserType

java.lang.Object
  extended by java.lang.Enum<FileChooserType>
      extended by com.alee.laf.filechooser.FileChooserType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<FileChooserType>

public enum FileChooserType
extends java.lang.Enum<FileChooserType>

This enumeration represents all available file chooser types.

Author:
Mikle Garin

Enum Constant Summary
custom
          Custom file chooser type.
open
          Open file chooser type.
save
          Save file chooser type.
 
Method Summary
static FileChooserType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static FileChooserType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

save

public static final FileChooserType save
Save file chooser type.

File chooser of this type has a special input field to enter saved file name. It is also limited to single file selection since there is no point in saving single content into multiply files. It also has an extension chooser combobox if allowed extensions are limited.


open

public static final FileChooserType open
Open file chooser type.

File chooser of this type is used to choose single or multiply files.


custom

public static final FileChooserType custom
Custom file chooser type.

Method Detail

values

public static FileChooserType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (FileChooserType c : FileChooserType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static FileChooserType valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null