Class SchoolYearAdapter

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

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

    • SchoolYearAdapter

      public SchoolYearAdapter(SchoolYear schoolYear)
      Parameters:
      schoolYear -
  • Method Details

    • toString

      public String toString()
      Specified by:
      toString in interface be.gaudry.swing.schedule.model.Resource
      Overrides:
      toString in class Object
      See Also:
      SchoolYear.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
    • getInterval

      public org.joda.time.Interval getInterval()
      Specified by:
      getInterval in interface be.gaudry.swing.schedule.model.Task
    • getLabel

      public String getLabel()
      Specified by:
      getLabel in interface be.gaudry.swing.schedule.model.Task
    • getResource

      public be.gaudry.swing.schedule.model.Resource getResource()
      Specified by:
      getResource in interface be.gaudry.swing.schedule.model.Task
    • getToolTipText

      public String getToolTipText()
      Specified by:
      getToolTipText in interface be.gaudry.swing.schedule.model.Task
    • isGraphicallyEditable

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

      public Date getEndDate()
      Description copied from interface: IPeriod
      The date when the IPeriod stops.
      Specified by:
      getEndDate in interface IPeriod
      Returns:
      the endDate
    • 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()
    • 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