Hej Til!

How is the QxListView going?

Kent

On Wed, 2006-04-12 at 09:41 +0200, Til Schneider wrote:
> Kent Olsson schrieb:
> > One question: Can you add QxCheckBox, QxComboBox, QxRadioButton,
> > QxTextField, QxPassword etc to a column?
> 
> Yes. The new table uses so-called renderers for creating the widgets 
> shown as table cells. A renderer is nothing else than a factory method 
> that creates the widget combined with an update method that updates a 
> previously created widget.
> 
> Using your own renderer you can place every widget you like in a table cell.
> 
> Just call:
>    table.getTableColumnModel().setCellRenderer(2, myrenderer);
> 
> Also you may add your own CellEditorFactory, which creates the widget to 
> use for editing.
> 
> I would propose the last way (CellEditorFactory) for complex widgets 
> like QxComboBox, QxTextField or QxPassword. Because then your table data 
> is shown by fast QxText widgets. And only when the user double-clicks a 
> cell (or hits Enter or F2 on a cell) the complex (and slow) editor 
> widget is shown. This also looks better: A table full of comboboxes is 
> not very nice-looking, a combobox apearing when the cell is edited is 
> much nicer.
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by xPML, a groundbreaking scripting language
> that extends applications into web and mobile media. Attend the live webcast
> and join the prime developer group breaking into this new coding territory!
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
> _______________________________________________
> Qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel



-------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to