Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

VOverTreeNode.java 1.2KB

123456789101112131415161718192021222324252627282930313233343536
  1. /*
  2. * Copyright 2000-2016 Vaadin Ltd.
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License"); you may not
  5. * use this file except in compliance with the License. You may obtain a copy of
  6. * the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  12. * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
  13. * License for the specific language governing permissions and limitations under
  14. * the License.
  15. */
  16. package com.vaadin.client.ui.dd;
  17. import com.vaadin.client.UIDL;
  18. import com.vaadin.ui.dnd.DropTargetExtension;
  19. /**
  20. *
  21. * @author Vaadin Ltd
  22. * @deprecated Since 8.1, no direct replacement, see {@link DropTargetExtension}
  23. * and extending classes
  24. */
  25. @Deprecated
  26. public final class VOverTreeNode extends VAcceptCriterion {
  27. @Override
  28. protected boolean accept(VDragEvent drag, UIDL configuration) {
  29. Boolean containsKey = (Boolean) drag.getDropDetails()
  30. .get("itemIdOverIsNode");
  31. return containsKey != null && containsKey.booleanValue();
  32. }
  33. }