|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nakedobjects.plugins.dnd.PointerEvent
org.nakedobjects.plugins.dnd.Drag
org.nakedobjects.plugins.dnd.ContentDrag
public class ContentDrag
Details a drag event that affects a view's content (as opposed to the view itself).
| Field Summary |
|---|
| Fields inherited from class org.nakedobjects.plugins.dnd.PointerEvent |
|---|
mods |
| Constructor Summary | |
|---|---|
ContentDrag(View source,
Location offset,
View dragView)
Creates a new drag event. |
|
| Method Summary | |
|---|---|
void |
cancel(Viewer viewer)
Cancels drag by calling dragOut() on the current target, and changes the cursor back to the default. |
void |
drag(View target,
Location location,
int mods)
Indicates that the drag state has changed. |
void |
end(Viewer viewer)
Ends the drag by calling drop() on the current target, and changes the cursor back to the default. |
Location |
getOffset()
|
View |
getOverlay()
|
View |
getSource()
|
Content |
getSourceContent()
Returns the Content object from the source view. |
Location |
getTargetLocation()
|
View |
getTargetView()
Returns the current target view. |
void |
subtract(int left,
int top)
|
java.lang.String |
toString()
|
| Methods inherited from class org.nakedobjects.plugins.dnd.PointerEvent |
|---|
button1, button2, button3, isAlt, isCtrl, isMeta, isShift |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ContentDrag(View source,
Location offset,
View dragView)
source - the view over which the pointer was when this event started| Method Detail |
|---|
public void cancel(Viewer viewer)
cancel in class Drag
public void drag(View target,
Location location,
int mods)
Drag
drag in class Dragpublic void end(Viewer viewer)
end in class Dragpublic View getOverlay()
getOverlay in class Dragpublic View getSource()
public Content getSourceContent()
public Location getTargetLocation()
public Location getOffset()
public View getTargetView()
public java.lang.String toString()
toString in class PointerEvent
public void subtract(int left,
int top)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||