Just wanted to throw out there, that you don't have to use the various
panels, necessarily.  It may be easier to design by just using a
flextable, or grid.

For instance,
Grid g = new Grid(5, 5);
g.setWidget(0,0, new Label("Hello"));
g.setWidget(0,1, new Button("Click"));
g.setWidget(2,4, new Label("Hi"));
... etc ...
You can put panels in grids, grids in panels, grids in grids, and so
on.  It all boils down to nested html tables once it hits the browser.


On Mar 9, 11:34 am, "[email protected]"
<[email protected]> wrote:
> Thanks thats 100% clear now.
>
> On Mar 8, 11:29 pm, Brian <[email protected]> wrote:
>
> > The panels lay their children out according to the panel's type.
> > Horizontal Panels lay out children (including other panels)
> > horizontally, etc ,you don't explicitly arrange their positions, you
> > create panel types and let the children flow inside.  You can make an
> > AbsolutePanel and set the children where you want, but this may not
> > actually be what you want, because when someone resizes the browser,
> > you would have to manually recalculate the position of the children.
>
> > The basic idea is, you start with something like a DocPanel for your
> > overall app, then add other panel typs as children of that doc panel.
> > When you're insane or done, you've got a bunch of code to control how
> > your app looks, and it all resizes nicely with the browser.
>
> > On Mar 8, 7:13 pm, "[email protected]"
>
> > <[email protected]> wrote:
> > > Can this be used to arrange the actual panels themselves?
>
> > > On Mar 8, 11:00 pm, Brian <[email protected]> wrote:
>
> > > > There are various panels that affect where children are placed.
>
> > > > These labels will be side-by-side:
> > > > HorizontalPanel hp = new HorizontalPanel();
> > > > hp.add(new Label("one"));
> > > > hp.add(new Label("two"));
>
> > > > These labels will be up and down:
> > > > VeritcalPanel vp = new VerticalPanel();
> > > > vp.add(new Label("foo"));
> > > > vp.add(new Label("bar"));
>
> > > > // put 'one two' under "foo bar", but make it run left to right:
> > > > vp.add(hp);
>
> > > > Basically, by putting things inside of panels, you eventually get the
> > > > layout you want, but it does take a lot of typing.
>
> > > > On Mar 8, 6:54 pm, "[email protected]"
>
> > > > <[email protected]> wrote:
> > > > > Hi Folks,
>
> > > > > How can I determine where panels are placed in my application?
>
> > > > > e.g.       A menu on the left and main content directly on the right
> > > > > of it.  When adding panels to my application they add directly
> > > > > underneath, is that normal?
>
> > > > > Thanks guys.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to