public class AlwaysTrueDropConstraint extends Object implements DropConstraint
DropConstraint
. Return Always true.Constructor and Description |
---|
AlwaysTrueDropConstraint() |
Modifier and Type | Method and Description |
---|---|
boolean |
allowedAfter(com.vaadin.v7.data.Item sourceItem,
com.vaadin.v7.data.Item targetItem) |
boolean |
allowedAsChild(com.vaadin.v7.data.Item sourceItem,
com.vaadin.v7.data.Item targetItem) |
boolean |
allowedBefore(com.vaadin.v7.data.Item sourceItem,
com.vaadin.v7.data.Item targetItem) |
boolean |
allowedToMove(com.vaadin.v7.data.Item sourceItem) |
boolean |
isAllowedAt(com.vaadin.v7.data.Item sourceItem,
com.vaadin.v7.data.Item targetItem,
MoveLocation location)
Checks whether source item is allowed to be moved relative (based on the move location) to target item.
|
public boolean allowedAsChild(com.vaadin.v7.data.Item sourceItem, com.vaadin.v7.data.Item targetItem)
allowedAsChild
in interface DropConstraint
sourceItem
- Moved Item.targetItem
- Target Item .public boolean allowedBefore(com.vaadin.v7.data.Item sourceItem, com.vaadin.v7.data.Item targetItem)
allowedBefore
in interface DropConstraint
sourceItem
- Moved Item.targetItem
- Target Item .public boolean allowedAfter(com.vaadin.v7.data.Item sourceItem, com.vaadin.v7.data.Item targetItem)
allowedAfter
in interface DropConstraint
sourceItem
- Moved Item.targetItem
- Target Item .public boolean allowedToMove(com.vaadin.v7.data.Item sourceItem)
allowedToMove
in interface DropConstraint
public boolean isAllowedAt(com.vaadin.v7.data.Item sourceItem, com.vaadin.v7.data.Item targetItem, MoveLocation location)
DropConstraint
isAllowedAt
in interface DropConstraint
Copyright © 2020 Magnolia International Ltd.. All rights reserved.