mavis
Class ProjectEvent

java.lang.Object
  extended by java.util.EventObject
      extended by mavis.ProjectEvent
All Implemented Interfaces:
java.io.Serializable

public class ProjectEvent
extends java.util.EventObject

ProjectEvent is used to notify others about the state change of a project.

See Also:
Serialized Form

Nested Class Summary
static class ProjectEvent.Type
          The type of a project event.
 
Field Summary
private  Project project
          The project that sent this event.
private  ProjectEvent.Type type
          The type of event this is.
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ProjectEvent(Project project, ProjectEvent.Type type)
          Creates a new project event.
 
Method Summary
 Project getProject()
          Returns the project that sent this event.
 ProjectEvent.Type getType()
          Returns the type of this event.
 
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
 

Field Detail

project

private Project project
The project that sent this event.


type

private ProjectEvent.Type type
The type of event this is.

Constructor Detail

ProjectEvent

public ProjectEvent(Project project,
                    ProjectEvent.Type type)
Creates a new project event.

Parameters:
project - the project that sends this event.
type - the type of the event.
Throws:
java.lang.NullPointerException - if any of the arguments is null.
Method Detail

getProject

public Project getProject()
Returns the project that sent this event.


getType

public ProjectEvent.Type getType()
Returns the type of this event.