|
|||||||||
| Home >> All >> org >> chordcast >> [ io overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.chordcast.io
Class ChordSheetFileChooser

java.lang.Objectorg.chordcast.io.ChordSheetFileChooser
- public class ChordSheetFileChooser
- extends java.lang.Object
Permit the to the User to select the files to load and save.
| Field Summary | |
private static java.io.File |
defaultDirectory
|
private javax.swing.JFileChooser |
fileChooser
|
private ChordSheetFileFilter |
htmlFilter
|
private ChordSheetIO |
loaderSaver
|
private javax.swing.JFrame |
parent
|
private ChordSheetFileFilter |
xcsFilter
|
| Constructor Summary | |
ChordSheetFileChooser(javax.swing.JFrame frame,
javax.swing.JTabbedPane tab)
Construct the Dialog whithout show it and set the preferences |
|
| Method Summary | |
protected java.lang.String |
formatName(java.io.File f,
java.lang.String extWanted)
Obtain a filename with the extension extWanted. |
protected static java.lang.String |
getExtension(java.io.File f)
Get the extension of the file f. |
java.util.Vector |
load()
Ask a file to load then, load it. |
org.chordcast.data.ChordSheet |
load(java.lang.String url)
Load a known file. |
boolean |
save(org.chordcast.data.ChordSheet sheet)
Ask a file in which save the ChordSheet, then save it in XCS format |
void |
save(org.chordcast.data.ChordSheet sheet,
java.lang.String saveTo)
Save the ChordSheet in a XCS format file. |
void |
saveAsHtml(org.chordcast.data.ChordSheet sheet)
Ask a file in which save the ChordSheet, then save it in HTML format |
static void |
setDefaultDirectory(java.io.File dir)
Set the default directory of the FileChooser if it's a valid directory |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
parent
private final javax.swing.JFrame parent
loaderSaver
private final ChordSheetIO loaderSaver
xcsFilter
private final ChordSheetFileFilter xcsFilter
htmlFilter
private final ChordSheetFileFilter htmlFilter
fileChooser
private javax.swing.JFileChooser fileChooser
defaultDirectory
private static java.io.File defaultDirectory
| Constructor Detail |
ChordSheetFileChooser
public ChordSheetFileChooser(javax.swing.JFrame frame, javax.swing.JTabbedPane tab) throws java.lang.Exception
- Construct the Dialog whithout show it and set the preferences
| Method Detail |
setDefaultDirectory
public static void setDefaultDirectory(java.io.File dir)
- Set the default directory of the FileChooser
if it's a valid directory
load
public java.util.Vector load() throws FileFormatException
- Ask a file to load then, load it.
load
public org.chordcast.data.ChordSheet load(java.lang.String url) throws FileFormatException
- Load a known file.
saveAsHtml
public void saveAsHtml(org.chordcast.data.ChordSheet sheet) throws java.io.IOException
- Ask a file in which save the ChordSheet, then save it in HTML format
save
public boolean save(org.chordcast.data.ChordSheet sheet) throws java.io.IOException
- Ask a file in which save the ChordSheet, then save it in XCS format
save
public void save(org.chordcast.data.ChordSheet sheet, java.lang.String saveTo) throws java.io.IOException
- Save the ChordSheet in a XCS format file.
formatName
protected java.lang.String formatName(java.io.File f, java.lang.String extWanted)
- Obtain a filename with the extension extWanted.
getExtension
protected static java.lang.String getExtension(java.io.File f)
- Get the extension of the file f.
|
|||||||||
| Home >> All >> org >> chordcast >> [ io overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
org.chordcast.io.ChordSheetFileChooser