agentStatusText.setValue(msg);
}
}
private FileUploadForm createAgentConfigXmlUploadForm() {
final FileUploadForm uploadForm = new FileUploadForm("agent-configuration.xml", "1", false, true, null, true);
uploadForm.setCustomTooltipMessage(MSG.view_remoteAgentInstall_promptAgentConfigXml());
uploadForm.setAutoWidth();
uploadForm.setPadding(5);
uploadForm.setIsGroup(true);
uploadForm.setGroupTitle("agent-configuration.xml");
uploadForm.addFormHandler(new DynamicFormHandler() {
@Override
public void onSubmitComplete(DynamicFormSubmitCompleteEvent event) {
List<String> paths = uploadForm.getUploadedFilePaths();
if (paths != null && paths.size() == 1) {
agentConfigurationXml = paths.get(0);
} else {
agentConfigurationXml = null;
}