Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>There are three ways to do that:</p> <ol> <li><p>Use a <strong>CompositeCell</strong> with an <strong>ClickTextCell</strong> and a <strong>SelectionCell</strong> and override the render method of the CompositeCell to render only the ClickTextCell.<br> When the ClickTextCell is clicked it will automatically call the <strong>ValueUpdater</strong>.<br> In the update function of the ValueUpdater you have to set some boolean value in your ClickTextCell. Then you have to check in the render method of your CompositeCell this boolean value and if it is set, then render the SelectionCell instead of the ClickTextCell. </p></li> <li><p>Create a custom cell extending AbstractEditableCell for example (see this <a href="http://code.google.com/webtoolkit/doc/latest/DevGuideUiCustomCells.html" rel="nofollow">tutorial</a>) and implement the functionality yourself. You can check out the code for <a href="http://www.google.com/codesearch#A1edwVHBClQ/user/src/com/google/gwt/cell/client/SelectionCell.java&amp;q=SelectionCell%20package%3ahttp://google-web-toolkit%5C.googlecode%5C.com" rel="nofollow">SelectionCell</a> and <a href="http://www.google.com/codesearch#A1edwVHBClQ/user/src/com/google/gwt/cell/client/EditTextCell.java" rel="nofollow">EditTextCell</a> and copy most of it. Basically you have to have some kind of a flag which is set when the cell gets focus. In the render method you have to either display a dropdownlist or just a text. </p></li> <li><p>Extend either EditTextCell or SelectionCell and implement the missing functionality. The advantage is that you can probably re-use some of the render methods and you don't have to write the complete render code yourself. </p></li> </ol>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload