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

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

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

TextArea.addValidator介绍

暂无

代码示例

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

@Override
public void addValidator(Validator validator) {
  rawText.addValidator(validator);
}

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

public void buttonClick(ClickEvent event) 
  tf1.addValidator(new NonZeroLengthStringValidator("You must enter a comment!"));
  tf1.setRows(5);
  tf1.setReadOnly(false);

代码示例来源:origin: org.eclipse.hawkbit/hawkbit-ui

targetFilterQueryCombo.removeValidator(nullValidator);
addComponent(targetFilterQuery, 1, 2);
targetFilterQuery.addValidator(nullValidator);

代码示例来源:origin: eclipse/hawkbit

targetFilterQueryCombo.removeValidator(nullValidator);
addComponent(targetFilterQuery, 1, 2);
targetFilterQuery.addValidator(nullValidator);

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

public void buttonClick(ClickEvent event) 
  tf1.addValidator(new NonZeroLengthStringValidator("You must enter a comment!"));
  tf1.setRows(5);
  tf1.setReadOnly(false);

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

valueLabel.setSizeUndefined();
TextArea textField = new TextArea();
textField.addValidator(validator);
textField.setNullSettingAllowed(true);
textField.setNullRepresentation("");

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

valueLabel.setSizeUndefined();
TextArea textField = new TextArea();
textField.addValidator(validator);
textField.setNullSettingAllowed(true);
textField.setNullRepresentation("");

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

descriptionLabel.setSizeUndefined();
this.roleDescription = new TextArea();
this.roleDescription.addValidator(new StringLengthValidator(
    "A description must be entered.",
    1, null, false));

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

comments.setRows(4);
comments.setRequired(true);
comments.addValidator(new StringLengthValidator(
    "You must supply a comment!", 1, 2048, false));
comments.setValidationVisible(false);

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

tf1.addValidator(new NonZeroLengthStringValidator("You must enter a comment!"));
tf1.setRows(5);
tf1.setReadOnly(false);

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

commentTextArea.addValidator(new NonZeroLengthStringValidator("You must enter a comment!"));
commentTextArea.setRows(5);
commentTextArea.setReadOnly(false);

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

tf1.addValidator(new NonZeroLengthStringValidator("You must enter a comment!"));
tf1.setRows(5);
tf1.setReadOnly(false);

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

tf1.addValidator(new NonZeroLengthStringValidator("You must enter a comment!"));
tf1.setRows(5);
tf1.setReadOnly(false);

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

descriptionLabel.setSizeUndefined();
this.description = new TextArea();
this.description.addValidator(new StringLengthValidator(
    "A description must be entered.",
    1, null, false));

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

descriptionLabel.setSizeUndefined();
this.roleDescription = new TextArea();
this.roleDescription.addValidator(new StringLengthValidator(
    "A description must be entered.",
    1, null, false));

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

descriptionField.addValidator(new StringLengthValidator(
  "The description must not be blank!",
  1, 256, true));

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

descriptionLabel.setSizeUndefined();
this.description = new TextArea();
this.description.addValidator(new StringLengthValidator(
    "A description must be entered.",
    1, null, false));

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

this.comment = new TextArea();
this.comment.setRows(3);
this.comment.addValidator(new StringLengthValidator(
    "A name must be entered.",
    1, null, false));

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

this.descriptionTextArea.setWidth(300, Sizeable.Unit.PIXELS);
this.descriptionTextArea.setRows(4);
this.descriptionTextArea.addValidator(new StringLengthValidator(
    "A description must be entered.",
    1, null, true));

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

this.descriptionTextArea.setWidth(300, Unit.PIXELS);
this.descriptionTextArea.setRows(4);
this.descriptionTextArea.addValidator(new StringLengthValidator(
  "A description must be entered.",
  1, null, true));

相关文章