You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

DragAndDropTextArea.java 1.1KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. package com.vaadin.tests.components.draganddropwrapper;
  2. import com.vaadin.server.VaadinRequest;
  3. import com.vaadin.tests.components.AbstractReindeerTestUI;
  4. import com.vaadin.ui.DragAndDropWrapper;
  5. import com.vaadin.ui.DragAndDropWrapper.DragStartMode;
  6. import com.vaadin.ui.VerticalLayout;
  7. import com.vaadin.v7.ui.TextArea;
  8. /**
  9. * Test UI for text area: drag image should contain text-area text.
  10. *
  11. * @since 7.2
  12. * @author Vaadin Ltd
  13. */
  14. public class DragAndDropTextArea extends AbstractReindeerTestUI {
  15. @Override
  16. protected void setup(VaadinRequest request) {
  17. VerticalLayout dndLayout = new VerticalLayout();
  18. TextArea area = new TextArea();
  19. area.setValue("text");
  20. dndLayout.addComponent(area);
  21. DragAndDropWrapper wrapper = new DragAndDropWrapper(dndLayout);
  22. wrapper.setDragStartMode(DragStartMode.WRAPPER);
  23. addComponent(wrapper);
  24. }
  25. @Override
  26. protected String getTestDescription() {
  27. return "Drag image for textarea should contain text-area text";
  28. }
  29. @Override
  30. protected Integer getTicketNumber() {
  31. return 13557;
  32. }
  33. }