Env: GWTRC2 Safari Mac OS X.
UI binding:
{{{
<g:LayoutPanel ui:field="layoutPanel">
<g:layer>
<myclient:MyEditor ui:field='myEditor'/>
</g:layer>
<g:layer>
<myclient:MyLister ui:field='myLister'/>
</g:layer>
</g:LayoutPanel>
}}}
These two custom widgets sit right on top of each other visually. The
reason is I want them to "replace" each other. Since MyLister is added
last, I can trigger events from it. When I fire a certain event from
MyLister, MyLister hides via setVisible(false) and MyEditor displays
via setVisible(true) However, because MyEditor is a layer "below"
MyLister, all events are hidden. E.g. onClick in widget in MyEditor
does not fire.
Is there any way (declaratively or programmatically) to swap the
positions of the layers so that the visible layer is "on top" and can
respond to events?
sfm
--
http://groups.google.com/group/Google-Web-Toolkit-Contributors