Removed animation that is broken by latest chrome (v.24)
authorChristos Stathis <chstath@ebs.gr>
Wed, 30 Jan 2013 12:19:35 +0000 (14:19 +0200)
committerChristos Stathis <chstath@ebs.gr>
Wed, 30 Jan 2013 12:19:35 +0000 (14:19 +0200)
26 files changed:
src/gr/grnet/pithos/web/client/AbstractPropertiesDialog.java
src/gr/grnet/pithos/web/client/AddUserDialog.java
src/gr/grnet/pithos/web/client/ConfirmationDialog.java
src/gr/grnet/pithos/web/client/CredentialsDialog.java
src/gr/grnet/pithos/web/client/DeleteFileDialog.java
src/gr/grnet/pithos/web/client/DeleteFolderDialog.java
src/gr/grnet/pithos/web/client/FeedbackDialog.java
src/gr/grnet/pithos/web/client/FileContextMenu.java
src/gr/grnet/pithos/web/client/FilePermissionsDialog.java
src/gr/grnet/pithos/web/client/FilePropertiesDialog.java
src/gr/grnet/pithos/web/client/FilePublishDialog.java
src/gr/grnet/pithos/web/client/FileUploadDialog.java
src/gr/grnet/pithos/web/client/FileVersionsDialog.java
src/gr/grnet/pithos/web/client/FolderContextMenu.java
src/gr/grnet/pithos/web/client/FolderPermissionsDialog.java
src/gr/grnet/pithos/web/client/FolderPropertiesDialog.java
src/gr/grnet/pithos/web/client/GroupCreateDialog.java
src/gr/grnet/pithos/web/client/MessagePanel.java
src/gr/grnet/pithos/web/client/PleaseWaitPopup.java
src/gr/grnet/pithos/web/client/SessionExpiredDialog.java
src/gr/grnet/pithos/web/client/ToolsMenu.java
src/gr/grnet/pithos/web/client/UploadAlert.java
src/gr/grnet/pithos/web/client/animation/FadeIn.java [deleted file]
src/gr/grnet/pithos/web/client/animation/FadeOut.java [deleted file]
src/gr/grnet/pithos/web/client/grouptree/GroupContextMenu.java
src/gr/grnet/pithos/web/client/grouptree/UserContextMenu.java

