예제 #1
0
 /// <summary>
 /// 处理物品放下
 /// </summary>
 protected virtual void processItemPreview(
     DraggableItemDisplay <E> display)
 {
     if (display != null && display.isDraggable())
     {
         setPreview(display.getItem());
     }
 }
예제 #2
0
        /// <summary>
        /// 处理物品放下
        /// </summary>
        protected virtual void processItemDrop(DraggableItemDisplay <T> display)
        {
            if (display == null)
            {
                return;
            }
            var container = display.getContainer();

            container.transferItem(this, display.getItem());
        }
예제 #3
0
        /// <summary>
        /// 处理物品放下
        /// </summary>
        protected virtual void processItemDrop(
            DraggableItemDisplay <E> display, PointerEventData data)
        {
            if (display == null && !display.isDraggable())
            {
                return;
            }
            var container = display.getContainer();
            var item      = display.getItem();

            container.transferItem(this, item);
            display.OnEndDrag(data);
        }