On 19 juil, 23:01, David Vree <[email protected]> wrote: > Brand new GWT developer here -- tasked with implementing a thin client > that will replace a rich client .NET program that used to make use of > this dockable window library: > > http://www.divelements.com/net/controls/sanddock/screenshots.aspx > > I'm currently struggling with the layout of the main window. It is > fairly standard with a nearly static header at the top, fixed height > status pane at the bottom, hideable navigation window to the left > (west) and a master/detail form in the middle, and hideable help pane > to the right (east). After some investigation and coding, it looks > like SplitLayoutPanel may be what I need, but I have questions:
Because not all panels should be resizable, I'd rather go with a DockLayoutPanel; eventually mixing it with a SplitLayoutPanel: DockLayoutPanel for north+south, SplitLayoutPanel in the center with resizable east and west regions. > 1) How do I make it so that it properly reacts to window resize > events? Do I have to code this myself? Is there a better way? Layout panels should handle it automatically, provided you add them to the RootLayoutPanel. > 2) Can I get rid of the splitters below the header and above the > status bar. If this is not possible, should I just use a > VerticlePanel and put the SplitLayoutPanel in the middle? See above: DockLayoutPanel w/ nested SplitLayoutPanel. > 3) How do I make it so that the "master" pane can be dragged and > dropped below the "navigation" pane. This is an important capability > for users because it allows them to maximize the detail area while > keeping the "master" items visible. GWT doesn't provide anything for drag'n'drop, though there are 3rd- party libs, such as gwt-dnd. But, honestly, it'd probably be a big amount of work to plug this into a LayoutPanel... If you can, replace DnD with some other interaction: for instance, some kind of "maximize" button to move the "master" to the west in one click. > 4) What kind of pane should I use for the hidable panes? If you really want "click to hide" (or the reverse, "click to pin"), you'd probably rather use a LayoutPanel which has a setWidgetVisible method, than a DockLayoutPanel or SplitLayoutPanel (but of course you'd lose the splitters). It might be possible to extend SplitLayoutPanel though and play directly with the LayoutData associated with widgets. > How do I animate the showing/hiding? AnimatedLayout (LayoutPanel, DockLayoutPanel, SplitLayoutPanel) panels have an animate(int) method. -- 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.
