|
Eclipse Platform Release 3.6 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.swt.dnd.DropTargetAdapter
org.eclipse.swt.dnd.DropTargetEffect
org.eclipse.swt.custom.StyledTextDropTargetEffect
public class StyledTextDropTargetEffect
This adapter class provides a default drag under effect (eg. select and scroll)
when a drag occurs over a StyledText.
Classes that wish to provide their own drag under effect for a StyledText
can extend this class, override the StyledTextDropTargetEffect.dragOver
method and override any other applicable methods in StyledTextDropTargetEffect to
display their own drag under effect.
super method to get the default drag under effect implementation.
The feedback value is either one of the FEEDBACK constants defined in
class DND which is applicable to instances of this class,
or it must be built by bitwise OR'ing together
(that is, using the int "|" operator) two or more
of those DND effect constants.
DropTargetAdapter,
DropTargetEvent,
Sample code and further information| Constructor Summary | |
|---|---|
StyledTextDropTargetEffect(StyledText styledText)
Creates a new StyledTextDropTargetEffect to handle the drag under effect on the specified
StyledText. |
|
| Method Summary | |
|---|---|
void |
dragEnter(DropTargetEvent event)
This implementation of dragEnter provides a default drag under effect
for the feedback specified in event.feedback. |
void |
dragLeave(DropTargetEvent event)
This implementation of dragLeave provides a default drag under effect
for the feedback specified in event.feedback. |
void |
dragOver(DropTargetEvent event)
This implementation of dragOver provides a default drag under effect
for the feedback specified in event.feedback. |
void |
dropAccept(DropTargetEvent event)
This implementation of dropAccept provides a default drag under effect
for the feedback specified in event.feedback. |
| Methods inherited from class org.eclipse.swt.dnd.DropTargetEffect |
|---|
getControl, getItem |
| Methods inherited from class org.eclipse.swt.dnd.DropTargetAdapter |
|---|
dragOperationChanged, drop |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StyledTextDropTargetEffect(StyledText styledText)
StyledTextDropTargetEffect to handle the drag under effect on the specified
StyledText.
styledText - the StyledText over which the user positions the cursor to drop the data| Method Detail |
|---|
public void dragEnter(DropTargetEvent event)
dragEnter provides a default drag under effect
for the feedback specified in event.feedback.
For additional information see DropTargetAdapter.dragEnter.
Subclasses that override this method should call super.dragEnter(event)
to get the default drag under effect implementation.
dragEnter in interface DropTargetListenerdragEnter in class DropTargetAdapterevent - the information associated with the drag start eventDropTargetAdapter,
DropTargetEventpublic void dragLeave(DropTargetEvent event)
dragLeave provides a default drag under effect
for the feedback specified in event.feedback.
For additional information see DropTargetAdapter.dragLeave.
Subclasses that override this method should call super.dragLeave(event)
to get the default drag under effect implementation.
dragLeave in interface DropTargetListenerdragLeave in class DropTargetAdapterevent - the information associated with the drag leave eventDropTargetAdapter,
DropTargetEventpublic void dragOver(DropTargetEvent event)
dragOver provides a default drag under effect
for the feedback specified in event.feedback.
For additional information see DropTargetAdapter.dragOver.
Subclasses that override this method should call super.dragOver(event)
to get the default drag under effect implementation.
dragOver in interface DropTargetListenerdragOver in class DropTargetAdapterevent - the information associated with the drag over eventDropTargetAdapter,
DropTargetEvent,
DND.FEEDBACK_SELECT,
DND.FEEDBACK_SCROLLpublic void dropAccept(DropTargetEvent event)
dropAccept provides a default drag under effect
for the feedback specified in event.feedback.
For additional information see DropTargetAdapter.dropAccept.
Subclasses that override this method should call super.dropAccept(event)
to get the default drag under effect implementation.
dropAccept in interface DropTargetListenerdropAccept in class DropTargetAdapterevent - the information associated with the drop accept eventDropTargetAdapter,
DropTargetEvent
|
Eclipse Platform Release 3.6 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Guidelines for using Eclipse APIs.
Copyright (c) Eclipse contributors and others 2000, 2010. All rights reserved.