King_V
unread,Nov 8, 2011, 10:25:23 AM11/8/11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Google Web Toolkit
All,
Ok, I realize DockLayoutPanel is a full-screen sort of Panel, that
REQUIRES an explicit size for every widget attached.
So, given that, I'm wondering if what I want to do is even possible.
I'm trying to go for an application-like look. Essentially, the
screen will be in three sections:
1) The north section will have a MenuBar - no surprise there.
2) The center section will be the "guts" of the GUI.
3) The south section will be something like a Windows Taskbar. Right
now this is a FlowPanel.
The center section will basically have various items in it, and they
can be minimized. When this happens, I'd like to add them to the
taskbar at the bottom.
Now, here's the thing - if a lot items in the main section get
minimized, the FlowPanel will get more and more items added to it, and
eventually be wider than the screen.
Naturally, the FlowPanel would expand under normal circumstances to
form a new row - but since its size has been explicitly set, this does
not happen.
Now, my initial instinct is to somehow try and determine whether or
not the FlowPanel needs to vertically resize (how do I determine
this? Can it be determined?) and then use
DockLayoutPanel.setWidgetSize to perform the resizing "manually".
Is this possible?
Is there a simpler way to get the behavior I want?
Thanks.