Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How to develop a custom callback handler?

callback Custom develop handler
0
Posted

How to develop a custom callback handler?

0

To develop a custom data model callback handler you should implement the org.gwt.advanced.client.datamodel.DataModelCallbackHandler interface. Note that “synchronization” means that your handler should load data, fill the model, update and remove rows in the persistence storage, etc. Remeber, that the model passed into the synchronize() method contains not only actual rows but also contains a list of removed rows. These rows can be obtained using the Editable.getRemovedRows() method. // get removed rows Object[][] removedRows = ((Editable) model).getRemovedRows(); // delete data from the storage // clear old information ((Editable) model).clearRemovedRows(); Don’t forget to clear history. Otherwise your handler will try to remove the same rows from the persistence storage every time when synchronization required.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.