Skip to content

Instantly share code, notes, and snippets.

@BenDol
Created July 20, 2017 02:24
Show Gist options
  • Save BenDol/748129d6f56029904020cd998cc627dc to your computer and use it in GitHub Desktop.
Save BenDol/748129d6f56029904020cd998cc627dc to your computer and use it in GitHub Desktop.
import errai.prototype.client.constants.EditMode;
import errai.prototype.core.client.page.PageParam;
import errai.prototype.core.client.page.PageParams;
public class ModelEditParams extends PageParams {
public PageParam<Integer> id;
public ModelEditParams(int id) {
id(id);
}
public ModelEditParams id(int id) {
return (ModelEditParams) add(new PageParam<>("id", id));
}
public ModelEditParams editMode(EditMode editMode) {
return (ModelEditParams) add(new PageParam<>("editMode", editMode));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment