List of usage examples for org.apache.wicket.util.string StringValue toInt
public final int toInt() throws StringValueConversionException
From source file:cz.zcu.kiv.eegdatabase.wui.ui.groups.role.GroupRoleRequestPage.java
License:Apache License
public GroupRoleRequestPage(PageParameters parameters) { setPageTitle(ResourceUtils.getModel("pageTitle.requestForGroupRole")); add(new ButtonPageMenu("leftMenu", prepareLeftMenu())); StringValue value = parseParameters(parameters); int groupId = value.toInt(); add(new GroupRoleRequestForm("form", new Model<GroupPermissionRequest>(new GroupPermissionRequest()), facade, getFeedback()));// w ww .ja v a 2 s . co m }
From source file:cz.zcu.kiv.eegdatabase.wui.ui.lists.form.ArtifactFormPage.java
License:Apache License
public ArtifactFormPage(PageParameters parameters) { StringValue groupParam = parameters.get(PageParametersUtils.GROUP_PARAM); StringValue artifactParam = parameters.get(DEFAULT_PARAM_ID); if (groupParam.isNull() || groupParam.isEmpty()) throw new RestartResponseAtInterceptPageException(ListArtifactDefinitionsPage.class); add(new ButtonPageMenu("leftMenu", ListsLeftPageMenu.values())); if (artifactParam.isNull() || artifactParam.isEmpty()) setupAddComponents(groupParam.toInt()); else//from ww w .j a va 2s . c o m setupEditComponents(groupParam.toInt(), artifactParam.toInt()); }
From source file:cz.zcu.kiv.eegdatabase.wui.ui.lists.form.ExperimentOptParamFormPage.java
License:Apache License
public ExperimentOptParamFormPage(PageParameters parameters) { StringValue groupParam = parameters.get(PageParametersUtils.GROUP_PARAM); StringValue experimentParam = parameters.get(DEFAULT_PARAM_ID); if (groupParam.isNull() || groupParam.isEmpty()) throw new RestartResponseAtInterceptPageException(ListExperimentOptParamPage.class); add(new ButtonPageMenu("leftMenu", ListsLeftPageMenu.values())); if (experimentParam.isNull() || experimentParam.isEmpty()) setupAddComponents(groupParam.toInt()); else// w w w . j a v a 2s.c o m setupEditComponents(groupParam.toInt(), experimentParam.toInt()); }
From source file:cz.zcu.kiv.eegdatabase.wui.ui.lists.form.FileMetadataFormPage.java
License:Apache License
public FileMetadataFormPage(PageParameters parameters) { StringValue groupParam = parameters.get(PageParametersUtils.GROUP_PARAM); StringValue fileMetadataParam = parameters.get(DEFAULT_PARAM_ID); if (groupParam.isNull() || groupParam.isEmpty()) throw new RestartResponseAtInterceptPageException(ListFileMetadataPage.class); add(new ButtonPageMenu("leftMenu", ListsLeftPageMenu.values())); if (fileMetadataParam.isNull() || fileMetadataParam.isEmpty()) setupAddComponents(groupParam.toInt()); else// w w w. j a v a2 s . c o m setupEditComponents(groupParam.toInt(), fileMetadataParam.toInt()); }
From source file:cz.zcu.kiv.eegdatabase.wui.ui.lists.form.HardwareFormPage.java
License:Apache License
public HardwareFormPage(PageParameters parameters) { StringValue groupParam = parameters.get(PageParametersUtils.GROUP_PARAM); StringValue hardwareParam = parameters.get(DEFAULT_PARAM_ID); if (groupParam.isNull() || groupParam.isEmpty()) throw new RestartResponseAtInterceptPageException(ListHardwareDefinitionsPage.class); add(new ButtonPageMenu("leftMenu", ListsLeftPageMenu.values())); if (hardwareParam.isNull() || hardwareParam.isEmpty()) setupAddComponents(groupParam.toInt()); else/*from www . ja v a 2s. c o m*/ setupEditComponents(groupParam.toInt(), hardwareParam.toInt()); }
From source file:cz.zcu.kiv.eegdatabase.wui.ui.lists.form.PersonOptParamFormPage.java
License:Apache License
public PersonOptParamFormPage(PageParameters parameters) { StringValue groupParam = parameters.get(PageParametersUtils.GROUP_PARAM); StringValue personParam = parameters.get(DEFAULT_PARAM_ID); if (groupParam.isNull() || groupParam.isEmpty()) throw new RestartResponseAtInterceptPageException(ListPersonOptParamPage.class); add(new ButtonPageMenu("leftMenu", ListsLeftPageMenu.values())); if (personParam.isNull() || personParam.isEmpty()) setupAddComponents(groupParam.toInt()); else/*from ww w . ja va 2 s.c o m*/ setupEditComponents(groupParam.toInt(), personParam.toInt()); }
From source file:cz.zcu.kiv.eegdatabase.wui.ui.lists.form.SoftwareFormPage.java
License:Apache License
public SoftwareFormPage(PageParameters parameters) { StringValue groupParam = parameters.get(PageParametersUtils.GROUP_PARAM); StringValue softwareParam = parameters.get(DEFAULT_PARAM_ID); if (groupParam.isNull() || groupParam.isEmpty()) throw new RestartResponseAtInterceptPageException(ListSoftwareDefinitionsPage.class); add(new ButtonPageMenu("leftMenu", ListsLeftPageMenu.values())); if (softwareParam.isNull() || softwareParam.isEmpty()) setupAddComponents(groupParam.toInt()); else//from w w w . ja v a 2s . co m setupEditComponents(groupParam.toInt(), softwareParam.toInt()); }
From source file:cz.zcu.kiv.eegdatabase.wui.ui.lists.form.WeatherFormPage.java
License:Apache License
public WeatherFormPage(PageParameters parameters) { StringValue groupParam = parameters.get(PageParametersUtils.GROUP_PARAM); StringValue weatherParam = parameters.get(DEFAULT_PARAM_ID); if (groupParam.isNull() || groupParam.isEmpty()) throw new RestartResponseAtInterceptPageException(ListWeatherDefinitiosPage.class); add(new ButtonPageMenu("leftMenu", ListsLeftPageMenu.values())); if (weatherParam.isNull() || weatherParam.isEmpty()) setupAddComponents(groupParam.toInt()); else//from ww w . ja v a2s .c o m setupEditComponents(groupParam.toInt(), weatherParam.toInt()); }
From source file:cz.zcu.kiv.eegdatabase.wui.ui.order.ListOrderPage.java
License:Apache License
public ListOrderPage(PageParameters parameters) { StringValue personIdParam = parameters.get(DEFAULT_PARAM_ID); if (personIdParam.isEmpty() || personIdParam.isNull()) { throw new RestartResponseAtInterceptPageException(HomePage.class); } else {/*from www .j a v a2s . co m*/ int personId = personIdParam.toInt(); setupComponents(personId, false); } }
From source file:cz.zcu.kiv.eegdatabase.wui.ui.order.OrderDetailPage.java
License:Apache License
public OrderDetailPage(PageParameters parameters) { StringValue orderIdParam = parameters.get(DEFAULT_PARAM_ID); if (orderIdParam.isEmpty() || orderIdParam.isNull()) { throw new RestartResponseAtInterceptPageException(HomePage.class); } else {//from www . j ava2 s .c o m int orderId = orderIdParam.toInt(); setupComponents(orderId); } }