Saurabh Tripathi
unread,Sep 2, 2012, 5:43:43 AM9/2/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to google-we...@googlegroups.com
Hi all,
I am stuck here with a requirement which is mentioned as follow:
1)A table where one or more (for now just one) column need to have different widgets in editable cell.
for example: Class is Plant having property: 'name' and access method: 'String getName()';
Now if(name.equals("true") || name.equals("false"){
---> Render CheckBox with respective checked value
}else if(name.equals("~")) {
-----> Render ListBox with some predefined items
}else {
----->just render the String.
}
2)The cell where we render just the String should be Editable (i.e on click textbox appear for edit), other than this other cells should be non-editable i.e cells for checkbox and listbox should be non editable,
You may find this requirement very unusual and I agree it is because here we dealing with raw xml/text kind of metadata.
Anyway I have given a lot of effort over this, but I am in a catch 22 situation if somehow I am able to attain 1 condition than I am have editable problem, if somehow I make that up, the valueupdater doesn't seem to work properly........................................
At last I am thinking that may be 'CellTable' API was never there for such kind of requirement. So FlexTable could be the answer.
Even if it is so there would be a lot of work for me then like -> implementing sorting(while click on header), pagination etc, it would be great if
some open source library is already there for it.
Thanks in advance