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

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

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

CheckBox.getValue介绍

暂无

代码示例

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

@Override
public void writeDesign(Element design, DesignContext designContext) {
  super.writeDesign(design, designContext);
  CheckBox def = designContext.getDefaultInstance(this);
  Attributes attr = design.attributes();
  DesignAttributeHandler.writeAttribute("checked", attr, getValue(),
      def.getValue(), Boolean.class, designContext);
}

代码示例来源:origin: org.opencms/opencms-core

/**
 * Checks the overwrite existing setting.<p>
 *
 * @return <code>true</code> if overwrite existing is set
 */
private boolean isOverwriteExisting() {
  return (m_overwriteExisting != null) && m_overwriteExisting.getValue().booleanValue();
}

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

/**
 * @return the duration of the duration field or null, when the user has
 *         configured to use the global value.
 */
public Duration getValue() {
  if (checkBox.getValue()) {
    return durationField.getDuration();
  }
  return null;
}

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

/**
 * @return the duration of the duration field or null, when the user has
 *         configured to use the global value.
 */
public Duration getValue() {
  if (checkBox.getValue()) {
    return durationField.getDuration();
  }
  return null;
}

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

@Override
protected Object getValue() throws MException {
  return ((CheckBox)getComponentEditor()).getValue();
}

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

private void checkBoxChange() {
  durationField.setEnabled(checkBox.getValue());
  if (!checkBox.getValue()) {
    durationField.setDuration(globalDuration);
  }
  notifyConfigurationChanged();
}

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

private void checkBoxChange() {
  durationField.setEnabled(checkBox.getValue());
  if (!checkBox.getValue()) {
    durationField.setDuration(globalDuration);
  }
  notifyConfigurationChanged();
}

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

private void updateEnabledState() {
    nonEditableField.setEnabled(selectedField.getValue());
    editableField.setEnabled(selectedField.getValue());
    editableField.setComponentError(null);
  }
}

代码示例来源:origin: org.opencms/opencms-core

/**
 * Toggles the replace option.<p>
 */
void updateReplace() {
  boolean replace = m_replace.getValue().booleanValue();
  m_replacePattern.setVisible(replace);
  m_workProject.setVisible(replace);
}

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

/**
 * Is called when the new value should be saved after the save button has
 * been clicked
 */
@Override
public void saveOrUpdate() {
  if (checkBox.getValue() && dsTable.getValue() != null) {
    updateTargetFilterQueryDS(tfqId, (Long) dsTable.getValue());
  } else if (!checkBox.getValue()) {
    updateTargetFilterQueryDS(tfqId, null);
  }
}

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

/**
 * Is called when the new value should be saved after the save button has
 * been clicked
 */
@Override
public void saveOrUpdate() {
  if (checkBox.getValue() && dsTable.getValue() != null) {
    updateTargetFilterQueryDS(tfqId, (Long) dsTable.getValue());
  } else if (!checkBox.getValue()) {
    updateTargetFilterQueryDS(tfqId, null);
  }
}

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

private void updateCheckBox(CheckBox checkBox, Object rowId, boolean enabled) {
  checkBox.setValue(enabled);
  Collection<Field<?>> columns = getFieldsForItemId(rowId);
  columns.remove(checkBox);
  enableFields(columns, checkBox.getValue());
}

代码示例来源:origin: org.opennms.features.vaadin-dashlets/dashlet-charts

@Override
  public void buttonClick(Button.ClickEvent event) {
    m_dashletSpec.getParameters().put("maximizeWidth", (m_maximizeWidth.getValue() ? "true" : "false"));
    m_dashletSpec.getParameters().put("maximizeHeight", (m_maximizeHeight.getValue() ? "true" : "false"));
    m_dashletSpec.getParameters().put("chart", String.valueOf(m_chartSelect.getValue()));
    WallboardProvider.getInstance().save();
    ((WallboardConfigUI) getUI()).notifyMessage("Data saved", "Properties");
    close();
  }
});

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

@Override
protected Item updateItemInGrid(final String key) {
  final Item item = super.updateItemInGrid(key);
  item.getItemProperty(TARGET_VISIBLE).setValue(targetVisibleField.getValue());
  return item;
}

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

@Override
protected Item updateItemInGrid(final String key) {
  final Item item = super.updateItemInGrid(key);
  item.getItemProperty(TARGET_VISIBLE).setValue(targetVisibleField.getValue());
  return item;
}

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

protected static boolean isMandatoryModuleType(final Item item) {
  final CheckBox mandatoryCheckBox = (CheckBox) item.getItemProperty(getDistTypeMandatory()).getValue();
  return mandatoryCheckBox.getValue();
}

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

@Override
protected SoftwareModuleMetadata updateMetadata(final SoftwareModule entity, final String key, final String value) {
  final SoftwareModuleMetadata swMetadata = softwareModuleManagement
      .updateMetaData(entityFactory.softwareModuleMetadata().update(entity.getId(), key).value(value)
          .targetVisible(targetVisibleField.getValue()));
  setSelectedEntity(swMetadata.getSoftwareModule());
  return swMetadata;
}

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

@Override
protected SoftwareModuleMetadata updateMetadata(final SoftwareModule entity, final String key, final String value) {
  final SoftwareModuleMetadata swMetadata = softwareModuleManagement
      .updateMetaData(entityFactory.softwareModuleMetadata().update(entity.getId(), key).value(value)
          .targetVisible(targetVisibleField.getValue()));
  setSelectedEntity(swMetadata.getSoftwareModule());
  return swMetadata;
}

代码示例来源:origin: nz.co.senanque/madura-workflow-vaadin

public void uploadFinished(FinishedEvent event) {
    Attachment attachment = receiver.getWrapper().getCurrentAttachment();
    attachment.setProcessInstanceId(pid);
    attachment.setComment((String)comment.getValue());
    attachment.setProtectedDocument((boolean)checkbox.getValue());
    m_workflowDAO.addAttachment(attachment);
    close();
  }
});

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

@Override
protected SoftwareModuleMetadata createMetadata(final SoftwareModule entity, final String key, final String value) {
  final SoftwareModuleMetadata swMetadata = softwareModuleManagement
      .createMetaData(entityFactory.softwareModuleMetadata().create(entity.getId()).key(key).value(value)
          .targetVisible(targetVisibleField.getValue()));
  setSelectedEntity(swMetadata.getSoftwareModule());
  return swMetadata;
}

相关文章