eu.beesoft.gantt
Interface TimelineObject


public interface TimelineObject

Each object used as user-object in gantt treetable has to implement this interface.


Method Summary
 void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
          Adds instance of PropertyChangeListener to a listener list.
 java.util.List<Dependency> getDependencies()
          Returns a list of all dependencies between this TimelineObject and other objects.
 java.util.Date getEndDate()
          Returns the end date of this TimelineObject.
 java.util.Date getStartDate()
          Returns the start date of this TimelineObject.
 boolean isMilestone()
          Returns true if this is a milestone object.
 boolean isSummary()
          Returns true if this is a summary object (it contains some subtasks).
 void setDependencies(java.util.List<Dependency> dependencies)
          Sets a list of all dependencies between this TimelineObject and other objects.
 void setEndDate(java.util.Date endDate)
          Sets the new end date for this TimelineObject.
 void setMilestone(boolean milestone)
          Sets the milestone property.
 void setStartDate(java.util.Date startDate)
          Sets the new start date for this TimelineObject.
 

Method Detail

addPropertyChangeListener

void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Adds instance of PropertyChangeListener to a listener list.

Parameters:
listener - - a listener to add

getStartDate

java.util.Date getStartDate()
Returns the start date of this TimelineObject.

Returns:
the start date

setStartDate

void setStartDate(java.util.Date startDate)
Sets the new start date for this TimelineObject.

Parameters:
startDate - the start date to set

getEndDate

java.util.Date getEndDate()
Returns the end date of this TimelineObject.

Returns:
the end date

setEndDate

void setEndDate(java.util.Date endDate)
Sets the new end date for this TimelineObject.

Parameters:
endDate - the end date to set

isSummary

boolean isSummary()
Returns true if this is a summary object (it contains some subtasks).

Returns:
the summary state

isMilestone

boolean isMilestone()
Returns true if this is a milestone object.

Returns:
the milestone property

setMilestone

void setMilestone(boolean milestone)
Sets the milestone property.

Parameters:
milestone - the milestone to set

getDependencies

java.util.List<Dependency> getDependencies()
Returns a list of all dependencies between this TimelineObject and other objects.

Returns:
the dependencies of this object

setDependencies

void setDependencies(java.util.List<Dependency> dependencies)
Sets a list of all dependencies between this TimelineObject and other objects.

Parameters:
dependencies - - the dependencies to set