How to develop a custom callback handler?
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
- My company has an IT staff in place. How can I use both my firms resources and the resources of EPS Custom Software Group to develop a needed application?
- I want to develop a custom version of DemoLinux. Where can I find the necessary instructions for making Linux bootable CDs?
- How to develop a custom callback handler?