org.grinvin.list

Class FactoryDropHandler

Implemented Interfaces:
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.

Field Summary

static FactoryDropHandler
DROP_HANDLER
The unique shared object of this type.

Method Summary

boolean
acceptDrop(JComponent target, Object object, int seqNr)
boolean
allowsMultipleDrops(JComponent target)
Class
getDropClass(JComponent target)

Field Details

DROP_HANDLER

public static final FactoryDropHandler DROP_HANDLER
The unique shared object of this type.

Method Details

acceptDrop

public boolean acceptDrop(JComponent target,
                          Object object,
                          int seqNr)

allowsMultipleDrops

public boolean allowsMultipleDrops(JComponent target)

getDropClass

public Class getDropClass(JComponent target)