gwt - Adding a resize listener to LayoutContainer -


I'm using Ext-GWT 2.0.1 and GWT 1.6.4

I have A layout container is a roulette that uses widgets is added to the rotadata (1, -1) in this container so that when they change to a height, the container changes accordingly to the height accordingly. I want to do something when the layout correspondent changes shape How can I add a listener who does this? So far I've tried:

  layoutContainer.addListener (Events. Resize, New Listener & lt; ComponentEvent & gt; () {Public void handheldEvent (Final Component Event Event) {// Do something}}  

but the handleEvent never calls.

I know that this is a very old post, but I thought that someone should meet this problem by answering. So what is wrong with the snippet, the listener type ( ComponentEvent ). With BoxComponentEvent Try, because the layout operator inherits this event from its ancestor in its box blanket.

code: < Pre> layout dialogue.adlist (resize events, new listener & lt; BoxComponentEvent & gt; () {...}

Hope this helps! < / P>


Comments

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -