Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What's the difference between GWT's EditTextCell and TextInputCell?

Tags:

gwt

Both cells seem to render an <input type="text"...></input>. How do they differ? What are their respective uses?

like image 579
David Avatar asked May 11 '11 10:05

David


1 Answers

EditTextCell is a special cell that can be used to edit a text. By default the cell is in normal mode and the text is displayed as non-editable html. On click the cell changes to edit mode and the text is displayed in an input. The user can edit the text inside the input.

If in edit mode a ENTER changes back to normal mode and fires any ValueUpdater. If in edit mode a ESC changes back to normal mode without firing any ValueUpdater.

On the other hand TextInputCell is a cell that ALWAYS displays the text in an input element.

To see both cells is action (columns 3 & 4): http://gwt.google.com/samples/Showcase/Showcase.html#!CwCellSampler

like image 195
Javier Ferrero Avatar answered Nov 15 '22 23:11

Javier Ferrero