Wednesday, February 11, 2015

Re: Widget Updating Content Of Another Panel

No, it's added to the main layout and then exposed through a getter(), which is passed into activityManager.setDisplay(template.getAppPanel());  Those are the only references to it.


On Tuesday, February 10, 2015 at 2:56:19 PM UTC-6, Juan Pablo Gardella wrote:
Do you use 'appPanel' in different places? an element can have only one parent, adding an element to a different parent automatically removes it from its previous parent.

On 10 February 2015 at 17:44, Nicholas Smith <nick....@gmail.com> wrote:
My bug was due to having introduced a second instance of my template, so when calling to update content it as on the second instance, not the one actually being displayed.

I tried switching from DockLayoutPanel to HeaderPanel as suggested by Vassilis, but I can't get the content area to be scrollable.  Here's the two versions of code, and screenshots that show the issue. Does anyone know what the problem is?

Here's the two versions of my code.  First up, this uses DockLayoutPanel, and renders correctly.


See screenshot: http://snag.gy/v9pgY.jpg

And here's the version with HeaderPanel, the center content is not scrollable.


And the screenshot: http://snag.gy/jFB3P.jpg





On Tuesday, February 10, 2015 at 2:36:53 AM UTC-6, Vassilis Virvilis wrote:
Furthermore I would suggest the HeaderPanel (terrible name - but very cool widget) instead of the DockLayoutPanel so your header and footer can be __naturally__ sized without having to specify exact size.

    Vassilis

On Tue, Feb 10, 2015 at 12:55 AM, Jens <jens.ne...@gmail.com> wrote:
Put a SimplePanel in your DockLayoutPanel and then set the ActionBar into that SimplePanel using SimplePanel.setWidget().

In your setActionBar() method call SimplePanel.setWidget(newBar) to replace the old ActionBar with the new one.

So you basically put a container widget into your DockLayoutPanel and then update the contents of the container widget through your setter method.


-- J.

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-we...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.



--
Vassilis Virvilis

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-we...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment