Class CourseAdapter

java.lang.Object
be.gaudry.swing.edu.planning.scheduler.adapter.CourseAdapter
All Implemented Interfaces:
IPeriod, be.gaudry.swing.schedule.model.Resource, Serializable

public class CourseAdapter extends Object implements be.gaudry.swing.schedule.model.Resource, IPeriod
Since:
1.0 28 janv. 2009
Author:
Steph GAUDRY
See Also:
Serialized Form
  • Constructor Details

    • CourseAdapter

      public CourseAdapter(Course course)
      Parameters:
      course -
  • Method Details

    • toString

      public String toString()
      Specified by:
      toString in interface be.gaudry.swing.schedule.model.Resource
      Overrides:
      toString in class Object
      See Also:
      Course.toString()
    • getChildResources

      public List getChildResources()
      Specified by:
      getChildResources in interface be.gaudry.swing.schedule.model.Resource
    • getTasks

      public List getTasks()
      Specified by:
      getTasks in interface be.gaudry.swing.schedule.model.Resource
    • getValueAt

      public Object getValueAt(int colIndex)
      Specified by:
      getValueAt in interface be.gaudry.swing.schedule.model.Resource
    • hasChildren

      public boolean hasChildren()
      Specified by:
      hasChildren in interface be.gaudry.swing.schedule.model.Resource
    • getEndDate

      public Date getEndDate()
      Description copied from interface: IPeriod
      The date when the IPeriod stops.
      Specified by:
      getEndDate in interface IPeriod
      Returns:
      the endDate
    • getIntervalString

      public String getIntervalString()
      Description copied from interface: IPeriod
      String representation of the DefaultPeriod including the start date and the end date.
      Specified by:
      getIntervalString in interface IPeriod
      Returns:
      the IPeriod String representation
    • getStartDate

      public Date getStartDate()
      Description copied from interface: IPeriod
      The date when the IPeriod starts.
      Specified by:
      getStartDate in interface IPeriod
      Returns:
      the startDate
    • setEndDate

      public void setEndDate(Date endDate)
      Specified by:
      setEndDate in interface IPeriod
      Parameters:
      endDate - the endDate to set
      See Also:
      IPeriod.getEndDate()
    • setStartDate

      public void setStartDate(Date startDate)
      Specified by:
      setStartDate in interface IPeriod
      Parameters:
      startDate - the startDate to set
      See Also:
      IPeriod.getStartDate()