Package com.hybris.cockpitng.dnd
Interface DragAndDropStrategy
-
public interface DragAndDropStrategyStrategy to handle drag&drop functionality.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringATTRIBUTE_DND_DATAstatic java.lang.StringATTRIBUTE_DND_SELECTION_SUPPLIER
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidmakeDraggable(org.zkoss.zk.ui.HtmlBasedComponent component, java.lang.Object businessObject, CockpitContext context)Makes givenHtmlBasedComponenta draggable component, representing given businessObject.voidmakeDraggable(org.zkoss.zk.ui.HtmlBasedComponent component, java.lang.Object businessObject, CockpitContext context, SelectionSupplier selectionSupplier)Makes givenHtmlBasedComponenta draggable component, representing given businessObject.voidmakeDroppable(org.zkoss.zk.ui.HtmlBasedComponent component, java.lang.Object businessObject, CockpitContext context)Makes givenHtmlBasedComponenta droppable component, representing given businessObject.
-
-
-
Field Detail
-
ATTRIBUTE_DND_DATA
static final java.lang.String ATTRIBUTE_DND_DATA
- See Also:
- Constant Field Values
-
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 givenHtmlBasedComponenta 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 givenHtmlBasedComponenta 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 givenHtmlBasedComponenta droppable component, representing given businessObject.- Parameters:
component- component to make droppable.businessObject- object represented by component.context- operation context.
-
-