public final class FileStatusEvent extends EventObject
source
Constructor and Description |
---|
FileStatusEvent(FileSystem fs,
boolean icon,
boolean name)
Creates new FileStatusEvent.
|
FileStatusEvent(FileSystem fs,
FileObject file,
boolean icon,
boolean name)
Creates new FileStatusEvent
|
FileStatusEvent(FileSystem fs,
Set<? extends FileObject> files,
boolean icon,
boolean name)
Creates new FileStatusEvent
|
Modifier and Type | Method and Description |
---|---|
FileSystem |
getFileSystem()
Getter for filesystem that caused the change.
|
boolean |
hasChanged(FileObject file)
Check whether the given file has been changed.
|
boolean |
isIconChange()
Do the files changed their icons?
|
boolean |
isNameChange()
Is the change change of name?
|
getSource, toString
public FileStatusEvent(FileSystem fs, Set<? extends FileObject> files, boolean icon, boolean name)
fs
- filesystem that causes the eventfiles
- set of FileObjects that has been changedicon
- has icon changed?name
- has name changed?public FileStatusEvent(FileSystem fs, FileObject file, boolean icon, boolean name)
fs
- filesystem that causes the eventfile
- file object that has been changedicon
- has icon changed?name
- has name changed?public FileStatusEvent(FileSystem fs, boolean icon, boolean name)
fs
- filesystem that causes the eventicon
- has icon changed?name
- has name changed?public FileSystem getFileSystem()
public boolean isNameChange()
public boolean isIconChange()
public boolean hasChanged(FileObject file)
file
- file to check