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 Summary
ConstructorsConstructorDescriptionPeriodAdapter(Period period, be.gaudry.swing.schedule.model.Resource resource) -
Method Summary
Modifier and TypeMethodDescriptionThe date when theIPeriodstops.org.joda.time.IntervalString representation of the DefaultPeriod including thestart dateand theend date.getLabel()be.gaudry.swing.schedule.model.ResourceThe date when theIPeriodstarts.getTasks()getValueAt(int colIndex)booleanbooleanvoidsetEndDate(Date endDate)voidsetStartDate(Date startDate)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface be.gaudry.swing.schedule.model.Resource
toString
-
Constructor Details
-
PeriodAdapter
-
-
Method Details
-
getPeriod
- Returns:
- the period
-
getChildResources
- Specified by:
getChildResourcesin interfacebe.gaudry.swing.schedule.model.Resource
-
getTasks
- Specified by:
getTasksin interfacebe.gaudry.swing.schedule.model.Resource
-
getValueAt
- Specified by:
getValueAtin interfacebe.gaudry.swing.schedule.model.Resource
-
hasChildren
public boolean hasChildren()- Specified by:
hasChildrenin interfacebe.gaudry.swing.schedule.model.Resource
-
getInterval
public org.joda.time.Interval getInterval()- Specified by:
getIntervalin interfacebe.gaudry.swing.schedule.model.Task
-
getLabel
- Specified by:
getLabelin interfacebe.gaudry.swing.schedule.model.Task
-
getResource
public be.gaudry.swing.schedule.model.Resource getResource()- Specified by:
getResourcein interfacebe.gaudry.swing.schedule.model.Task
-
getToolTipText
- Specified by:
getToolTipTextin interfacebe.gaudry.swing.schedule.model.Task
-
isGraphicallyEditable
public boolean isGraphicallyEditable()- Specified by:
isGraphicallyEditablein interfacebe.gaudry.swing.schedule.model.Task
-
getEndDate
Description copied from interface:IPeriodThe date when theIPeriodstops.- Specified by:
getEndDatein interfaceIPeriod- Returns:
- the endDate
-
getStartDate
Description copied from interface:IPeriodThe date when theIPeriodstarts.- Specified by:
getStartDatein interfaceIPeriod- Returns:
- the startDate
-
setEndDate
- Specified by:
setEndDatein interfaceIPeriod- Parameters:
endDate- the endDate to set- See Also:
IPeriod.getEndDate()
-
setStartDate
- Specified by:
setStartDatein interfaceIPeriod- Parameters:
startDate- the startDate to set- See Also:
IPeriod.getStartDate()
-
getIntervalString
Description copied from interface:IPeriodString representation of the DefaultPeriod including thestart dateand theend date.- Specified by:
getIntervalStringin interfaceIPeriod- Returns:
- the
IPeriodString representation
-