public interface WidgetAction
Events: mouse, mouse-motion, mouse-wheel, drag'n'drop, focus, keyboard.
Each event handler has to return a state of the event processing (represented by WidgetAction.State).
Each Swing event is processed by all actions of all widgets in a scene. The processing can be stopped by consuming the event. When processing event for a widget, then all children widget (from the last) of widget are asked for processing first. Then finally the event is processed by all actions (from the first to the last) assigned to the widget.
Modifier and Type | Interface and Description |
---|---|
static class |
WidgetAction.Adapter
An adapter of the widget action.
|
static class |
WidgetAction.Chain
Represents a chain of widget actions.
|
static class |
WidgetAction.LockedAdapter
An adapter of the widget action.
|
static class |
WidgetAction.State
Represents a state of event processing.
|
static class |
WidgetAction.WidgetDropTargetDragEvent
Represents a drop target drag event.
|
static class |
WidgetAction.WidgetDropTargetDropEvent
Represents a drop target drop event.
|
static class |
WidgetAction.WidgetDropTargetEvent
Represents a drop target event.
|
static interface |
WidgetAction.WidgetEvent
Represents an widget event.
|
static class |
WidgetAction.WidgetFocusEvent
Represents a focus event of a scene view.
|
static class |
WidgetAction.WidgetKeyEvent
Represents a key event.
|
static interface |
WidgetAction.WidgetLocationEvent
Represents an location event used for controlling mouse location.
|
static class |
WidgetAction.WidgetMouseEvent
Represents a mouse event.
|
static class |
WidgetAction.WidgetMouseWheelEvent |
WidgetAction.State mouseClicked(Widget widget, WidgetAction.WidgetMouseEvent event)
widget
- the widget where the action is assignedevent
- the mouse eventWidgetAction.State mousePressed(Widget widget, WidgetAction.WidgetMouseEvent event)
widget
- the widget where the action is assignedevent
- the mouse eventWidgetAction.State mouseReleased(Widget widget, WidgetAction.WidgetMouseEvent event)
widget
- the widget where the action is assignedevent
- the mouse eventWidgetAction.State mouseEntered(Widget widget, WidgetAction.WidgetMouseEvent event)
widget
- the widget where the action is assignedevent
- the mouse eventWidgetAction.State mouseExited(Widget widget, WidgetAction.WidgetMouseEvent event)
widget
- the widget where the action is assignedevent
- the mouse eventWidgetAction.State mouseDragged(Widget widget, WidgetAction.WidgetMouseEvent event)
widget
- the widget where the action is assignedevent
- the mouse eventWidgetAction.State mouseMoved(Widget widget, WidgetAction.WidgetMouseEvent event)
widget
- the widget where the action is assignedevent
- the mouse eventWidgetAction.State mouseWheelMoved(Widget widget, WidgetAction.WidgetMouseWheelEvent event)
widget
- the widget where the action is assignedevent
- the mouse wheel eventWidgetAction.State keyTyped(Widget widget, WidgetAction.WidgetKeyEvent event)
widget
- the widget where the action is assignedevent
- the key eventWidgetAction.State keyPressed(Widget widget, WidgetAction.WidgetKeyEvent event)
widget
- the widget where the action is assignedevent
- the key eventWidgetAction.State keyReleased(Widget widget, WidgetAction.WidgetKeyEvent event)
widget
- the widget where the action is assignedevent
- the key eventWidgetAction.State focusGained(Widget widget, WidgetAction.WidgetFocusEvent event)
widget
- the widget where the action is assignedevent
- the focus eventWidgetAction.State focusLost(Widget widget, WidgetAction.WidgetFocusEvent event)
widget
- the widget where the action is assignedevent
- the focus eventWidgetAction.State dragEnter(Widget widget, WidgetAction.WidgetDropTargetDragEvent event)
widget
- the widget where the action is assignedevent
- the drop target drag eventWidgetAction.State dragOver(Widget widget, WidgetAction.WidgetDropTargetDragEvent event)
widget
- the widget where the action is assignedevent
- the drop target drag eventWidgetAction.State dropActionChanged(Widget widget, WidgetAction.WidgetDropTargetDragEvent event)
widget
- the widget where the action is assignedevent
- the drop target drag eventWidgetAction.State dragExit(Widget widget, WidgetAction.WidgetDropTargetEvent event)
widget
- the widget where the action is assignedevent
- the drop target eventWidgetAction.State drop(Widget widget, WidgetAction.WidgetDropTargetDropEvent event)
widget
- the widget where the action is assignedevent
- the drop target drop event