@Override public void validate() throws Validator.InvalidValueException { rawText.validate(); validateXmlSyntaxAndCorrectness(); }
commentTextArea.validate();
comments.validate();
comments.validate();
comments.validate(); targetServerComboBox.validate();
public void buttonClick(ClickEvent event) { try { tf1.validate(); } catch (InvalidValueException e) { tf1.setValidationVisible(true); return; } final IkasanAuthentication authentication = (IkasanAuthentication)VaadinService.getCurrentRequest().getWrappedSession() .getAttribute(DashboardSessionValueConstants.USER); Collection<ErrorOccurrence> items = (Collection<ErrorOccurrence>)cont.getItemIds(); ArrayList<String> uris = new ArrayList<String>(); for(ErrorOccurrence eo: items) { uris.add(eo.getUri()); } errorReportingManagementService.update(uris, tf1.getValue(), authentication.getName()); action = COMMENT; close(); } });
public void buttonClick(ClickEvent event) { try { NewBusinessStreamWindow.this.roleName.validate(); NewBusinessStreamWindow.this.roleDescription.validate(); } catch (InvalidValueException e) { NewBusinessStreamWindow.this.roleName.setValidationVisible(true); NewBusinessStreamWindow.this.roleDescription.setValidationVisible(true); return; } NewBusinessStreamWindow.this.roleName.setValidationVisible(false); NewBusinessStreamWindow.this.roleDescription.setValidationVisible(false); UI.getCurrent().removeWindow(NewBusinessStreamWindow.this); } });
tf1.validate(); tf2.validate();
tf1.validate(); tf2.validate();
FilterWindow.this.description.validate();
public void buttonClick(ClickEvent event) { try { NewRoleWindow.this.roleName.validate(); NewRoleWindow.this.roleDescription.validate(); } catch (InvalidValueException e) { NewRoleWindow.this.roleName.setValidationVisible(true); NewRoleWindow.this.roleDescription.setValidationVisible(true); return; } NewRoleWindow.this.roleName.setValidationVisible(false); NewRoleWindow.this.roleDescription.setValidationVisible(false); securityService.saveRole(role); Notification.show("Role successfully created!"); UI.getCurrent().removeWindow(NewRoleWindow.this); } });
errorMessageTextArea.validate();
comments.validate();
@Override public void buttonClick(ClickEvent event) { try { nameField.validate(); descriptionField.validate(); } catch (InvalidValueException e) { nameField.setValidationVisible(true); descriptionField.setValidationVisible(true); return; } try { binder.commit(); UI.getCurrent().getNavigator().navigateTo("emptyPanel"); nameField.setValue(""); descriptionField.setValue(""); Notification.show("New Mapping Configuration Context Successfully Created!"); saveRequiredMonitor.setSaveRequired(false); close(); } catch (CommitException e) { logger.error("An error occurred trying to save mapping configuration context!", e); Notification.show("An error occurred saving a new context! " + e.getMessage(), Type.ERROR_MESSAGE); } } });
commentTextArea.validate();
comments.validate();
public void buttonClick(ClickEvent event) { try { ServerWindow.this.name.validate(); ServerWindow.this.description.validate(); ServerWindow.this.url.validate(); ServerWindow.this.port.validate(); } catch (InvalidValueException e) { ServerWindow.this.name.setValidationVisible(true); ServerWindow.this.description.setValidationVisible(true); ServerWindow.this.url.setValidationVisible(true); ServerWindow.this.port.setValidationVisible(true); return; } ServerWindow.this.name.setValidationVisible(false); ServerWindow.this.description.setValidationVisible(false); ServerWindow.this.url.setValidationVisible(false); ServerWindow.this.port.setValidationVisible(false); topologyService.save(server); Notification.show("New Server Created!"); UI.getCurrent().removeWindow(ServerWindow.this); } });
public boolean isValid() { try { this.clientComboBox.validate(); this.typeComboBox.validate(); this.sourceContextComboBox.validate(); this.targetContextComboBox.validate(); this.descriptionTextArea.validate(); } catch (Validator.InvalidValueException e) { this.clientComboBox.setValidationVisible(true); this.typeComboBox.setValidationVisible(true); this.sourceContextComboBox.setValidationVisible(true); this.targetContextComboBox.setValidationVisible(true); this.descriptionTextArea.setValidationVisible(true); return false; } this.mappingConfiguration.setConfigurationType((ConfigurationType)this.typeComboBox.getValue()); this.mappingConfiguration.setConfigurationServiceClient((ConfigurationServiceClient) this.clientComboBox.getValue()); this.mappingConfiguration.setSourceContext((ConfigurationContext) this.sourceContextComboBox.getValue()); this.mappingConfiguration.setTargetContext((ConfigurationContext) this.targetContextComboBox.getValue()); this.mappingConfiguration.setDescription(this.descriptionTextArea.getValue()); return true; } }