Loading...
Important Notice - Forums is archived

To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Product icon
TUTORIAL

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.

Animator add-on

Jouni Koivuviita
1 decade ago Mar 12, 2010 2:10pm

Hi folks!

We're currently redesigning the Uilder interface with Sami, and I ended up drawing a mockup that would benefit from simple animations. So I decided that it was straightforward enough to build a small component for those simple animations.

So here's the result:

Animator Demo

See full description and download from the Directory: Animator add-on

Have fun, and use responsibly ;)

Last updated on Nov, 8th 2010
Sami Ekblad
1 decade ago Mar 14, 2010 12:17pm
Jouni Koivuviita
1 decade ago Mar 15, 2010 9:05am
davengo GmbH
1 decade ago Mar 26, 2010 8:29am

Hi Jouni,

Thanks for this great component :-)
Is there a way to set the state of the animator to rolled up / faded out before its creation (so that its hidden on first display)?
I haven't found a way (but I don't know if I've overlooked something), so I created setters and getters for your rolled / faded fields:

public void setFaded(boolean faded) {
		this.faded = faded;
		requestRepaint();
	}

	public boolean isFaded() {
		return faded;
	}

	public void setRolled(boolean rolled) {
		this.rolled = rolled;
		requestRepaint();
	}

	public boolean isRolled() {
		return rolled;
	}

If there is some other way, please let me know :-)
Best greetings from Germany
Eric

Jouni Koivuviita
1 decade ago Mar 27, 2010 8:49am
Peter Czurak
1 decade ago Apr 01, 2010 2:14am
Jouni Koivuviita
1 decade ago Apr 01, 2010 7:53am
David Wall
1 decade ago Jul 07, 2010 5:00pm
David Wall
1 decade ago Jul 07, 2010 10:09pm
David Wall
1 decade ago Jul 08, 2010 9:25pm
David Wall
1 decade ago Jul 09, 2010 11:19pm
Sebastian Mezzavilla
1 decade ago Nov 04, 2010 12:03pm
Jouni Koivuviita
1 decade ago Nov 05, 2010 6:59am
Jouni Koivuviita
1 decade ago Nov 07, 2010 1:22pm

Jouni Koivuviita: There seems to be something wrong in GWT so that setting the opacity using GWT's methods doesn't affect IE8. I'll take a look at asap and try to fix it. I have a couple of more updates to the add-on anyhow.

Problem solved, uploaded version 1.5 to the Directory moments ago. GWT should probably fix this in coming releases, but I fixed it to the add-on for now.

Updated the demo as well, and added a whole bunch of new animations using the AnimatorProxy component, allowing you to animate even sub-windows. Size animations are probably going to be very handy to some of you as well.

Get the update from the Directory (v.1.5): Animator add-on.

David Wall
1 decade ago Jan 12, 2011 8:08pm
David Wall
1 decade ago Jan 12, 2011 8:31pm
David Wall
1 decade ago Jan 13, 2011 1:24am
Jouni Koivuviita
1 decade ago Jan 13, 2011 10:09am
David Wall
1 decade ago Jan 13, 2011 7:34pm
David Wall
1 decade ago Jan 13, 2011 8:02pm
Jouni Koivuviita
1 decade ago Jan 17, 2011 1:05pm
David Wall
1 decade ago Jan 17, 2011 6:22pm
David Wall
1 decade ago Jan 19, 2011 4:42am
Sébastien Meunier
1 decade ago Jan 19, 2011 3:13pm
Jouni Koivuviita
1 decade ago Jan 20, 2011 7:36am
Jouni Koivuviita
1 decade ago Jan 20, 2011 7:37am

Sébastien Meunier: Hello,

I'm trying to recompile the widgetset to include the Animator addon, but I get this error message :

[ERROR] Errors in 'jar:file:[snip]/bundles/tomcat-6.0.26/webapps/ROOT/WEB-INF/lib/animator-1.6.2.jar!/org/vaadin/jouni/animator/client/ui/VAnimatorProxy.java'
[ERROR] Line 26: The import com.vaadin.terminal.gwt.client.VConsole cannot be resolved
[ERROR] Line 179: VConsole cannot be resolved

I'm using Liferay 6.0.5, which includes Vaadin 6.3.4. By looking into the vaadin.jar I can tell that there is no VConsole class for this version, but on the addon's page it's written that the addon is compatible with "Vaadin 6.3 upwards" ...

That class is only used once for logging. Maybe removing it would fix the problem for that version.

Thank you very much for noticing this and telling me! I removed the logging line, and it should compile with 6.3 now as well.

Get the new version (1.6.3) from the Directory.

Sébastien Meunier
1 decade ago Jan 20, 2011 7:54am
David Wall
1 decade ago Jan 20, 2011 4:46pm

Okay, this time I tested all the instances of Disclosure in my app and it appears to be working great. I can replace the content, update the caption, keep it open/closed in a Form when I select new Items and it holds the state, including on browser refresh. Perfect! Thanks much.

Jouni Koivuviita
1 decade ago Jan 21, 2011 9:18am
Anatoly Shirokov
1 decade ago Feb 09, 2011 11:41am
Jouni Koivuviita
1 decade ago Feb 09, 2011 11:46am
Manvel Saroyan
1 decade ago Mar 06, 2011 2:51pm
Jouni Koivuviita
1 decade ago Mar 06, 2011 3:41pm
Manvel Saroyan
1 decade ago Mar 06, 2011 4:40pm
stf obc
1 decade ago Apr 01, 2011 10:17pm
Jouni Koivuviita
1 decade ago Apr 04, 2011 7:13am
Jouni Koivuviita
1 decade ago Aug 22, 2011 5:43am
Mark Waschkowski
1 decade ago Sep 05, 2011 11:47am
Jouni Koivuviita
1 decade ago Sep 07, 2011 6:03am
Mark Waschkowski
1 decade ago Sep 08, 2011 3:24pm