They need some refactoring before being added to gwt-commons proper,
but I thought I'd put them out for anyone to look at.
-jason
could u pls look at the effects/transition framework[1] and how to
integrate with it.
public class Transition extends Timer {
static public interface Effect {
public void start();
public void transition(int step, int remainingSteps, int
stepDuration);
public void end();
public void reverse();
public boolean isForward();
public void abort();
public boolean isAborted();
public EffectEventListener getListener();
}
...
if u impl this interface, then all effects can participate with the
effect-transition framework. hence, all effects can be done, undone(ie.
reversed) and aborted.
great work man.
feel free to update the framework to accomodate your needs. current
effect implementations incl. Opacity & SizePosition.
rgds ash
http://www.gworks.com.au
How would one group more than one transition to occur at a particular
tick of the timer.
I would recommend a effectcoordinator which has a list of effects.
when the timer ticks over it loops thru each of the effects
> 1 -http://gwt-commons-sandbox.googlecode.com/svn/branches/ash/gwt-common...
>
> rgds ashhttp://www.gworks.com.au
On Nov 23, 10:20 am, "ash" <ash...@gmail.com> wrote:
> jas,
>
> could u pls look at the effects/transition framework[1] and how to
> integrate with it.
>
> public class Transition extends Timer {
> static public interface Effect {
> public void start();
> public void transition(int step, int remainingSteps, int
> stepDuration);
> public void end();
> public void reverse();
> public boolean isForward();
> public void abort();
> public boolean isAborted();
> public EffectEventListener getListener();
> }
> ...
>
> if u impl this interface, then all effects can participate with the
> effect-transition framework. hence, all effects can be done, undone(ie.
> reversed) and aborted.
>
> great work man.
>
> feel free to update the framework to accomodate your needs. current
> effect implementations incl. Opacity & SizePosition.
>
i realise this is a bit late, but since mP has got me developing demo
pages for each feature i decided to try and move this one earlier in
the priority list.
plase take a look at the effects demo page[1].
i really look forward to your blinds integration.
rgds ash
http://www.gworks.com.au
i refactored blind and clamshell to seemlessly integrate with the rest
of commons. shit this integration takes time. i wish jason was sitting
here in melbourne pairing with me.
anyway, please review the following:
1-
http://gwt-commons-sandbox.googlecode.com/svn/branches/ash/gwt-commons/src/org/gwtcommons/user/effects/BlindEffect.java
2-
http://gwt-commons-sandbox.googlecode.com/svn/branches/ash/gwt-commons/src/org/gwtcommons/user/widget/base/ClamshellWidget.java
rgds ash
http://www.gworks.com.au
Rob