index 0c53546..9bc9475 100644 (file)
@@ -60,9 +60,6 @@ public abstract class AbstractPropertiesDialog extends DialogBox {
         app = _app;\r
                // Enable IE selection for the dialog (must disable it upon closing it)\r
                Pithos.enableIESelection();\r
-\r
-               setAnimationEnabled(true);\r
-\r
        }\r
 \r
        /**\r
index 6d29afc..08d38c9 100644 (file)
@@ -90,7 +90,6 @@ public class AddUserDialog extends DialogBox {
                        }\r
                });\r
 \r
-               setAnimationEnabled(true);\r
                setGlassEnabled(true);\r
                setStyleName("pithos-DialogBox");\r
 \r
index 27fb9bb..25ef864 100644 (file)
@@ -71,7 +71,6 @@ public abstract class ConfirmationDialog extends DialogBox {
                });
                // Set the dialog's caption.
                setText("Confirmation");
-               setAnimationEnabled(true);
                setGlassEnabled(true);
                setStyleName("pithos-DialogBox");
                // Create a VerticalPanel to contain the label and the buttons.
index eebedf1..4dd2427 100644 (file)
@@ -73,7 +73,6 @@ public class CredentialsDialog extends DialogBox {
                });
                // Set the dialog's caption.
                setText("User Credentials");
-               setAnimationEnabled(true);
                setGlassEnabled(true);
                setStyleName("pithos-DialogBox");
                // A VerticalPanel that contains the 'about' label and the 'OK' button.
index 7834fa2..16863a4 100644 (file)
@@ -90,7 +90,6 @@ public class DeleteFileDialog extends DialogBox {
                });\r
                // Set the dialog's caption.\r
                setText("Confirmation");\r
-               setAnimationEnabled(true);\r
                setGlassEnabled(true);\r
                setStyleName("pithos-DialogBox");\r
                // Create a VerticalPanel to contain the label and the buttons.\r
index fc69ff1..7355697 100644 (file)
@@ -79,7 +79,6 @@ public class DeleteFolderDialog extends DialogBox {
 \r
                // Set the dialog's caption.\r
                setText("Confirmation");\r
-               setAnimationEnabled(true);\r
                setGlassEnabled(true);\r
                setStyleName("pithos-DialogBox");\r
                // Create a VerticalPanel to contain the HTML label and the buttons.\r
index b8710f9..e9e9750 100644 (file)
@@ -90,7 +90,6 @@ public class FeedbackDialog extends DialogBox {
                        }
                });
                setText("Send feedback");
-               setAnimationEnabled(true);
                setGlassEnabled(true);
                
                setStyleName("pithos-DialogBox");
index d06f79f..ba9d23e 100644 (file)
@@ -188,7 +188,6 @@ public class FileContextMenu extends PopupPanel {
                // The popup's constructor's argument is a boolean specifying that it
                // auto-close itself when the user clicks outside of it.
                super(true);
-               setAnimationEnabled(true);
                images = newImages;
         MenuBar contextMenu = new MenuBar(true);
         Boolean[] permissions = null;
index cf25fc5..5cc0b3e 100644 (file)
@@ -114,7 +114,6 @@ public class FilePermissionsDialog extends AbstractPropertiesDialog {
                });\r
                // Set the dialog's caption.\r
                setText("File permissions");\r
-               setAnimationEnabled(true);\r
                setGlassEnabled(true);\r
                setStyleName("pithos-DialogBox");\r
 \r
index 31257fc..6f7ebaa 100644 (file)
@@ -93,7 +93,6 @@ public class FilePropertiesDialog extends AbstractPropertiesDialog {
                });\r
                // Set the dialog's caption.\r
                setText("File properties");\r
-               setAnimationEnabled(true);\r
                setGlassEnabled(true);\r
                setStyleName("pithos-DialogBox");\r
 \r
index 3ea371f..9a180bc 100644 (file)
@@ -114,7 +114,6 @@ public class FilePublishDialog extends AbstractPropertiesDialog {
                });\r
                // Set the dialog's caption.\r
                setText("Publish/Un-publish");\r
-               setAnimationEnabled(true);\r
                setGlassEnabled(true);\r
                setStyleName("pithos-DialogBox");\r
 \r
index 141d4ba..fd68131 100644 (file)
@@ -100,8 +100,6 @@ public class FileUploadDialog extends DialogBox {
                });
                // Set the dialog's caption.
                setText("File upload");
-               setAnimationEnabled(true);
-//             setGlassEnabled(true);
                setStyleName("pithos-DialogBox");
                setVisible(false);
                
index 87d4398..9b2efa4 100644 (file)
@@ -105,7 +105,6 @@ public class FileVersionsDialog extends AbstractPropertiesDialog {
                });\r
                // Set the dialog's caption.\r
                setText("File versions");\r
-               setAnimationEnabled(true);\r
                setGlassEnabled(true);\r
                setStyleName("pithos-DialogBox");\r
 \r
index a25ae9f..ae4bb75 100644 (file)
@@ -79,7 +79,6 @@ public class FolderContextMenu extends PopupPanel {
                // The popup's constructor's argument is a boolean specifying that it
                // auto-close itself when the user clicks outside of it.
                super(true);
-               setAnimationEnabled(true);
                images = newImages;
         MenuBar contextMenu = new MenuBar(true);
 
index 720b02e..c22eec8 100644 (file)
@@ -97,7 +97,6 @@ public class FolderPermissionsDialog extends DialogBox {
                        }\r
                });\r
 \r
-               setAnimationEnabled(true);\r
                setGlassEnabled(true);\r
                setStyleName("pithos-DialogBox");\r
 \r
index 245b059..4c6438f 100644 (file)
@@ -101,7 +101,6 @@ public class FolderPropertiesDialog extends DialogBox {
                        }\r
                });\r
 \r
-               setAnimationEnabled(true);\r
                setGlassEnabled(true);\r
                setStyleName("pithos-DialogBox");\r
 \r
index 619f4b9..799cee0 100644 (file)
@@ -90,7 +90,6 @@ public class GroupCreateDialog extends DialogBox {
                        }\r
                });\r
 \r
-               setAnimationEnabled(true);\r
                setGlassEnabled(true);\r
                setStyleName("pithos-DialogBox");\r
 \r
index 5b142f3..55f60b8 100644 (file)
@@ -34,9 +34,6 @@
  */\r
 package gr.grnet.pithos.web.client;\r
 \r
