Search code examples
gwtuibinder

GWT DeckLayoutPanel UiBinder code


I was trying to specify usage of a DeckLayoutPanel (not Dock...) in UiBinder using <g:layer> tags, but that didn't seem to work. Does anyone have proper usage of this component when using inside .ui.xml?

I don't see it documented in javadoc at least or anywhere on the web for that matter.


Solution

  • <g:layer> tags are only for LayoutPanel. DeckLayoutPanel manages the layout of its children, so you use it just like any HasWidgets: add child widgets as direct child elements.

    You can see it used in the MobileWebApp sample's Tablet UI.