Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    check drag relase over

    Hi enyone
    Im new usser in Gwt . Can somebady help me.
    I have class
    Code:
    public class FileBin extends VStack{
    	public FileBin(){
    		super();
    		fileTypes=FileTypes.allTypes();
    		setShowEdges(true); 
    		setEdgeImage("edges/blue/5.png");
    		setDefaultHeight(200);
    		setCanAcceptDrop(true); 
    	}
    }
    public class Icon extends Img {
    	public Icon(){
            setWidth(48);  
            setHeight(48);  
            setLayoutAlign(Alignment.CENTER);  
            setCanDragReposition(true);  
            setCanDrop(true);  
            setDragAppearance(DragAppearance.TARGET);  
            setAppImgDir("icons/48/");  
            setSrc("star_grey.png"); 
    	}
    I want to capture the event when the mouse is over FileBin , and button is relased.
    Now icon is automatically added to FileBin . This I do not want. I need to put it there manually. How I can do this ?

    Thanks

    #2
    Canvas.addDropHandler()

    Comment

    Working...
    X