|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectit.unibz.gui.OpenFileDialog
public class OpenFileDialog
A GUI Dialog to let user choose a file, that lets us filter only the extensions we decide (in our case, .arff files)
Field Summary | |
---|---|
private java.lang.String |
filePath
Contain the full path of the file chosen |
private boolean |
isFileSelected
State variable, true when a file is selected |
private static javax.swing.JFileChooser |
jFileChooser
Swing default File Chooser dialog |
Constructor Summary | |
---|---|
OpenFileDialog()
The constructor automatically looks if there is an instance of jFileChooser, or creates a new one if needed, it forces a filtering of .arff files, makes the dialog appear and sets the behavior of the OK and CANCEL buttons |
Method Summary | |
---|---|
java.lang.String |
getFilePath()
Gets the file path directory from the open file dialog |
boolean |
isFileSelected()
If a file was selected this returns a true. |
private void |
setFilePath(java.lang.String fpath)
Allows setting of the file path |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static javax.swing.JFileChooser jFileChooser
private java.lang.String filePath
private boolean isFileSelected
Constructor Detail |
---|
public OpenFileDialog()
Method Detail |
---|
public java.lang.String getFilePath()
private void setFilePath(java.lang.String fpath)
fpath
- String of the file pathpublic boolean isFileSelected()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |