diff options
author | Matti Tahvonen <matti.tahvonen@itmill.com> | 2010-02-01 15:22:44 +0000 |
---|---|---|
committer | Matti Tahvonen <matti.tahvonen@itmill.com> | 2010-02-01 15:22:44 +0000 |
commit | 2b84bd58bc8b46b430ff8ff6983382743c96e2b8 (patch) | |
tree | e1b6893556074dae6787cbfdc5914c1f97b9d0b7 /src/com/vaadin | |
parent | 746afe4dde4cc5bfa14cad3949a1360b1396e712 (diff) | |
download | vaadin-framework-2b84bd58bc8b46b430ff8ff6983382743c96e2b8.tar.gz vaadin-framework-2b84bd58bc8b46b430ff8ff6983382743c96e2b8.zip |
cleaner implementation of ComponentCriteria
svn changeset:11086/svn branch:6.3_dd
Diffstat (limited to 'src/com/vaadin')
-rw-r--r-- | src/com/vaadin/terminal/gwt/client/ui/dd/VAcceptCriterionImpl.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/com/vaadin/terminal/gwt/client/ui/dd/VAcceptCriterionImpl.java b/src/com/vaadin/terminal/gwt/client/ui/dd/VAcceptCriterionImpl.java index 71001d09d0..f8905443cf 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/dd/VAcceptCriterionImpl.java +++ b/src/com/vaadin/terminal/gwt/client/ui/dd/VAcceptCriterionImpl.java @@ -2,7 +2,6 @@ package com.vaadin.terminal.gwt.client.ui.dd; import java.util.Map; -import com.google.gwt.user.client.ui.Widget; import com.vaadin.terminal.gwt.client.ApplicationConnection; import com.vaadin.terminal.gwt.client.Paintable; import com.vaadin.terminal.gwt.client.UIDL; @@ -26,9 +25,10 @@ public class VAcceptCriterionImpl { Paintable component = drag.getTransferrable().getComponent(); String requiredPid = configuration .getStringAttribute("component"); - String pid = ((Widget) component).getElement() - .getPropertyString("tkPid"); - return pid.equals(requiredPid); + Paintable paintable = VDragAndDropManager.get() + .getCurrentDropHandler().getApplicationConnection() + .getPaintable(requiredPid); + return paintable == component; } catch (Exception e) { } return false; |