projectviewer.event
Class ProjectEvent

java.lang.Object
  extended byjava.util.EventObject
      extended byprojectviewer.event.ProjectEvent
All Implemented Interfaces:
java.io.Serializable

public final class ProjectEvent
extends java.util.EventObject

A project event.

Version:
$Id: ProjectEvent.java 7059 2006-09-17 20:58:10Z ezust $
Author:
Marcelo Vanzin
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ProjectEvent(VPTProject p)
           
ProjectEvent(VPTProject p, java.util.ArrayList added, java.util.ArrayList removed)
           
ProjectEvent(VPTProject p, VPTFile file, boolean added)
           
 
Method Summary
 VPTFile getAddedFile()
          Returns the added file (null if multiple files or no file(s) added).
 java.util.ArrayList getAddedFiles()
          Returns the list of files added (null if single file or no file(s) added).
 VPTProject getProject()
          Returns the project.
 VPTFile getRemovedFile()
          Returns the removed file (null if multiple files, or no file(s) were removed).
 java.util.ArrayList getRemovedFiles()
          Returns the list of removed files (null if no file(s) were removed).
 
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
 

Constructor Detail

ProjectEvent

public ProjectEvent(VPTProject p,
                    java.util.ArrayList added,
                    java.util.ArrayList removed)

ProjectEvent

public ProjectEvent(VPTProject p,
                    VPTFile file,
                    boolean added)

ProjectEvent

public ProjectEvent(VPTProject p)
Method Detail

getProject

public VPTProject getProject()
Returns the project.


getAddedFiles

public java.util.ArrayList getAddedFiles()
Returns the list of files added (null if single file or no file(s) added).


getAddedFile

public VPTFile getAddedFile()
Returns the added file (null if multiple files or no file(s) added).


getRemovedFiles

public java.util.ArrayList getRemovedFiles()
Returns the list of removed files (null if no file(s) were removed).


getRemovedFile

public VPTFile getRemovedFile()
Returns the removed file (null if multiple files, or no file(s) were removed).