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
}\r
});\r
\r
- setAnimationEnabled(true);\r
setGlassEnabled(true);\r
setStyleName("pithos-DialogBox");\r
\r
});
// Set the dialog's caption.
setText("Confirmation");
- setAnimationEnabled(true);
setGlassEnabled(true);
setStyleName("pithos-DialogBox");
// Create a VerticalPanel to contain the label and the buttons.
});
// 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.
});\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
\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
}
});
setText("Send feedback");
- setAnimationEnabled(true);
setGlassEnabled(true);
setStyleName("pithos-DialogBox");
// 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;
});\r
// Set the dialog's caption.\r
setText("File permissions");\r
- setAnimationEnabled(true);\r
setGlassEnabled(true);\r
setStyleName("pithos-DialogBox");\r
\r
});\r
// Set the dialog's caption.\r
setText("File properties");\r
- setAnimationEnabled(true);\r
setGlassEnabled(true);\r
setStyleName("pithos-DialogBox");\r
\r
});\r
// Set the dialog's caption.\r
setText("Publish/Un-publish");\r
- setAnimationEnabled(true);\r
setGlassEnabled(true);\r
setStyleName("pithos-DialogBox");\r
\r
});
// Set the dialog's caption.
setText("File upload");
- setAnimationEnabled(true);
-// setGlassEnabled(true);
setStyleName("pithos-DialogBox");
setVisible(false);
});\r
// Set the dialog's caption.\r
setText("File versions");\r
- setAnimationEnabled(true);\r
setGlassEnabled(true);\r
setStyleName("pithos-DialogBox");\r
\r
// 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);
}\r
});\r
\r
- setAnimationEnabled(true);\r
setGlassEnabled(true);\r
setStyleName("pithos-DialogBox");\r
\r
}\r
});\r
\r
- setAnimationEnabled(true);\r
setGlassEnabled(true);\r
setStyleName("pithos-DialogBox");\r
\r
}\r
});\r
\r
- setAnimationEnabled(true);\r
setGlassEnabled(true);\r
setStyleName("pithos-DialogBox");\r
\r
*/\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
\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
\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
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
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
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
public class PleaseWaitPopup extends PopupPanel {
public PleaseWaitPopup() {
- setAnimationEnabled(true);
setGlassEnabled(true);
setModal(true);
add(new Label("Please wait ..."));
app = _app;
// Set the dialog's caption.
setText("Session Expired");
- setAnimationEnabled(true);
setGlassEnabled(true);
setStyleName("pithos-DialogBox");
// 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);
// 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);
+++ /dev/null
-/*
- * 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));
- }
- }
-
-}
+++ /dev/null
-/*
- * 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(" ");
- hpanel.getParent().setVisible(false);
- }
- */
-
-}
// 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);
// 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);