recover admin interface
[pithos] / src / gr / ebs / gss / client / animation / FadeOut.java
index 5a72c66..10893e6 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright 2008, 2009 Electronic Business Systems Ltd.
+ * Copyright 2008, 2009, 2010 Electronic Business Systems Ltd.
  *
  * This file is part of GSS.
  *
@@ -33,20 +33,19 @@ public class FadeOut extends Animation {
        int initialOpacity = 100;
        double currOpacity = 100;
 
-       public FadeOut(Widget widget){
-               this.widget = widget;
+       public FadeOut(Widget aWidget){
+               widget = aWidget;
        }
-       /* (non-Javadoc)
-        * @see com.google.gwt.animation.client.Animation#onUpdate(double)
-        */
+
+       @Override
        protected void onUpdate(double progress) {
                if(currOpacity>0.0){
                        progress = 1.0 - progress;
                        currOpacity = initialOpacity*progress;
-                       int opacityToSet = new Double(currOpacity).intValue();
                        DOM.setStyleAttribute(widget.getElement(), "opacity", ""+new Double(currOpacity/100d));
                        //required for ie to work
                        //Disabled because IE has bugs rendering non-opaque objects
+                       //int opacityToSet = new Double(currOpacity).intValue();
                        //DOM.setStyleAttribute(widget.getElement(), "filter", "alpha(opacity="+currOpacity+")");
                }
        }