Hi,
I've been involved on change HorizontalSplitPanel ( deprecated ) to
new SplitLayoutPanel.
With older HorizontalSplitPanel I could take advantage controlling
resize process on px with some class and isResize() method:
/**
* HorizontalSplitPanelExtended
*
* @author jllort
*
*/
public class HorizontalSplitPanelExtended extends Composite implements
HasMouseMoveHandlers, HasMouseUpHandlers {
private HorizontalSplitPanel horizontalSplitPanel;
/**
* HorizontalSplitPanelExtendend
*
* @param handler
*/
public HorizontalSplitPanelExtended() {
super();
horizontalSplitPanel = new HorizontalSplitPanel();
horizontalSplitPanel.setStyleName("okm-HorizontalSplitPanel");
initWidget(horizontalSplitPanel);
}
/**
* getSplitPanel
*
* @return
*/
public HorizontalSplitPanel getSplitPanel()
{
return horizontalSplitPanel;
}
@Override
public HandlerRegistration addMouseMoveHandler(MouseMoveHandler
handler) {
return addDomHandler(handler, MouseMoveEvent.getType());
}
@Override
public HandlerRegistration addMouseUpHandler(MouseUpHandler handler)
{
return addDomHandler(handler, MouseUpEvent.getType());
}
}
But on new implementation seems quite difficult doing it, I've been
trying extending SplitLayoutPanel, overwrite onBrowserEvent, added
some addMouseDownHandler etc... seems the problems comes with new
implementation on Event.setCapture(getElement()); :
public void onBrowserEvent(Event event) {
switch (event.getTypeInt()) {
case Event.ONMOUSEDOWN:
mouseDown = true;
offset = getEventPosition(event) - getAbsolutePosition();
Event.setCapture(getElement());
And some event are not propagated
Any idea will be apreciated on how controlling resize process.
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en.