开发者

How do I make GWT cells in a CellTable always show as editable?

开发者 https://www.devze.com 2023-02-04 20:22 出处:网络
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 ed

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消