Package ca.cgjennings.ui
Enum JFileField.FileType
- java.lang.Object
-
- java.lang.Enum<JFileField.FileType>
-
- ca.cgjennings.ui.JFileField.FileType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<JFileField.FileType>
- Enclosing class:
- JFileField
public static enum JFileField.FileType extends java.lang.Enum<JFileField.FileType>
Standard Strange Eons file types that this file field can be set to accept. If the type is set toGENERIC
orGENERIC_SAVE
, the accepted file extensions and description can be set viaJFileField.setGenericFileTypeExtensions(java.lang.String[])
andJFileField.setGenericFileTypeDescription(java.lang.String)
, respectively.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BITMAP_IMAGE
Only bitmap format images (such as JPEG), not vector image formats (such as SVG).COMPONENT
Strange Eons game components (cards, markers, etc.)COMPONENT_SAVE
A Save (instead of Open) file dialog for Strange Eons game components.GENERIC
Use the generic extensions and description.GENERIC_SAVE
A Save (instead of Open) file dialog using the generic extensions and description.IMAGE
Any supported image file.PLUGIN
Any plug-in bundle.PORTRAIT
Any supported image file; shift+click to choose an internal image resource.PROJECT_CONTAINER
A folder for a project to be created within.SCRIPT
A script file.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static JFileField.FileType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static JFileField.FileType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
COMPONENT
public static final JFileField.FileType COMPONENT
Strange Eons game components (cards, markers, etc.)
-
BITMAP_IMAGE
public static final JFileField.FileType BITMAP_IMAGE
Only bitmap format images (such as JPEG), not vector image formats (such as SVG).
-
IMAGE
public static final JFileField.FileType IMAGE
Any supported image file.
-
PORTRAIT
public static final JFileField.FileType PORTRAIT
Any supported image file; shift+click to choose an internal image resource.
-
PLUGIN
public static final JFileField.FileType PLUGIN
Any plug-in bundle.
-
SCRIPT
public static final JFileField.FileType SCRIPT
A script file.
-
GENERIC
public static final JFileField.FileType GENERIC
Use the generic extensions and description.
-
COMPONENT_SAVE
public static final JFileField.FileType COMPONENT_SAVE
A Save (instead of Open) file dialog for Strange Eons game components.
-
GENERIC_SAVE
public static final JFileField.FileType GENERIC_SAVE
A Save (instead of Open) file dialog using the generic extensions and description.
-
PROJECT_CONTAINER
public static final JFileField.FileType PROJECT_CONTAINER
A folder for a project to be created within.
-
-
Method Detail
-
values
public static JFileField.FileType[] 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 (JFileField.FileType c : JFileField.FileType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static JFileField.FileType 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 namejava.lang.NullPointerException
- if the argument is null
-
-