public String getValue() { Properties properties = new Properties(); for (Map.Entry<Locale, TextField> entry : textFieldMap.entrySet()) { if (!entry.getValue().getRawValue().isEmpty()) { properties.setProperty(entry.getKey().toString(), entry.getValue().getRawValue()); } } return LocaleHelper.convertPropertiesToString(properties); }
@Override public void actionPerform(Component component) { componentTextField.setValue(componentTextField.getRawValue() + selectedComponentId); } }
public void apply() { FileDescriptor fileDescriptor = uploadField.getValue(); if (fileDescriptor == null) { showNotification(getMessage("fileNotUploaded")); return; } String pathFieldValue = parse(configPathField.getRawValue().trim()); try { Path filePath = configDir.resolve(pathFieldValue); String fileName = fileDescriptor.getName(); File targetFile = new File(filePath.toString(), fileName); if (targetFile.exists()) { confirmOverwriteFile(fileName, targetFile); } else { createNewFile(targetFile); } } catch (InvalidPathException e) { showNotification(formatMessage(getMessage("pathValidMessage"), pathFieldValue)); } }
if (e.getValue() != null) { if (nameField.getValue() == null || nameField.getRawValue().equals(prevValue + lastNameField.getValue())) { if (lastNameField.getValue() != null) { nameField.setValue(e.getValue() + " " + lastNameField.getValue()); if (lastNameField.getValue() == null) prevValue = prevValue.trim(); if (nameField.getRawValue().equals(prevValue + lastNameField.getRawValue())) { nameField.setValue(lastNameField.getValue()); if (e.getValue() != null) { if (nameField.getValue() == null || nameField.getRawValue().equals(firstNameField.getValue() + prevValue)) { if (firstNameField.getValue() != null) { nameField.setValue(firstNameField.getValue() + " " + e.getValue()); if (firstNameField.getValue() == null) prevValue = prevValue.trim(); if (nameField.getRawValue().equals(firstNameField.getRawValue() + prevValue)) { nameField.setValue(firstNameField.getValue());