| 
 | ||||||||||
| 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 | dndComponentcomponent that caused the drag | 
| protected  boolean | dndInProgresstrue id drag is in progress | 
| protected  DnDComponent | hlComponentcomponent that is currently highlighted | 
| protected  boolean | initialGeasturefirst time of drag event | 
| protected  java.awt.Point | lastLocalPointlast paint relative to dndComponent | 
| protected  DnDMotionComponent | motionCmpmotion component which is displayed in drag layer | 
| protected  javax.swing.Timer | timertimer | 
| protected  int | transferCountcount of transfered objects | 
| protected  int | transferIndexindex of transfered object | 
| protected  java.lang.Object | transferObjectobject 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 DnDComponentwas 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 - 
DnDComponentpublic 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 | |||||||||