|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.favabeans.views.DropTargetAdapter
A DropTargetAdapter
is responsible for making an AWT
component in FavaBeans drop-capable.
Constructor Summary | |
DropTargetAdapter(Component component)
Create a new DropTargetAdapter . |
Method Summary | |
Component |
getComponent()
|
Object |
getTargetContainer()
Obtain the target container for this DropTargetAdapter . |
protected void |
provideDragUnderFeedback(boolean state)
This method is a hook for implementations to provide visual drag-under feedback. |
void |
setTargetContainer(Object targetContainer)
Set the target container for this DropTargetAdapter . |
protected void |
updateTargetContainer(Point location)
This method is a hook for implementations to update the target container under the mouse cursor during a drag. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DropTargetAdapter(Component component)
DropTargetAdapter
.component
- the AWT component which will be drop-enabled.Method Detail |
public Component getComponent()
DropTargetAdapter
.public void setTargetContainer(Object targetContainer)
DropTargetAdapter
.targetContainer
- an object the DnDTargetContainer
Facet
of which will be used to implement the
semantics of the target side of the DnD operation.public Object getTargetContainer()
DropTargetAdapter
.protected void provideDragUnderFeedback(boolean state)
DnDTarget
Facet
of the object returned from getModelAtLocation(Point)
.
The default implementation of this method is a no-op.
state
- whether to enable or disable drag-under feedback.protected void updateTargetContainer(Point location)
The default implementation of this method is a no-op.
location
- the location at which the user is currently
gesturing.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |