|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.ejtools.util.FileTools
Helper class to make easy the file selection. Handles the overwrite in case of save actions.
Nested Class Summary | |
protected static class |
FileTools.SimpleFileFilter
An helper class that simplifies the creation of a FileFilter. |
Constructor Summary | |
protected |
FileTools()
Default constructor |
Method Summary | |
static java.io.File |
selectFile(java.lang.String title,
java.lang.String approveText,
int type,
FileTools.SimpleFileFilter filter)
Select a file through a JFileChooser. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
protected FileTools()
Method Detail |
public static java.io.File selectFile(java.lang.String title, java.lang.String approveText, int type, FileTools.SimpleFileFilter filter)
title
- The title for the JFileChooserapproveText
- The text that appears on the approve buttontype
- The type of operationfilter
- The FileFilter to use
JFileChooser.OPEN_DIALOG
,
JFileChooser.SAVE_DIALOG
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |