How to dynamically update the choices in a SelectionCell using GWT?

后端 未结 1 1725
说谎
说谎 2020-12-09 10:02

I am trying to have a table that displays data that the user inputs as well as edit the data. I have figured out how to do this with text (ie, they can edit the name of some

相关标签:
1条回答
  • 2020-12-09 10:49

    Unfortunately SelectionCell stores options in a private List and there are no methods to manipulate this after you have set them in constructor.

    Fortunately, SelectionCell is a fairly simple class. Just make your own (renamed) copy and add addOption(..)/removeOption(..) methods to manipulate List<String> options.

    0 讨论(0)
提交回复
热议问题