|
![]() Quark Platform Documentation Version 1.7.0_0 Business Objects |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openquark.gems.client.utilities.MouseClickDragListener
public abstract class MouseClickDragListener
MouseListener and MouseMotionListener that use reasonable models for click and drag Creation date: (12/13/01 4:28:24 PM)
| Nested Class Summary | |
|---|---|
static class |
MouseClickDragListener.DragMode
Drag action enum pattern. |
| Field Summary | |
|---|---|
protected static int |
DOUBLE_CLICK_OFFSET_LIMIT
Max distance between clicks to count as a double click |
protected static long |
DOUBLE_CLICK_THRESHOLD_TIME
The number of milliseconds that should bound a double click. |
protected boolean |
dragInitiatedWithCTRL
The current drag was initiated with the CTRL modifier. |
protected boolean |
dragInitiatedWithSHIFT
The current drag was initiated with the SHIFT modifier. |
protected MouseClickDragListener.DragMode |
dragMode
What type of dragging action we are performing. |
protected static int |
INITIAL_DRAG_OFFSET
Naggle size the mouse can move before a button press becomes a drag |
protected Point |
pressedAt
Where we pressed. |
| Constructor Summary | |
|---|---|
MouseClickDragListener()
Constructor for a MouseClickDragListener Creation date: (12/13/01 4:41:24 PM) |
|
| Method Summary | |
|---|---|
protected void |
abortDrag()
Move the drag mode into the aborted state. |
void |
enterDragState(MouseEvent e)
Carry out setup appropriate to enter the drag state. |
void |
exitDragState(MouseEvent e)
Carry out setup appropriate to exit the drag state. |
static int |
getNumMouseButtons(MouseEvent e)
Return the number of mouse buttons associated with a mouse event. |
protected boolean |
isUsefulDragMode(MouseClickDragListener.DragMode mode)
Whether this drag mode actually enables accomplishing anything. |
void |
mouseClicked(MouseEvent e)
Invoked when the mouse has been clicked on a component. |
void |
mouseDragged(MouseEvent e)
Creation date: (12/13/01 4:28:24 PM) |
void |
mousePressed(MouseEvent e)
Invoked when a mouse button has been pressed on a component. |
boolean |
mouseReallyClicked(MouseEvent e)
Surrogate method for mouseClicked. |
abstract void |
mouseReallyDragged(MouseEvent e,
Point where,
boolean wasDragging)
Surrogate method for mouseDragged. |
void |
mouseReleased(MouseEvent e)
Invoked when a mouse button has been released on a component. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.awt.event.MouseListener |
|---|
mouseEntered, mouseExited |
| Methods inherited from interface java.awt.event.MouseMotionListener |
|---|
mouseMoved |
| Field Detail |
|---|
protected static final int INITIAL_DRAG_OFFSET
protected static final int DOUBLE_CLICK_OFFSET_LIMIT
protected static final long DOUBLE_CLICK_THRESHOLD_TIME
protected Point pressedAt
protected MouseClickDragListener.DragMode dragMode
protected boolean dragInitiatedWithCTRL
protected boolean dragInitiatedWithSHIFT
| Constructor Detail |
|---|
public MouseClickDragListener()
| Method Detail |
|---|
protected void abortDrag()
public static final int getNumMouseButtons(MouseEvent e)
e - MouseEvent the mouse event
protected boolean isUsefulDragMode(MouseClickDragListener.DragMode mode)
mode - DragMode the DragMode to check
public final void mouseClicked(MouseEvent e)
mouseClicked in interface MouseListenerMouseListener.mouseClicked(MouseEvent)public void mouseDragged(MouseEvent e)
mouseDragged in interface MouseMotionListenerMouseMotionListener.mouseDragged(MouseEvent)public void mousePressed(MouseEvent e)
mousePressed in interface MouseListenerMouseListener.mousePressed(MouseEvent)public void mouseReleased(MouseEvent e)
mouseReleased in interface MouseListenerMouseListener.mouseReleased(MouseEvent)public boolean mouseReallyClicked(MouseEvent e)
e - MouseEvent the relevant event
public abstract void mouseReallyDragged(MouseEvent e,
Point where,
boolean wasDragging)
e - MouseEvent the relevant eventwhere - java.awt.Point the (possibly adjusted from e) coordinates of the dragwasDragging - boolean True: this is a continuation of a drag. False: first call upon transition
from pressed to drag.public void enterDragState(MouseEvent e)
e - MouseEvent the mouse event which triggered entry into the drag state.public void exitDragState(MouseEvent e)
e - MouseEvent the mouse event which caused an exit from the drag state
|
![]() Quark Platform Documentation Version 1.7.0_0 Business Objects |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||