Grandiosa
1 Jul 2008, 5:19 AM
Shouldn't this method on Component
public ModelData getModel() {
return model;
}
instead be
public ? extends ModelData getModel() {
return model;
}
I have a typed Store<MyModel> and in my tablelistener I want to get a record from the store, like this:
Record record = store.getRecord(item.getModel()); // item is selected TableItem
But this fails since the the getRecord expects a MyModel instance, so a cast is needed:
Record record = store.getRecord((MyModel)item.getModel());
public ModelData getModel() {
return model;
}
instead be
public ? extends ModelData getModel() {
return model;
}
I have a typed Store<MyModel> and in my tablelistener I want to get a record from the store, like this:
Record record = store.getRecord(item.getModel()); // item is selected TableItem
But this fails since the the getRecord expects a MyModel instance, so a cast is needed:
Record record = store.getRecord((MyModel)item.getModel());