|
Re: Is it possible to use slide effect in RAP? [message #880115 is a reply to message #879890] |
Fri, 01 June 2012 13:01 |
Tim Buschtoens Messages: 396 Registered: July 2009 |
Senior Member |
|
|
Hi.
> name, IP , status, usage...). I used a TableViewer to show the search
> result, and I also used pagination. I have 2 buttons Next ans Previous
> to move among pages. The problem I'm facing is how to move automatically
> among pages with slide effect ( similar as we see photos of an album).
If i understand you correctly, then yes, i think this should be possible
as of RAP 1.5. However, i haven't tried it yet in the way you want to
use it.
The theming for composite widget supports flyIn/flyOut animations. You
need at least two tables (as two are visible at the same time during
animation) that you put in two different composites that you assign
custom variants. Make a theme contribution where you define a rule for
composites using that custom variant. (You can find all that in the
developers guide.)
The animations are called flyIn[direction] and flyOut[direction], where
[direction] can be Top, Left, Bottom and Right. They are played when the
composite is created/shown or hidden/disposed. When you change page,
change the visibility of the composite, and the animation should play.
If your tables can move in either direction (left or right) and you
don't know that beforehand, that might be problem. Let me know if you
run into this.
Greetings,
Tim
--
Tim Buschtöns
Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/
Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03481 seconds