|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.infonode.docking.mouse.DockingWindowActionMouseButtonListener
public class DockingWindowActionMouseButtonListener
A MouseButtonListener that performs a DockingWindowAction. The action is not performed
if the mouse button event has been consumed.
| Field Summary | |
|---|---|
private DockingWindowAction |
action
|
private int |
button
|
private boolean |
consumeEvent
|
private int |
eventId
|
private int |
keyMask
|
static MouseButtonListener |
MIDDLE_BUTTON_CLOSE_LISTENER
A listener that closes a window when its tab is clicked with the middle mouse button. |
private static int |
MODIFIER_MASK
|
private static long |
serialVersionUID
|
| 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(java.awt.event.MouseEvent event)
A mouse button event occured. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static final long serialVersionUID
private static final int MODIFIER_MASK
public static final MouseButtonListener MIDDLE_BUTTON_CLOSE_LISTENER
private int eventId
private int button
private int keyMask
private DockingWindowAction action
private boolean consumeEvent
| Constructor Detail |
|---|
public DockingWindowActionMouseButtonListener(int button,
DockingWindowAction action)
button - when this mouse button is clicked the action is performed , must be
MouseEvent.BUTTON1, MouseEvent.BUTTON2 or MouseEvent.BUTTON3action - the action to perform
public DockingWindowActionMouseButtonListener(int eventId,
int button,
DockingWindowAction action)
eventId - the event type for which to perform the action, must be
MouseEvent.MOUSE_PRESSED, MouseEvent.MOUSE_RELEASED or
MouseEvent.MOUSE_CLICKEDbutton - when this mouse button for which the action is performed , must be
MouseEvent.BUTTON1, MouseEvent.BUTTON2 or MouseEvent.BUTTON3action - the action to perform
public DockingWindowActionMouseButtonListener(int eventId,
int button,
int keyMask,
DockingWindowAction action,
boolean consumeEvent)
eventId - the event type for which to perform the action, must be
MouseEvent.MOUSE_PRESSED, MouseEvent.MOUSE_RELEASED or
MouseEvent.MOUSE_CLICKEDbutton - when this mouse button for which the action is performed , must be
MouseEvent.BUTTON1, MouseEvent.BUTTON2 or MouseEvent.BUTTON3keyMask - 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 InputEvent.action - the action to performconsumeEvent - if true the event is consumed when the action is performed| Method Detail |
|---|
public void mouseButtonEvent(java.awt.event.MouseEvent event)
MouseButtonListener
mouseButtonEvent in interface MouseButtonListenerevent - the mouse button event
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||