Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>In this case, where different regions of the page each have a Presenter, you could use the approach suggested by David Chandler of the GWT team:</p> <p><a href="http://groups.google.com/group/google-web-toolkit/browse_thread/thread/2812e1b15a2a98a6/8c82d629b7a48e56?lnk=gst&amp;q=EastActivityMapper#8c82d629b7a48e56" rel="nofollow">http://groups.google.com/group/google-web-toolkit/browse_thread/thread/2812e1b15a2a98a6/8c82d629b7a48e56?lnk=gst&amp;q=EastActivityMapper#8c82d629b7a48e56</a></p> <p>You should read the post, but in summary, you would do something like this:</p> <pre><code>WestActivityMapper westActivityMapper = new WestActivityMapper(); WestActivityManager westActivityManager = new WestActivityManager(westActivityMapper, eventBus); westActivityManager.setDisplay(westPanel); EastActivityMapper EastActivityMapper = new EastActivityMapper(); EastActivityManager eastActivityManager = new EastActivityManager(eastActivityMapper, eventBus); EastActivityManager.setDisplay(eastPanel); dockLayoutPanel.addWest(westWidget, 50); dockLayoutPanel.addEast(eastWidget, 50); RootLayoutPanel.get().add(dockLayoutPanel); </code></pre> <p>The west activity mapper would be responsible for displaying your Tree, and the east mapper would contain the body of your application.</p> <p>We are using this approach to display a list of items in our west docked panel (not a tree, but close enough) which then updates what is displayed in the body of our app. When a user selects an item from the list we trigger a new Place event, and include the list item's id as the Place Token, so that the user can use the back button. However, you could also use the EventBus as you pointed out.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload