Created
July 20, 2017 02:24
-
-
Save BenDol/748129d6f56029904020cd998cc627dc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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