]> source.dussan.org Git - vaadin-framework.git/commitdiff
Fixed compilation errors
authorArtur Signell <artur@vaadin.com>
Mon, 30 Jan 2012 13:07:04 +0000 (15:07 +0200)
committerArtur Signell <artur@vaadin.com>
Mon, 30 Jan 2012 13:07:04 +0000 (15:07 +0200)
src/com/vaadin/ui/AbstractMedia.java
src/com/vaadin/ui/Slider.java

index 9117bce9974f8f9f03bc8fc91bca7adc1b3cc86d..369ef773b9f953b5739040c6faa99bdb92539999 100644 (file)
@@ -12,7 +12,7 @@ import java.util.List;
 import com.vaadin.terminal.PaintException;
 import com.vaadin.terminal.PaintTarget;
 import com.vaadin.terminal.Resource;
-import com.vaadin.terminal.gwt.client.ui.VMediaBase;
+import com.vaadin.terminal.gwt.client.ui.VMediaBasePaintable;
 
 /**
  * Abstract base class for the HTML5 media components.
@@ -203,25 +203,27 @@ public class AbstractMedia extends AbstractComponent {
     @Override
     public void paintContent(PaintTarget target) throws PaintException {
         super.paintContent(target);
-        target.addAttribute(VMediaBase.ATTR_CONTROLS, isShowControls());
+        target.addAttribute(VMediaBasePaintable.ATTR_CONTROLS, isShowControls());
         if (getAltText() != null) {
-            target.addAttribute(VMediaBase.ATTR_ALT_TEXT, getAltText());
+            target.addAttribute(VMediaBasePaintable.ATTR_ALT_TEXT, getAltText());
         }
-        target.addAttribute(VMediaBase.ATTR_HTML, isHtmlContentAllowed());
-        target.addAttribute(VMediaBase.ATTR_AUTOPLAY, isAutoplay());
+        target.addAttribute(VMediaBasePaintable.ATTR_HTML,
+                isHtmlContentAllowed());
+        target.addAttribute(VMediaBasePaintable.ATTR_AUTOPLAY, isAutoplay());
         for (Resource r : getSources()) {
-            target.startTag(VMediaBase.TAG_SOURCE);
-            target.addAttribute(VMediaBase.ATTR_RESOURCE, r);
-            target.addAttribute(VMediaBase.ATTR_RESOURCE_TYPE, r.getMIMEType());
-            target.endTag(VMediaBase.TAG_SOURCE);
+            target.startTag(VMediaBasePaintable.TAG_SOURCE);
+            target.addAttribute(VMediaBasePaintable.ATTR_RESOURCE, r);
+            target.addAttribute(VMediaBasePaintable.ATTR_RESOURCE_TYPE,
+                    r.getMIMEType());
+            target.endTag(VMediaBasePaintable.TAG_SOURCE);
         }
-        target.addAttribute(VMediaBase.ATTR_MUTED, isMuted());
+        target.addAttribute(VMediaBasePaintable.ATTR_MUTED, isMuted());
         if (play) {
-            target.addAttribute(VMediaBase.ATTR_PLAY, true);
+            target.addAttribute(VMediaBasePaintable.ATTR_PLAY, true);
             play = false;
         }
         if (pause) {
-            target.addAttribute(VMediaBase.ATTR_PAUSE, true);
+            target.addAttribute(VMediaBasePaintable.ATTR_PAUSE, true);
             pause = false;
         }
     }
index f077afb8ffe6d419ee073190b162111914910ef5..aad1b60f87c1738a44e24710706b7ada91e8e652 100644 (file)
@@ -8,7 +8,7 @@ import java.util.Map;
 
 import com.vaadin.terminal.PaintException;
 import com.vaadin.terminal.PaintTarget;
-import com.vaadin.terminal.gwt.client.ui.VSlider;
+import com.vaadin.terminal.gwt.client.ui.VSliderPaintable;
 
 /**
  * A component for selecting a numerical value within a range.
@@ -46,7 +46,7 @@ import com.vaadin.terminal.gwt.client.ui.VSlider;
  * 
  * @author Vaadin Ltd.
  */
-@ClientWidget(VSlider.class)
+@ClientWidget(VSliderPaintable.class)
 public class Slider extends AbstractField<Double> {
 
     public static final int ORIENTATION_HORIZONTAL = 0;