Package javascript.swing
Class JSFileChooser
- java.lang.Object
-
- javascript.swing.JSFileChooser
-
public class JSFileChooser extends java.lang.Object
The javax.swing.JFileChooser clone- Author:
- gianpiero.diblasi
-
-
Field Summary
Fields Modifier and Type Field Description static int
FOLDER_SELECTION
static int
MULTIPLE_SELECTION
static int
SINGLE_SELECTION
-
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
-
-
-
Field Detail
-
SINGLE_SELECTION
public static final int SINGLE_SELECTION
- See Also:
- Constant Field Values
-
MULTIPLE_SELECTION
public static final int MULTIPLE_SELECTION
- See Also:
- Constant Field Values
-
FOLDER_SELECTION
public static final int FOLDER_SELECTION
- See Also:
- Constant Field Values
-
-
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 typeselectionType
- The selection typemaximumFileSize
- The maximum allowed file size in Mbytes, a value less than or equal to 0 to set no constraint on the sizeresponse
- The function to call on close
-
-