|
Extension SDK 10.1.2 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.EventObject oracle.ide.controls.DragComponentEvent
The event sent when a component is dragged.
Field Summary | |
static int |
DRAGGEDID_CANCEL
Event ID used when the user cancels the drag |
static int |
DRAGGEDID_END
Event ID used when the component is dropped |
static int |
DRAGGEDID_MOVE
Event ID used when the component is being dragged to new place. |
static int |
DRAGGEDID_START
Event ID used when dragging starts. |
Fields inherited from class java.util.EventObject |
source |
Constructor Summary | |
DragComponentEvent()
This event is reusable because we do not want to overload the GC when the mouse is moved around. |
|
DragComponentEvent(java.awt.Component src,
java.awt.Point ptMouse,
int nID,
int nModifiers)
The canonical form of the constructor. |
Method Summary | |
void |
consume()
consume the event |
int |
getModifiers()
|
java.awt.Point |
getPoint()
|
boolean |
isConsumed()
|
void |
set(java.awt.Component src,
java.awt.Point ptMouse,
int nID,
int nModifiers)
Sets new value on the object. |
Methods inherited from class java.util.EventObject |
getSource, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int DRAGGEDID_START
public static final int DRAGGEDID_MOVE
public static final int DRAGGEDID_END
public static final int DRAGGEDID_CANCEL
Constructor Detail |
public DragComponentEvent(java.awt.Component src, java.awt.Point ptMouse, int nID, int nModifiers)
public DragComponentEvent()
Method Detail |
public void set(java.awt.Component src, java.awt.Point ptMouse, int nID, int nModifiers)
src
- The component being draggedptMouse
- the point where the component was taken in screen
coordinatesnID
- The event ID. Takes values from DRAGGEDID_xxxnModifiers
- See InputEvent.getModifiers()public java.awt.Point getPoint()
public int getModifiers()
public boolean isConsumed()
public void consume()
isConsumed
|
Extension SDK | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 1997, 2004, Oracle. All rights reserved.