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.

What is the Editable Data Model?

Data editable model
0
Posted

What is the Editable Data Model?

0

EditableGridDataModel is a widely used implementation. It was developed especially for the EditableGrid. Sample below shows how you can instantiate it. //create a new grid EditableGrid grid = new EditableGrid( new String[]{“First Name”,”Surname”}, new Class[]{LabelCell.class, LabelCell.class} ); The sample illustrates how put data in the model. Note that “data” in this context means a two-dimension array of abstract objects. In common case Objects can be not only strings but numbers, dates and even other GWT widgets. And it’s a reason data models are not serializable. This sample constructs a model that doesn’t allow lazy loading of data with AJAX. You can change the data programmatically but you still have to worry about view and model synchronization in this case.

Related Questions

What is your question?

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

Experts123