This commit is contained in:
@@ -2,6 +2,7 @@ package com.imyeyu.fx.utils;
|
||||
|
||||
import javafx.stage.FileChooser;
|
||||
import javafx.stage.Window;
|
||||
import lombok.Getter;
|
||||
|
||||
import java.io.File;
|
||||
import java.util.List;
|
||||
@@ -13,6 +14,7 @@ import java.util.Objects;
|
||||
* @author 夜雨
|
||||
* @version 2022-04-14 19:38
|
||||
*/
|
||||
@Getter
|
||||
public class FileSelector {
|
||||
|
||||
/** 选择器 */
|
||||
@@ -91,13 +93,4 @@ public class FileSelector {
|
||||
public File save(Window window) {
|
||||
return chooser.showSaveDialog(window);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取选择器
|
||||
*
|
||||
* @return 选择器
|
||||
*/
|
||||
public FileChooser getChooser() {
|
||||
return chooser;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user