Class JSFileChooser


  • public class JSFileChooser
    extends java.lang.Object
    The javax.swing.JFileChooser clone
    Author:
    gianpiero.diblasi
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void showOpenDialog​(java.lang.String allowedFileTypes, int selectionType, int maximumFileSize, simulation.js.$Apply_1_Void<def.js.Array<def.dom.File>> response)
      Shows an open dialog
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • showOpenDialog

        public static void showOpenDialog​(java.lang.String allowedFileTypes,
                                          int selectionType,
                                          int maximumFileSize,
                                          simulation.js.$Apply_1_Void<def.js.Array<def.dom.File>> response)
        Shows an open dialog
        Parameters:
        allowedFileTypes - The allowed file types separated by commas and starting with a dot, eg. '.gif,.jpeg,.png', empty string to set no constraint on the type
        selectionType - The selection type
        maximumFileSize - The maximum allowed file size in Mbytes, a value less than or equal to 0 to set no constraint on the size
        response - The function to call on close