Blind Effects, and Clamshell Widget

4 views
Skip to first unread message

Essington

unread,
Nov 22, 2006, 5:28:29 PM11/22/06
to gwt-commons
I've just added the Blind effects and the clamshell widget to my branch
in the sandbox.

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

ash

unread,
Nov 22, 2006, 6:20:53 PM11/22/06
to gwt-commons
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.


1 -
http://gwt-commons-sandbox.googlecode.com/svn/branches/ash/gwt-commons/src/org/gwtcommons/user/effects/Transition.java

rgds ash
http://www.gworks.com.au

mP

unread,
Nov 22, 2006, 10:09:29 PM11/22/06
to gwt-commons
Isnt it bad to have this dependency on timer.

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

mP

unread,
Nov 22, 2006, 10:09:54 PM11/22/06
to gwt-commons
DOh take that back i think thats waht you have...:)

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.
>

ash

unread,
Nov 23, 2006, 6:04:05 AM11/23/06
to gwt-commons
jason,

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].

1 -
http://gwt-commons-sandbox.googlecode.com/svn/branches/ash/gwt-commons/demo/org/gwtcommons/demo/feature/user/effects/client/Effects.java

i really look forward to your blinds integration.

rgds ash
http://www.gworks.com.au

ash

unread,
Nov 27, 2006, 5:45:01 AM11/27/06
to gwt-commons
jason,

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

Robert Hanson

unread,
Nov 27, 2006, 9:03:13 AM11/27/06
to gwt-c...@googlegroups.com
I only took a quick look, but there seems to be some spacing issues.
Did we ever commit to the 3(or 4) space indent?

Rob

Reply all
Reply to author
Forward
0 new messages