com.vaadin.ui.TextArea.validate()方法的使用及代码示例

x33g5p2x  于2022-01-30 转载在 其他  
字(6.2k)|赞(0)|评价(0)|浏览(114)

本文整理了Java中com.vaadin.ui.TextArea.validate()方法的一些代码示例,展示了TextArea.validate()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。TextArea.validate()方法的具体详情如下:
包路径:com.vaadin.ui.TextArea
类名称:TextArea
方法名:validate

TextArea.validate介绍

暂无

代码示例

代码示例来源:origin: com.holon-platform.vaadin7/holon-vaadin

@Override
public void validate() throws InvalidValueException {
  if (requiredIndicatorOnly) {
    super.validate(getValue());
  } else {
    super.validate();
  }
}

代码示例来源:origin: org.aperteworkflow/base-widgets

@Override
public void validate() throws Validator.InvalidValueException {
  rawText.validate();
  validateXmlSyntaxAndCorrectness();
}

代码示例来源:origin: org.ikasan/ikasan-dashboard-jar

commentTextArea.validate();

代码示例来源:origin: org.ikasan/ikasan-dashboard-jar

comments.validate();

代码示例来源:origin: org.ikasan/ikasan-dashboard-jar

comments.validate();

代码示例来源:origin: org.ikasan/ikasan-dashboard-jar

comments.validate();
targetServerComboBox.validate();

代码示例来源:origin: org.ikasan/ikasan-dashboard-jar

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();
  }
});

代码示例来源:origin: org.ikasan/ikasan-dashboard-jar

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);
  }
});

代码示例来源:origin: org.ikasan/ikasan-dashboard-jar

tf1.validate();
tf2.validate();

代码示例来源:origin: org.ikasan/ikasan-dashboard-jar

tf1.validate();
tf2.validate();

代码示例来源:origin: org.ikasan/ikasan-dashboard-jar

FilterWindow.this.description.validate();

代码示例来源:origin: org.ikasan/ikasan-dashboard-jar

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);
  }
});

代码示例来源:origin: org.ikasan/ikasan-dashboard-jar

errorMessageTextArea.validate();

代码示例来源:origin: org.ikasan/ikasan-dashboard-jar

comments.validate();

代码示例来源:origin: org.ikasan/ikasan-dashboard-jar

@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);
    }
  }
});

代码示例来源:origin: org.ikasan/ikasan-dashboard-jar

commentTextArea.validate();

代码示例来源:origin: org.ikasan/ikasan-dashboard-jar

NotificationWindow.this.body.validate();
NotificationWindow.this.subject.validate();
NotificationWindow.this.recipients.validate();
NotificationWindow.this.name.validate();
NotificationWindow.this.filterCombo.validate();

代码示例来源:origin: org.ikasan/ikasan-dashboard-jar

comments.validate();

代码示例来源:origin: org.ikasan/ikasan-dashboard-jar

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);
  }
});

代码示例来源:origin: org.ikasan/ikasan-dashboard-jar

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;
  }
}

相关文章