public enum MouseKeys extends Enum<MouseKeys>
| Enum Constant and Description |
|---|
ALT_KEY
Indicates whether the Alt key is pressed.
|
CTRL_KEY
Indicates whether the Ctrl key is pressed.
|
LEFT_CLICK
Indicates whether the left button is clicked.
|
META_KEY
Indicates whether the Meta key is pressed.
|
MIDDLE_CLICK
Indicates whether the middle button is clicked.
|
RIGHT_CLICK
Indicates whether the right button is clicked.
|
SHIFT_KEY
Indicates whether the Shift key is pressed.
|
| Modifier and Type | Method and Description |
|---|---|
static Set<MouseKeys> |
fromMouseEvent(org.zkoss.zk.ui.event.MouseEvent event)
Extracts keys pressed from zk
MouseEvent |
static Set<MouseKeys> |
fromMouseEventMask(int mask)
Extracts keys pressed from zk
MouseEvent |
static MouseKeys |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MouseKeys[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MouseKeys ALT_KEY
public static final MouseKeys CTRL_KEY
public static final MouseKeys SHIFT_KEY
public static final MouseKeys META_KEY
public static final MouseKeys LEFT_CLICK
public static final MouseKeys RIGHT_CLICK
public static final MouseKeys MIDDLE_CLICK
public static MouseKeys[] values()
for (MouseKeys c : MouseKeys.values()) System.out.println(c);
public static MouseKeys 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 Set<MouseKeys> fromMouseEvent(org.zkoss.zk.ui.event.MouseEvent event)
MouseEventevent - zk MouseEvent to extract keysCopyright © 2018. All rights reserved.