Hmm we exactly do this and it works. We have an application DockLayoutPanel with header (north), side menu (left), footer (south) and a content area (center). In this center content area we often put another DockLayoutPanel which may have a north element containing a toolbar, a list of selectable items in the left and its own content area in its center. Works like expected in all browsers.
Do you have any problems with using hierarchical DockLayoutPanels? On 15 Nov., 21:18, zixzigma <[email protected]> wrote: > Thank You. > You are correct, the results wont be necessarily the same, only > "similar". > > FlowPanel/SimplePanel end up as "div" elements. > the same is true with DockLayoutPanel, at the end they translate to > "div" elements. > so it is possible to apply CSS styles to achieve "Similar" results. > > To put this in perspective, here is what i am trying to achieve: > > MyViewUiBinder: > > <ui:style> > .left { float: left;} > .right {float: right;} > </ui:style> > > <g:HTMLPanel> > <g:Label ui:field="title" /> > <g:SimplePanel ui:field="toolbarPanel" /> > <g:Label ui:field="warningMessage" /> > <g:FlowPanel> > <g:FlowPanel styleName="{style.left}"> > <g:SimplePanel ui:field="leftPanel" /> > </g:FlowPanel> > <g:FlowPanel styleName="{style.right}"> > <g:SimplePanel ui:field="rightPanel" / > > </g:FlowPanel> > <g:SimplePanel ui:field="centerPanel" /> > </g:FlowPanel> > </g:HTMLPanel> > > This could have been a DockLayoutPanel, however I am using a top > level DockLayoutPanel already for my overall application layout, > and this View i am talking about here with all the left/right/top > panels, are actually in the <g:center> slot of application main > DockLayoutPanel. > > i tried <g:DockPanel>, but i think its either deprecated, since it > result in "table/tr/td" elements, and is not considered a good > practice. > > i am not sure if this is the best way to do it ? > > what i'm trying to achieve is to programmatically (through Presenters) > add > "views" in the g:center part of application DockLayoutPanel. and those > Views that are inserted have their own top/left/right panels. > > Thank You -- 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.
