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

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

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

CheckBox.setEnabled介绍

暂无

代码示例

代码示例来源:origin: kaaproject/kaa

getSaveButtonWidget().setVisible(false);
name.setEnabled(false);
mandatory.setEnabled(false);
description.getTextArea().setEnabled(false);

代码示例来源:origin: stackoverflow.com

//This line has to go after your dialog.show(); call
  CheckBox chkBox = (CheckBox) dialog.findViewById(R.id.yourCheckBox);
//This line will go in your OnClickListener.
  chkBox.setEnabled(false);

代码示例来源:origin: stackoverflow.com

CheckBox cb1 = (CheckBox) findViewById(R.id.checkbox1);
cb1.setOnCheckedChangeListener(new OnCheckedChangeListener(){

  @Override
  public void onCheckedChanged(CompoundButton buttonView,
      boolean isChecked) {
    if (isChecked){
      cb1.setEnabled(false);
      cb2.setEnabled(true);
    }
  }         
});

代码示例来源:origin: org.geomajas.plugin/geomajas-client-gwt2-plugin-corewidget

@Override
public void enableVisibilityToggle(boolean enable) {
  visibilityToggle.setEnabled(enable);
}

代码示例来源:origin: org.eclipse.che.plugin/che-plugin-git-ext-git

@Override
public void setEnablePushAfterCommitCheckBox(boolean enable) {
 pushAfterCommit.setEnabled(enable);
}

代码示例来源:origin: bedatadriven/activityinfo

@Override
public void setReadOnly(boolean readOnly) {
  this.readOnly = readOnly;
  for (CheckBox control : controls) {
    control.setEnabled(!readOnly);
  }
}

代码示例来源:origin: bedatadriven/activityinfo

@Override
public void setReadOnly(boolean readOnly) {
  checkBox.setEnabled(!readOnly);
}

代码示例来源:origin: stackoverflow.com

if(your condition==true) {
 for(CheckBox c: lsitOfCheckBox){
   c.setEnabled(false);
 }
}

代码示例来源:origin: bedatadriven/activityinfo

@Override
public void setReadOnly(boolean readOnly) {
  this.readOnly = readOnly;
  for (CheckBox control : controls) {
    control.setEnabled(!readOnly);
  }
}

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

/**
 * Enable/disable all checkboxes
 * @param enabled
 *            boolean whether to enable/disable all checkboxes
 */
public void setEnabled(boolean enabled) {
  for(Entry<T, CheckBox> currentValue : checkBoxes.entrySet()) {
    currentValue.getValue().setEnabled(enabled);
  }
}

代码示例来源:origin: stackoverflow.com

CheckBox checkBox = (CheckBox) findViewById(R.id.checkbox_id);
 if (checkBox.isChecked()) {
   checkBox.setEnabled(true);
 }else{
   checkBox.setEnabled(false);
 }

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

setEnabled(enabled);
setFormValue(formValue);

代码示例来源:origin: org.jboss.ballroom/widgets

@Override
public void setEnabled(boolean b) {
  checkBox.setEnabled(b);
  textBox.setEnabled(b);
}

代码示例来源:origin: ltearno/hexa.tools

private UIValueBoolean( boolean fReadOnly )
{
  cb.setEnabled( !fReadOnly );
  initWidget( cb );
}

代码示例来源:origin: fr.lteconsulting/hexa.core

private UIValueBoolean( boolean fReadOnly )
{
  cb.setEnabled( !fReadOnly );
  initWidget( cb );
}

代码示例来源:origin: stackoverflow.com

@Override
 public View getView(int position, View convertView, ViewGroup parent){
 CheckBox favoriteBox =(CheckBox)result.findViewById(R.id.favorite_checkbox);
 favoriteBox.setChecked(true);
 favoriteBox.setEnabled(false);

代码示例来源:origin: org.geomajas.plugin/geomajas-client-gwt2-plugin-corewidget

public void onClick(ClickEvent event) {
    if (visibilityToggle.isEnabled()) {
      presenter.toggleLayerVisibility();
      visibilityToggle.setEnabled(true); // Works because JavaScript is single threaded...
    }
  }
});

代码示例来源:origin: org.jboss.ballroom/widgets

@Override
public void setFiltered(boolean filtered) {
  super.setFiltered(filtered);
  super.toggleAccessConstraint(checkBox, filtered);
  checkBox.setEnabled(!filtered);
  textBoxWrapper.setConstraintsApply(filtered);
}

代码示例来源:origin: org.eclipse.che.plugin/che-plugin-java-ext-lang-client

/** {@inheritDoc} */
@Override
public void showDialog() {
 newName.getElement().setAttribute("spellcheck", "false");
 newName.addStyleName(javaResources.css().errorBorder());
 updateDelegateUpdating.setValue(false);
 updateMarkDeprecated.setValue(false);
 updateMarkDeprecated.setEnabled(false);
 super.show(newName);
}

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

public void redrawActions() {
  actionPanel.clear();
  setEdit();
  setDelete();
  setClaimOrRelease();
  addWithStyle( getFormActions()[EDIT_POSITION], ACTIONS_FIRST_COLUMN + EDIT_POSITION, actionPanel );
  addWithStyle( getFormActions()[DELETE_POSITION], ACTIONS_FIRST_COLUMN + DELETE_POSITION, actionPanel );
  addWithStyle( getFormActions()[CLAIM_OR_SHARE_POSITION], ACTIONS_FIRST_COLUMN + CLAIM_OR_SHARE_POSITION, actionPanel );
  //addWithStyle( checkBox, CHECKBOX_COLUMN, this );
  checkBox.setEnabled( shouldEnableCheckBox() );
  // replace(editor, getEditor());
}

相关文章