On Mon, Aug 16, 2010 at 12:07, nexar <[email protected]> wrote:

>
> Hi
>
> I have been 'playing around' with the Demobrowser Table code in the
> Playground and now have a number of questions relating to editing of dates
> and check boxes please:
>
> 1.  In the demo code I changed the 'A Date' column to being editable.
> Although whilst it is in it's unedited state the field shows the date in
> the
> MM/DD/YY format with leading zero suppression, when I double click to edit
> the field it shows the date and time in detail e.g. Wed Nov 24 2010 + time
> +
> locale info.  What controls the editable field display?  Can I change that
> so that it shows it in MM/DD/YY format whilst editing.
>

The cell editor factory for a column creates a cell editor when editing
begins. See the link below.

>
> Are there any Date validation functions within qooxdoo along the lines of
> email or password?
>

qx.util.format.DateFormat has a parse function. To validate a date, you
could parse it, re-format it in the format you're expecting, and verify that
the result is what you were given. Not ideal, but possible.


> 2.  In the demo code I changed the Boolean field to editable.  However when
> I edited the field the check box disappeared and was replaced by the value
> 'true' or 'false' as appropriate.  So I tried to setCellEditorFactory for
> that column to qx.ui.table.celleditor.Checkbox.  As soon as I did that I
> could no longer edit that column.  What did I do wrong?
>

I think this demo should answer most of your questions about this. You're on
the right track with a cell editor factory. Click on the "JS Code" button at
the top right.
http://demo.qooxdoo.org/current/demobrowser/#table~Table_Cell_Editor.html
 <http://demo.qooxdoo.org/current/demobrowser/#table~Table_Cell_Editor.html>


>
> 3.  I am also trying to find out where in the source code is the
> cellDblClick event implemented as I want to override it.  I've looked in
> table.js and saw a reference to it there but no implementation of the
> method.
>

The cellDblClick event is redirected to the scroller. It's fired from
qx.ui.table.pane.Scroller when a dblclick event is received on the pane.
Look at Scroller.js:1499

Cheers,

Derrell
------------------------------------------------------------------------------
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to