summaryrefslogtreecommitdiffstats
path: root/shared
diff options
context:
space:
mode:
authorJohn Ahlroos <john@vaadin.com>2012-08-31 14:22:26 +0300
committerJohn Ahlroos <john@vaadin.com>2012-08-31 14:23:03 +0300
commitdc8bc6119c1bd019600559db552ec26b4db2ec54 (patch)
tree3d83f592737c9ed3610c62025a788ed689ac2e62 /shared
parent01646b14df5708e50e4eb031ec5b4f0da4ab5d15 (diff)
downloadvaadin-framework-dc8bc6119c1bd019600559db552ec26b4db2ec54.tar.gz
vaadin-framework-dc8bc6119c1bd019600559db552ec26b4db2ec54.zip
More state getter removal
Diffstat (limited to 'shared')
-rw-r--r--shared/src/com/vaadin/shared/JavaScriptExtensionState.java2
-rw-r--r--shared/src/com/vaadin/shared/extension/javascriptmanager/JavaScriptManagerState.java12
-rw-r--r--shared/src/com/vaadin/shared/ui/AbstractMediaState.java74
3 files changed, 10 insertions, 78 deletions
diff --git a/shared/src/com/vaadin/shared/JavaScriptExtensionState.java b/shared/src/com/vaadin/shared/JavaScriptExtensionState.java
index 3e97294f7d..fb864c6ee1 100644
--- a/shared/src/com/vaadin/shared/JavaScriptExtensionState.java
+++ b/shared/src/com/vaadin/shared/JavaScriptExtensionState.java
@@ -1,4 +1,4 @@
-/*
+/*
* Copyright 2011 Vaadin Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
diff --git a/shared/src/com/vaadin/shared/extension/javascriptmanager/JavaScriptManagerState.java b/shared/src/com/vaadin/shared/extension/javascriptmanager/JavaScriptManagerState.java
index 7d1938d735..71af5e9598 100644
--- a/shared/src/com/vaadin/shared/extension/javascriptmanager/JavaScriptManagerState.java
+++ b/shared/src/com/vaadin/shared/extension/javascriptmanager/JavaScriptManagerState.java
@@ -1,4 +1,4 @@
-/*
+/*
* Copyright 2011 Vaadin Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
@@ -22,13 +22,5 @@ import java.util.Set;
import com.vaadin.shared.communication.SharedState;
public class JavaScriptManagerState extends SharedState {
- private Set<String> names = new HashSet<String>();
-
- public Set<String> getNames() {
- return names;
- }
-
- public void setNames(Set<String> names) {
- this.names = names;
- }
+ public Set<String> names = new HashSet<String>();
}
diff --git a/shared/src/com/vaadin/shared/ui/AbstractMediaState.java b/shared/src/com/vaadin/shared/ui/AbstractMediaState.java
index 80d41dd797..76d4e1b000 100644
--- a/shared/src/com/vaadin/shared/ui/AbstractMediaState.java
+++ b/shared/src/com/vaadin/shared/ui/AbstractMediaState.java
@@ -19,80 +19,20 @@ import java.util.ArrayList;
import java.util.List;
import com.vaadin.shared.ComponentState;
-import com.vaadin.shared.annotations.DelegateToWidget;
import com.vaadin.shared.communication.URLReference;
public class AbstractMediaState extends ComponentState {
- private boolean showControls;
+ public boolean showControls;
- private String altText;
+ public String altText;
- private boolean htmlContentAllowed;
+ public boolean htmlContentAllowed;
- private boolean autoplay;
+ public boolean autoplay;
- private boolean muted;
+ public boolean muted;
- private List<URLReference> sources = new ArrayList<URLReference>();
- private List<String> sourceTypes = new ArrayList<String>();
-
- public boolean isShowControls() {
- return showControls;
- }
-
- @DelegateToWidget("setControls")
- public void setShowControls(boolean showControls) {
- this.showControls = showControls;
- }
-
- public String getAltText() {
- return altText;
- }
-
- public void setAltText(String altText) {
- this.altText = altText;
- }
-
- public boolean isHtmlContentAllowed() {
- return htmlContentAllowed;
- }
-
- public void setHtmlContentAllowed(boolean htmlContentAllowed) {
- this.htmlContentAllowed = htmlContentAllowed;
- }
-
- public boolean isAutoplay() {
- return autoplay;
- }
-
- @DelegateToWidget
- public void setAutoplay(boolean autoplay) {
- this.autoplay = autoplay;
- }
-
- public boolean isMuted() {
- return muted;
- }
-
- @DelegateToWidget
- public void setMuted(boolean muted) {
- this.muted = muted;
- }
-
- public List<URLReference> getSources() {
- return sources;
- }
-
- public void setSources(List<URLReference> sources) {
- this.sources = sources;
- }
-
- public List<String> getSourceTypes() {
- return sourceTypes;
- }
-
- public void setSourceTypes(List<String> sourceTypes) {
- this.sourceTypes = sourceTypes;
- }
+ public List<URLReference> sources = new ArrayList<URLReference>();
+ public List<String> sourceTypes = new ArrayList<String>();
}