I am trying to attach a mouse listener to a ResizeBar but have not been successful.
I want to catch the user trying to resize the VLayout but I want to catch the event before the resize is finished. In other words I want a addDragResizeStartHandler but for some reason I can not get it to work.
I have been able to add a Resize handler:
layout.addResizedHandler(new ResizedHandler() {
@Override
public void onResized(ResizedEvent event) {
Log.debug("Resize handler");
}
});
But that is not what I want.
Is there a way to either listen to mouseDown on a ResizeBar or attach a listener to catch the user trying to resize the VLayout (before it has been resized).
Code:
final VLayout layout = new VLayout(); layout.setAlign(Alignment.CENTER); layout.setOverflow(Overflow.SCROLL); layout.setShowResizeBar(true); layout.setVisible(true);
I have been able to add a Resize handler:
layout.addResizedHandler(new ResizedHandler() {
@Override
public void onResized(ResizedEvent event) {
Log.debug("Resize handler");
}
});
But that is not what I want.
Code:
layout.addDragResizeStartHandler(new DragResizeStartHandler() { @Override public void onDragResizeStart(DragResizeStartEvent event) { //I cant get this handler to fire } });
Comment