Sunday, July 3, 2011

GWT-FX showing element after fade

I am fading an image out.I want to show it again after it has faded
out I have tried setting a style with opacity:1.0
and calling addStyleName on the image in the complete handler but it
does not show the image.

theFade.setEffectElement(image.getElement());
theFade.play();
theFade.addEffectCompletedHandler(new EffectCompletedHandler(){

@Override
public void onEffectCompleted(EffectCompletedEvent event) {
image.addStyleName("resetOpacity");
}

});

And here is the styleSheet

.resetOpacity{
opacity: 1.0;
visibility: visible;

}

Is the image removed from the DOM when you do a fade or something?

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate