Package org.rhq.coregui.client.components.upload

Examples of org.rhq.coregui.client.components.upload.FileUploadForm


            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;
                }
View Full Code Here


        });
        return uploadForm;
    }

    private FileUploadForm createAgentEnvUploadForm() {
        final FileUploadForm uploadForm = new FileUploadForm("rhq-agent-env.sh", "1", false, true, null, true);
        uploadForm.setCustomTooltipMessage(MSG.view_remoteAgentInstall_promptRhqAgentEnv());
        uploadForm.setAutoWidth();
        uploadForm.setPadding(5);
        uploadForm.setIsGroup(true);
        uploadForm.setGroupTitle("rhq-agent-env.sh");
        uploadForm.addFormHandler(new DynamicFormHandler() {
            @Override
            public void onSubmitComplete(DynamicFormSubmitCompleteEvent event) {
                List<String> paths = uploadForm.getUploadedFilePaths();
                if (paths != null && paths.size() == 1) {
                    rhqAgentEnvSh = paths.get(0);
                } else {
                    rhqAgentEnvSh = null;
                }
View Full Code Here

TOP

Related Classes of org.rhq.coregui.client.components.upload.FileUploadForm

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.