com.alee.laf.filechooser
Enum FileSelectionMode

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

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

Author:
Mikle Garin

Enum Constant Summary
directoriesOnly
          Directories only selection mode.
filesAndDirectories
          Files and directories selection mode.
filesOnly
          Files only selection mode.
 
Method Summary
static FileSelectionMode get(int modeId)
          Returns selection mode for the specified selection mode ID.
 int getModeId()
          Returns selection mode ID.
static FileSelectionMode valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static FileSelectionMode[] 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

filesOnly

public static final FileSelectionMode filesOnly
Files only selection mode.


directoriesOnly

public static final FileSelectionMode directoriesOnly
Directories only selection mode.


filesAndDirectories

public static final FileSelectionMode filesAndDirectories
Files and directories selection mode.

Method Detail

values

public static FileSelectionMode[] 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 (FileSelectionMode c : FileSelectionMode.values())
    System.out.println(c);

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

valueOf

public static FileSelectionMode 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

getModeId

public int getModeId()
Returns selection mode ID.

Returns:
selection mode ID

get

public static FileSelectionMode get(int modeId)
Returns selection mode for the specified selection mode ID.

Parameters:
modeId - selection mode ID
Returns:
selection mode for the specified selection mode ID