@SuppressWarnings("unchecked")
    public void onDrop(I_CmsDraggable draggable, I_CmsDropTarget target, final CmsDNDHandler handler) {

        if (target instanceof CmsList) {
            CmsList<CmsListItem> list = (CmsList<CmsListItem>)target;
            if (list.getWidgetCount() > target.getPlaceholderIndex()) {
                list.insertItem((CmsListItem)draggable, target.getPlaceholderIndex());
            } else {
                list.addItem((CmsListItem)draggable);
            }
        }
        Scheduler.get().scheduleDeferred(new ScheduledCommand() {

            /**
             * @see com.google.gwt.user.client.Command#execute()
             */
            public void execute() {

                handler.clearTargets();
            }
        });

    }
@ SuppressWarnings ( "unchecked" ) public void onDrop ( I_CmsDraggable draggable , I_CmsDropTarget target , final CmsDNDHandler handler ) { if ( target instanceof CmsList ) { CmsList < CmsListItem > list = ( CmsList < CmsListItem > ) target ; if ( list . getWidgetCount ( ) > target . getPlaceholderIndex ( ) ) { list . insertItem ( ( CmsListItem ) draggable , target . getPlaceholderIndex ( ) ) ; } else { list . addItem ( ( CmsListItem ) draggable ) ; } } Scheduler . get ( ) . scheduleDeferred ( new ScheduledCommand ( ) { public void execute ( ) { handler . clearTargets ( ) ; } } ) ; }
@see org.opencms.gwt.client.dnd.I_CmsDNDController#onDrop(org.opencms.gwt.client.dnd.I_CmsDraggable, org.opencms.gwt.client.dnd.I_CmsDropTarget, org.opencms.gwt.client.dnd.CmsDNDHandler)