org.openide.filesystems
Class FileRenameEvent
java.lang.Object
|
+--java.util.EventObject
|
+--org.openide.filesystems.FileEvent
|
+--org.openide.filesystems.FileRenameEvent
- All Implemented Interfaces:
- Serializable
- public class FileRenameEvent
- extends FileEvent
Event indicating a file rename.
- See Also:
- Serialized Form
Constructor Summary |
FileRenameEvent(FileObject src,
FileObject file,
String name,
String ext)
Creates new FileRenameEvent , specifying an event location. |
FileRenameEvent(FileObject src,
FileObject file,
String name,
String ext,
boolean expected)
Creates new FileRenameEvent , specifying an event location. |
FileRenameEvent(FileObject src,
String name,
String ext)
Creates new FileRenameEvent . |
FileRenameEvent
public FileRenameEvent(FileObject src,
String name,
String ext)
- Creates new
FileRenameEvent
. The FileObject
where the action took place
is assumed to be the same as the source object.
- Parameters:
src
- source file which sent this eventname
- name of the attributeoldValue
- old value of the attributenewValue
- new value of the attribute
FileRenameEvent
public FileRenameEvent(FileObject src,
FileObject file,
String name,
String ext)
- Creates new
FileRenameEvent
, specifying an event location.
- Parameters:
src
- source file which sent this eventfile
- file object where the action took placename
- name of the attributeoldValue
- old value of the attributenewValue
- new value of the attribute
FileRenameEvent
public FileRenameEvent(FileObject src,
FileObject file,
String name,
String ext,
boolean expected)
- Creates new
FileRenameEvent
, specifying an event location.
- Parameters:
src
- source file which sent this eventfile
- file object where the action took placename
- name of the attributeoldValue
- old value of the attributenewValue
- new value of the attributeexpected
- sets flag whether the value was expected
getName
public String getName()
- Get original name of the file.
- Returns:
- Name of the file.
getExt
public String getExt()
- Get original extension of the file.
- Returns:
- Extension of the file.
Built on February 22 2001. | Portions Copyright 1997-2000 Sun Microsystems, Inc. All rights reserved.