FileDocCategorySizeDatePackage
GhostDropAdapter.javaAPI DocExample948Mon Jan 09 11:02:00 GMT 2006None

GhostDropAdapter

public class GhostDropAdapter extends MouseAdapter

Fields Summary
protected GhostGlassPane
glassPane
protected String
action
private List
listeners
Constructors Summary
public GhostDropAdapter(GhostGlassPane glassPane, String action)

        this.glassPane = glassPane;
        this.action = action;
        this.listeners = new ArrayList();
    
Methods Summary
public voidaddGhostDropListener(GhostDropListener listener)

        if (listener != null)
            listeners.add(listener);
    
protected voidfireGhostDropEvent(GhostDropEvent evt)

        Iterator it = listeners.iterator();
        while (it.hasNext()) {
        	((GhostDropListener) it.next()).ghostDropped(evt);
        }
    
public voidremoveGhostDropListener(GhostDropListener listener)

        if (listener != null)
            listeners.remove(listener);