org.netbeans.lib.cvsclient.event
Class FileAddedEvent
java.lang.Object
java.util.EventObject
org.netbeans.lib.cvsclient.event.CVSEvent
org.netbeans.lib.cvsclient.event.FileAddedEvent
- All Implemented Interfaces:
- java.io.Serializable
public class FileAddedEvent
- extends CVSEvent
Indicates that a file has been added.
- See Also:
- Serialized Form
Field Summary |
protected java.lang.String |
path
The path of the file that has been added |
Fields inherited from class java.util.EventObject |
source |
Constructor Summary |
FileAddedEvent(java.lang.Object source,
java.lang.String path)
Construct a FileAddedEvent |
Method Summary |
protected void |
fireEvent(CVSListener listener)
Fire the event to the event listener. |
java.lang.String |
getFilePath()
Get the path of the file that has been added |
Methods inherited from class java.util.EventObject |
getSource, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
path
protected java.lang.String path
- The path of the file that has been added
FileAddedEvent
public FileAddedEvent(java.lang.Object source,
java.lang.String path)
- Construct a FileAddedEvent
- Parameters:
source
- the source of the event
getFilePath
public java.lang.String getFilePath()
- Get the path of the file that has been added
fireEvent
protected void fireEvent(CVSListener listener)
- Fire the event to the event listener. Subclasses should call the
appropriate method on the listener to dispatch this event.
- Specified by:
fireEvent
in class CVSEvent
- Parameters:
listener
- the event listener