|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.salespointframework.core.FormSheet.DnDDispatcher
private class FormSheet.DnDDispatcher
this class manages drag'n drop events on this formsheet
Field Summary | |
---|---|
protected DnDComponent |
dndComponent
component that caused the drag |
protected boolean |
dndInProgress
true id drag is in progress |
protected DnDComponent |
hlComponent
component that is currently highlighted |
protected boolean |
initialGeasture
first time of drag event |
protected java.awt.Point |
lastLocalPoint
last paint relative to dndComponent |
protected DnDMotionComponent |
motionCmp
motion component which is displayed in drag layer |
protected javax.swing.Timer |
timer
timer |
protected int |
transferCount
count of transfered objects |
protected int |
transferIndex
index of transfered object |
protected java.lang.Object |
transferObject
object that is transfered |
Constructor Summary | |
---|---|
FormSheet.DnDDispatcher()
default constructor |
Method Summary | |
---|---|
void |
abortDnDOperation()
abort the dnd operation |
void |
dndComponentRemoved(DnDComponent dndcmp)
abort drag operation of DnDComponent was removed |
void |
eventDispatched(java.awt.AWTEvent event)
event dispatcher |
protected DnDComponent |
getAffectedComponent(java.awt.event.MouseEvent me)
currently affected dnd component |
protected java.awt.Point |
getLocalPoint(java.awt.event.MouseEvent me,
java.awt.Component cmp)
transform point to local coords |
void |
paintHiglightEffect(java.awt.Graphics g)
paint highlight effect on hlComponent |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected boolean dndInProgress
protected DnDComponent dndComponent
protected java.lang.Object transferObject
protected int transferCount
protected DnDMotionComponent motionCmp
protected DnDComponent hlComponent
protected javax.swing.Timer timer
protected int transferIndex
protected java.awt.Point lastLocalPoint
dndComponent
protected boolean initialGeasture
Constructor Detail |
---|
public FormSheet.DnDDispatcher()
Method Detail |
---|
protected java.awt.Point getLocalPoint(java.awt.event.MouseEvent me, java.awt.Component cmp)
me
- cmp
- target component
protected DnDComponent getAffectedComponent(java.awt.event.MouseEvent me)
me
-
DnDComponent
public void dndComponentRemoved(DnDComponent dndcmp)
DnDComponent
was removed
dndcmp
- public void abortDnDOperation()
public void paintHiglightEffect(java.awt.Graphics g)
hlComponent
g
- public void eventDispatched(java.awt.AWTEvent event)
eventDispatched
in interface java.awt.event.AWTEventListener
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |