net.sf.mpxj.listener
Class DefaultProjectListener

java.lang.Object
  extended by net.sf.mpxj.listener.DefaultProjectListener
All Implemented Interfaces:
ProjectListener

public class DefaultProjectListener
extends Object
implements ProjectListener

This class is a default implementation of the ProjectListener interface. This is designed to be subclassed by developers to allow them to implement the event methods they require, without having to provide implementations for other methods which they are not interested in.


Constructor Summary
DefaultProjectListener()
           
 
Method Summary
 void assignmentRead(ResourceAssignment assignment)
          This method is called when an assignment is read from a file.
 void assignmentWritten(ResourceAssignment assignment)
          This method is called when an assignment is written to a file.
 void calendarRead(ProjectCalendar calendar)
          This method is called when a calendar is read from a file.
 void calendarWritten(ProjectCalendar calendar)
          This method is called when a calendar is written to a file.
 void relationRead(Relation relation)
          This method is called when a relation is read from a file.
 void relationWritten(Relation relation)
          This method is called when a relation is written to a file.
 void resourceRead(Resource resource)
          This method is called when a resource is read from a file.
 void resourceWritten(Resource resource)
          This method is called when a resource is written to a file.
 void taskRead(Task task)
          This method is called when a task is read from a file.
 void taskWritten(Task task)
          This method is called when a task is written to a file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultProjectListener

public DefaultProjectListener()
Method Detail

taskRead

public void taskRead(Task task)
This method is called when a task is read from a file.

Specified by:
taskRead in interface ProjectListener
Parameters:
task - task instance

taskWritten

public void taskWritten(Task task)
This method is called when a task is written to a file.

Specified by:
taskWritten in interface ProjectListener
Parameters:
task - task instance

resourceRead

public void resourceRead(Resource resource)
This method is called when a resource is read from a file.

Specified by:
resourceRead in interface ProjectListener
Parameters:
resource - resource instance

resourceWritten

public void resourceWritten(Resource resource)
This method is called when a resource is written to a file.

Specified by:
resourceWritten in interface ProjectListener
Parameters:
resource - resource instance

calendarRead

public void calendarRead(ProjectCalendar calendar)
This method is called when a calendar is read from a file.

Specified by:
calendarRead in interface ProjectListener
Parameters:
calendar - calendar instance

calendarWritten

public void calendarWritten(ProjectCalendar calendar)
This method is called when a calendar is written to a file.

Specified by:
calendarWritten in interface ProjectListener
Parameters:
calendar - calendar instance

assignmentRead

public void assignmentRead(ResourceAssignment assignment)
This method is called when an assignment is read from a file.

Specified by:
assignmentRead in interface ProjectListener
Parameters:
assignment - resource assignment

assignmentWritten

public void assignmentWritten(ResourceAssignment assignment)
This method is called when an assignment is written to a file.

Specified by:
assignmentWritten in interface ProjectListener
Parameters:
assignment - assignment instance

relationRead

public void relationRead(Relation relation)
This method is called when a relation is read from a file.

Specified by:
relationRead in interface ProjectListener
Parameters:
relation - relation instance

relationWritten

public void relationWritten(Relation relation)
This method is called when a relation is written to a file.

Specified by:
relationWritten in interface ProjectListener
Parameters:
relation - relation instance


Copyright © 2012. All Rights Reserved.