public class FavoritesVFS extends VFS
Modifier and Type | Class and Description |
---|---|
static class |
FavoritesVFS.Favorite |
VFS.DirectoryEntryCompare
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PROTOCOL |
BROWSE_CAP, CASE_INSENSITIVE_CAP, DELETE_CAP, EA_MODIFIED, EA_SIZE, EA_STATUS, EA_TYPE, IOBUFSIZE, LOW_LATENCY_CAP, MKDIR_CAP, NON_AWT_SESSION_CAP, READ_CAP, RENAME_CAP, WRITE_CAP
Constructor and Description |
---|
FavoritesVFS() |
Modifier and Type | Method and Description |
---|---|
boolean |
_delete(java.lang.Object session,
java.lang.String path,
java.awt.Component comp)
Deletes the specified URL.
|
VFSFile |
_getFile(java.lang.Object session,
java.lang.String path,
java.awt.Component comp)
Returns the specified directory entry.
|
VFSFile[] |
_listFiles(java.lang.Object session,
java.lang.String url,
java.awt.Component comp)
Lists the specified directory.
|
boolean |
_rename(java.lang.Object session,
java.lang.String from,
java.lang.String to,
java.awt.Component comp)
Rename a favorite
|
static void |
addToFavorites(java.lang.String path,
int type) |
static VFSFile[] |
getFavorites() |
java.lang.String |
getParentOfPath(java.lang.String path)
Returns the parent of the specified path.
|
static void |
loadFavorites() |
static void |
saveFavorites() |
_backup, _canonPath, _createInputStream, _createOutputStream, _endVFSSession, _finishTwoStageSave, _listDirectory, _listDirectory, _listDirectory, _mkdir, _saveComplete, constructPath, copy, copy, copy, copy, createVFSSession, createVFSSessionSafe, getCapabilities, getDefaultColorFor, getExtendedAttributes, getFileName, getFilePath, getFileSeparator, getName, getTwoStageSaveName, insert, isMarkersFileSupported, load, reloadDirectory, save
public static final java.lang.String PROTOCOL
public java.lang.String getParentOfPath(java.lang.String path)
VFS
getParentOfPath
in class VFS
path
- The pathpublic VFSFile[] _listFiles(java.lang.Object session, java.lang.String url, java.awt.Component comp)
VFS
_listFiles
in class VFS
session
- The sessionurl
- The directory. Note that this must be a full
URL, including the host name, path name, and so on. The
username and password (if needed by the VFS) is obtained from the
session instance.comp
- The component that will parent error dialog boxespublic VFSFile _getFile(java.lang.Object session, java.lang.String path, java.awt.Component comp)
VFS
_getFile
in class VFS
session
- The session get it with VFS.createVFSSession(String, Component)
path
- The pathcomp
- The component that will parent error dialog boxespublic boolean _delete(java.lang.Object session, java.lang.String path, java.awt.Component comp)
VFS
public boolean _rename(java.lang.Object session, java.lang.String from, java.lang.String to, java.awt.Component comp)
public static void loadFavorites()
public static void addToFavorites(java.lang.String path, int type)
public static void saveFavorites()
public static VFSFile[] getFavorites()