public abstract class InputEvent
extends java.util.EventObject
Modifier and Type | Field and Description |
---|---|
static int |
ALT
Deprecated.
Use
SWT.ALT instead. |
static int |
ANY_BUTTON
Deprecated.
Use
SWT.BUTTON_MASK instead. |
static int |
BUTTON1
Deprecated.
Use
SWT.BUTTON1 instead. |
static int |
BUTTON2
Deprecated.
Use
SWT.BUTTON2 instead. |
static int |
BUTTON3
Deprecated.
Use
SWT.BUTTON3 instead. |
static int |
BUTTON4
Deprecated.
Use
SWT.BUTTON4 instead. |
static int |
BUTTON5
Deprecated.
Use
SWT.BUTTON5 instead. |
static int |
CONTROL
Deprecated.
Use
SWT.CONTROL instead. |
static int |
SHIFT
Deprecated.
Use
SWT.SHIFT instead. |
Constructor and Description |
---|
InputEvent(EventDispatcher dispatcher,
IFigure source,
int state)
Constructs a new InputEvent.
|
Modifier and Type | Method and Description |
---|---|
void |
consume()
Marks this event as consumed so that it doesn't get passed on to other
listeners.
|
int |
getState()
Returns the event state mask, which is a bitwise OR'ing of the keyboard
modifier and the mouse button mask.
|
boolean |
isConsumed() |
public static final int ALT
SWT.ALT
instead.public static final int CONTROL
SWT.CONTROL
instead.public static final int SHIFT
SWT.SHIFT
instead.public static final int BUTTON1
SWT.BUTTON1
instead.public static final int BUTTON2
SWT.BUTTON2
instead.public static final int BUTTON3
SWT.BUTTON3
instead.public static final int BUTTON4
SWT.BUTTON4
instead.public static final int BUTTON5
SWT.BUTTON5
instead.public static final int ANY_BUTTON
SWT.BUTTON_MASK
instead.public InputEvent(EventDispatcher dispatcher, IFigure source, int state)
dispatcher
- the event dispatchersource
- the source of the eventstate
- the state of the keyboard modifier and mouse button mask.SWT.MODIFIER_MASK
,
SWT.BUTTON_MASK
public void consume()
public int getState()
SWT.MODIFIER_MASK
,
SWT.BUTTON_MASK
public boolean isConsumed()
Copyright (c) IBM Corp. and others 2000, 2011. All Rights Reserved.