|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.doolin.gui.swing.FileBrowser
public class FileBrowser
This class allows the browsing of files or directories.
| Constructor Summary | |
|---|---|
FileBrowser()
Constructor with no support for preferences |
|
FileBrowser(GUIPreferences preferences)
Constructor with support for preferences |
|
| Method Summary | |
|---|---|
File |
browse(Component component)
Browses for a file or a directory. |
String |
getFileDescription()
Returns the file description. |
String |
getFileFilter()
Gets the file filter. |
boolean |
isModeDirectory()
Gets if the browsing is addressing only directories. |
boolean |
isModeSave()
Gets the browsing mode. |
void |
setFile(File f)
Set the initial file |
void |
setFileDescription(String fileDescription)
Sets the file description. |
void |
setFileFilter(String fileFilter)
Sets the file filter. |
void |
setModeDirectory(boolean modeDirectory)
Sets if the browsing is addressing only directories. |
void |
setModeSave(boolean modeSave)
Sets the browsing mode. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FileBrowser()
public FileBrowser(GUIPreferences preferences)
preferences - Preference| Method Detail |
|---|
public File browse(Component component)
component - Parent component for the file browser dialog
null if none has been
selected.public String getFileDescription()
public String getFileFilter()
PatternFileFilterpublic boolean isModeDirectory()
true if only directories are browsed.public boolean isModeSave()
true if files/directories are to be saved,
false if they have to be opened.public void setFile(File f)
f - Initial selectionpublic void setFileDescription(String fileDescription)
fileDescription - File descriptionpublic void setFileFilter(String fileFilter)
fileFilter - File filter.PatternFileFilterpublic void setModeDirectory(boolean modeDirectory)
modeDirectory - true if only directories are browsedpublic void setModeSave(boolean modeSave)
modeSave - true if files/directories are to be saved,
false if they have to be opened.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||