As it has already been reported, an error similar to this appears when using
ComboBoxes.  Probably it is an interference in the handling of mouse events
between the cell and the button  of the editing widget (the combo or the
spinner).


dperez wrote:
> 
> Hi all,
> 
> I have tried to embed a spinner as a cell editor in a table.
> 
> It works ok, by using keyboard.  But when I click an arrow of the spinner
> I get this error:
> 
> ERROR: qx.event.handler.EventHandler[27]: Failed to handle mouse event:
> TypeError - this.getParent() has no properties
> 
> The call stack includes these functions:
> 
> qx.ui.core.Widget.getTopLevelWidget()
> qx.event.handler.DragAndDropHandler._handleMouseDown()
> qx.event.handler.DragAndDropHandler.handleMouseEvent()
> qx.event.handler.EventHandler._onmouseevent_post()
> 
> 
> Here is how a create the Spinner:
> 
> myTable.getTableColumnModel().setCellEditorFactory(myColumn, {
>       createCellEditor: function(cellInfo) {
>               var ctrl = new qx.ui.form.Spinner(0, 3, 10);
>               with (ctrl) {
>                       _textfield.setStyleProperty('textAlign', 'right');
>                       
> setBorder(qx.renderer.border.BorderPresets.getInstance().none);
>               }
>               return ctrl;
>       },
>       getCellEditorValue: function(ctrl) {
>               return ctrl.getValue();
>       }
> });
> 
> Any help will be greatly appreciated.
> 
> Regards,
> David
> 

-- 
View this message in context: 
http://www.nabble.com/Spinner-as-a-cell-editor-in-a-table-tf2150999.html#a5943039
Sent from the qooxdoo-devel forum at Nabble.com.


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to