@Override protected void onModelChanged() { super.onModelChanged(); // Since feature type uses a lambda model, it needs to be notified explicitly. featureType.modelChanged(); }
@Override protected void onModelChanged() { super.onModelChanged(); // Since typeChoice uses a lambda model, it needs to be notified explicitly. typeChoice.modelChanged(); }
@Override protected void onModelChanged() { super.onModelChanged(); // Since typeChoice uses a lambda model, it needs to be notified explicitly. typeChoice.modelChanged(); }
@Override protected void onModelChanged() { super.onModelChanged(); // Since feature type uses a lambda model, it needs to be notified explicitly. featureType.modelChanged(); }
@Override protected void onBeforeRender() { final Date date = getModelObject(); if (date != null) { dateHolder.setDate(date); isNull = false; } else if (settings.required == false) { isNull = true; } if (modelMarkedAsChanged == true) { hourOfDayDropDownChoice.modelChanged(); minuteDropDownChoice.modelChanged(); modelMarkedAsChanged = false; } super.onBeforeRender(); }
protected void onRootChoiceUpdate(final AjaxRequestTarget target) { DoubleDropDownPanel.this.childChoice.modelChanging(); target.add(DoubleDropDownPanel.this.childChoice); DoubleDropDownPanel.this.childChoice.modelChanged(); }
void setDate(final Date date) { final DateHolder dh = new DateHolder(date); filter.setYear(dh.getYear()); filter.setMonth(dh.getMonth()); yearChoice.modelChanged(); monthChoice.modelChanged(); }
@Override protected void onUpdate(AjaxRequestTarget target) { layerChoice.setChoices(new Model<ArrayList<String>>( getLayerNames(workspaceChoice.getConvertedInput()))); layerChoice.modelChanged(); target.addComponent(layerChoice); } });
@Override protected void onUpdate(AjaxRequestTarget target) { layerChoice.setChoices( new Model<ArrayList<String>>( getLayerNames(rootChoice.getConvertedInput()))); layerChoice.modelChanged(); target.add(layerChoice); } });
@Override protected void onUpdate(AjaxRequestTarget target) { layerChoice.setChoices(new Model<ArrayList<String>>( getLayerNames(workspaceChoice.getConvertedInput()))); layerChoice.modelChanged(); target.addComponent(layerChoice); } });
@Override protected void onSelectionChanged(final Integer newSelection) { for (final AddressCampaignDO addressCampaign : addressCampaignList) { if (addressCampaign.getId().equals(addressCampaignId) == true) { searchFilter.setAddressCampaign(addressCampaign); final String oldValue = searchFilter.getAddressCampaignValue(); // Is oldValue given and not "-(null)-"? if (oldValue != null && ADDRESS_CAMPAIGN_VALUE_UNDEFINED.equals(oldValue) == false) { // Check whether the campaign has the former selected value or not. boolean found = false; for (final String value : addressCampaign.getValuesArray()) { if (oldValue.equals(value) == true) { found = true; break; } } if (found == false) { // Not found, therefore set the value to null: searchFilter.setAddressCampaignValue(null); addressCampaignValueDropDownChoice.modelChanged(); } } break; } } refresh(); }
public void enableDependingWidgets(boolean flag, AjaxRequestTarget target) { downsamplestepField.setEnabled(flag); noverviewField.setEnabled(flag); subsamplealgorithmField.setEnabled(flag); extoverviewField.setEnabled(flag); retoverviewField.setEnabled(flag); target.addComponent(downsamplestepField); target.addComponent(noverviewField); target.addComponent(subsamplealgorithmField); target.addComponent(extoverviewField); target.addComponent(retoverviewField); subsamplealgorithmField.modelChanged(); downsamplestepField.modelChanged(); noverviewField.modelChanged(); extoverviewField.modelChanged(); retoverviewField.modelChanged(); } }
@Override protected void onUpdate(AjaxRequestTarget target) { requestChoice.setChoices( getOperationNames(serviceChoice.getConvertedInput())); form.getModelObject().rule.setRequest(null); requestChoice.modelChanged(); target.add(requestChoice); } });
@Override protected void onUpdate(AjaxRequestTarget target) { userChoice.setChoices(getUserNames(roleChoice.getConvertedInput())); form.getModelObject().rule.setUserName(null); userChoice.modelChanged(); target.add(userChoice); } });
@Override protected void onModelChanged() { super.onModelChanged(); // When field become invalid, Wicket stops re-rendering them. Thus we tell all of them that // their model has changes such that they clear their validation status. visitChildren(new ModelChangedVisitor(recommenderModel)); // Since toolChoice uses a lambda model, it needs to be notified explicitly. toolChoice.modelChanged(); // For new recommenders, default to auto-generation of name, for existing recommenders, // do not auto-generate name unless asked to Recommender recommender = recommenderModel.getObject(); if ( recommender.getId() == null || Objects.equals(recommender.getName(), generateName(recommender)) ) { autoGenerateNameCheckBox.setModelObject(true); autoUpdateName(null, nameField, recommenderModel.getObject()); } else { autoGenerateNameCheckBox.setModelObject(false); } }
@Override protected void onUpdate(AjaxRequestTarget target) { userChoice.setChoices(getUserNames(roleChoice.getConvertedInput())); form.getModelObject().setUserName(null); userChoice.modelChanged(); target.add(userChoice); } });
@Override protected void onUpdate(AjaxRequestTarget target) { layerChoice.setChoices( getLayerNames(workspaceChoice.getConvertedInput())); form.getModelObject().rule.setLayer(null); layerChoice.modelChanged(); target.add(layerChoice); } });
@Override public void onSubmit(AjaxRequestTarget target, Form<?> form) { String value = newKeyword.getInput(); String lang = langChoice.getInput(); String vocab = vocabTextField.getInput(); KeywordInfo keyword = new Keyword(value); if (lang != null && !"".equals(lang.trim())) { keyword.setLanguage(lang); } if (vocab != null && !"".equals(vocab.trim())) { keyword.setVocabulary(vocab); } @SuppressWarnings("unchecked") List<KeywordInfo> choiceList = (List<KeywordInfo>) choices.getChoices(); choiceList.add(keyword); choices.setChoices(choiceList); langChoice.setModelObject(null); langChoice.modelChanged(); vocabTextField.setModelObject(null); vocabTextField.modelChanged(); target.add(newKeyword); target.add(langChoice); target.add(vocabTextField); target.add(choices); } };
@Override public void onSubmit(AjaxRequestTarget target, Form form) { String value = newKeyword.getInput(); String lang = langChoice.getInput(); String vocab = vocabTextField.getInput(); KeywordInfo keyword = new Keyword(value); if (lang != null && !"".equals(lang.trim())) { keyword.setLanguage(lang); } if (vocab != null && !"".equals(vocab.trim())) { keyword.setVocabulary(vocab); } List choiceList = choices.getChoices(); choiceList.add(keyword); choices.setChoices(choiceList); langChoice.setModelObject(null); langChoice.modelChanged(); vocabTextField.setModelObject(null); vocabTextField.modelChanged(); target.addComponent(newKeyword); target.addComponent(langChoice); target.addComponent(vocabTextField); target.addComponent(choices); } };
@Override public void onClick(final AjaxRequestTarget target) { if (target != null) { form.getData().setLocation(timesheet.getLocation()); form.getData().setDescription(timesheet.getDescription()); timesheetDao.setTask(form.getData(), timesheet.getTaskId()); timesheetDao.setUser(form.getData(), timesheet.getUserId()); timesheetDao.setKost2(form.getData(), timesheet.getKost2Id()); if (form.cost2ChoicePanel != null && form.cost2ChoicePanel.getDropDownChoice() != null) { form.cost2ChoicePanel.getDropDownChoice().modelChanged(); } form.locationTextField.modelChanged(); form.descriptionArea.modelChanged(); form.userSelectPanel.markTextFieldModelAsChanged(); // updateStopDate(); form.refresh(); // modalWindow.close(target); parentPage.setResponsePage(parentPage); } } };