@Override public void setPropertyDataSource(Property newDataSource) { code.setPropertyDataSource(newDataSource); } }
@Override public void setPropertyDataSource(Property newDataSource) { rawText.setPropertyDataSource(newDataSource); processXml(rawText.getValue()); }
@Override public void itemClick(ItemClickEvent itemClickEvent) { logger.debug("table item selected: " + (ErrorCategorisationLink)itemClickEvent.getItemId()); errorCategorisationLink = (ErrorCategorisationLink)itemClickEvent.getItemId(); errorCategorisation = errorCategorisationLink.getErrorCategorisation(); errorCategorisationItem = new BeanItem<ErrorCategorisation>(errorCategorisation); errorCategorisationLinkItem = new BeanItem<ErrorCategorisationLink>(errorCategorisationLink); moduleNameTextField.setPropertyDataSource(errorCategorisationLinkItem.getItemProperty("moduleName")); flowNameTextField.setPropertyDataSource(errorCategorisationLinkItem.getItemProperty("flowName")); componentNameTextField.setPropertyDataSource(errorCategorisationLinkItem.getItemProperty("flowElementName")); errorCategoryCombo.setPropertyDataSource(errorCategorisationItem.getItemProperty("errorCategory")); errorMessageTextArea.setPropertyDataSource(errorCategorisationItem.getItemProperty("errorDescription")); actionCombo.setPropertyDataSource(errorCategorisationLinkItem.getItemProperty("action")); exceptionClassTextField.setPropertyDataSource(errorCategorisationLinkItem.getItemProperty("exceptionClass")); errorMessageTextArea.markAsDirty(); actionCombo.markAsDirty(); errorCategoryCombo.markAsDirty(); componentNameTextField.markAsDirty(); flowNameTextField.markAsDirty(); moduleNameTextField.markAsDirty(); } });
this.isManyToManyCheckbox.setValue(mappingConfiguration.getIsManyToMany()); this.constrainParameterListSizesCheckbox.setValue(mappingConfiguration.getConstrainParameterListSizes()); this.descriptionTextArea.setPropertyDataSource(mappingConfigurationItem.getItemProperty("description")); this.numberOfSourceParametersTextField.setPropertyDataSource(mappingConfigurationItem.getItemProperty("numberOfParams")); this.numberOfTargetParametersTextField.setPropertyDataSource(mappingConfigurationItem.getItemProperty("numTargetValues"));
/** * Method to populate the mapping configuration form. */ public void populateMappingConfigurationForm() { typeComboBox.setReadOnly(false); clientComboBox.setReadOnly(false); sourceContextComboBox.setReadOnly(false); targetContextComboBox.setReadOnly(false); this.descriptionTextArea.setReadOnly(false); this.numberOfSourceParametersTextField.setReadOnly(false); BeanItem<MappingConfiguration> mappingConfigurationItem = new BeanItem<MappingConfiguration>(this.mappingConfiguration); this.clientComboBox.setValue(this.mappingConfiguration.getConfigurationServiceClient()); this.typeComboBox.setValue(mappingConfiguration.getConfigurationType()); this.sourceContextComboBox.setValue(mappingConfiguration.getSourceContext()); this.targetContextComboBox.setValue(mappingConfiguration.getTargetContext()); this.descriptionTextArea.setPropertyDataSource(mappingConfigurationItem.getItemProperty("description")); this.numberOfSourceParametersTextField.setPropertyDataSource(mappingConfigurationItem.getItemProperty("numberOfParams")); this.numberOfTargetParametersTextField.setPropertyDataSource(mappingConfigurationItem.getItemProperty("numTargetValues")); typeComboBox.setReadOnly(true); clientComboBox.setReadOnly(true); sourceContextComboBox.setReadOnly(true); targetContextComboBox.setReadOnly(true); this.descriptionTextArea.setReadOnly(true); this.numberOfSourceParametersTextField.setReadOnly(true); }
editor.setPropertyDataSource(new TextFileProperty(file)); editor.setImmediate(false); editor.setSizeFull();
textField.setPropertyDataSource(parameterItem.getItemProperty("value"));
textField.setPropertyDataSource(parameterItem.getItemProperty("value"));
roleDescription.setPropertyDataSource(policyItem.getItemProperty("description")); this.businessStream.setFlows(new HashSet<BusinessStreamFlow>());
flowNameTextField.setPropertyDataSource(errorCategorisationLinkItem.getItemProperty("flowName")); componentNameTextField.setPropertyDataSource(errorCategorisationLinkItem.getItemProperty("flowElementName")); errorMessageTextArea.setPropertyDataSource(errorCategorisationItem.getItemProperty("errorDescription")); errorCategoryCombo.setPropertyDataSource(errorCategorisationItem.getItemProperty("errorCategory")); actionCombo.setPropertyDataSource(errorCategorisationLinkItem.getItemProperty("action"));
roleDescription.setPropertyDataSource(policyItem.getItemProperty("description"));
description.setPropertyDataSource(serverItem.getItemProperty("description")); url.setPropertyDataSource(serverItem.getItemProperty("url")); this.port.setPropertyDataSource(serverItem.getItemProperty("port"));
this.comment.setValidationVisible(false); this.comment.setNullRepresentation(""); this.comment.setPropertyDataSource(startupControlItem.getItemProperty("comment"));
this.policyDescription.setPropertyDataSource(policyItem.getItemProperty("description"));
"You must define an error message between 1 and 2048 characters in length!", 1, 2048, false)); errorMessageTextArea.setValidationVisible(false); errorMessageTextArea.setPropertyDataSource(errorCategorisationItem.getItemProperty("errorDescription")); errorMessageTextArea.setRequired(true); errorMessageTextArea.setWidth("650px");