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

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

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

TextArea.setHeight介绍

暂无

代码示例

代码示例来源:origin: com.vaadin/vaadin-server

@Override
public void setHeight(String height) {
  TextArea.this.setHeight(height);
}

代码示例来源:origin: de.mhus.lib/mhu-lib-vaadin

@Override
public Component createEditor() {
  TextArea ret = new TextArea();
  ret.setHeight("100px");
  return ret;
}

代码示例来源:origin: vaadin/material-theme-fw8

public void setRows(int rows) {
  this.rows = rows;
  this.field.setHeight(Metrics.TextArea.BASE_HEIGHT + ((rows - 1) * Metrics.TextArea.LINE_HEIGHT), Unit.PIXELS);
  this.ripple.setHeight(Metrics.TextArea.BASE_HEIGHT + ((rows - 1) * Metrics.TextArea.LINE_HEIGHT), Unit.PIXELS);
}

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

protected void initDescription() {
 TextArea descriptionField = new TextArea(i18nManager.getMessage(Messages.RELATED_CONTENT_DESCRIPTION));
 descriptionField.setWidth(100, UNITS_PERCENTAGE);
 descriptionField.setHeight(50, UNITS_PIXELS);
 form.addField("description", descriptionField);
}

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

protected void initDescription() {
 TextArea descriptionField = new TextArea(i18nManager.getMessage(Messages.RELATED_CONTENT_DESCRIPTION));
 descriptionField.setWidth(100, UNITS_PERCENTAGE);
 descriptionField.setHeight(100, UNITS_PIXELS);
 addField("description", descriptionField);
}

代码示例来源:origin: de.mhus.lib/mhu-lib-vaadin6

protected AbstractField createTextField() throws MException {
  TextArea out = new TextArea();
  out.setHeight(getElement().getConfig().getInt("height", 200),Sizeable.UNITS_PIXELS);
  return out;
}

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

private TextArea createValueTextField() {
  valueTextArea = new TextAreaBuilder(MetaData.VALUE_MAX_SIZE).caption(i18n.getMessage("textfield.value"))
      .required(true, i18n).id(UIComponentIdProvider.METADATA_VALUE_ID).buildTextComponent();
  valueTextArea.setSizeFull();
  valueTextArea.setHeight(100, Unit.PERCENTAGE);
  valueTextArea.addTextChangeListener(this::onValueChange);
  valueTextArea.setTextChangeEventMode(TextChangeEventMode.EAGER);
  return valueTextArea;
}

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

private TextArea createValueTextField() {
  valueTextArea = new TextAreaBuilder(MetaData.VALUE_MAX_SIZE).caption(i18n.getMessage("textfield.value"))
      .required(true, i18n).id(UIComponentIdProvider.METADATA_VALUE_ID).buildTextComponent();
  valueTextArea.setSizeFull();
  valueTextArea.setHeight(100, Unit.PERCENTAGE);
  valueTextArea.addTextChangeListener(this::onValueChange);
  valueTextArea.setTextChangeEventMode(TextChangeEventMode.EAGER);
  return valueTextArea;
}

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

@Override
  public Component getDetails(final RowReference rowReference) {
    // Find the bean to generate details for
    final Item item = rowReference.getItem();
    final String message = (String) item.getItemProperty(ProxyMessage.PXY_MSG_VALUE).getValue();
    final TextArea textArea = new TextArea();
    textArea.addStyleName(ValoTheme.TEXTAREA_BORDERLESS);
    textArea.addStyleName(ValoTheme.TEXTAREA_TINY);
    textArea.addStyleName("inline-icon");
    textArea.setHeight(120, Unit.PIXELS);
    textArea.setWidth(100, Unit.PERCENTAGE);
    textArea.setValue(message);
    textArea.setReadOnly(Boolean.TRUE);
    return textArea;
  }
}

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

@Override
  public Component getDetails(final RowReference rowReference) {
    // Find the bean to generate details for
    final Item item = rowReference.getItem();
    final String message = (String) item.getItemProperty(ProxyMessage.PXY_MSG_VALUE).getValue();
    final TextArea textArea = new TextArea();
    textArea.addStyleName(ValoTheme.TEXTAREA_BORDERLESS);
    textArea.addStyleName(ValoTheme.TEXTAREA_TINY);
    textArea.addStyleName("inline-icon");
    textArea.setHeight(120, Unit.PIXELS);
    textArea.setWidth(100, Unit.PERCENTAGE);
    textArea.setValue(message);
    textArea.setReadOnly(Boolean.TRUE);
    return textArea;
  }
}

代码示例来源: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.ikasan/ikasan-dashboard-jar

notesField.setWidth("500px");
notesField.setRequired(false);
notesField.setHeight("150px");
notesField.setImmediate(true);
notesField.setStyleName("coursedetailtext");

代码示例来源:origin: com.haulmont.cuba/cuba-web

textArea.setHeight(theme.get("cuba.web.ExceptionDialog.textArea.height"));
textArea.setWidth(100, Unit.PERCENTAGE);

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

this.linkedEntity.setWidth("80%");
this.linkedEntity.setValidationVisible(false);
this.linkedEntity.setHeight("60px");

相关文章