I want to add an icon to the splitter to hide/open left panel like the
vertical splitter http://code.google.com/webtoolkit/doc/latest/DevGuideUiPanels.html
Do I use SplitLayoutPanel or LayoutPanel?
Sorry for my stupid question.
On Jul 20, 5:19 am, Thomas Broyer <t.bro...@gmail.com> wrote:
> On 19 juil, 23:01, David Vree <david.h.v...@gmail.com> 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
> > likeSplitLayoutPanelmay 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 aSplitLayoutPanel:
> DockLayoutPanel for north+south,SplitLayoutPanelin 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 theSplitLayoutPanelin the middle?
>
> See above: DockLayoutPanel w/ nestedSplitLayoutPanel.
>
> > 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 orSplitLayoutPanel(but of course
> you'd lose the splitters). It might be possible to extendSplitLayoutPanelthough 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 google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
No comments:
Post a Comment