本文整理了Java中com.vaadin.v7.ui.TextField.setEnabled()
方法的一些代码示例,展示了TextField.setEnabled()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。TextField.setEnabled()
方法的具体详情如下:
包路径:com.vaadin.v7.ui.TextField
类名称:TextField
方法名:setEnabled
暂无
代码示例来源:origin: OpenNMS/opennms
/**
* Enables the field.
*
* @return the instance itself
*/
public KeyValueInputDialogWindow enableValue() {
m_valueInputField.setEnabled(true);
return this;
}
代码示例来源:origin: OpenNMS/opennms
/**
* Disables the field.
*
* @return the instance itself
*/
public KeyValueInputDialogWindow disableValue() {
m_valueInputField.setEnabled(false);
return this;
}
代码示例来源:origin: OpenNMS/opennms
/**
* Enables the field.
*
* @return the instance itself
*/
public KeyValueInputDialogWindow enableKey() {
m_keyInputField.setEnabled(true);
return this;
}
代码示例来源:origin: OpenNMS/opennms
/**
* Disables the field.
*
* @return the instance itself
*/
public KeyValueInputDialogWindow disableKey() {
m_keyInputField.setEnabled(false);
return this;
}
代码示例来源:origin: OpenNMS/opennms
@Override
public void valueChange(Property.ValueChangeEvent event) {
m_attributeKeyTextField.setEnabled(m_filterByAttributeCheckBox.getValue());
m_attributeValueTextField.setEnabled(m_filterByAttributeCheckBox.getValue());
}
});
代码示例来源:origin: OpenNMS/opennms
@Override
public void valueChange(Property.ValueChangeEvent event) {
m_nameTextField.setEnabled(m_filterByNameCheckBox.getValue());
}
});
代码示例来源:origin: OpenNMS/opennms
private void updateEnabledState() {
nonEditableField.setEnabled(selectedField.getValue());
editableField.setEnabled(selectedField.getValue());
editableField.setComponentError(null);
}
}
代码示例来源:origin: OpenNMS/opennms
@Override
public Void visit(ReductionKeyEdge edge) {
m_typeSelect.setValue(EdgeType.REDUCTION_KEY);
m_reductionKeyComponent.setValue(edge.getReductionKey());
m_friendlyNameField.setValue(edge.getFriendlyName());
m_reductionKeyComponent.setEnabled(false);
return null;
}
代码示例来源:origin: OpenNMS/opennms
public void valueChange(Property.ValueChangeEvent valueChangeEvent) {
if (m_savingDisabled) {
return;
}
if (valueChangeEvent.getProperty().getValue() == null) {
m_dashletSpec.setDashletName("Undefined");
} else {
m_dashletSpec.setDashletName(valueChangeEvent.getProperty().getValue().toString());
m_dashletSelect.removeItem("Undefined");
}
m_dashletSpec.getParameters().clear();
Map<String, String> requiredParameters = m_dashletSelector.getDashletFactoryForName(m_dashletSpec.getDashletName()).getRequiredParameters();
for (Map.Entry<String, String> entry : requiredParameters.entrySet()) {
m_dashletSpec.getParameters().put(entry.getKey(), entry.getValue());
}
m_propertiesButton.setEnabled(requiredParameters.size() > 0);
boolean boostable = m_dashletSelector.getDashletFactoryForName(m_dashletSpec.getDashletName()).isBoostable();
boostPriorityField.setEnabled(boostable);
boostDurationField.setEnabled(boostable);
WallboardProvider.getInstance().save();
((WallboardConfigUI) getUI()).notifyMessage("Data saved", "Dashlet");
}
});
代码示例来源:origin: OpenNMS/opennms
nonEditableField.setWidth(400, Unit.PIXELS);
nonEditableField.setReadOnly(true);
nonEditableField.setEnabled(false);
代码示例来源:origin: OpenNMS/opennms
boostPriorityField.setEnabled(boostable);
boostDurationField.setEnabled(boostable);
代码示例来源:origin: OpenNMS/opennms
m_thresholdTextField.setId("thresholdTextField");
m_thresholdTextField.setRequired(false);
m_thresholdTextField.setEnabled(false);
m_thresholdTextField.setImmediate(true);
m_thresholdTextField.setWidth(100.0f, Unit.PERCENTAGE);
m_exponentialPropagationBaseTextField.setId("exponentialPropagationBaseTextField");
m_exponentialPropagationBaseTextField.setRequired(false);
m_exponentialPropagationBaseTextField.setEnabled(false);
m_exponentialPropagationBaseTextField.setImmediate(true);
m_exponentialPropagationBaseTextField.setWidth(100.0f, Unit.PERCENTAGE);
代码示例来源:origin: OpenNMS/opennms
groupName.setImmediate(true);
if (isExistingGroup()) { // If we allow to rename an existing group, we should modify the SNMP Collection as well
groupName.setEnabled(false);
代码示例来源:origin: OpenNMS/opennms
m_nameTextField.setEnabled(false);
m_attributeKeyTextField.setEnabled(false);
m_attributeValueTextField = new TextField("Value (REGEXP)");
m_attributeValueTextField.setEnabled(false);
addToComponent(attributeLayout, m_filterByAttributeCheckBox);
addToComponent(attributeLayout, m_attributeKeyTextField);
内容来源于网络,如有侵权,请联系作者删除!