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

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

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

TextArea.setNullRepresentation介绍

暂无

代码示例

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

public ProcessDataWidgetsDefinitionEditor() {
  hierarchyEditor = new ProcessDataHierarchyEditor(this);
  rawText.setNullRepresentation("");
  rawText.setWidth("100%");
  rawText.setHeight("400px");
  TabSheet tabSheet = new TabSheet();
  tabSheet.setWidth("100%");
  tabSheet.addTab(hierarchyEditor, getLocalizedMessage("hierarchy-editor"));
  tabSheet.addTab(getRawTextEditorTab(), getLocalizedMessage("source-xml"));
  tabSheet.addTab(processPreview, getLocalizedMessage("preview"));
  tabSheet.setSelectedTab(hierarchyEditor);
  setCompositionRoot(tabSheet);
}

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

public ScriptCodeEditor() {
  VerticalLayout compositionRoot = new VerticalLayout();
  setCompositionRoot(compositionRoot);
  code = new TextArea();
  code.setWidth("100%");
  code.setNullRepresentation("");
  compositionRoot.addComponent(code);
  HorizontalLayout hl = new HorizontalLayout();
  Button save = new Button(getLocalizedMessage("script.editor.save"));
  save.addListener(new Button.ClickListener() {
    @Override
    public void buttonClick(Button.ClickEvent event) {
      validateAndSave();
    }
  });
  hl.addComponent(save);
  compositionRoot.addComponent(hl);
}

代码示例来源:origin: org.activiti/activiti-explorer

descriptionTextArea.setNullRepresentation("");
descriptionTextArea.setWidth(100, UNITS_PERCENTAGE);
descriptionTextArea.setValue(task.getDescription());

代码示例来源:origin: org.opennms.features/vaadin-snmp-events-and-metrics

eventDescr.setRows(10);
eventDescr.setRequired(true);
eventDescr.setNullRepresentation("");
eventLayout.addComponent(eventDescr);
logMsgContent.setRows(10);
logMsgContent.setRequired(true);
logMsgContent.setNullRepresentation("");
eventLayout.addComponent(logMsgContent);
eventDescr.setRows(10);
eventDescr.setRequired(true);
eventDescr.setNullRepresentation("");
eventLayout.addComponent(eventDescr);
eventOperInstruct.setNullRepresentation("");
eventLayout.addComponent(eventOperInstruct);

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

protected void createRequiredComponents() {
  colorLabel = new LabelBuilder().name(i18n.getMessage("label.choose.tag.color")).buildLabel();
  colorLabel.addStyleName(SPUIStyleDefinitions.COLOR_LABEL_STYLE);
  tagName = new TextFieldBuilder(getTagNameSize()).caption(i18n.getMessage("textfield.name"))
      .styleName(ValoTheme.TEXTFIELD_TINY + " " + SPUIDefinitions.TAG_NAME).required(true, i18n)
      .prompt(i18n.getMessage("textfield.name")).immediate(true).id(getTagNameId()).buildTextComponent();
  tagDesc = new TextAreaBuilder(getTagDescSize()).caption(i18n.getMessage("textfield.description"))
      .styleName(ValoTheme.TEXTFIELD_TINY + " " + SPUIDefinitions.TAG_DESC)
      .prompt(i18n.getMessage("textfield.description")).id(getTagDescId()).buildTextComponent();
  tagDesc.setNullRepresentation("");
  tagColorPreviewBtn = new Button();
  tagColorPreviewBtn.setId(UIComponentIdProvider.TAG_COLOR_PREVIEW_ID);
  getPreviewButtonColor(ColorPickerConstants.DEFAULT_COLOR);
  tagColorPreviewBtn.setStyleName(TAG_DYNAMIC_STYLE);
}

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

protected void createRequiredComponents() {
  colorLabel = new LabelBuilder().name(i18n.getMessage("label.choose.tag.color")).buildLabel();
  colorLabel.addStyleName(SPUIStyleDefinitions.COLOR_LABEL_STYLE);
  tagName = new TextFieldBuilder(getTagNameSize()).caption(i18n.getMessage("textfield.name"))
      .styleName(ValoTheme.TEXTFIELD_TINY + " " + SPUIDefinitions.TAG_NAME).required(true, i18n)
      .prompt(i18n.getMessage("textfield.name")).immediate(true).id(getTagNameId()).buildTextComponent();
  tagDesc = new TextAreaBuilder(getTagDescSize()).caption(i18n.getMessage("textfield.description"))
      .styleName(ValoTheme.TEXTFIELD_TINY + " " + SPUIDefinitions.TAG_DESC)
      .prompt(i18n.getMessage("textfield.description")).id(getTagDescId()).buildTextComponent();
  tagDesc.setNullRepresentation("");
  tagColorPreviewBtn = new Button();
  tagColorPreviewBtn.setId(UIComponentIdProvider.TAG_COLOR_PREVIEW_ID);
  getPreviewButtonColor(ColorPickerConstants.DEFAULT_COLOR);
  tagColorPreviewBtn.setStyleName(TAG_DYNAMIC_STYLE);
}

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

textField.addValidator(validator);
textField.setNullSettingAllowed(true);
textField.setNullRepresentation("");
textField.setValidationVisible(false);
textField.setRows(4);

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

textField.addValidator(validator);
textField.setNullSettingAllowed(true);
textField.setNullRepresentation("");
textField.setValidationVisible(false);
textField.setRows(1);

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

tf5.setWidth("95%");
tf5.setRows(4);
tf5.setNullRepresentation("");
layout.addComponent(tf5, 1, 5, 3, 5);

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

tf5.setWidth("95%");
tf5.setRows(3);
tf5.setNullRepresentation("");
layout.addComponent(tf5, 1, 7, 3, 7);

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

tf5.setWidth("95%");
tf5.setRows(3);
tf5.setNullRepresentation("");
layout.addComponent(tf5, 1, 7, 3, 7);

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

descriptionField.setWidth("65%");
descriptionField.setRows(5);
descriptionField.setNullRepresentation("");

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

this.comment.setWidth("90%");
this.comment.setValidationVisible(false);
this.comment.setNullRepresentation("");
this.comment.setPropertyDataSource(startupControlItem.getItemProperty("comment"));

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

descriptionField.setWidth("65%");
descriptionField.setRows(5);
descriptionField.setNullRepresentation("");

相关文章