org.openpermis.editor.policy
Enum ApplicationContext.FileChooserType

java.lang.Object
  extended by java.lang.Enum<ApplicationContext.FileChooserType>
      extended by org.openpermis.editor.policy.ApplicationContext.FileChooserType
All Implemented Interfaces:
Serializable, Comparable<ApplicationContext.FileChooserType>
Enclosing class:
ApplicationContext

public static enum ApplicationContext.FileChooserType
extends Enum<ApplicationContext.FileChooserType>

Type object for file chooser types.

Basically this type object encapsulates the JFileChooser dialog type in an object so that we do not have to pass plain integer values around.

Since:
0.9.0

Enum Constant Summary
OPEN
          Indicates that a file chooser to open a file is desired.
SAVE
          Indicates that a file chooser to save a file is desired.
 
Method Summary
 void configure(JFileChooser fileChooser)
          Configures the file chooser specified to the correct type..
static ApplicationContext.FileChooserType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ApplicationContext.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

OPEN

public static final ApplicationContext.FileChooserType OPEN
Indicates that a file chooser to open a file is desired.

Since:
0.9.0

SAVE

public static final ApplicationContext.FileChooserType SAVE
Indicates that a file chooser to save a file is desired.

Since:
0.9.0
Method Detail

values

public static ApplicationContext.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 (ApplicationContext.FileChooserType c : ApplicationContext.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 ApplicationContext.FileChooserType valueOf(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:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

configure

public void configure(JFileChooser fileChooser)
Configures the file chooser specified to the correct type..

Since:
0.9.0


OpenPermis Role Based Access Control 0.9.0 (Build 16)
2009/08/13 07:17:21
Copyright (c) 2002-2007 Ergon Informatik AG