com.google.gwt.user.client.ui.CheckBox.setStyleName()方法的使用及代码示例

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

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

CheckBox.setStyleName介绍

暂无

代码示例

代码示例来源:origin: com.google.gwt/gwt-servlet

/**
 * Creates a check box with no label.
 */
public CheckBox() {
 this(DOM.createInputCheck());
 setStyleName("gwt-CheckBox");
}

代码示例来源:origin: net.wetheinter/gwt-user

/**
 * Creates a check box with no label.
 */
public CheckBox() {
 this(DOM.createInputCheck());
 setStyleName("gwt-CheckBox");
}

代码示例来源:origin: com.vaadin.external.gwt/gwt-user

/**
 * Creates a check box with no label.
 */
public CheckBox() {
 this(DOM.createInputCheck());
 setStyleName("gwt-CheckBox");
}

代码示例来源:origin: org.eagle-i/eagle-i-search-gwt

/**
 * @param checkBoxPanel
 */
private void addWithStyle(final CheckBox checkBox, final FlowPanel checkBoxPanel) {
  checkBox.setStyleName( CHECK_BOX_STYLE );
  checkBoxPanel.add( checkBox );
}

代码示例来源:origin: threerings/narya

@Override
protected Widget buildWidget (ConfigField field) {
  _box = new CheckBox();
  _box.setStyleName("configCheckBoxEditor");
  resetField();
  _box.addValueChangeHandler(new ValueChangeHandler<Boolean>() {
    public void onValueChange (ValueChangeEvent<Boolean> changeEvent) {
      updateModificationState();
    }
  });
  return _box;
}

代码示例来源:origin: com.blackducksoftware.tools/common-framework

/**
 * Builds the remember me check box.
 *
 * @return the check box
 */
@SuppressWarnings("deprecation")
private CheckBox buildRememberMeCheckBox() {
  CheckBox rememberMeCheckBox = new CheckBox("Remember me please!");
  rememberMeCheckBox.setStyleName("gwt-Login-RememberMe");
  rememberMeCheckBox.setChecked(true);
  rememberMeCheckBox.setSize("157px", "20px");
  return rememberMeCheckBox;
}

代码示例来源:origin: oVirt/ovirt-engine

private CheckBox buildCheckbox(final T checkBoxValue) {
  final CheckBox newCheckBox = new CheckBox(SafeHtmlUtils.fromString(renderer.render(checkBoxValue)));
  newCheckBox.setValue(false);
  newCheckBox.setStyleName(style.checkBox());
  newCheckBox.addClickHandler(event -> {
    // ValueChangeEvent fired to notify the mapped ListModel about the new Selection/deselection.
    ValueChangeEvent.fire(CheckBoxGroup.this, getValue());
  });
  return newCheckBox;
}

代码示例来源:origin: org.eagle-i/eagle-i-search-gwt

agreeToCiteCheckBox.setStyleName( CHECKBOX_STYLE );
agreeToShareCheckBox.setStyleName( CHECKBOX_STYLE );
ccEmailCheckBox.setStyleName( CHECKBOX_STYLE );

相关文章