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

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

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

CheckBox.setCaption介绍

暂无

代码示例

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

/**
 * Creates a new checkbox with a set caption.
 *
 * @param caption
 *            the Checkbox caption.
 */
public CheckBox(String caption) {
  this();
  setCaption(caption);
}

代码示例来源:origin: org.aperteworkflow/gui-commons

public void setMaximumRangeCaption(String caption) {
  maxRangeCheckBox.setCaption(caption);
}

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

private CheckBox createTargetVisibleField() {
  final CheckBox checkBox = new CheckBox();
  checkBox.setId(UIComponentIdProvider.METADATA_TARGET_VISIBLE_ID);
  checkBox.setCaption(i18n.getMessage("metadata.targetvisible"));
  checkBox.addValueChangeListener(this::onCheckBoxChange);
  return checkBox;
}

代码示例来源:origin: org.aperteworkflow/gui-commons

public static CheckBox checkBox(String caption) {
  CheckBox cb = new CheckBox();
  if (caption != null) {
    cb.setCaption(caption);
  }
  cb.setValue(false);
  cb.setImmediate(true);
  cb.setWidth(100, Sizeable.UNITS_PERCENTAGE);
  return cb;
}

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

private CheckBox createTargetVisibleField() {
  final CheckBox checkBox = new CheckBox();
  checkBox.setId(UIComponentIdProvider.METADATA_TARGET_VISIBLE_ID);
  checkBox.setCaption(i18n.getMessage("metadata.targetvisible"));
  checkBox.addValueChangeListener(this::onCheckBoxChange);
  return checkBox;
}

代码示例来源:origin: org.aperteworkflow/editor

private void initComponent() {
  roleNameLabel = new Label(queueRolePermission.getRoleName());
  browsingAllowedCheckbox = new CheckBox();
  browsingAllowedCheckbox.setCaption("browsing allowed");
  browsingAllowedCheckbox.addListener(new Button.ClickListener() {
    @Override
    public void buttonClick(Button.ClickEvent clickEvent) {
      if (Boolean.TRUE.equals(queueRolePermission.isBrowsingAllowed())) {
        queueRolePermission.setBrowsingAllowed(false);
      } else {
        queueRolePermission.setBrowsingAllowed(true); // we handle null as well here
      }
    }
  });
  
  if (Boolean.TRUE.equals(queueRolePermission.isBrowsingAllowed())) {
    browsingAllowedCheckbox.setValue(true);
  }
  deleteButton = new Button();
  deleteButton.setCaption("  X  ");
  deleteButton.setStyleName(BaseTheme.BUTTON_LINK);
  deleteButton.addListener(new Button.ClickListener() {
    @Override
    public void buttonClick(Button.ClickEvent event) {
      handler.removeQueueRolePermissionBox(QueueRolePermissionBox.this);
    }
  });
}

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

m_maximizeWidth.setCaption("Maximize width");
m_maximizeWidth.setDescription("Maximize width");
m_maximizeHeight.setCaption("Maximize height");
m_maximizeHeight.setDescription("Maximize height");

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

autoSaveField.setCaption(messages.getMainMessage("PresentationsEditor.autoSave"));
autoSaveField.setValue(BooleanUtils.isTrue(presentation.getAutoSave()));
root.addComponent(autoSaveField);
defaultField.setCaption(messages.getMainMessage("PresentationsEditor.default"));
defaultField.setValue(presentation.getId().equals(component.getDefaultPresentationId()));
root.addComponent(defaultField);
  globalField.setCaption(messages.getMainMessage("PresentationsEditor.global"));
  globalField.setValue(!isNew && presentation.getUser() == null);
  root.addComponent(globalField);

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

selectedField.setCaption("selected");
selectedField.addValueChangeListener(new Property.ValueChangeListener() {
  @Override

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

authenticateField.setCaption("Authentication");
authenticateField.setId("authenticate");
authenticateField.addValueChangeListener(new Property.ValueChangeListener() {

相关文章