The MindFusion Forums
Grid and Spreadsheet Components >> Java Swing >> Can I use standard swing table cell editor and renderer in spreadsheet?
https://mindfusion.eu/Forum/YaBB.pl?num=1504597575

Message started by john on Sep 5th, 2017 at 7:46am

Title: Can I use standard swing table cell editor and renderer in spreadsheet?
Post by john on Sep 5th, 2017 at 7:46am
as title

thanks.

Title: Re: Can I use standard swing table cell editor and renderer in spreadsheet?
Post by Meppy on Sep 5th, 2017 at 8:30am
Hi,

I'm afraid this is not possible. We are currently using JTextArea as a cell editor. You can use a custom cell editor by listening to the inplaceEditStarting event:

[code]workbookView.addViewListener(new WorkbookViewAdapter() {
     @Override
     public void inplaceEditStarting(InplaceEditValidationEvent e) {
           e.setEditControl(myEditor);
     }
}[/code]
If there are some some specific features from the swing editors you would like to see in the spreadsheet, we could try implementing them in the existing editor.

Regards,
Meppy

Title: Re: Can I use standard swing table cell editor and renderer in spreadsheet?
Post by john on Sep 7th, 2017 at 6:28am
We are looking for editor with check box, radio button, combo box (include editable combo box, and multiple selection), date chooser, etc.

Also the cell can be rendered with its component, not just text value.

We can foresee a custom rendering is needed on specific data in a cell.

Title: Re: Can I use standard swing table cell editor and renderer in spreadsheet?
Post by Meppy on Sep 8th, 2017 at 6:54am
Hi,

Unfortunately support for components embedded in spreadsheet cells is not currently available, but is planned for a future release.

Regards,
Meppy

The MindFusion Forums » Powered by YaBB 2.6.11!
YaBB Forum Software © 2000-2024. All Rights Reserved.