The Places/Activities Framework can not know how you want to arrange widgets inside one single display area. Thus a display area is defined as AcceptsOneWidget and the widget you put in will fill the whole area. If you want two or more widgets in that display area you have to wrap them in a custom widget if its make sense or just create a FlowPanel or a VerticalPanel or a HorizontalPanel (or whatever you like to position your many widgets for that display area) and add your widgets to that wrapper. The wrapper will then fill the whole display area.
=> One activity can deal with more than one Widget but must wrap them into one container widget which does the layout.
If you have one Place and more than one display area (each with its own ActivityMapper) a place change can/will result in starting different activities depending on your ActivityMapper/display area. But its basically still 1:1 mapping per ActivityMapper...but as said you can have more than one ActivityMapper.
=> One Place starts one or zero activity per ActivityMapper (one or zero activity per display area. Zero because getActivity(Place) could return null). If you have more than one display area more than one activity will be started for one place.
-- J.
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
No comments:
Post a Comment