/** * Enables the field. * * @return the instance itself */ public KeyValueInputDialogWindow enableValue() { m_valueInputField.setEnabled(true); return this; }
/** * Disables the field. * * @return the instance itself */ public KeyValueInputDialogWindow disableValue() { m_valueInputField.setEnabled(false); return this; }
/** * Enables the field. * * @return the instance itself */ public KeyValueInputDialogWindow enableKey() { m_keyInputField.setEnabled(true); return this; }
/** * Disables the field. * * @return the instance itself */ public KeyValueInputDialogWindow disableKey() { m_keyInputField.setEnabled(false); return this; }
@Override public void valueChange(Property.ValueChangeEvent event) { m_attributeKeyTextField.setEnabled(m_filterByAttributeCheckBox.getValue()); m_attributeValueTextField.setEnabled(m_filterByAttributeCheckBox.getValue()); } });
@Override public void valueChange(Property.ValueChangeEvent event) { m_nameTextField.setEnabled(m_filterByNameCheckBox.getValue()); } });
private void updateEnabledState() { nonEditableField.setEnabled(selectedField.getValue()); editableField.setEnabled(selectedField.getValue()); editableField.setComponentError(null); } }
@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; }
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"); } });
nonEditableField.setWidth(400, Unit.PIXELS); nonEditableField.setReadOnly(true); nonEditableField.setEnabled(false);
boostPriorityField.setEnabled(boostable); boostDurationField.setEnabled(boostable);
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);
groupName.setImmediate(true); if (isExistingGroup()) { // If we allow to rename an existing group, we should modify the SNMP Collection as well groupName.setEnabled(false);
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);