Class PeriodAdapter

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

public class PeriodAdapter 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

    • PeriodAdapter

      public PeriodAdapter(Period period, be.gaudry.swing.schedule.model.Resource resource)
  • Method Details

    • getPeriod

      public Period getPeriod()
      Returns:
      the period
    • 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