本文整理了Java中com.vaadin.ui.CheckBox.setEnabled()
方法的一些代码示例,展示了CheckBox.setEnabled()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。CheckBox.setEnabled()
方法的具体详情如下:
包路径:com.vaadin.ui.CheckBox
类名称:CheckBox
方法名:setEnabled
暂无
代码示例来源:origin: eclipse/hawkbit
@Override
protected void enableEditing() {
super.enableEditing();
targetVisibleField.setEnabled(true);
}
代码示例来源:origin: org.eclipse.hawkbit/hawkbit-ui
@Override
protected void enableEditing() {
super.enableEditing();
targetVisibleField.setEnabled(true);
}
代码示例来源:origin: org.eclipse.hawkbit/hawkbit-ui
@Override
protected void disableEditing() {
super.disableEditing();
targetVisibleField.setEnabled(false);
}
}
代码示例来源:origin: eclipse/hawkbit
@Override
protected void disableEditing() {
super.disableEditing();
targetVisibleField.setEnabled(false);
}
}
代码示例来源:origin: org.apache.ace/org.apache.ace.target.mgmt.ui
public void buttonClick(ClickEvent event) {
if (event.getButton().booleanValue()) {
target.register();
registerCB.setEnabled(!target.isRegistered());
autoApproveCB.setEnabled(target.isRegistered());
}
}
});
代码示例来源:origin: apache/ace
public void buttonClick(ClickEvent event) {
if (event.getButton().booleanValue()) {
target.register();
registerCB.setEnabled(!target.isRegistered());
autoApproveCB.setEnabled(target.isRegistered());
}
}
});
代码示例来源:origin: org.activiti/activiti-explorer
@Override
public Field getPropertyField(FormProperty formProperty) {
CheckBox checkBox = new CheckBox(getPropertyLabel(formProperty));
checkBox.setRequired(formProperty.isRequired());
checkBox.setEnabled(formProperty.isWritable());
if (formProperty.getValue() != null) {
Boolean value = new Boolean(Boolean.parseBoolean(formProperty.getValue()));
checkBox.setValue(value);
}
return checkBox;
}
代码示例来源:origin: org.eclipse.hawkbit/hawkbit-ui
@Override
protected Item popualateKeyValue(final Object metadataCompositeKey) {
final Item item = super.popualateKeyValue(metadataCompositeKey);
if (item != null) {
targetVisibleField.setValue((Boolean) item.getItemProperty(TARGET_VISIBLE).getValue());
if (hasUpdatePermission()) {
targetVisibleField.setEnabled(true);
}
}
return item;
}
代码示例来源:origin: eclipse/hawkbit
@Override
protected Item popualateKeyValue(final Object metadataCompositeKey) {
final Item item = super.popualateKeyValue(metadataCompositeKey);
if (item != null) {
targetVisibleField.setValue((Boolean) item.getItemProperty(TARGET_VISIBLE).getValue());
if (hasUpdatePermission()) {
targetVisibleField.setEnabled(true);
}
}
return item;
}
代码示例来源:origin: org.opennms.features/vaadin-jmxconfiggenerator
@Override
public void selectionValueChanged(SelectionValueChangedEvent selectionValueChangedEvent) {
if (selectionValueChangedEvent.getBean() == getParentData()) {
for (Object eachRowId : getItemIds()) {
CheckBox checkBox = getCheckBoxForRow(eachRowId);
updateCheckBox(checkBox, eachRowId, selectionValueChangedEvent.getNewValue());
checkBox.setEnabled(selectionValueChangedEvent.getNewValue()); // we have to check/uncheck the checkbox according to the parent's selection
}
}
}
代码示例来源:origin: apache/ace
registerCB.setEnabled(!target.isRegistered());
registerCB.setValue(Boolean.valueOf(target.isRegistered()));
autoApproveCB.setEnabled(target.isRegistered());
autoApproveCB.setValue(Boolean.valueOf(target.getAutoApprove()));
代码示例来源:origin: org.apache.ace/org.apache.ace.target.mgmt.ui
registerCB.setEnabled(!target.isRegistered());
registerCB.setValue(Boolean.valueOf(target.isRegistered()));
autoApproveCB.setEnabled(target.isRegistered());
autoApproveCB.setValue(Boolean.valueOf(target.getAutoApprove()));
代码示例来源:origin: org.opencms/opencms-core
m_replace.setEnabled(false);
} else {
m_workProject.setValue(cms.getRequestContext().getCurrentProject().getUuid());
内容来源于网络,如有侵权,请联系作者删除!