getSaveButtonWidget().setVisible(false); name.setEnabled(false); mandatory.setEnabled(false); description.getTextArea().setEnabled(false);
//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);
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); } } });
@Override public void enableVisibilityToggle(boolean enable) { visibilityToggle.setEnabled(enable); }
@Override public void setEnablePushAfterCommitCheckBox(boolean enable) { pushAfterCommit.setEnabled(enable); }
@Override public void setReadOnly(boolean readOnly) { this.readOnly = readOnly; for (CheckBox control : controls) { control.setEnabled(!readOnly); } }
@Override public void setReadOnly(boolean readOnly) { checkBox.setEnabled(!readOnly); }
if(your condition==true) { for(CheckBox c: lsitOfCheckBox){ c.setEnabled(false); } }
@Override public void setReadOnly(boolean readOnly) { this.readOnly = readOnly; for (CheckBox control : controls) { control.setEnabled(!readOnly); } }
/** * 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); } }
CheckBox checkBox = (CheckBox) findViewById(R.id.checkbox_id); if (checkBox.isChecked()) { checkBox.setEnabled(true); }else{ checkBox.setEnabled(false); }
setEnabled(enabled); setFormValue(formValue);
@Override public void setEnabled(boolean b) { checkBox.setEnabled(b); textBox.setEnabled(b); }
private UIValueBoolean( boolean fReadOnly ) { cb.setEnabled( !fReadOnly ); initWidget( cb ); }
private UIValueBoolean( boolean fReadOnly ) { cb.setEnabled( !fReadOnly ); initWidget( cb ); }
@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);
public void onClick(ClickEvent event) { if (visibilityToggle.isEnabled()) { presenter.toggleLayerVisibility(); visibilityToggle.setEnabled(true); // Works because JavaScript is single threaded... } } });
@Override public void setFiltered(boolean filtered) { super.setFiltered(filtered); super.toggleAccessConstraint(checkBox, filtered); checkBox.setEnabled(!filtered); textBoxWrapper.setConstraintsApply(filtered); }
/** {@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); }
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()); }