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.

AbstractMediaState.java 1.7KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. /*
  2. @VaadinApache2LicenseForJavaFiles@
  3. */
  4. package com.vaadin.shared.ui;
  5. import java.util.ArrayList;
  6. import java.util.List;
  7. import com.vaadin.shared.ComponentState;
  8. import com.vaadin.shared.communication.URLReference;
  9. public class AbstractMediaState extends ComponentState {
  10. private boolean showControls;
  11. private String altText;
  12. private boolean htmlContentAllowed;
  13. private boolean autoplay;
  14. private boolean muted;
  15. private List<URLReference> sources = new ArrayList<URLReference>();
  16. private List<String> sourceTypes = new ArrayList<String>();
  17. public boolean isShowControls() {
  18. return showControls;
  19. }
  20. public void setShowControls(boolean showControls) {
  21. this.showControls = showControls;
  22. }
  23. public String getAltText() {
  24. return altText;
  25. }
  26. public void setAltText(String altText) {
  27. this.altText = altText;
  28. }
  29. public boolean isHtmlContentAllowed() {
  30. return htmlContentAllowed;
  31. }
  32. public void setHtmlContentAllowed(boolean htmlContentAllowed) {
  33. this.htmlContentAllowed = htmlContentAllowed;
  34. }
  35. public boolean isAutoplay() {
  36. return autoplay;
  37. }
  38. public void setAutoplay(boolean autoplay) {
  39. this.autoplay = autoplay;
  40. }
  41. public boolean isMuted() {
  42. return muted;
  43. }
  44. public void setMuted(boolean muted) {
  45. this.muted = muted;
  46. }
  47. public List<URLReference> getSources() {
  48. return sources;
  49. }
  50. public void setSources(List<URLReference> sources) {
  51. this.sources = sources;
  52. }
  53. public List<String> getSourceTypes() {
  54. return sourceTypes;
  55. }
  56. public void setSourceTypes(List<String> sourceTypes) {
  57. this.sourceTypes = sourceTypes;
  58. }
  59. }