public enum MediaType extends java.lang.Enum<MediaType>
ContextMenuParams
.
Enum Constant and Description |
---|
Audio
An audio node is selected.
|
Canvas
A canvas node is selected.
|
File
A file node is selected.
|
Image
An image node is selected.
|
None
No special node is in context.
|
Plugin
A plugin node is selected.
|
Video
A video node is selected.
|
Modifier and Type | Method and Description |
---|---|
int |
getValue()
Returns native constant which corresponds to this media type.
返回与此媒体类型相对应的本机常数。 |
static MediaType |
valueOf(int value)
Converts native constant (
将本机常数(值)转换为适当的枚举项。 value ) to appropriate enum item.
|
static MediaType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
返回具有指定名称的此类型的枚举常量。 |
static MediaType[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared.
以声明顺序返回包含此枚举类型的常量的数组。 |
public static final MediaType None
public static final MediaType Image
public static final MediaType Video
public static final MediaType Audio
public static final MediaType Canvas
public static final MediaType File
public static final MediaType Plugin
public static MediaType[] values()
for (MediaType c : MediaType.values()) System.out.println(c);
public static MediaType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
-要返回的枚举常量的名称。
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified name
java.lang.NullPointerException
- if the argument is null
public static MediaType valueOf(int value)
value
) to appropriate enum item. This method for internal usage only.
public int getValue()