本文整理了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
暂无
代码示例来源: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());
}
内容来源于网络,如有侵权,请联系作者删除!