I try to integrate a GWT widget into a smartGWT GUI. This widget includes a GTW Tree, and it supports
some events such as DragsStart, DragOver, Drop, Focus and Blur.
NavigatorTree tree = new NavigatorTree();
com.smartgwt.client.widgets.layout.HLayout hl=new com.smartgwt.client.widgets.layout.HLayout();
com.smartgwt.client.widgets.Canvas can=new com.smartgwt.client.widgets.Canvas();
can.setSize("300px", "300px");
can.addChild(tree.tree);
hl.addChild(can);
/*
com.google.gwt.user.client.ui.HorizontalPanel hl=new com.google.gwt.user.client.ui.HorizontalPanel();
hl.add(tree.tree);
*/
RootPanel.get("main").add(hl);
When a include the Tree into a GWT HorizontalPanel and I include it in the RootPanel everything is OK.
When I include it in a samrtGWT HLayout and a Canvas, they represent the Tree and I can navigate over the tree,
and I recognise the Focus and Blur but some events such as DragStart are not recognised.
How can I support Drag&Drop events in GWT widgets that are included in smartgwt GUIs?
Thans,
Miguel
some events such as DragsStart, DragOver, Drop, Focus and Blur.
NavigatorTree tree = new NavigatorTree();
com.smartgwt.client.widgets.layout.HLayout hl=new com.smartgwt.client.widgets.layout.HLayout();
com.smartgwt.client.widgets.Canvas can=new com.smartgwt.client.widgets.Canvas();
can.setSize("300px", "300px");
can.addChild(tree.tree);
hl.addChild(can);
/*
com.google.gwt.user.client.ui.HorizontalPanel hl=new com.google.gwt.user.client.ui.HorizontalPanel();
hl.add(tree.tree);
*/
RootPanel.get("main").add(hl);
When a include the Tree into a GWT HorizontalPanel and I include it in the RootPanel everything is OK.
When I include it in a samrtGWT HLayout and a Canvas, they represent the Tree and I can navigate over the tree,
and I recognise the Focus and Blur but some events such as DragStart are not recognised.
How can I support Drag&Drop events in GWT widgets that are included in smartgwt GUIs?
Thans,
Miguel
Comment