Package io.guise.framework.input
Enum MediaCommand
- All Implemented Interfaces:
Command
,Serializable
,Comparable<MediaCommand>
Commands for controlling media.
- Author:
- Garret Wilson
-
Enum Constant Summary
Enum ConstantDescriptionThe command for advancing in a media stream from the current location.The command for moving to the next media resource in a series.The command for pausing a media stream, with the capability to continue the media stream later.The command for starting media.The command for moving to the previous media resource in a series.The command for receding in a media stream from the current location.The command for recording input to media.The command for stopping media. -
Method Summary
Modifier and TypeMethodDescriptiongetGlyph()
getLabel()
toString()
Returns a string representation of the command.static MediaCommand
Returns the enum constant of this type with the specified name.static MediaCommand[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
ADVANCE
The command for advancing in a media stream from the current location. -
NEXT
The command for moving to the next media resource in a series. -
PAUSE
The command for pausing a media stream, with the capability to continue the media stream later. -
PLAY
The command for starting media. -
PREVIOUS
The command for moving to the previous media resource in a series. -
RECEDE
The command for receding in a media stream from the current location. -
RECORD
The command for recording input to media. -
STOP
The command for stopping media.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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 nameNullPointerException
- if the argument is null
-
getLabel
- Returns:
- The resource reference for the label.
-
getGlyph
- Returns:
- The resource reference for the glyph.
-
toString
Returns a string representation of the command. This implementation delegates togetLabel()
.- Overrides:
toString
in classEnum<MediaCommand>
- Returns:
- A string representation of the object.
-