I'm looking for a few pointers/tips on how to integrate the
ContentFlow Javascript library into my GWT application.

For reference and clarification ( I see there are a number of
ContentFlow-like libs running around) here, the link to the specific
js library I have in mind - http://www.jacksasylum.eu/ContentFlow/index.php.

I have read the JSNI documents and understand the basic idea, but my
lack of javascript specific knowledge is causing me grief.

More specifically, here's what I would like to do:

1) Create a GWT ContentFlow widget that effectively proxies the
ContentFlow Javascript object such that I can create 1 or more GWT
ContentFlow instances like this:

ContentFlow myContentFlow = new ContentFlow();

2) The Javascript ContentFlow object can take one or more
ContentFlowOptions that govern its behavior and funcitonality, thus
I'd like to be able to set/get these options with typical getter/
setter methods on my GWT ContentFlow widget like this:

ContentFlow myContentFlow = new ContentFlow();

ContentFlowOptions options = myContentFlow.getOptions(); // getter

... modify the options or create new ones

myContentFlow.setOptions(options); // setter

Note, ContentFlowOptions also appears to be a name/value pair
abstraction found in the ContentFlow js library.

3) Create and add 1 or more ContentFlowItem, where an item is a simple
abstraction taking an image url, label, and caption

myContentFlow.add(new ContentFlowItem("images/image1.png", "my-
caption1", "my-label1");
myContentFlow.add(new ContentFlowItem("images/image2.png", "my-
caption2", "my-label2");
myContentFlow.add(new ContentFlowItem("images/image3.png", "my-
caption3", "my-label3");
...

4) Register for "selection" events. When an ContentFlowItem is
selected, have it callback to my GWT application with information
regarding which item was selected.

5) Set the Style of my GWT ContentFlow abstractions for controlling
the widgets look-n-feel.

In a nutshell, I'd like to turn the ContentFlow js library of objects/
methods into a full-fledge general purpose GWT widget that can be used
for a variety of purposes.

Lastly, in the event that someone has already gone thru this work, I'd
much appreciate getting access to the resulting work and if not, I'd
be happy to share the results of the effort with the rest of the
community once I've got a working example.

Thanks in advance for your thoughts and help.

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

Reply via email to