Home » Eclipse Projects » NatTable » Problem with my Custom Editors with Nattable 1.0.1
Problem with my Custom Editors with Nattable 1.0.1 [message #1067881] |
Thu, 11 July 2013 05:19 |
SD Khan Messages: 63 Registered: May 2013 |
Member |
|
|
Hi,
I have implemented my own custom editors using these classes of nattable "ICellEditor interface", the "AbstractCellEditor" and the "AbstractDialogCellEditor",
Now it was working fine with Nattable0.9.0, As i updated the code to Nattable1.0.0, it got break, there were some compile time issue because of new methods are introduced in ICellEditor, and arguments of existing methods are changed in other classes, but i solved them, now i can run the code successfully, but with some editors i am getting abnormal behavior like one particular case is i have a class which is implementing ICellEditor interface, as new methods are introduced , and i have provide implementation of some of them but i am getting runtime exceptions.
So i am concerned about, is there any doc or notes through which i can get idea about the new changed architecture of editors api in nattabe1.0.1 (I have already seen bugzilla tickets on that).
Thanks,
SD Khan
|
|
| | | | |
Re: Problem with my Custom Editors with Nattable 1.0.1 [message #1069722 is a reply to message #1069703] |
Tue, 16 July 2013 12:57 |
SD Khan Messages: 63 Registered: May 2013 |
Member |
|
|
Actually, previously i have extended my own AbstractEditorDialog which was extended directly from the "TextCellEditor", i have attached button on the cell, to open editor and get in the inline mode on single click, now after the update, it's not getting in the inline mode and dialog gets open on the single click.
Previous:- MyEditor->MyDialogCellEditor->TextCellEditor
(Text cell editor is from the nattable core)
now i think i should do this:-
Currently:- MyEditor->MyDialogCellEditor->AbstractCellEditor
Creating "MyDialogCellEditor" will provide the button facility to open the dialog while "MyEditor" will be any editor dialog, so in order to get inline on single click and editor dialog on the button click on cell, any one will simply extend from "MyEditorDialog",
Is this right?, please correct me or suggest if there is something better.
Note:- just for info, i have created an editor which is directly extended from AbstractCellEditor, like MyEditorDialog->AbstractCellEditor, now "MyEditorDialog", contains these both features i.e inline and singleclick, but now looking for this one
"MyEditor->MyDialogCellEditor->AbstractCellEditor" to have more flexibility.
Thanks,
Safdar Khan
|
|
| | |
Re: Problem with my Custom Editors with Nattable 1.0.1 [message #1072602 is a reply to message #1069819] |
Tue, 23 July 2013 06:15 |
SD Khan Messages: 63 Registered: May 2013 |
Member |
|
|
Hi!
Almost all of my problems with editors are solved as i have migrated from Nattable0.9.0 to Nattable1.0.1, But still there is an issue,
Actually, i am opening different editors for different cells of a single column, like this:- configReg.registerConfigAttribute(EditConfigAttributes.CELL_EDITOR, new AdvanceFilterTableCellEditor(filterTableBuilder, parentTable), DisplayMode.NORMAL, AdvanceFilterTableModel.OPERATOR_COLUMN_NAME);
Now this class "AdvanceFilterTableCellEditor" is implementing "ICellEditor" and when its "activateCell(...)" is called it returns the respective editor at runtime depending upon that particular cell.
It was working fine previously but now it's getting problems like editor open in the wrong direction , getting wrong edit control in the newly introduced "EditController".
So, now i have editors which are working fine when i use them for all the cells of single column, now i am trying to assign different editors on different cells of the single column for which i have written a wrapper class implementing ICellEditor and return different editors at run time, but as described facing problems,
so, can you please comment on this, may be i am using it wrongly or provide any suggestion to make it work with this changed editor api.
Thanks,
Safdar Khan
|
|
| | |
Goto Forum:
Current Time: Tue Sep 24 15:20:27 GMT 2024
Powered by FUDForum. Page generated in 0.04299 seconds
|