/*
- * Copyright 2008, 2009 Electronic Business Systems Ltd.
+ * Copyright 2008, 2009, 2010 Electronic Business Systems Ltd.
*
* This file is part of GSS.
*
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+")");
}
}