Package com.hybris.cockpitng.dnd
Class DefaultDragAndDropContext
- java.lang.Object
-
- com.hybris.cockpitng.core.context.impl.DefaultCockpitContext
-
- com.hybris.cockpitng.dnd.DefaultDragAndDropContext
-
- All Implemented Interfaces:
CockpitContext,BackofficeDragAndDropContext,DragAndDropContext,java.io.Serializable
public class DefaultDragAndDropContext extends DefaultCockpitContext implements BackofficeDragAndDropContext
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDefaultDragAndDropContext.Builder
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DragAndDropActionTypegetActionType()Returns action type resolved for this operationCockpitContextgetDraggedContext()Returns a context associated with a dragged object.java.util.Set<MouseKeys>getKeys()Returns keys hold during drag and drop operation.CockpitContextgetTargetContext()Returns a context associated with a destination object.voidsetActionType(DragAndDropActionType actionType)Sets action type resolved for this operation-
Methods inherited from class com.hybris.cockpitng.core.context.impl.DefaultCockpitContext
addAllParameters, clearParameters, containsParameter, getParameter, getParameterKeys, getParameters, removeParameter, setParameter, setParameters
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.hybris.cockpitng.core.context.CockpitContext
addAllParameters, clearParameters, containsParameter, getParameter, getParameterAsBoolean, getParameterKeys, getParameters, removeParameter, setParameter, setParameters
-
-
-
-
Method Detail
-
getKeys
public java.util.Set<MouseKeys> getKeys()
Description copied from interface:DragAndDropContextReturns keys hold during drag and drop operation.- Specified by:
getKeysin interfaceDragAndDropContext- Returns:
- hold keys.
-
getDraggedContext
public CockpitContext getDraggedContext()
Description copied from interface:DragAndDropContextReturns a context associated with a dragged object.- Specified by:
getDraggedContextin interfaceDragAndDropContext- Returns:
- the context object.
-
getTargetContext
public CockpitContext getTargetContext()
Description copied from interface:DragAndDropContextReturns a context associated with a destination object.- Specified by:
getTargetContextin interfaceDragAndDropContext- Returns:
- the context object.
-
getActionType
public DragAndDropActionType getActionType()
Description copied from interface:BackofficeDragAndDropContextReturns action type resolved for this operation- Specified by:
getActionTypein interfaceBackofficeDragAndDropContext- Returns:
DragAndDropActionType
-
setActionType
public void setActionType(DragAndDropActionType actionType)
Description copied from interface:BackofficeDragAndDropContextSets action type resolved for this operation- Specified by:
setActionTypein interfaceBackofficeDragAndDropContext- Parameters:
actionType-DragAndDropActionType
-
-