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

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

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

CheckBox.addStyleName介绍

暂无

代码示例

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

private CheckBox enableMaintenanceWindowControl() {
  final CheckBox enableMaintenanceWindow = new CheckBox(
      getI18n().getMessage("caption.maintenancewindow.enabled"));
  enableMaintenanceWindow.setId(UIComponentIdProvider.MAINTENANCE_WINDOW_ENABLED_ID);
  enableMaintenanceWindow.addStyleName(ValoTheme.CHECKBOX_SMALL);
  enableMaintenanceWindow.addStyleName("dist-window-maintenance-window-enable");
  enableMaintenanceWindow.addValueChangeListener(event -> {
    final Boolean isMaintenanceWindowEnabled = enableMaintenanceWindow.getValue();
    maintenanceWindowLayout.setVisible(isMaintenanceWindowEnabled);
    maintenanceWindowLayout.setEnabled(isMaintenanceWindowEnabled);
    enableSaveButton(!isMaintenanceWindowEnabled);
    maintenanceWindowLayout.clearAllControls();
  });
  return enableMaintenanceWindow;
}

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

private CheckBox enableMaintenanceWindowControl() {
  final CheckBox enableMaintenanceWindow = new CheckBox(
      getI18n().getMessage("caption.maintenancewindow.enabled"));
  enableMaintenanceWindow.setId(UIComponentIdProvider.MAINTENANCE_WINDOW_ENABLED_ID);
  enableMaintenanceWindow.addStyleName(ValoTheme.CHECKBOX_SMALL);
  enableMaintenanceWindow.addStyleName("dist-window-maintenance-window-enable");
  enableMaintenanceWindow.addValueChangeListener(event -> {
    final Boolean isMaintenanceWindowEnabled = enableMaintenanceWindow.getValue();
    maintenanceWindowLayout.setVisible(isMaintenanceWindowEnabled);
    maintenanceWindowLayout.setEnabled(isMaintenanceWindowEnabled);
    enableSaveButton(!isMaintenanceWindowEnabled);
    maintenanceWindowLayout.clearAllControls();
  });
  return enableMaintenanceWindow;
}

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

private CheckBox enableMaintenanceWindowControl() {
  final CheckBox enableMaintenanceWindow = new CheckBox(
      getI18n().getMessage("caption.maintenancewindow.enabled"));
  enableMaintenanceWindow.setId(UIComponentIdProvider.MAINTENANCE_WINDOW_ENABLED_ID);
  enableMaintenanceWindow.addStyleName(ValoTheme.CHECKBOX_SMALL);
  enableMaintenanceWindow.addStyleName("dist-window-maintenance-window-enable");
  enableMaintenanceWindow.addValueChangeListener(event -> {
    final Boolean isMaintenanceWindowEnabled = enableMaintenanceWindow.getValue();
    maintenanceWindowLayout.setVisible(isMaintenanceWindowEnabled);
    maintenanceWindowLayout.setEnabled(isMaintenanceWindowEnabled);
    enableSaveButton(!isMaintenanceWindowEnabled);
    maintenanceWindowLayout.clearAllControls();
  });
  return enableMaintenanceWindow;
}

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

private CheckBox enableMaintenanceWindowControl() {
  final CheckBox enableMaintenanceWindow = new CheckBox(
      getI18n().getMessage("caption.maintenancewindow.enabled"));
  enableMaintenanceWindow.setId(UIComponentIdProvider.MAINTENANCE_WINDOW_ENABLED_ID);
  enableMaintenanceWindow.addStyleName(ValoTheme.CHECKBOX_SMALL);
  enableMaintenanceWindow.addStyleName("dist-window-maintenance-window-enable");
  enableMaintenanceWindow.addValueChangeListener(event -> {
    final Boolean isMaintenanceWindowEnabled = enableMaintenanceWindow.getValue();
    maintenanceWindowLayout.setVisible(isMaintenanceWindowEnabled);
    maintenanceWindowLayout.setEnabled(isMaintenanceWindowEnabled);
    enableSaveButton(!isMaintenanceWindowEnabled);
    maintenanceWindowLayout.clearAllControls();
  });
  return enableMaintenanceWindow;
}

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

