Package org.indiumstudios.keylib.fs
Class FileDialog
java.lang.Object
org.indiumstudios.keylib.fs.FileDialog
-
Method Summary
Modifier and TypeMethodDescriptionstatic @Nullable StringopenFile(CharSequence type, CharSequence fileTypes) Opens a file dialog.static @Nullable StringsaveFile(CharSequence type, CharSequence fileType, CharSequence defaultName) Saves a file.
-
Method Details
-
openFile
Opens a file dialog.- Parameters:
type- The type of files you want.fileTypes- The file types.- Returns:
- The filepath, an empty string, or null based on the result.
-
saveFile
@Nullable public static @Nullable String saveFile(CharSequence type, CharSequence fileType, CharSequence defaultName) Saves a file.- Parameters:
type- The type.fileType- The file extension type.defaultName- The default name that will be given to the file.- Returns:
- The filepath, an empty string, or null based on the result.
-