|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.basex.gui.layout.BaseXFileChooser
public final class BaseXFileChooser
Project specific File Chooser implementation.
Nested Class Summary | |
---|---|
static class |
BaseXFileChooser.Mode
File dialog mode. |
Constructor Summary | |
---|---|
BaseXFileChooser(java.lang.String title,
java.lang.String path,
GUI main)
Default constructor. |
Method Summary | |
---|---|
BaseXFileChooser |
filter(java.lang.String dsc,
java.lang.String... suf)
Sets a file filter. |
BaseXFileChooser |
multi()
Allow multiple choice. |
IOFile |
select(BaseXFileChooser.Mode mode)
Selects a file or directory. |
IOFile[] |
selectAll(BaseXFileChooser.Mode mode)
Selects a file or directory. |
BaseXFileChooser |
suffix(java.lang.String suf)
Sets a file suffix, which will be added if the typed in file has no suffix. |
BaseXFileChooser |
textFilters()
Convenience method for setting textual filters. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BaseXFileChooser(java.lang.String title, java.lang.String path, GUI main)
title
- dialog titlepath
- initial pathmain
- reference to main windowMethod Detail |
---|
public BaseXFileChooser textFilters()
public BaseXFileChooser filter(java.lang.String dsc, java.lang.String... suf)
dsc
- descriptionsuf
- suffix
public BaseXFileChooser suffix(java.lang.String suf)
suf
- suffix
public BaseXFileChooser multi()
public IOFile select(BaseXFileChooser.Mode mode)
mode
- type defined by BaseXFileChooser.Mode
null
if no file was selectedpublic IOFile[] selectAll(BaseXFileChooser.Mode mode)
mode
- type defined by BaseXFileChooser.Mode
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |