Search in sources :

Example 1 with EntityListProvider

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;
}
Also used : ActionNode(com.codename1.rad.nodes.ActionNode)

Aggregations

ActionNode (com.codename1.rad.nodes.ActionNode)1