nowCheckBox.addStyleName(ExplorerLayout.STYLE_PROCESS_DEFINITION_SUSPEND_CHOICE);
nowCheckBox.setImmediate(true);
nowCheckBox.addListener(new ClickListener() {
dateCheckBox.addStyleName(ExplorerLayout.STYLE_PROCESS_DEFINITION_SUSPEND_CHOICE);
dateCheckBox.setImmediate(true);
dateCheckBox.addListener(new ClickListener() {

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

/**
 * Create required UI components.
 */
private void createRequiredComponents() {
  distNameTextField = createTextField("textfield.name", UIComponentIdProvider.DIST_ADD_NAME,
      DistributionSet.NAME_MAX_SIZE);
  distVersionTextField = createTextField("textfield.version", UIComponentIdProvider.DIST_ADD_VERSION,
      DistributionSet.VERSION_MAX_SIZE);
  distsetTypeNameComboBox = SPUIComponentProvider.getComboBox(i18n.getMessage("label.combobox.type"), "", null,
      "", false, "", i18n.getMessage("label.combobox.type"));
  distsetTypeNameComboBox.setImmediate(true);
  distsetTypeNameComboBox.setNullSelectionAllowed(false);
  distsetTypeNameComboBox.setId(UIComponentIdProvider.DIST_ADD_DISTSETTYPE);
  descTextArea = new TextAreaBuilder(DistributionSet.DESCRIPTION_MAX_SIZE)
      .caption(i18n.getMessage("textfield.description")).style("text-area-style")
      .id(UIComponentIdProvider.DIST_ADD_DESC).buildTextComponent();
  reqMigStepCheckbox = SPUIComponentProvider.getCheckBox(i18n.getMessage("checkbox.dist.required.migration.step"),
      "dist-checkbox-style", null, false, "");
  reqMigStepCheckbox.addStyleName(ValoTheme.CHECKBOX_SMALL);
  reqMigStepCheckbox.setId(UIComponentIdProvider.DIST_ADD_MIGRATION_CHECK);
}

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

/**
 * Create required UI components.
 */
private void createRequiredComponents() {
  distNameTextField = createTextField("textfield.name", UIComponentIdProvider.DIST_ADD_NAME,
      DistributionSet.NAME_MAX_SIZE);
  distVersionTextField = createTextField("textfield.version", UIComponentIdProvider.DIST_ADD_VERSION,
      DistributionSet.VERSION_MAX_SIZE);
  distsetTypeNameComboBox = SPUIComponentProvider.getComboBox(i18n.getMessage("label.combobox.type"), "", null,
      "", false, "", i18n.getMessage("label.combobox.type"));
  distsetTypeNameComboBox.setImmediate(true);
  distsetTypeNameComboBox.setNullSelectionAllowed(false);
  distsetTypeNameComboBox.setId(UIComponentIdProvider.DIST_ADD_DISTSETTYPE);
  descTextArea = new TextAreaBuilder(DistributionSet.DESCRIPTION_MAX_SIZE)
      .caption(i18n.getMessage("textfield.description")).style("text-area-style")
      .id(UIComponentIdProvider.DIST_ADD_DESC).buildTextComponent();
  reqMigStepCheckbox = SPUIComponentProvider.getCheckBox(i18n.getMessage("checkbox.dist.required.migration.step"),
      "dist-checkbox-style", null, false, "");
  reqMigStepCheckbox.addStyleName(ValoTheme.CHECKBOX_SMALL);
  reqMigStepCheckbox.setId(UIComponentIdProvider.DIST_ADD_MIGRATION_CHECK);
}

相关文章