- java.lang.Object
-
- java.lang.Enum<KeyEvent.MediaKey>
-
- org.jline.terminal.KeyEvent.MediaKey
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<KeyEvent.MediaKey>
- Enclosing class:
- KeyEvent
public static enum KeyEvent.MediaKey extends java.lang.Enum<KeyEvent.MediaKey>
Defines media keys reported by the Kitty Keyboard Protocol.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description FastForwardLowerVolumeMuteVolumePausePlayPlayPauseRaiseVolumeRecordReverseRewindStopTrackNextTrackPrevious
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static KeyEvent.MediaKeyvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static KeyEvent.MediaKey[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
Play
public static final KeyEvent.MediaKey Play
-
Pause
public static final KeyEvent.MediaKey Pause
-
PlayPause
public static final KeyEvent.MediaKey PlayPause
-
Reverse
public static final KeyEvent.MediaKey Reverse
-
Stop
public static final KeyEvent.MediaKey Stop
-
FastForward
public static final KeyEvent.MediaKey FastForward
-
Rewind
public static final KeyEvent.MediaKey Rewind
-
TrackNext
public static final KeyEvent.MediaKey TrackNext
-
TrackPrevious
public static final KeyEvent.MediaKey TrackPrevious
-
Record
public static final KeyEvent.MediaKey Record
-
LowerVolume
public static final KeyEvent.MediaKey LowerVolume
-
RaiseVolume
public static final KeyEvent.MediaKey RaiseVolume
-
MuteVolume
public static final KeyEvent.MediaKey MuteVolume
-
-
Method Detail
-
values
public static KeyEvent.MediaKey[] 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 (KeyEvent.MediaKey c : KeyEvent.MediaKey.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static KeyEvent.MediaKey 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
-
-