Interface DragAndDropStrategy


  • public interface DragAndDropStrategy
    Strategy to handle drag&drop functionality.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void makeDraggable​(org.zkoss.zk.ui.HtmlBasedComponent component, java.lang.Object businessObject, CockpitContext context)
      Makes given HtmlBasedComponent a draggable component, representing given businessObject.
      void makeDraggable​(org.zkoss.zk.ui.HtmlBasedComponent component, java.lang.Object businessObject, CockpitContext context, SelectionSupplier selectionSupplier)
      Makes given HtmlBasedComponent a draggable component, representing given businessObject.
      void makeDroppable​(org.zkoss.zk.ui.HtmlBasedComponent component, java.lang.Object businessObject, CockpitContext context)
      Makes given HtmlBasedComponent a droppable component, representing given businessObject.
    • Field Detail

      • ATTRIBUTE_DND_SELECTION_SUPPLIER

        static final java.lang.String ATTRIBUTE_DND_SELECTION_SUPPLIER
        See Also:
        Constant Field Values
    • Method Detail

      • makeDraggable

        void makeDraggable​(org.zkoss.zk.ui.HtmlBasedComponent component,
                           java.lang.Object businessObject,
                           CockpitContext context)
        Makes given HtmlBasedComponent a draggable component, representing given businessObject.
        Parameters:
        component - component to make draggable.
        businessObject - object represented by component.
        context - operation context.
      • makeDraggable

        void makeDraggable​(org.zkoss.zk.ui.HtmlBasedComponent component,
                           java.lang.Object businessObject,
                           CockpitContext context,
                           SelectionSupplier selectionSupplier)
        Makes given HtmlBasedComponent a draggable component, representing given businessObject.
        Parameters:
        component - component to make draggable.
        businessObject - object represented by component.
        context - operation context.
        selectionSupplier - supplier of selected objects.
      • makeDroppable

        void makeDroppable​(org.zkoss.zk.ui.HtmlBasedComponent component,
                           java.lang.Object businessObject,
                           CockpitContext context)
        Makes given HtmlBasedComponent a droppable component, representing given businessObject.
        Parameters:
        component - component to make droppable.
        businessObject - object represented by component.
        context - operation context.