How do I make GWT cells in a CellTable always show as editable?
By default, a GWT CellTable renders certain widgets (e.g. EditTextCell and DatePickerCell) to look like they're non-editable until you click on them. After you click on them, they're displayed as editable. When you click off,开发者_运维问答 they go back to looking like they're read-only. I want all the fields to always appear editable by default, whether they're selected or not. Is there a way to do this?
BTW: I'm using GWT 2.1.
Here is the sample best fit your needs Cell Sampler (showcase)
You should use TextInputCell
Well you can use TextInputCell
instead of EditTextCell
so text cells will look like form fields.
Extending TextInputCell
with some copy-paste from DatePickerCell
should do the trick for date cells.
精彩评论