diff options
author | Matti Tahvonen <matti.tahvonen@itmill.com> | 2010-03-22 16:20:25 +0000 |
---|---|---|
committer | Matti Tahvonen <matti.tahvonen@itmill.com> | 2010-03-22 16:20:25 +0000 |
commit | d637fe975d00310f14bd7140f9381401ba92d69d (patch) | |
tree | b60baf2013e4c447af7589f81bfcf0a6292fb873 /src | |
parent | 67a01f5080518da18b0d8f04fdaa889bbddbe7a4 (diff) | |
download | vaadin-framework-d637fe975d00310f14bd7140f9381401ba92d69d.tar.gz vaadin-framework-d637fe975d00310f14bd7140f9381401ba92d69d.zip |
refactoring (renaming)
svn changeset:12018/svn branch:6.3
Diffstat (limited to 'src')
32 files changed, 41 insertions, 41 deletions
diff --git a/src/com/vaadin/event/dd/DragAndDropEvent.java b/src/com/vaadin/event/dd/DragAndDropEvent.java index d2b971a689..5fbdeefe51 100644 --- a/src/com/vaadin/event/dd/DragAndDropEvent.java +++ b/src/com/vaadin/event/dd/DragAndDropEvent.java @@ -12,7 +12,7 @@ import com.vaadin.event.dd.acceptCriteria.AcceptCriterion; * DragAndDropEvent wraps information related to drag and drop operation. It is * passed by terminal implementation for * {@link DropHandler#drop(DragAndDropEvent)} and - * {@link AcceptCriterion#accepts(DragAndDropEvent)} methods. + * {@link AcceptCriterion#accept(DragAndDropEvent)} methods. * <p> * DragAndDropEvent instances contains both the dragged data in * {@link Transferable} (generated by {@link DragSource} and details about the diff --git a/src/com/vaadin/event/dd/acceptCriteria/AcceptAll.java b/src/com/vaadin/event/dd/acceptCriteria/AcceptAll.java index 942a85ee64..3916d8e7e6 100644 --- a/src/com/vaadin/event/dd/acceptCriteria/AcceptAll.java +++ b/src/com/vaadin/event/dd/acceptCriteria/AcceptAll.java @@ -31,7 +31,7 @@ public final class AcceptAll extends ClientSideCriterion { return singleton; } - public boolean accepts(DragAndDropEvent dragEvent) { + public boolean accept(DragAndDropEvent dragEvent) { return true; } }
\ No newline at end of file diff --git a/src/com/vaadin/event/dd/acceptCriteria/AcceptCriterion.java b/src/com/vaadin/event/dd/acceptCriteria/AcceptCriterion.java index d65c64d81e..5c2ec6a4a8 100644 --- a/src/com/vaadin/event/dd/acceptCriteria/AcceptCriterion.java +++ b/src/com/vaadin/event/dd/acceptCriteria/AcceptCriterion.java @@ -54,7 +54,7 @@ public interface AcceptCriterion extends Serializable { * This needs to be implemented iff criterion does some lazy server side * initialization. The UIDL painted in this method will be passed to client * side drop handler implementation. Implementation can assume that - * {@link #accepts(DragAndDropEvent)} is called before this method. + * {@link #accept(DragAndDropEvent)} is called before this method. * * @param target * @throws PaintException @@ -71,5 +71,5 @@ public interface AcceptCriterion extends Serializable { * @param dragEvent * @return */ - public boolean accepts(DragAndDropEvent dragEvent); + public boolean accept(DragAndDropEvent dragEvent); }
\ No newline at end of file diff --git a/src/com/vaadin/event/dd/acceptCriteria/And.java b/src/com/vaadin/event/dd/acceptCriteria/And.java index 4bab63386c..3db317c213 100644 --- a/src/com/vaadin/event/dd/acceptCriteria/And.java +++ b/src/com/vaadin/event/dd/acceptCriteria/And.java @@ -42,9 +42,9 @@ public class And extends ClientSideCriterion { } } - public boolean accepts(DragAndDropEvent dragEvent) { + public boolean accept(DragAndDropEvent dragEvent) { for (ClientSideCriterion crit : criteria) { - if (!crit.accepts(dragEvent)) { + if (!crit.accept(dragEvent)) { return false; } } diff --git a/src/com/vaadin/event/dd/acceptCriteria/ClientSideCriterion.java b/src/com/vaadin/event/dd/acceptCriteria/ClientSideCriterion.java index e406535958..e98e3c2719 100644 --- a/src/com/vaadin/event/dd/acceptCriteria/ClientSideCriterion.java +++ b/src/com/vaadin/event/dd/acceptCriteria/ClientSideCriterion.java @@ -15,7 +15,7 @@ import com.vaadin.terminal.PaintTarget; * * It is recommended that subclasses of ClientSideCriterion re-validate the * condition on the server side in - * {@link AcceptCriterion#accepts(com.vaadin.event.dd.DragAndDropEvent)} after + * {@link AcceptCriterion#accept(com.vaadin.event.dd.DragAndDropEvent)} after * the client side validation has accepted a transfer. * * @since 6.3 diff --git a/src/com/vaadin/event/dd/acceptCriteria/ContainsDataFlavor.java b/src/com/vaadin/event/dd/acceptCriteria/ContainsDataFlavor.java index 93530791d6..806a3b5d2d 100644 --- a/src/com/vaadin/event/dd/acceptCriteria/ContainsDataFlavor.java +++ b/src/com/vaadin/event/dd/acceptCriteria/ContainsDataFlavor.java @@ -41,7 +41,7 @@ public class ContainsDataFlavor extends ClientSideCriterion { target.addAttribute("p", dataFlavorId); } - public boolean accepts(DragAndDropEvent dragEvent) { + public boolean accept(DragAndDropEvent dragEvent) { return dragEvent.getTransferable().getDataFlavors().contains( dataFlavorId); } diff --git a/src/com/vaadin/event/dd/acceptCriteria/DragSourceIs.java b/src/com/vaadin/event/dd/acceptCriteria/DragSourceIs.java index 5b0ad651ed..218133815c 100644 --- a/src/com/vaadin/event/dd/acceptCriteria/DragSourceIs.java +++ b/src/com/vaadin/event/dd/acceptCriteria/DragSourceIs.java @@ -37,7 +37,7 @@ public class DragSourceIs extends ClientSideCriterion { } } - public boolean accepts(DragAndDropEvent dragEvent) { + public boolean accept(DragAndDropEvent dragEvent) { if (dragEvent.getTransferable() instanceof TransferableImpl) { Component sourceComponent = ((TransferableImpl) dragEvent .getTransferable()).getSourceComponent(); diff --git a/src/com/vaadin/event/dd/acceptCriteria/DropTargetDetailEquals.java b/src/com/vaadin/event/dd/acceptCriteria/DropTargetDetailEquals.java index c18cbc8f7a..a2b24533b3 100644 --- a/src/com/vaadin/event/dd/acceptCriteria/DropTargetDetailEquals.java +++ b/src/com/vaadin/event/dd/acceptCriteria/DropTargetDetailEquals.java @@ -60,7 +60,7 @@ public class DropTargetDetailEquals extends ClientSideCriterion { } } - public boolean accepts(DragAndDropEvent dragEvent) { + public boolean accept(DragAndDropEvent dragEvent) { Object data = dragEvent.getDropTargetDetails().getData(propertyName); return value.equals(data); } diff --git a/src/com/vaadin/event/dd/acceptCriteria/IsDataBound.java b/src/com/vaadin/event/dd/acceptCriteria/IsDataBound.java index c8050f94bf..8615d207ca 100644 --- a/src/com/vaadin/event/dd/acceptCriteria/IsDataBound.java +++ b/src/com/vaadin/event/dd/acceptCriteria/IsDataBound.java @@ -38,7 +38,7 @@ public final class IsDataBound extends ContainsDataFlavor { } @Override - public boolean accepts(DragAndDropEvent dragEvent) { + public boolean accept(DragAndDropEvent dragEvent) { if (dragEvent.getTransferable() instanceof DataBoundTransferable) { return ((DataBoundTransferable) dragEvent.getTransferable()) .getItemId() != null; diff --git a/src/com/vaadin/event/dd/acceptCriteria/IsSameSourceAndTarget.java b/src/com/vaadin/event/dd/acceptCriteria/IsSameSourceAndTarget.java index 1c14506d38..2637d27a0b 100644 --- a/src/com/vaadin/event/dd/acceptCriteria/IsSameSourceAndTarget.java +++ b/src/com/vaadin/event/dd/acceptCriteria/IsSameSourceAndTarget.java @@ -35,7 +35,7 @@ public class IsSameSourceAndTarget extends ClientSideCriterion { private IsSameSourceAndTarget() { } - public boolean accepts(DragAndDropEvent dragEvent) { + public boolean accept(DragAndDropEvent dragEvent) { if (dragEvent.getTransferable() instanceof TransferableImpl) { Component sourceComponent = ((TransferableImpl) dragEvent .getTransferable()).getSourceComponent(); diff --git a/src/com/vaadin/event/dd/acceptCriteria/Not.java b/src/com/vaadin/event/dd/acceptCriteria/Not.java index e4828cd83b..874016c9b7 100644 --- a/src/com/vaadin/event/dd/acceptCriteria/Not.java +++ b/src/com/vaadin/event/dd/acceptCriteria/Not.java @@ -33,8 +33,8 @@ public class Not extends ClientSideCriterion { acceptCriterion.paint(target); } - public boolean accepts(DragAndDropEvent dragEvent) { - return !acceptCriterion.accepts(dragEvent); + public boolean accept(DragAndDropEvent dragEvent) { + return !acceptCriterion.accept(dragEvent); } }
\ No newline at end of file diff --git a/src/com/vaadin/event/dd/acceptCriteria/Or.java b/src/com/vaadin/event/dd/acceptCriteria/Or.java index 35eee06b4c..41aef10738 100644 --- a/src/com/vaadin/event/dd/acceptCriteria/Or.java +++ b/src/com/vaadin/event/dd/acceptCriteria/Or.java @@ -41,9 +41,9 @@ public class Or extends ClientSideCriterion { } } - public boolean accepts(DragAndDropEvent dragEvent) { + public boolean accept(DragAndDropEvent dragEvent) { for (AcceptCriterion crit : criteria) { - if (crit.accepts(dragEvent)) { + if (crit.accept(dragEvent)) { return true; } } diff --git a/src/com/vaadin/event/dd/acceptCriteria/ServerSideCriterion.java b/src/com/vaadin/event/dd/acceptCriteria/ServerSideCriterion.java index a1f3d0e970..69405db8ed 100644 --- a/src/com/vaadin/event/dd/acceptCriteria/ServerSideCriterion.java +++ b/src/com/vaadin/event/dd/acceptCriteria/ServerSideCriterion.java @@ -16,7 +16,7 @@ import com.vaadin.terminal.gwt.client.ui.dd.VServerAccept; * {@link Transferable}). * <p> * Subclasses should implement the - * {@link AcceptCriterion#accepts(com.vaadin.event.dd.DragAndDropEvent)} method. + * {@link AcceptCriterion#accept(com.vaadin.event.dd.DragAndDropEvent)} method. * <p> * As all server side state can be used to make a decision, this is more * flexible than {@link ClientSideCriterion}. However, this does require diff --git a/src/com/vaadin/terminal/gwt/client/ui/dd/VAcceptAll.java b/src/com/vaadin/terminal/gwt/client/ui/dd/VAcceptAll.java index 19dafd27cd..f110d50e80 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/dd/VAcceptAll.java +++ b/src/com/vaadin/terminal/gwt/client/ui/dd/VAcceptAll.java @@ -11,7 +11,7 @@ import com.vaadin.terminal.gwt.client.UIDL; final public class VAcceptAll extends VAcceptCriterion { @Override - public boolean validates(VDragEvent drag, UIDL configuration) { + protected boolean accept(VDragEvent drag, UIDL configuration) { return true; } }
\ No newline at end of file diff --git a/src/com/vaadin/terminal/gwt/client/ui/dd/VAcceptCriterion.java b/src/com/vaadin/terminal/gwt/client/ui/dd/VAcceptCriterion.java index c78598494a..da77d03293 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/dd/VAcceptCriterion.java +++ b/src/com/vaadin/terminal/gwt/client/ui/dd/VAcceptCriterion.java @@ -27,7 +27,7 @@ public abstract class VAcceptCriterion { }; VDragAndDropManager.get().visitServer(acceptCallback); } else { - boolean validates = validates(drag, configuration); + boolean validates = accept(drag, configuration); if (validates) { callback.accepted(drag); } @@ -35,7 +35,7 @@ public abstract class VAcceptCriterion { } - public abstract boolean validates(VDragEvent drag, UIDL configuration); + protected abstract boolean accept(VDragEvent drag, UIDL configuration); public boolean needsServerSideCheck(VDragEvent drag, UIDL criterioUIDL) { return false; diff --git a/src/com/vaadin/terminal/gwt/client/ui/dd/VAnd.java b/src/com/vaadin/terminal/gwt/client/ui/dd/VAnd.java index a9e6c78276..72baa811ed 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/dd/VAnd.java +++ b/src/com/vaadin/terminal/gwt/client/ui/dd/VAnd.java @@ -18,7 +18,7 @@ final public class VAnd extends VAcceptCriterion implements VAcceptCallback { } @Override - public boolean validates(VDragEvent drag, UIDL configuration) { + protected boolean accept(VDragEvent drag, UIDL configuration) { int childCount = configuration.getChildCount(); for (int i = 0; i < childCount; i++) { VAcceptCriterion crit = getCriteria(drag, configuration, i); diff --git a/src/com/vaadin/terminal/gwt/client/ui/dd/VContainsDataFlavor.java b/src/com/vaadin/terminal/gwt/client/ui/dd/VContainsDataFlavor.java index 87a2e08029..6f3b053d58 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/dd/VContainsDataFlavor.java +++ b/src/com/vaadin/terminal/gwt/client/ui/dd/VContainsDataFlavor.java @@ -11,7 +11,7 @@ import com.vaadin.terminal.gwt.client.UIDL; final public class VContainsDataFlavor extends VAcceptCriterion { @Override - public boolean validates(VDragEvent drag, UIDL configuration) { + protected boolean accept(VDragEvent drag, UIDL configuration) { String name = configuration.getStringAttribute("p"); return drag.getTransferable().getDataFlavors().contains(name); } diff --git a/src/com/vaadin/terminal/gwt/client/ui/dd/VDragSourceIs.java b/src/com/vaadin/terminal/gwt/client/ui/dd/VDragSourceIs.java index 61310725bb..50c743928a 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/dd/VDragSourceIs.java +++ b/src/com/vaadin/terminal/gwt/client/ui/dd/VDragSourceIs.java @@ -14,7 +14,7 @@ import com.vaadin.terminal.gwt.client.UIDL; final public class VDragSourceIs extends VAcceptCriterion { @Override - public boolean validates(VDragEvent drag, UIDL configuration) { + protected boolean accept(VDragEvent drag, UIDL configuration) { try { Paintable component = drag.getTransferable().getDragSource(); int c = configuration.getIntAttribute("c"); diff --git a/src/com/vaadin/terminal/gwt/client/ui/dd/VDropDetailEquals.java b/src/com/vaadin/terminal/gwt/client/ui/dd/VDropDetailEquals.java index 20efe854ce..6d04e4c35e 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/dd/VDropDetailEquals.java +++ b/src/com/vaadin/terminal/gwt/client/ui/dd/VDropDetailEquals.java @@ -11,7 +11,7 @@ import com.vaadin.terminal.gwt.client.UIDL; final public class VDropDetailEquals extends VAcceptCriterion { @Override - public boolean validates(VDragEvent drag, UIDL configuration) { + protected boolean accept(VDragEvent drag, UIDL configuration) { String name = configuration.getStringAttribute("p"); String t = configuration.hasAttribute("t") ? configuration .getStringAttribute("t").intern() : "s"; diff --git a/src/com/vaadin/terminal/gwt/client/ui/dd/VIsOverId.java b/src/com/vaadin/terminal/gwt/client/ui/dd/VIsOverId.java index 673dcbea8b..6ed4b1b723 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/dd/VIsOverId.java +++ b/src/com/vaadin/terminal/gwt/client/ui/dd/VIsOverId.java @@ -13,7 +13,7 @@ import com.vaadin.terminal.gwt.client.UIDL; final public class VIsOverId extends VAcceptCriterion { @Override - public boolean validates(VDragEvent drag, UIDL configuration) { + protected boolean accept(VDragEvent drag, UIDL configuration) { try { Set<String> stringArrayVariableAsSet = configuration .getStringArrayVariableAsSet("keys"); diff --git a/src/com/vaadin/terminal/gwt/client/ui/dd/VItemIdIs.java b/src/com/vaadin/terminal/gwt/client/ui/dd/VItemIdIs.java index 6c6cd6fa0e..53a0b68837 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/dd/VItemIdIs.java +++ b/src/com/vaadin/terminal/gwt/client/ui/dd/VItemIdIs.java @@ -13,7 +13,7 @@ import com.vaadin.terminal.gwt.client.UIDL; final public class VItemIdIs extends VAcceptCriterion { @Override - public boolean validates(VDragEvent drag, UIDL configuration) { + protected boolean accept(VDragEvent drag, UIDL configuration) { try { Object data = drag.getTransferable().getData("itemId"); Set<String> stringArrayVariableAsSet = configuration diff --git a/src/com/vaadin/terminal/gwt/client/ui/dd/VLazyInitItemIdentifiers.java b/src/com/vaadin/terminal/gwt/client/ui/dd/VLazyInitItemIdentifiers.java index 659eb97ee0..eae6179a16 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/dd/VLazyInitItemIdentifiers.java +++ b/src/com/vaadin/terminal/gwt/client/ui/dd/VLazyInitItemIdentifiers.java @@ -59,7 +59,7 @@ final public class VLazyInitItemIdentifiers extends VAcceptCriterion { } @Override - public boolean validates(VDragEvent drag, UIDL configuration) { + protected boolean accept(VDragEvent drag, UIDL configuration) { return false; // not used is this implementation } }
\ No newline at end of file diff --git a/src/com/vaadin/terminal/gwt/client/ui/dd/VNot.java b/src/com/vaadin/terminal/gwt/client/ui/dd/VNot.java index 87129807cf..da9c01dae3 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/dd/VNot.java +++ b/src/com/vaadin/terminal/gwt/client/ui/dd/VNot.java @@ -55,7 +55,7 @@ final public class VNot extends VAcceptCriterion { } @Override - public boolean validates(VDragEvent drag, UIDL configuration) { + protected boolean accept(VDragEvent drag, UIDL configuration) { return false; // not used } }
\ No newline at end of file diff --git a/src/com/vaadin/terminal/gwt/client/ui/dd/VOr.java b/src/com/vaadin/terminal/gwt/client/ui/dd/VOr.java index 3e33cd6b0c..cdb23af69b 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/dd/VOr.java +++ b/src/com/vaadin/terminal/gwt/client/ui/dd/VOr.java @@ -35,7 +35,7 @@ final public class VOr extends VAcceptCriterion implements VAcceptCallback { } @Override - public boolean validates(VDragEvent drag, UIDL configuration) { + protected boolean accept(VDragEvent drag, UIDL configuration) { return false; // not used here } diff --git a/src/com/vaadin/terminal/gwt/client/ui/dd/VOverTreeNode.java b/src/com/vaadin/terminal/gwt/client/ui/dd/VOverTreeNode.java index f24ecf87e3..5236ecc5b1 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/dd/VOverTreeNode.java +++ b/src/com/vaadin/terminal/gwt/client/ui/dd/VOverTreeNode.java @@ -11,7 +11,7 @@ import com.vaadin.terminal.gwt.client.UIDL; final public class VOverTreeNode extends VAcceptCriterion { @Override - public boolean validates(VDragEvent drag, UIDL configuration) { + protected boolean accept(VDragEvent drag, UIDL configuration) { Boolean containsKey = (Boolean) drag.getDropDetails().get( "itemIdOverIsNode"); return containsKey != null && containsKey.booleanValue(); diff --git a/src/com/vaadin/terminal/gwt/client/ui/dd/VServerAccept.java b/src/com/vaadin/terminal/gwt/client/ui/dd/VServerAccept.java index f9cf7a32bb..163396d846 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/dd/VServerAccept.java +++ b/src/com/vaadin/terminal/gwt/client/ui/dd/VServerAccept.java @@ -29,7 +29,7 @@ final public class VServerAccept extends VAcceptCriterion { } @Override - public boolean validates(VDragEvent drag, UIDL configuration) { + protected boolean accept(VDragEvent drag, UIDL configuration) { return false; // not used } }
\ No newline at end of file diff --git a/src/com/vaadin/terminal/gwt/client/ui/dd/VSourceIsSameAsTarget.java b/src/com/vaadin/terminal/gwt/client/ui/dd/VSourceIsSameAsTarget.java index 5dd52fa712..44bae007d6 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/dd/VSourceIsSameAsTarget.java +++ b/src/com/vaadin/terminal/gwt/client/ui/dd/VSourceIsSameAsTarget.java @@ -12,7 +12,7 @@ import com.vaadin.terminal.gwt.client.UIDL; final public class VSourceIsSameAsTarget extends VAcceptCriterion { @Override - public boolean validates(VDragEvent drag, UIDL configuration) { + protected boolean accept(VDragEvent drag, UIDL configuration) { Paintable dragSource = drag.getTransferable().getDragSource(); Paintable paintable = VDragAndDropManager.get().getCurrentDropHandler() .getPaintable(); diff --git a/src/com/vaadin/terminal/gwt/client/ui/dd/VTargetNodeIsChildOf.java b/src/com/vaadin/terminal/gwt/client/ui/dd/VTargetNodeIsChildOf.java index ceec6e9365..22c0298e65 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/dd/VTargetNodeIsChildOf.java +++ b/src/com/vaadin/terminal/gwt/client/ui/dd/VTargetNodeIsChildOf.java @@ -14,7 +14,7 @@ import com.vaadin.terminal.gwt.client.ui.VTree.TreeNode; final public class VTargetNodeIsChildOf extends VAcceptCriterion { @Override - public boolean validates(VDragEvent drag, UIDL configuration) { + protected boolean accept(VDragEvent drag, UIDL configuration) { VTree tree = (VTree) VDragAndDropManager.get().getCurrentDropHandler() .getPaintable(); diff --git a/src/com/vaadin/terminal/gwt/server/DragAndDropService.java b/src/com/vaadin/terminal/gwt/server/DragAndDropService.java index f639e57e49..8c75269860 100644 --- a/src/com/vaadin/terminal/gwt/server/DragAndDropService.java +++ b/src/com/vaadin/terminal/gwt/server/DragAndDropService.java @@ -93,7 +93,7 @@ public class DragAndDropService implements VariableOwner { variables); DragAndDropEvent dropEvent = new DragAndDropEvent(transferable, dropData); - if (dropHandler.getAcceptCriterion().accepts(dropEvent)) { + if (dropHandler.getAcceptCriterion().accept(dropEvent)) { dropHandler.drop(dropEvent); } } @@ -121,7 +121,7 @@ public class DragAndDropService implements VariableOwner { dragEvent = new DragAndDropEvent(transferable, dragDropDetails); - lastVisitAccepted = acceptCriterion.accepts(dragEvent); + lastVisitAccepted = acceptCriterion.accept(dragEvent); } /** diff --git a/src/com/vaadin/ui/AbstractSelect.java b/src/com/vaadin/ui/AbstractSelect.java index 45ff75a66e..4a13c191f1 100644 --- a/src/com/vaadin/ui/AbstractSelect.java +++ b/src/com/vaadin/ui/AbstractSelect.java @@ -1704,7 +1704,7 @@ public abstract class AbstractSelect extends AbstractField implements super(select, itemId); } - public boolean accepts(DragAndDropEvent dragEvent) { + public boolean accept(DragAndDropEvent dragEvent) { AbstractSelectDropTargetDetails dropTargetData = (AbstractSelectDropTargetDetails) dragEvent .getDropTargetDetails(); return itemIds.contains(dropTargetData.getItemIdOver()); @@ -1761,7 +1761,7 @@ public abstract class AbstractSelect extends AbstractField implements super(select, itemId); } - public boolean accepts(DragAndDropEvent dragEvent) { + public boolean accept(DragAndDropEvent dragEvent) { DataBoundTransferable transferable = (DataBoundTransferable) dragEvent .getTransferable(); return itemIds.contains(transferable.getItemId()); diff --git a/src/com/vaadin/ui/Table.java b/src/com/vaadin/ui/Table.java index 6ae1362e9a..d50d0dcf2c 100644 --- a/src/com/vaadin/ui/Table.java +++ b/src/com/vaadin/ui/Table.java @@ -3461,7 +3461,7 @@ public class Table extends AbstractSelect implements Action.Container, * com.vaadin.event.dd.acceptCriteria.AcceptCriterion#accepts(com.vaadin * .event.dd.DragAndDropEvent) */ - public boolean accepts(DragAndDropEvent dragEvent) { + public boolean accept(DragAndDropEvent dragEvent) { AbstractSelectDropTargetDetails dropTargetData = (AbstractSelectDropTargetDetails) dragEvent .getDropTargetDetails(); table = (Table) dragEvent.getDropTargetDetails().getTarget(); diff --git a/src/com/vaadin/ui/Tree.java b/src/com/vaadin/ui/Tree.java index b1e076ea28..0b1ee9b104 100644 --- a/src/com/vaadin/ui/Tree.java +++ b/src/com/vaadin/ui/Tree.java @@ -1325,7 +1325,7 @@ public class Tree extends AbstractSelect implements Container.Hierarchical, * com.vaadin.event.dd.acceptCriteria.AcceptCriterion#accepts(com.vaadin * .event.dd.DragAndDropEvent) */ - public boolean accepts(DragAndDropEvent dragEvent) { + public boolean accept(DragAndDropEvent dragEvent) { AbstractSelectDropTargetDetails dropTargetData = (AbstractSelectDropTargetDetails) dragEvent .getDropTargetDetails(); tree = (Tree) dragEvent.getDropTargetDetails().getTarget(); @@ -1378,7 +1378,7 @@ public class Tree extends AbstractSelect implements Container.Hierarchical, * Uses enhanced server side check */ @Override - public boolean accepts(DragAndDropEvent dragEvent) { + public boolean accept(DragAndDropEvent dragEvent) { try { // must be over tree node and in the middle of it (not top or // bottom @@ -1440,7 +1440,7 @@ public class Tree extends AbstractSelect implements Container.Hierarchical, this.depthToCheck = depthToCheck; } - public boolean accepts(DragAndDropEvent dragEvent) { + public boolean accept(DragAndDropEvent dragEvent) { try { TreeDropTargetDetails eventDetails = (TreeDropTargetDetails) dragEvent .getDropTargetDetails(); |