org.favabeans.base
Class DefaultDnDTargetContainer
java.lang.Object
|
+--org.favabeans.base.DefaultFacet
|
+--org.favabeans.base.DefaultDnDTargetContainer
- All Implemented Interfaces:
- DnDTargetContainer, Facet, Faceted
- public class DefaultDnDTargetContainer
- extends DefaultFacet
- implements DnDTargetContainer
Method Summary |
void |
copy(Object operand)
Make a copy of the specified object and place it in this
container. |
DataFlavor[] |
getSupportedDropFlavors(DnDAction action)
Determine what data flavors are acceptable to this container
for the specified action. |
void |
link(Object operand)
Create a link to the specified object in this container. |
void |
move(Object operand)
Move the specified object into this container. |
DefaultDnDTargetContainer
public DefaultDnDTargetContainer(Object primaryObject)
getSupportedDropFlavors
public DataFlavor[] getSupportedDropFlavors(DnDAction action)
- Description copied from interface:
DnDTargetContainer
- Determine what data flavors are acceptable to this container
for the specified action. An object may return empty arrays
from this operation to indicate that it does not wish to
participate as a target container in DnD operations.
- Specified by:
getSupportedDropFlavors
in interface DnDTargetContainer
- Following copied from interface:
org.favabeans.base.DnDTargetContainer
- Parameters:
action
- the desired drag and drop action.- Returns:
- the acceptable data flavors for the supplied action.
move
public void move(Object operand)
throws DropException
- Description copied from interface:
DnDTargetContainer
- Move the specified object into this container.
- Specified by:
move
in interface DnDTargetContainer
- Following copied from interface:
org.favabeans.base.DnDTargetContainer
- Parameters:
operand
- the object to move.- Throws:
DropException
- if there was a problem completing the
operation.
copy
public void copy(Object operand)
throws DropException
- Description copied from interface:
DnDTargetContainer
- Make a copy of the specified object and place it in this
container.
- Specified by:
copy
in interface DnDTargetContainer
- Following copied from interface:
org.favabeans.base.DnDTargetContainer
- Parameters:
operand
- the object to copy.- Throws:
DropException
- if there was a problem completing the
operation.
link
public void link(Object operand)
throws DropException
- Description copied from interface:
DnDTargetContainer
- Create a link to the specified object in this container.
- Specified by:
link
in interface DnDTargetContainer
- Following copied from interface:
org.favabeans.base.DnDTargetContainer
- Parameters:
operand
- the object to link.- Throws:
DropException
- if there was a problem completing the
operation.
Copyright © 2000-2001, Regents of the University of Minnesota. All Rights Reserved.