public abstract class EventDispatcher
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
EventDispatcher.AccessibilityDispatcher
Combines
AccessibleControlListener and AccessibleListener
. |
Constructor and Description |
---|
EventDispatcher() |
Modifier and Type | Method and Description |
---|---|
abstract void |
dispatchFocusGained(FocusEvent e)
Dispatches a focus gained event.
|
abstract void |
dispatchFocusLost(FocusEvent e)
Dispatches a focus lost event.
|
abstract void |
dispatchKeyPressed(KeyEvent e)
Dispatches a key pressed event.
|
abstract void |
dispatchKeyReleased(KeyEvent e)
Dispatches a key released event.
|
abstract void |
dispatchKeyTraversed(TraverseEvent e)
Dispatches a key traversed event.
|
abstract void |
dispatchMouseDoubleClicked(MouseEvent me)
Dispatches a mouse double clicked event.
|
abstract void |
dispatchMouseEntered(MouseEvent e)
Dispatches a mouse entered event.
|
abstract void |
dispatchMouseExited(MouseEvent e)
Dispatches a mouse exited event.
|
abstract void |
dispatchMouseHover(MouseEvent me)
Dispatches a mouse hover event.
|
abstract void |
dispatchMouseMoved(MouseEvent me)
Dispatches a moved event event.
|
abstract void |
dispatchMousePressed(MouseEvent me)
Dispatches a mouse pressed event.
|
abstract void |
dispatchMouseReleased(MouseEvent me)
Dispatches a mouse released event.
|
void |
dispatchMouseWheelScrolled(Event event)
Dispatches a MouseWheel event.
|
protected abstract EventDispatcher.AccessibilityDispatcher |
getAccessibilityDispatcher()
Returns the AccessibilityDispatcher.
|
abstract IFigure |
getFocusOwner()
Returns the IFigure that currently has focus.
|
abstract boolean |
isCaptured() |
protected abstract void |
releaseCapture()
Releases capture initiated by
setCapture(IFigure) . |
abstract void |
requestFocus(IFigure fig)
Requests focus for the given figure.
|
abstract void |
requestRemoveFocus(IFigure fig)
Requests focus to be removed from the given figure.
|
protected abstract void |
setCapture(IFigure figure)
Sets capture to the given figure.
|
abstract void |
setControl(Control control)
Sets the contol associated with this event dispatcher.
|
abstract void |
setRoot(IFigure figure)
Sets the root figure for this dispatcher.
|
protected abstract void |
updateCursor()
Updates the cursor.
|
public abstract void dispatchFocusGained(FocusEvent e)
e
- the eventpublic abstract void dispatchFocusLost(FocusEvent e)
e
- the eventpublic abstract void dispatchKeyPressed(KeyEvent e)
e
- the eventpublic abstract void dispatchKeyReleased(KeyEvent e)
e
- the eventpublic abstract void dispatchKeyTraversed(TraverseEvent e)
e
- the eventpublic abstract void dispatchMouseDoubleClicked(MouseEvent me)
me
- the eventpublic abstract void dispatchMouseEntered(MouseEvent e)
e
- the eventpublic abstract void dispatchMouseExited(MouseEvent e)
e
- the eventpublic abstract void dispatchMouseHover(MouseEvent me)
me
- the eventpublic abstract void dispatchMouseMoved(MouseEvent me)
me
- the eventpublic abstract void dispatchMousePressed(MouseEvent me)
me
- the eventpublic abstract void dispatchMouseReleased(MouseEvent me)
me
- the eventpublic void dispatchMouseWheelScrolled(Event event)
event
- the SWT eventprotected abstract EventDispatcher.AccessibilityDispatcher getAccessibilityDispatcher()
public abstract IFigure getFocusOwner()
public abstract boolean isCaptured()
protected abstract void releaseCapture()
setCapture(IFigure)
.public abstract void requestFocus(IFigure fig)
fig
- the figure requesting focuspublic abstract void requestRemoveFocus(IFigure fig)
fig
- the figure requesting focus be removedprotected abstract void setCapture(IFigure figure)
releaseCapture()
is called.figure
- the figure capturing the eventspublic abstract void setControl(Control control)
control
- the controlpublic abstract void setRoot(IFigure figure)
figure
- the root figureprotected abstract void updateCursor()
Copyright (c) IBM Corp. and others 2000, 2011. All Rights Reserved.