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

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

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

TextArea.setValue介绍

暂无

代码示例

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

/**
 * Constructs a TextArea with given caption and value.
 *
 * @param caption
 *            the caption for the field
 * @param value
 *            the value for the field, not {@code null}
 */
public TextArea(String caption, String value) {
  this(caption);
  setValue(value);
}

代码示例来源:origin: org.opennms.features/jmxconfiggenerator.webui

/**
 * Sets the content of the {@linkplain #configTextArea}.
 * 
 * @param newConfigContent The new configuration content.
 */
public void setConfigContent(String newConfigContent) {
  configTextArea.setValue(newConfigContent);
}

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

@Override
public void setValue(String value) {
  super.setValue((value == null) ? "" : value);
}

代码示例来源:origin: org.opennms.features/vaadin-jmxconfiggenerator

/**
 * Sets the content of the {@linkplain #configTextArea}.
 * 
 * @param newConfigContent The new configuration content.
 */
public void setConfigContent(String newConfigContent) {
  configContent = newConfigContent;
  if (newConfigContent.split("\n").length >= Config.CONFIG_SNIPPET_MAX_LINES) {
    configTextArea.setValue("The generated configuration snippet is too long to show here. Please download the files and edit/view with the editor of choice.");
  } else {
    configTextArea.setValue(newConfigContent);
  }
}

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

@Override
public void setValue(Object newValue) throws ReadOnlyException, ConversionException {
  rawText.setValue(newValue);
  processXml(newValue);
}

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

public void setValue(String value) {
  this.field.setValue(value);
  updateFloatingLabelPosition(value);
}

代码示例来源:origin: org.jsimpledb/jsimpledb-vaadin

private void selectSort(SortKeyContainer.SortKey sortKey, boolean reverse) {
  if (sortKey == null)
    return;
  this.exprField.setValue(sortKey.getExpression(this.session, null, reverse));          // TODO: starting point
  this.showObjects();
}

代码示例来源:origin: io.permazen/permazen-vaadin

private void selectSort(SortKeyContainer.SortKey sortKey, boolean reverse) {
  if (sortKey == null)
    return;
  this.exprField.setValue(sortKey.getExpression(this.session, null, reverse));          // TODO: starting point
  this.showObjects();
}

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

public void updateFromWidgetsDefinitionElement(WidgetsDefinitionElement widgetsDefinitionElement) {
  String marshall = definitionLoader.marshall(widgetsDefinitionElement);
  rawText.setValue(marshall);
  refreshPreview(widgetsDefinitionElement);
}

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

@Override
protected void setValue(Object value) throws MException {
  ((TextArea)getComponentEditor()).setValue(MCast.toString(value));
}

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

public void windowClose(CloseEvent e) 
{
  if(policyAssociationBusinessStreamSearchWindow.getBusinessStream() != null)
  {
    NewPolicyWindow.this.linkedEntity.setValue
      (policyAssociationBusinessStreamSearchWindow.getBusinessStream().toString());
    NewPolicyWindow.this.associatedEntityId 
      = NewPolicyWindow.this.policyAssociationBusinessStreamSearchWindow.getBusinessStream().getId();
  }
}

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

public void windowClose(CloseEvent e) 
  {
    if(policyAssociationMappingSearchWindow.getMappingConfiguration() != null)
    {
      NewPolicyWindow.this.linkedEntity.setValue
        (policyAssociationMappingSearchWindow.getMappingConfiguration().toStringLite());
      NewPolicyWindow.this.associatedEntityId 
        = NewPolicyWindow.this.policyAssociationMappingSearchWindow.getMappingConfiguration().getId();
    }
  }
});

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

public void windowClose(CloseEvent e) 
  {
    if(policyAssociationFlowSearchWindow.getFlow() != null)
    {
      NewPolicyWindow.this.linkedEntity.setValue
        (policyAssociationFlowSearchWindow.getFlow().toString());
      NewPolicyWindow.this.associatedEntityId 
        = NewPolicyWindow.this.policyAssociationFlowSearchWindow.getFlow().getId();
    }
  }
});

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

public void windowClose(CloseEvent e) 
  {
    if(policyAssociationModuleSearchWindow.getModule() != null)
    {
      NewPolicyWindow.this.linkedEntity.setValue
        (policyAssociationModuleSearchWindow.getModule().toString());
      NewPolicyWindow.this.associatedEntityId 
        = NewPolicyWindow.this.policyAssociationModuleSearchWindow.getModule().getId();
    }
  }
});

代码示例来源:origin: uk.q3c.krail/krail

@Override
protected void doBuild(ViewChangeBusMessage busMessage) {
  super.doBuild(busMessage);
  reportArea = new TextArea();
  //        reportArea.setEnabled(false);
  reportArea.setSizeFull();
  reportArea.setValue(masterSitemap.getReport());
  setCentreCell(reportArea);
  setColumnWidths(1f, 4f, 1f);
  setRowHeights(1f, 10f, 1f);
}

代码示例来源:origin: KrailOrg/krail

@Override
protected void doBuild() {
  super.doBuild();
  reportArea = new TextArea();
  //        reportArea.setEnabled(false);
  reportArea.setSizeFull();
  reportArea.setValue(masterSitemap.getReport());
  setCentreCell(reportArea);
  setColumnWidths(1f, 4f, 1f);
  setRowHeights(1f, 10f, 1f);
}

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

private void populateValuesOfTarget(final Target target) {
  resetComponents();
  this.controllerId = target.getControllerId();
  editTarget = Boolean.TRUE;
  controllerIDTextField.setValue(target.getControllerId());
  controllerIDTextField.setEnabled(Boolean.FALSE);
  nameTextField.setValue(target.getName());
  nameTextField.setRequired(true);
  descTextArea.setValue(target.getDescription());
}

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

private void populateValuesOfTarget(final Target target) {
  resetComponents();
  this.controllerId = target.getControllerId();
  editTarget = Boolean.TRUE;
  controllerIDTextField.setValue(target.getControllerId());
  controllerIDTextField.setEnabled(Boolean.FALSE);
  nameTextField.setValue(target.getName());
  nameTextField.setRequired(true);
  descTextArea.setValue(target.getDescription());
}

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

protected Item popualateKeyValue(final Object metadataCompositeKey) {
  if (metadataCompositeKey != null) {
    final Item item = metaDataGrid.getContainerDataSource().getItem(metadataCompositeKey);
    keyTextField.setValue((String) item.getItemProperty(KEY).getValue());
    valueTextArea.setValue((String) item.getItemProperty(VALUE).getValue());
    keyTextField.setEnabled(false);
    if (hasUpdatePermission()) {
      valueTextArea.setEnabled(true);
    }
    return item;
  }
  return null;
}

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

protected Item popualateKeyValue(final Object metadataCompositeKey) {
  if (metadataCompositeKey != null) {
    final Item item = metaDataGrid.getContainerDataSource().getItem(metadataCompositeKey);
    keyTextField.setValue((String) item.getItemProperty(KEY).getValue());
    valueTextArea.setValue((String) item.getItemProperty(VALUE).getValue());
    keyTextField.setEnabled(false);
    if (hasUpdatePermission()) {
      valueTextArea.setEnabled(true);
    }
    return item;
  }
  return null;
}

相关文章