org.grinvin.list
Class FactoryDropHandler
java.lang.Object
org.grinvin.list.FactoryDropHandler
- DropHandler
public class FactoryDropHandler
extends java.lang.Object
implements DropHandler
Allows a factory to be dropped onto a component. As a result, the user is asked
to present parameters and a new graph is created and added to the component.
A component
which uses this handler should be of type
HasGraphList
.
DROP_HANDLER
public static final FactoryDropHandler DROP_HANDLER
The unique shared object of this type.
acceptDrop
public boolean acceptDrop(JComponent target,
Object object,
int seqNr)
allowsMultipleDrops
public boolean allowsMultipleDrops(JComponent target)
getDropClass
public Class> getDropClass(JComponent target)