Vhann
unread,Aug 10, 2011, 10:51:24 AM8/10/11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Google Web Toolkit
Hi,
I am trying to adapt a slideshow to the web using GWT (it is going to
be a long go considering my rate of progress, but it's okay, I enjoy
getting back to Java).
Basically, the problem I encounter is that a Slide must be able to
catch click events (to start the next SlideItem's Animation or to
notify the SlideShow that it is done and to Transition into the next
Slide). A Slide must also be a LayoutPanel (because SlideItems can be
located anywhere on the Slide).
Now, from what I know there is two ways I can do this: either extend
Composite or extending ComplexPanel (the latter seems the best choice
as it already implements most methods I need). I have tried both, but
I obviously fail to understand how to properly extend these classes.
Now, I haven't found much documentation on how to extend ComplexPanel
(neither on the Javadoc nor on the Internet nor by searching this
newsgroup). I decompressed the gwt-user.jar and looked at the
implementations of LayoutPanel, FocusPanel and various other "full
class" Panel classes.
If I understand everything correctly, I basically need to use
setElement() in my "Slide extends ComplexPanel"'s constructor. If I am
right (if that actually is the correct way to go to do what I want),
should I use Document.get().createDivElement() (as in
LayoutPanel.java) or DOM.createDiv() (as in SimplePanel.java)?
I have no knowledge of ECMAScript (Javascript), but I do know a few
things about HTML and CSS. From what I understand the DOM is used to
handle events and since I want FocusPanel fonctionality, that might be
what I need.
Well, sorry for that long and confusing message; I am trying to give
as much useful informations as possible.
Thanks in advance.
Regards,
Vhann