create the other activity. To embed the sub-activity's view in your
view, just make sure your parent activity view is holding something
that implements AcceptsOneWidget.
e.g.,
public class ParentActivity extends AbstractActivity {
public interface View extends IsWidget {
AcceptsOneWidget childActivityDisplayArea();
}
private final View view;
private final ChildActivity childActivity = new ChildActivity(...);
// use GIN here instead
//...
public void start(AcceptsOneWidget panel, EventBus eventBus) {
// ...
childActivity.start(view.childActivityDisplayArea(), eventBus);
}
On Fri, May 27, 2011 at 12:01 PM, Issam <boualem.issam@gmail.com> wrote:
> That's it.
> I'm looking how to do it
> It means how to do this call from parent presenter :)
>
> On 27 mai, 17:47, Nicolas Antoniazzi <nicolas.antonia...@gmail.com>
> wrote:
>> Maybe that I did not really understand, but you cannot instantiate "sub
>> presenters" directly from uiBinder.
>> You have to instantiate it from the parent one, and the child presenter has
>> to instantiate its own view.
>>
>> 2011/5/27 Issam <boualem.is...@gmail.com>
>>
>>
>>
>>
>>
>>
>>
>> > Sorry but I'm not talking about replacing a presenter
>>
>> > On 27 mai, 16:04, Patrick Julien <pjul...@gmail.com> wrote:
>> > > If you're talking about replacing the presenter, use PlaceController
>> > > to trigger a place refresh. See the samples on how they use a "shell"
>> > > as place holders for presenters/views
>>
>> > > On Fri, May 27, 2011 at 9:49 AM, Issam <boualem.is...@gmail.com> wrote:
>> > > > Hi all,
>>
>> > > > I have some difficulties to manage many presenters.For example, I have
>> > > > a principal presenter and of course its appropriate view.So what I
>> > > > want to do is to call another presenter (which is attached to another
>> > > > view )from the principle one. How to do it ?
>> > > > I have already define in my uibinder file the second view that I want
>> > > > to integrate to the principal one ;
>>
>> > > > Any suggestions are welcome
>>
>> > > > Thanks
>>
>> > > > --
>> > > > 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 athttp://
>> > groups.google.com/group/google-web-toolkit?hl=en.
>>
>> > --
>> > 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.
>
> --
> 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.
>
>
--
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