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.

FlashExpansion.java 805B

123456789101112131415161718192021222324252627282930313233
  1. package com.vaadin.tests.components.flash;
  2. import com.vaadin.server.ClassResource;
  3. import com.vaadin.tests.components.TestBase;
  4. import com.vaadin.ui.Button;
  5. import com.vaadin.ui.Flash;
  6. public class FlashExpansion extends TestBase {
  7. Flash player = new Flash();
  8. @Override
  9. protected void setup() {
  10. player.setWidth("400px");
  11. player.setHeight("300px");
  12. player.setSource(new ClassResource("simple.swf"));
  13. addComponent(player);
  14. Button button = new Button("click", event -> player.setSizeFull());
  15. addComponent(button);
  16. }
  17. @Override
  18. protected String getDescription() {
  19. return "Flash object should expand according to percentile sizes";
  20. }
  21. @Override
  22. protected Integer getTicketNumber() {
  23. return 4035;
  24. }
  25. }