Motorola E680 Technical Manual - Page 71
e.getRootName
View all Motorola E680 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 71 highlights
16 File System Access API /* * remove listener */ FileSystemRegistry.removeFileSystemListener(listener); /* Implementation of FileSystemListener interface * * Method rootAdded(FileSystemEvent e) is invoked when a root is added to the filesystem * Method rootRemoved(FileSystemEvent e) is invoked when a root is removed from the filesystem * To get information about just added/removed roots, the following methods of FileSystemEvent should be used: * - to get event ID: e.getID(); * - to get root name: e.getRootName(); */ class Listener implements FileSystemListener { Listener() { } public void rootAdded(FileSystemEvent e) { //implementation of the method } public void rootRemoved(FileSystemEvent e) { //implementation of the method } } 71
16
File System Access API
71
/*
* remove listener
*/
FileSystemRegistry.removeFileSystemListener(listener);
/* Implementation of FileSystemListener interface
*
* Method rootAdded(FileSystemEvent e) is invoked when a
root is added to the filesystem
* Method rootRemoved(FileSystemEvent e) is invoked when a
root is removed from the filesystem
* To get information about just added/removed roots, the
following methods of FileSystemEvent should be used:
* - to get event ID:
e.getID();
* - to get root name:
e.getRootName();
*/
class Listener implements FileSystemListener {
Listener() {
}
public void rootAdded(FileSystemEvent e) {
//implementation of the method
}
public void rootRemoved(FileSystemEvent e) {
//implementation of the method
}
}