info.magnolia.ui.workbench.tree.drop
Interface DropConstraint
- All Known Implementing Classes:
- AlwaysTrueDropConstraint, BaseDropConstraint, OnlyNodesDropConstraint, TemplateTypeRestrictionDropConstraint, UserDropConstraint
public interface DropConstraint
Define methods used to configure a
com.vaadin.event.dd.DropHandler.DropHandler
. DropConstraint
implemented class are defined in the
WorkbenchDefinition
,
and used in by TreeViewDropHandler
,
in order to configure drag and drop ability in
TreeView
.
Method Summary |
boolean |
allowedAfter(com.vaadin.data.Item sourceItem,
com.vaadin.data.Item targetItem)
|
boolean |
allowedAsChild(com.vaadin.data.Item sourceItem,
com.vaadin.data.Item targetItem)
|
boolean |
allowedBefore(com.vaadin.data.Item sourceItem,
com.vaadin.data.Item targetItem)
|
boolean |
allowedToMove(com.vaadin.data.Item sourceItem)
|
allowedAsChild
boolean allowedAsChild(com.vaadin.data.Item sourceItem,
com.vaadin.data.Item targetItem)
- Parameters:
sourceItem
- Moved Item.targetItem
- Target Item .
- Returns:
- true if the sourceItem is allowed to be set as a child of
targetItem.
false otherwise.
allowedBefore
boolean allowedBefore(com.vaadin.data.Item sourceItem,
com.vaadin.data.Item targetItem)
- Parameters:
sourceItem
- Moved Item.targetItem
- Target Item .
- Returns:
- true if the sourceItem is allowed to be put before the
targetItem.
false otherwise.
allowedAfter
boolean allowedAfter(com.vaadin.data.Item sourceItem,
com.vaadin.data.Item targetItem)
- Parameters:
sourceItem
- Moved Item.targetItem
- Target Item .
- Returns:
- true if the sourceItem is allowed to be put after the targetItem.
false otherwise.
allowedToMove
boolean allowedToMove(com.vaadin.data.Item sourceItem)
- Returns:
- true if the Item is allowed to be moved
false otherwise.
Copyright © 2013 Magnolia International Ltd.. All Rights Reserved.