use of com.codename1.rad.models.EntityListProvider in project CodeRAD by shannah.
the class EntityListViewBuilder method provider.
public EntityListViewBuilder provider(@Inject EntityListProvider provider) {
ActionNode refreshAction = UI.action();
ActionNode loadMoreAction = UI.action();
getContext().getController().addActionListener(refreshAction, provider);
getContext().getController().addActionListener(loadMoreAction, provider);
builder.refreshAction(refreshAction).loadMoreAction(loadMoreAction);
return this;
}
Aggregations