-import gr.grnet.pithos.web.client.animation.FadeIn;\r
-import gr.grnet.pithos.web.client.animation.FadeOut;\r
-\r
 import com.google.gwt.core.client.GWT;\r
 import com.google.gwt.event.dom.client.ClickEvent;\r
 import com.google.gwt.event.dom.client.ClickHandler;\r
@@ -118,15 +115,7 @@ public class MessagePanel extends Composite {
 \r
                        @Override\r
                        public void onClick(ClickEvent event) {\r
-                               FadeOut anim = new FadeOut(simplePanel){\r
-\r
-                                       @Override\r
-                                       protected void onComplete() {\r
-                                               super.onComplete();\r
-                                               hideMessage();\r
-                                       }\r
-                               };\r
-                               anim.run(500);\r
+                               hideMessage();\r
                        }\r
                });\r
                inner.add(message);\r
@@ -142,14 +131,7 @@ public class MessagePanel extends Composite {
 \r
                        @Override\r
                        public void onClick(ClickEvent event) {\r
-                               FadeOut anim = new FadeOut(simplePanel){\r
-                                       @Override\r
-                                       protected void onComplete() {\r
-                                               super.onComplete();\r
-                                               hideMessage();\r
-                                       }\r
-                               };\r
-                               anim.run(500);\r
+                               hideMessage();\r
                        }\r
                });\r
                linkPanel.add(clearMessageLink);\r
