|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.merlotxml.merlot.XerlinFileDialogs
org.merlotxml.merlot.XerlinDavFileDialogs
This class provides file dialogs for loading and saving of XML files it can ge used to provide different dialogs for different filesystems
Field Summary |
Fields inherited from class org.merlotxml.merlot.XerlinFileDialogs |
_frame |
Fields inherited from interface org.merlotxml.merlot.MerlotConstants |
ACTION_MENU_ACCELERATOR, ACTION_MENU_ICON, ACTION_NAME, ACTION_SHORT_DESCRIPTION, ACTION_SMALL_ICON, AFTER, BEFORE, ERR, INTO, UI, XML |
Constructor Summary | |
XerlinDavFileDialogs(XMLEditorFrame frame)
Constructor for the XerlinDavFileDialogs object |
Method Summary | |
static com.speedlegal.webdav.DAVServer |
getClient()
Gets the client service if it exists otherwise creates a new client returns null if filebased returns _davserver if it exists returns new _davserver if it doesn't exist |
com.speedlegal.webdav.EditorFile |
getCurrentFile()
Setter and getter methods for user current clause and file directory locations |
protected java.io.File |
getFileToOpen(MerlotFileFilter filter,
java.lang.String selectedFileName,
boolean readWrite)
Present a file chooser dialog for the user to select a file. |
protected java.io.File |
getFileToSave()
Gets the fileToSave attribute of the XerlinFileDialogs object |
protected javax.swing.JFileChooser |
getXMLFileChooser(java.lang.String dir,
javax.swing.filechooser.FileFilter filter)
Creates a Swing JFileChooser with the given filter and starting the directory given |
protected java.awt.FileDialog |
getXMLFileDialog(java.lang.String dir,
java.io.FilenameFilter filter)
Creates an AWT native-peered file dialog. |
protected java.io.File |
openLibraryFile()
Description of the Method |
void |
setCurrentFile(com.speedlegal.webdav.EditorFile f)
Sets the currentFile attribute of the XMLEditorFrame object |
Methods inherited from class org.merlotxml.merlot.XerlinFileDialogs |
getFileToOpen |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public XerlinDavFileDialogs(XMLEditorFrame frame)
frame
- Description of the ParameterMethod Detail |
public static com.speedlegal.webdav.DAVServer getClient()
protected java.io.File getFileToOpen(MerlotFileFilter filter, java.lang.String selectedFileName, boolean readWrite)
getFileToOpen
in class XerlinFileDialogs
filter
- the file filter for which files to show in the
chooserselectedFileName
- a file to select in the chooser if using the
native AWT fileDialogreadWrite
- Description of the Parameter
protected java.awt.FileDialog getXMLFileDialog(java.lang.String dir, java.io.FilenameFilter filter)
getXMLFileDialog
in class XerlinFileDialogs
dir
- the Directory to start the file dialog infilter
- a file filter for what files to show to the user in the
dialog
protected javax.swing.JFileChooser getXMLFileChooser(java.lang.String dir, javax.swing.filechooser.FileFilter filter)
getXMLFileChooser
in class XerlinFileDialogs
dir
- the Directory to start the file chooser infilter
- a file filter for what files to show to the user in the
dialog
protected java.io.File openLibraryFile()
openLibraryFile
in class XerlinFileDialogs
protected java.io.File getFileToSave()
getFileToSave
in class XerlinFileDialogs
public com.speedlegal.webdav.EditorFile getCurrentFile()
public void setCurrentFile(com.speedlegal.webdav.EditorFile f)
f
- The new currentFile value
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |