net.infonode.docking.mouse
public class DockingWindowActionMouseButtonListener extends Object implements MouseButtonListener, Serializable
Since: IDW 1.3.0
Version: $Revision: 1.9 $
Field Summary | |
---|---|
static MouseButtonListener | MIDDLE_BUTTON_CLOSE_LISTENER
A listener that closes a window when its tab is clicked with the middle mouse button. |
Constructor Summary | |
---|---|
DockingWindowActionMouseButtonListener(int button, DockingWindowAction action)
Creates a listener which performs an action when a mouse button is clicked. | |
DockingWindowActionMouseButtonListener(int eventId, int button, DockingWindowAction action)
Creates a listener which performs an action when a mouse button is pressed, released or clicked.
| |
DockingWindowActionMouseButtonListener(int eventId, int button, int keyMask, DockingWindowAction action, boolean consumeEvent)
Creates a listener which performs an action when a mouse button is pressed, released or clicked, with
an additional key mask.
|
Method Summary | |
---|---|
void | mouseButtonEvent(MouseEvent event) |
Parameters: button when this mouse button is clicked the action is performed , must be {@link MouseEvent#BUTTON1}, {@link MouseEvent#BUTTON2} or {@link MouseEvent#BUTTON3} action the action to perform
Parameters: eventId the event type for which to perform the action, must be {@link MouseEvent#MOUSE_PRESSED}, {@link MouseEvent#MOUSE_RELEASED} or {@link MouseEvent#MOUSE_CLICKED} button when this mouse button for which the action is performed , must be {@link MouseEvent#BUTTON1}, {@link MouseEvent#BUTTON2} or {@link MouseEvent#BUTTON3} action the action to perform
Parameters: eventId the event type for which to perform the action, must be {@link MouseEvent#MOUSE_PRESSED}, {@link MouseEvent#MOUSE_RELEASED} or {@link MouseEvent#MOUSE_CLICKED} button when this mouse button for which the action is performed , must be {@link MouseEvent#BUTTON1}, {@link MouseEvent#BUTTON2} or {@link MouseEvent#BUTTON3} keyMask the keys that must be pressed for the action to be performed, must be 0 or an or'ed combination of the key down masks found in {@link InputEvent}. action the action to perform consumeEvent if true the event is consumed when the action is performed