public enum TextTrackMode extends Enum<TextTrackMode>
Enum Constant and Description |
---|
DISABLED
The track is disabled.
|
HIDDEN
The track is hidden.
|
SHOWING
The track is showing.
|
Modifier and Type | Method and Description |
---|---|
static TextTrackMode |
from(String mode)
Creates a text track mode from a textual representation, when possible.
|
String |
getMode()
The textual representation of the text track mode.
|
String |
toString() |
static TextTrackMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TextTrackMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TextTrackMode DISABLED
- A disabled track is not displayed and exposes no active cues, nor fires cue events.
public static final TextTrackMode HIDDEN
- A hidden track is not displayed but exposes active cues and fires cue events.
public static final TextTrackMode SHOWING
- A showing track is displayed, exposes active cues and fires cue events.
public static TextTrackMode[] values()
for (TextTrackMode c : TextTrackMode.values()) System.out.println(c);
public static TextTrackMode 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 nullpublic static TextTrackMode from(String mode)
mode
- The textual representation of the text track mode.public String getMode()
public String toString()
toString
in class Enum<TextTrackMode>