@@ -181,8 +163,6 @@ public class MessagePanel extends Composite {
                message.setHTML("<table class='pithos-errorMessage'><tr><td>" + AbstractImagePrototype.create(images.error()).getHTML() + "</td><td>" + msg + "</td></tr></table>");\r
                feedbackLink.setVisible(true);\r
                setVisible(true);\r
-               FadeIn anim = new FadeIn(simplePanel);\r
-               anim.run(500);\r
        }\r
 \r
        /**\r
@@ -194,8 +174,6 @@ public class MessagePanel extends Composite {
                message.setHTML("<table class='pithos-warnMessage'><tr><td>" + AbstractImagePrototype.create(images.warn()).getHTML() + "</td><td>" + msg + "</td></tr></table>");\r
                feedbackLink.setVisible(false);\r
                setVisible(true);\r
-               FadeIn anim = new FadeIn(simplePanel);\r
-               anim.run(500);\r
        }\r
 \r
        /**\r
@@ -207,8 +185,6 @@ public class MessagePanel extends Composite {
                message.setHTML("<table class='pithos-infoMessage'><tr><td>" + AbstractImagePrototype.create(images.info()).getHTML() + "</td><td>" + msg + "</td></tr></table>");\r
                feedbackLink.setVisible(false);\r
                setVisible(true);\r
-               FadeIn anim = new FadeIn(simplePanel);\r
-               anim.run(500);\r
        }\r
 \r
        /**\r
index ba31c1b..78bdac1 100644 (file)
@@ -6,7 +6,6 @@ import com.google.gwt.user.client.ui.PopupPanel;
 public class PleaseWaitPopup extends PopupPanel {
 
        public PleaseWaitPopup() {
-               setAnimationEnabled(true);
                setGlassEnabled(true);
                setModal(true);
                add(new Label("Please wait ..."));
index 199c81a..0e99374 100644 (file)
@@ -55,7 +55,6 @@ public class SessionExpiredDialog extends DialogBox {
         app = _app;
                // Set the dialog's caption.
                setText("Session Expired");
-               setAnimationEnabled(true);
                setGlassEnabled(true);
                setStyleName("pithos-DialogBox");
 
index 481e44e..c70c5c0 100644 (file)
@@ -92,7 +92,6 @@ public class ToolsMenu extends PopupPanel {
                // The popup's constructor's argument is a boolean specifying that it
                // auto-close itself when the user clicks outside of it.
                super(true);
-               setAnimationEnabled(true);
                images = newImages;
         MenuBar contextMenu = new MenuBar(true);
 
index 5616a77..5490dea 100644 (file)
@@ -56,7 +56,6 @@ public class UploadAlert extends PopupPanel {
                // The popup's constructor's argument is a boolean specifying that it
                // auto-close itself when the user clicks outside of it.
                super(false);
-               setAnimationEnabled(true);
                addStyleName(Pithos.resources.pithosCss().uploadAlert());
                FlowPanel content = new FlowPanel();
                setNumOfFiles(_numOfFiles);
diff --git a/src/gr/grnet/pithos/web/client/animation/FadeIn.java b/src/gr/grnet/pithos/web/client/animation/FadeIn.java
deleted file mode 100644 (file)
index 9967260..0000000
+++ /dev/null
@@ -1,60 +0,0 @@
-/*
- * Copyright 2011-2012 GRNET S.A. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or
- * without modification, are permitted provided that the following
- * conditions are met:
- *
- *   1. Redistributions of source code must retain the above
- *      copyright notice, this list of conditions and the following
- *      disclaimer.
- *
- *   2. Redistributions in binary form must reproduce the above
- *      copyright notice, this list of conditions and the following
- *      disclaimer in the documentation and/or other materials
- *      provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY GRNET S.A. ``AS IS'' AND ANY EXPRESS
- * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL GRNET S.A OR
- * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
- * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
- * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
- * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- *
- * The views and conclusions contained in the software and
- * documentation are those of the authors and should not be
- * interpreted as representing official policies, either expressed
- * or implied, of GRNET S.A.
- */
-package gr.grnet.pithos.web.client.animation;
-
-import com.google.gwt.animation.client.Animation;
-import com.google.gwt.user.client.DOM;
-import com.google.gwt.user.client.ui.Widget;
-
-
-public class FadeIn extends Animation {
-       Widget widget;
-       int initialOpacity = 100;
-       double currOpacity = 100;
-
-       public FadeIn(Widget aWidget){
-               widget = aWidget;
-       }
-
-       @Override
-       protected void onUpdate(double progress) {
-               if(currOpacity > 0.0){
-                       double progress1 = 1.0 - progress;
-                       currOpacity = initialOpacity * progress1;
-                       DOM.setStyleAttribute(widget.getElement(), "opacity", ""+new Double(1d - currOpacity / 100d));
-               }
-       }
-
-}
diff --git a/src/gr/grnet/pithos/web/client/animation/FadeOut.java b/src/gr/grnet/pithos/web/client/animation/FadeOut.java
deleted file mode 100644 (file)
index 474de0a..0000000
+++ /dev/null
@@ -1,70 +0,0 @@
-/*
- * Copyright 2011-2012 GRNET S.A. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or
- * without modification, are permitted provided that the following
- * conditions are met:
- *
- *   1. Redistributions of source code must retain the above
- *      copyright notice, this list of conditions and the following
- *      disclaimer.
- *
- *   2. Redistributions in binary form must reproduce the above
- *      copyright notice, this list of conditions and the following
- *      disclaimer in the documentation and/or other materials
- *      provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY GRNET S.A. ``AS IS'' AND ANY EXPRESS
- * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL GRNET S.A OR
- * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
- * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
- * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
- * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- *
- * The views and conclusions contained in the software and
- * documentation are those of the authors and should not be
- * interpreted as representing official policies, either expressed
- * or implied, of GRNET S.A.
- */
-package gr.grnet.pithos.web.client.animation;
-
-import com.google.gwt.animation.client.Animation;
-import com.google.gwt.user.client.DOM;
-import com.google.gwt.user.client.ui.Widget;
-
-
-public class FadeOut extends Animation {
-       Widget widget;
-
-       int initialOpacity = 100;
-       double currOpacity = 100;
-
-       public FadeOut(Widget aWidget){
-               widget = aWidget;
-       }
-
-       @Override
-       protected void onUpdate(double progress) {
-               if(currOpacity>0.0){
-                       double progress1 = 1.0 - progress;
-                       currOpacity = initialOpacity*progress1;
-                       DOM.setStyleAttribute(widget.getElement(), "opacity", ""+new Double(currOpacity/100d));
-               }
-       }
-
-       /*
-       protected void onComplete() {
-               super.onComplete();
-               hpanel.clear();
-               html = new HTML("&nbsp;");
-               hpanel.getParent().setVisible(false);
-       }
-       */
-
-}
index 6a7ab66..56634e9 100644 (file)
@@ -64,7 +64,6 @@ public class GroupContextMenu extends PopupPanel {
                // The popup's constructor's argument is a boolean specifying that it
                // auto-close itself when the user clicks outside of it.
                super(true);
-               setAnimationEnabled(true);
                images = newImages;
         MenuBar contextMenu = new MenuBar(true);
         
index fa75f97..3c56dee 100644 (file)
@@ -62,7 +62,6 @@ public class UserContextMenu extends PopupPanel {
                // The popup's constructor's argument is a boolean specifying that it
                // auto-close itself when the user clicks outside of it.
                super(true);
-               setAnimationEnabled(true);
                images = newImages;
         MenuBar contextMenu = new MenuBar(true);