Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Every subapp must configure its own content connector. The 

Javadoc resource link
0info.magnolia.flickr.simplebrowser.app.contentconnector.ConfiguredSimpleFlickrBrowserContentConnectorDefinition
rangeHigherVersion1.1
classNameinfo.magnolia.flickr.simplebrowser.app.contentconnector.ConfiguredSimpleFlickrBrowserContentConnectorDefinition
renderTypeasynchronous
 class extends 
Javadoc resource link
0info.magnolia.ui.vaadin.integration.contentconnector.ConfiguredContentConnectorDefinition
rangeHigherVersion5.65
classNameinfo.magnolia.ui.vaadin.integration.contentconnector.ConfiguredContentConnectorDefinition
renderTypeasynchronous
 and
 sets the implementation class 
Javadoc
0info.magnolia.flickr.simplebrowser.app.contentconnector.SimpleFlickrBrowserContentConnectorImpl
.

...

Javadoc resource link
0info.magnolia.ui.contentapp.contentconnector.ContentConnectorProvider
rangeHigherVersion5.65
classNameinfo.magnolia.ui.contentapp.contentconnector.ContentConnectorProvider
renderTypeasynchronous
 creates and provides only one instance of  SimpleFlickrBrowserContentConnector  in our subapp. The content connector can be injected into any class used within the subapp. You can cast it to your own type if required.

...

We use the same container for the tree view and the thumbnail view. In this case it would be sufficient to implement just the base interface Container. However, we also implement 

Javadoc resource link
0info.magnolia.ui.workbench.container.Refreshable
rangeHigherVersion5.65
classNameinfo.magnolia.ui.workbench.container.Refreshable
renderTypeasynchronous
 so we can use the refresh mechanism in the Magnolia workbench. We also need the Container.Indexed subinterface for lazy loading.

...

In the presenter class, extend 

Javadoc resource link
0info.magnolia.ui.workbench.thumbnail.ThumbnailPresenter
rangeHigherVersion5.65
classNameinfo.magnolia.ui.workbench.thumbnail.ThumbnailPresenter
renderTypeasynchronous
 and initialize the container:

...