|
org.netbeans.api.visual 2.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface WidgetAction
This interface is defining an action that is usually assigned to a widget. The action is notified about all Swing events related to the widget where the action is assigned.
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.
Nested Class Summary | |
---|---|
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
|
Method Detail |
---|
WidgetAction.State mouseClicked(Widget widget, WidgetAction.WidgetMouseEvent event)
widget
- the widget where the action is assignedevent
- the mouse event
WidgetAction.State mousePressed(Widget widget, WidgetAction.WidgetMouseEvent event)
widget
- the widget where the action is assignedevent
- the mouse event
WidgetAction.State mouseReleased(Widget widget, WidgetAction.WidgetMouseEvent event)
widget
- the widget where the action is assignedevent
- the mouse event
WidgetAction.State mouseEntered(Widget widget, WidgetAction.WidgetMouseEvent event)
widget
- the widget where the action is assignedevent
- the mouse event
WidgetAction.State mouseExited(Widget widget, WidgetAction.WidgetMouseEvent event)
widget
- the widget where the action is assignedevent
- the mouse event
WidgetAction.State mouseDragged(Widget widget, WidgetAction.WidgetMouseEvent event)
widget
- the widget where the action is assignedevent
- the mouse event
WidgetAction.State mouseMoved(Widget widget, WidgetAction.WidgetMouseEvent event)
widget
- the widget where the action is assignedevent
- the mouse event
WidgetAction.State mouseWheelMoved(Widget widget, WidgetAction.WidgetMouseWheelEvent event)
widget
- the widget where the action is assignedevent
- the mouse wheel event
WidgetAction.State keyTyped(Widget widget, WidgetAction.WidgetKeyEvent event)
widget
- the widget where the action is assignedevent
- the key event
WidgetAction.State keyPressed(Widget widget, WidgetAction.WidgetKeyEvent event)
widget
- the widget where the action is assignedevent
- the key event
WidgetAction.State keyReleased(Widget widget, WidgetAction.WidgetKeyEvent event)
widget
- the widget where the action is assignedevent
- the key event
WidgetAction.State focusGained(Widget widget, WidgetAction.WidgetFocusEvent event)
widget
- the widget where the action is assignedevent
- the focus event
WidgetAction.State focusLost(Widget widget, WidgetAction.WidgetFocusEvent event)
widget
- the widget where the action is assignedevent
- the focus event
WidgetAction.State dragEnter(Widget widget, WidgetAction.WidgetDropTargetDragEvent event)
widget
- the widget where the action is assignedevent
- the drop target drag event
WidgetAction.State dragOver(Widget widget, WidgetAction.WidgetDropTargetDragEvent event)
widget
- the widget where the action is assignedevent
- the drop target drag event
WidgetAction.State dropActionChanged(Widget widget, WidgetAction.WidgetDropTargetDragEvent event)
widget
- the widget where the action is assignedevent
- the drop target drag event
WidgetAction.State dragExit(Widget widget, WidgetAction.WidgetDropTargetEvent event)
widget
- the widget where the action is assignedevent
- the drop target event
WidgetAction.State drop(Widget widget, WidgetAction.WidgetDropTargetDropEvent event)
widget
- the widget where the action is assignedevent
- the drop target drop event
|
org.netbeans.api.visual 2.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |