|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.EventObject com.dlsc.flexgantt.swing.layer.system.DragLayerEvent
public class DragLayerEvent
An event object that encapsulates the most important information about a drag &
drop operation executed in an instance of DragLayer
.
DragLayer.addDragLayerListener(IDragLayerListener)
,
Serialized FormNested Class Summary | |
---|---|
static class |
DragLayerEvent.ID
An enumerator with different identifiers that can be used to distinguish between different types of events. |
Field Summary |
---|
Fields inherited from class java.util.EventObject |
---|
source |
Constructor Summary | |
---|---|
DragLayerEvent(DragLayer layer,
DragLayerEvent.ID id,
java.lang.Object draggedObject,
ITimeSpan span,
int dropAction)
Constructs a new event object. |
Method Summary | |
---|---|
java.lang.Object |
getDraggedObject()
Returns the object that is being dragged around (or resized) by the user. |
DragLayer |
getDragLayer()
Returns the drag layer where the drag operation takes place. |
int |
getDropAction()
Returns the drop action as requested by the user (copy, move). |
DragLayerEvent.ID |
getId()
Returns the event ID. |
ITimeSpan |
getTimeSpan()
Returns the time span to which the dragged object has been moved (or resized) by the user. |
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 |
Constructor Detail |
---|
public DragLayerEvent(DragLayer layer, DragLayerEvent.ID id, java.lang.Object draggedObject, ITimeSpan span, int dropAction)
layer
- the drag layer where the event occuredid
- the type of eventdraggedObject
- the object that is being draggedspan
- the time span that will be applied to the dragged objectdropAction
- the drop action specified by the user: copy or move (possible
values are listed in DnDConstants
)Method Detail |
---|
public DragLayerEvent.ID getId()
public DragLayer getDragLayer()
public ITimeSpan getTimeSpan()
public java.lang.Object getDraggedObject()
public int getDropAction()
DnDConstants
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |