I use the GWT CellList widget to render Cell elements.
Is there a way to register a render complete or render done event to execute stuff after rendering was done?
I use the GWT CellList widget to render Cell elements.
Is there a way to register a render complete or render done event to execute stuff after rendering was done?
Referring GWT CellList Widget Example
You can use your own custom Cell extending AbstractCell (As used ContactCell in the example).
There you will need to override the render method:
@Override public void render(Context context, ContactInfo value, SafeHtmlBuilder sb) {
(//other codes)
(// put your logic after render here at the last)
}
I had the same question and taking a look into the code I have found a possible solution.
In the
HasDataPresenter
there are the code which renders the cells into the view (methodresolvePendingState(JsArrayInteger modifiedRows)
:The method view.replaceAllChildren(....) calls to render cell's render method, and when it has finished a ValueChangeEvent() is fired.
So in your cellList you should do something like: