Package org.cef.handler
Enum CefKeyboardHandler.CefKeyEvent.EventType
- java.lang.Object
-
- java.lang.Enum<CefKeyboardHandler.CefKeyEvent.EventType>
-
- org.cef.handler.CefKeyboardHandler.CefKeyEvent.EventType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<CefKeyboardHandler.CefKeyEvent.EventType>
- Enclosing class:
- CefKeyboardHandler.CefKeyEvent
public static enum CefKeyboardHandler.CefKeyEvent.EventType extends java.lang.Enum<CefKeyboardHandler.CefKeyEvent.EventType>
Key event types.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description KEYEVENT_CHAR
Notification that a character was typed.KEYEVENT_KEYDOWN
Notification that a key was pressed.KEYEVENT_KEYUP
Notification that a key was releasedKEYEVENT_RAWKEYDOWN
Notification that a key transitioned from "up" to "down"
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CefKeyboardHandler.CefKeyEvent.EventType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static CefKeyboardHandler.CefKeyEvent.EventType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
KEYEVENT_RAWKEYDOWN
public static final CefKeyboardHandler.CefKeyEvent.EventType KEYEVENT_RAWKEYDOWN
Notification that a key transitioned from "up" to "down"
-
KEYEVENT_KEYDOWN
public static final CefKeyboardHandler.CefKeyEvent.EventType KEYEVENT_KEYDOWN
Notification that a key was pressed. This does not necessarily correspond to a character depending on the key and language. Use KEYEVENT_CHAR for character input.
-
KEYEVENT_KEYUP
public static final CefKeyboardHandler.CefKeyEvent.EventType KEYEVENT_KEYUP
Notification that a key was released
-
KEYEVENT_CHAR
public static final CefKeyboardHandler.CefKeyEvent.EventType KEYEVENT_CHAR
Notification that a character was typed. Use this for text input. Key down events may generate 0, 1, or more than one character event depending on the key, locale, and operating system.
-
-
Method Detail
-
values
public static CefKeyboardHandler.CefKeyEvent.EventType[] 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 (CefKeyboardHandler.CefKeyEvent.EventType c : CefKeyboardHandler.CefKeyEvent.EventType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CefKeyboardHandler.CefKeyEvent.EventType 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
-
-