Adicionando o listener / manipulador de redimensionamento ao VerticalPanel no GWT
Como eu adiciono um ouvinte / manipulador a um VerticalPanel de tal forma que ele é acionado quando o VerticalPanel muda de tamanho?
Eu basicamente tentei o seguinte:
VerticalPanel myPanel = new VerticalPanel();
//... code to add child widgets that may change the size of the parent vertical panel ...
myPanel.addHandler(new ResizeHandler() {
public void onResize(final ResizeEvent event) {
//... code to handle resize of vertical panel ...
}
}, ResizeEvent.getType() );
mas o manipulador não é acionado.