, ?
ListStore.
, CommentModel, BaseModel ListStore Comment Comment.
final ListStore<Commentmodel> commentStore = new ListStore<Commentmodel>();
commentService.getAllComment(new AsyncCallback<List<Commentmodel>>() {
@Override
public void onFailure(Throwable caught) {
lbError.setText("data loading failure");
}
@Override
public void onSuccess(List<Commentmodel> result) {
commentStore.add(result);
}
});
commentService AsyncService.
, , CommentModel
CommentModel newData = new CommentModel('user name', 'message','date');
.
commentStore.add(newData);
, .
, . onSuccess , . , , .