org.grinvin.gui.dnd

Class GeneratorDropHandler

Implemented Interfaces:
DropHandler

public class GeneratorDropHandler
extends AbstractDropHandler

Allows a generator to be dropped onto a component. As a result, the user is asked to present parameters and a new generator instance is created and added to the component.

Currently only supports components of type GeneratorInstanceListComponent.

Method Summary

boolean
acceptDrop(JComponent target, Object object, int seqNr)
static GeneratorDropHandler
getInstance()

Methods inherited from class org.grinvin.gui.dnd.AbstractDropHandler

allowsMultipleDrops, getDropClass

Method Details

acceptDrop

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

getInstance

public static GeneratorDropHandler getInstance()