Search code examples
gwtcelltable

GWT cellTable - new row handler?


I want to change some fields every time my cellTable content changes (new row, row change). Is there any predefined event/handler for that?


Solution

  • See if addRangeChangeHandler or addRowCountChangeHandler in HasRows meet your needs.

    If by "row change" you mean a change in selected row(s), you can use SelectionChangeHandler attached to a SelectionModel.

    Otherwise, you can simply call whatever method you need when you add a row or update a data provider.