Package com.allen_sauer.gwt.dnd.client.drop

Examples of com.allen_sauer.gwt.dnd.client.drop.DropController


                               dropController );
        dragController.registerDropController( dropController );
    }

    public void unregisterDropController( final WorkbenchPanelView view ) {
        final DropController dropController = dropControllerMap.remove( view );
        dragController.unregisterDropController( dropController );
        factory.destroy( dropController );
    }
View Full Code Here


        factory.destroy( dropController );
    }

    public void unregisterDropControllers() {
        for ( Map.Entry<WorkbenchPanelView, DropController> e : this.dropControllerMap.entrySet() ) {
            final DropController dropController = dropControllerMap.get( e.getKey() );
            dragController.unregisterDropController( dropController );
            factory.destroy( dropController );
        }
        this.dropControllerMap.clear();
    }
View Full Code Here

    public void registerAndUnregisterDropControllers() {
        wrapper.registerDropController( workbenchPanelView, dropController );
        assertEquals( wrapper.dropControllerMap.get( workbenchPanelView ), dropController );

        WorkbenchPanelView workbenchPanelView2 = GWT.create( WorkbenchPanelView.class );
        DropController dropController2 = GWT.create( DropController.class );

        wrapper.registerDropController( workbenchPanelView2, dropController2 );
        assertEquals( wrapper.dropControllerMap.get( workbenchPanelView2 ), dropController2 );

        wrapper.unregisterDropControllers();
View Full Code Here

TOP

Related Classes of com.allen_sauer.gwt.dnd.client.drop.DropController

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.