|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnet.infonode.docking.mouse.DockingWindowActionMouseButtonListener
A MouseButtonListener that performs a DockingWindowAction. The action is not performed
if the mouse button event has been consumed.
| 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)
A mouse button event occured. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final MouseButtonListener MIDDLE_BUTTON_CLOSE_LISTENER
| 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(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 | ||||||||||