Class FileUploadPopupView

    • Field Detail

      • file

        @DataField("file")
        protected com.google.gwt.dom.client.InputElement file
      • fileText

        @DataField("fileText")
        protected com.google.gwt.dom.client.InputElement fileText
      • chooseButton

        @DataField("chooseButton")
        protected com.google.gwt.dom.client.SpanElement chooseButton
      • uploadWarning

        @DataField("upload-warning")
        protected com.google.gwt.dom.client.ParagraphElement uploadWarning
      • acceptedExtension

        protected List<String> acceptedExtension
      • fileContents

        protected static String fileContents
      • fileName

        protected static String fileName
    • Constructor Detail

      • FileUploadPopupView

        public FileUploadPopupView()
    • Method Detail

      • fileLoaded

        public static void fileLoaded​(String fileContents)
      • show

        public void show​(String mainTitleText,
                         String uploadWarningText,
                         String okButtonText,
                         org.uberfire.mvp.Command okCommand)
        Specified by:
        show in interface FileUploadPopup
      • onChooseButtonClickEvent

        @EventHandler("chooseButton")
        public void onChooseButtonClickEvent​(com.google.gwt.event.dom.client.ClickEvent clickEvent)
      • onFileChangeEvent

        @EventHandler("file")
        public void onFileChangeEvent​(com.google.gwt.event.dom.client.ChangeEvent event)
      • readTextFile

        public static void readTextFile​(com.google.gwt.core.client.JavaScriptObject files)