Yeah, sorry about that... I am working on the documentation right now
and should have more to go on in the next couple of weeks.
But, here is some high level info to get you going (if you are still
interested)
The major players are:
- The page: this is your presenter in MVP terms (the asWidget method
would return your view) or your your simple view page without MVP
where the asWidget would return *this*.
* A page is any class that implements
com.google.gwt.gwtpages.client.page.Page
* There are a few different types of base page classes (for
convienance only - not required) coming in the next release
> CompositePage: not for use with MVP but makes working with
UIBinder extremely easy
> PresenterPage: specifically for when using MVP pattern
> FlowPanelPage: not for use with MVP - extends FlowPanel
The application presenter: this is the component that takes pages and
renders them. This would contain your layout logic.
* An application presenter is any class that implements
com.google.gwt.gwtpages.client.page.ApplicationPresenter
* There are a few different types of base presenters to use - easy
to make your own though...
> CompositeApplicationPresenter: allows ability to register
multiple application presenters
> CompositeLayoutPresenter: allows ability to register
multiple application presenters that would involve switching using
RootLayoutPanel
> SimplePanelLayoutPresenter: very simple application
presenter which has not layout at all
The page loader: this is the class that is responsible for
instantiating pages and mapping a pages to page tokens (strings)
* A page loader is any class that implements:
com.google.gwt.gwtpages.client.page.loader.PageLoader
* There are a few different page loaders to deal with different
ways of loading pages
> StandardPageLoader: creates pages synchronously using
GWT.get(...);
> AsynchPageLoader: creates pages asynchronously using
GWT.gwt(...) but does this inside a GWT.runAsync
> StandardGinPageLoader: creates pages synchronously using
GWT.get(...); - automatic Gin injection... this is in the Gin add-on
> AsynchGinPageLoader: creates pages asynchronously using
GWT.gwt(...) but does this inside a GWT.runAsync - automatic Gin
injection... this is in the Gin add-on
* with the previous page loaders, there a few different ways to
register classes and your MVP presenter and page coupling is done
here. There are few different ways presenters can have views set
- single constructor parameter
- setDisplay method
- setView method
The next one is used but is not as important as, in most cases, would
not need to be modified:
The page tokenizer: this is responsible for getting data from the
history token and creating a history token from a page token and data
combination
* A page tokenizer is any class that implements:
com.google.gwt.gwtpages.client.page.parameters.Tokenizer
Joe
> >
http://code.google.com/p/gwtmarketplace/source/browse/trunk/src/hudso...