public static enum FileDownload.Mode extends Enum<FileDownload.Mode>
Enum Constant and Description |
---|
ATTACHMENT
Value indicating that the file should be downloaded; most browsers present a 'Save as' dialog.
|
INLINE
Value indicating that the file can be displayed inside the Web page, or as the Web page.
|
Modifier and Type | Method and Description |
---|---|
static FileDownload.Mode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static FileDownload.Mode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FileDownload.Mode INLINE
public static final FileDownload.Mode ATTACHMENT
public static FileDownload.Mode[] values()
for (FileDownload.Mode c : FileDownload.Mode.values()) System.out.println(c);
public static FileDownload.Mode valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2020. All rights reserved.