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

com.habibsweb.commons.components.list.ScrollableListGestureHandler Maven / Gradle / Ivy

There is a newer version: 1.0.2
Show newest version
/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.habibsweb.commons.components.list;

import com.habibsweb.commons.components.ScrollableList;
import java.awt.Container;
import java.awt.dnd.DragGestureEvent;
import java.awt.dnd.DragGestureListener;
import java.awt.dnd.DragSourceDragEvent;
import java.awt.dnd.DragSourceDropEvent;
import java.awt.dnd.DragSourceEvent;
import java.awt.dnd.DragSourceListener;

/**
 * This class is to act a gesture for doing drang and drop with
 * ScrollableList components
 *
 * @author David Hamilton
 */
public class ScrollableListGestureHandler implements DragGestureListener, DragSourceListener {

    private Container parent;
    private ScrollableList child;

    /**
     * Constructs a new ScrollableListGestureHandler
     *
     * @param child the ScrollableList this is attached to
     */
    public ScrollableListGestureHandler(ScrollableList child) {
        this.child = child;
    }

    /**
     * Sets the Container for the ScrollableList
     *
     * @param parent the Container for the
     * ScrollableList
     */
    public void setParent(Container parent) {
        this.parent = parent;
    }

    /**
     * Gets the Container for the ScrollableList
     *
     * @return the Container for the ScrollableList
     */
    public Container getParent() {
        return parent;
    }
///
/// DragGestureListener
///

    @Override
    public void dragGestureRecognized(DragGestureEvent dge) {

    }

///
/// DragSourceListener
///
    @Override
    public void dragEnter(DragSourceDragEvent dsde) {
        throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    }

    @Override
    public void dragOver(DragSourceDragEvent dsde) {
        throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    }

    @Override
    public void dropActionChanged(DragSourceDragEvent dsde) {
        throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    }

    @Override
    public void dragExit(DragSourceEvent dse) {
        throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    }

    @Override
    public void dragDropEnd(DragSourceDropEvent dsde) {
        throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy