All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.nakedobjects.nos.client.dnd.Drag Maven / Gradle / Ivy

package org.nakedobjects.nos.client.dnd;

import org.nakedobjects.nos.client.dnd.drawing.Location;

/**
 * Details a drag event - from drag start to drop,
 */
public abstract class Drag extends PointerEvent {
    protected Drag() {
        super(0);
    }

    /**
     * Indicates the drag has been cancelled; no action should be taken.
     */
    public abstract void cancel(final Viewer viewer);

    /**
     * Indicates that the drag state has changed.
     */
    public abstract void drag(final View target, final Location location, final int mods);

    /**
     * Indicates the drag has properly ended (the mouse button has been released)
     * 
     */
    public abstract void end(final Viewer viewer);

    public abstract View getOverlay();
}
// Copyright (c) Naked Objects Group Ltd.




© 2015 - 2025 Weber Informatics LLC | Privacy Policy