JIDE 3.5.15

com.jidesoft.gantt
Class DefaultGanttEntryRelationModel<S extends GanttEntry<?>>

java.lang.Object
  extended by com.jidesoft.gantt.AbstractGanttEntryRelationModel<S>
      extended by com.jidesoft.gantt.DefaultGanttEntryRelationModel<S>
Type Parameters:
S - The type of the GanttEntry in the model.
All Implemented Interfaces:
GanttEntryRelationModel<S>, Serializable

public class DefaultGanttEntryRelationModel<S extends GanttEntry<?>>
extends AbstractGanttEntryRelationModel<S>

DefaultGanttEntryRelationModel is a default implementation of GanttEntryRelationModel.

See Also:
Serialized Form

Field Summary
protected  Map<S,Set<GanttEntryRelation<S>>> _relations
          The map from GanttEntry to a set of GanttEntryRelation.
 
Fields inherited from class com.jidesoft.gantt.AbstractGanttEntryRelationModel
listenerList
 
Constructor Summary
DefaultGanttEntryRelationModel()
           
 
Method Summary
 void addEntryRelation(GanttEntryRelation<S> relation)
          Adds a new GanttEntryRelation.
 GanttEntryRelation<S> getEntryRelation(S start, S end)
          Gets the GanttEntryRelations for the specified GanttEntry.
 Set<GanttEntryRelation<S>> getEntryRelations(S entry)
          Gets the GanttEntryRelations for the specified GanttEntry.
 void removeAllEntryRelations()
           
 void removeEntryRelation(GanttEntryRelation<S> relation)
          Removes an existing GanttEntryRelation.
 void removeEntryRelations(S entry)
          Removes all relations associated with the specified entry.
 
Methods inherited from class com.jidesoft.gantt.AbstractGanttEntryRelationModel
addGanttEntryRelationListener, fireGanttEntryRealtionRemoved, fireGanttEntryRelationAdded, fireGanttEntryRelationChanged, fireGanttEntryRelationChanged, fireGanttEntryRelationCleared, getGanttEntryRelationListeners, removeGanttEntryRelationListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_relations

protected final Map<S extends GanttEntry<?>,Set<GanttEntryRelation<S extends GanttEntry<?>>>> _relations
The map from GanttEntry to a set of GanttEntryRelation.

Since:
3.4.2
Constructor Detail

DefaultGanttEntryRelationModel

public DefaultGanttEntryRelationModel()
Method Detail

addEntryRelation

public void addEntryRelation(GanttEntryRelation<S> relation)
Description copied from interface: GanttEntryRelationModel
Adds a new GanttEntryRelation.

Parameters:
relation - the GanttEntryRelation.

getEntryRelations

public Set<GanttEntryRelation<S>> getEntryRelations(S entry)
Description copied from interface: GanttEntryRelationModel
Gets the GanttEntryRelations for the specified GanttEntry.

Parameters:
entry - the GanttEntry.
Returns:
the GanttEntryRelations associated with the specified GanttEntry.

getEntryRelation

public GanttEntryRelation<S> getEntryRelation(S start,
                                              S end)
Description copied from interface: GanttEntryRelationModel
Gets the GanttEntryRelations for the specified GanttEntry.

Parameters:
start - the GanttEntry.
end - the GanttEntry.
Returns:
the GanttEntryRelations associated with the specified GanttEntry.

removeEntryRelation

public void removeEntryRelation(GanttEntryRelation<S> relation)
Description copied from interface: GanttEntryRelationModel
Removes an existing GanttEntryRelation.

Parameters:
relation - the GanttEntryRelation.

removeEntryRelations

public void removeEntryRelations(S entry)
Description copied from interface: GanttEntryRelationModel
Removes all relations associated with the specified entry.

Parameters:
entry - the entry

removeAllEntryRelations

public void removeAllEntryRelations()

JIDE 3.5.15