applying an effect to more than one element

5 views
Skip to first unread message

nesredep

unread,
Aug 13, 2010, 8:46:20 AM8/13/10
to GWT-FX
I was having trouble making more than one element move at the same
time.

So I took the exact example:

Fade theFade = new Fade();

Label theLabel1 = new Label("Some test text");
Label theLabel2 = new Label("Some test text");
Label theLabel3 = new Label("Some test text");
Button theButton = new Button("Some button");

etc, etc.... (copied exactly from "Associating Effects with GWT
components" documentation)

It works just fine. Perfect.

I change one line:

// Fade theFade = new Fade();
Move theFade = new Move(200,0);

I was kind of hoping to see all four elements move 200 pixels to the
right, but only the first one moved (the one that had the
setEffectElement rather than the three that had addEffectElement).

Sorry, am I missing something obvious? Using GWT 2.04, GWT FX v0.5.0
MS 1.jar.

I would appreciate any guidance.

John

nesredep

unread,
Aug 15, 2010, 7:12:12 PM8/15/10
to GWT-FX
Forgive the top posting. Just didn't see any way to delete my
previous post. I gather GWT-FX isn't really supported any more so I
made do with GWT's built-in animation. Not as clean and easy, but it
works. Thanks.

Adam T

unread,
Aug 17, 2010, 7:05:20 AM8/17/10
to GWT-FX
Hi John, It should work, and as it doesn't I took a quick look.

Seems I didn't get round to finishing off the functionality for
multiple elements in effects based on NMorphStyle (of which Move is
one) - see new Issue 149 (http://code.google.com/p/gwt-fx/issues/
detail?id=149)

I've made some changes and uploaded into the repository - I don't have
time for full regression testing now, but I get it working in the
example that you mention plus also for the case where there is only
one element, so I'm reasonably confident it shouldn't have broken
anything else.

If you are comfortably dragging the repository, drag away, if not,
drop me a mail and I can stitch a Jar file together for you,

Cheers,

Adam
Reply all
Reply to author
Forward
0 new messages