com.dlsc.flexgantt.model.gantt
Enum GanttChartModelEvent.ID

java.lang.Object
  extended by java.lang.Enum<GanttChartModelEvent.ID>
      extended by com.dlsc.flexgantt.model.gantt.GanttChartModelEvent.ID
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<GanttChartModelEvent.ID>
Enclosing class:
GanttChartModelEvent

public static enum GanttChartModelEvent.ID
extends java.lang.Enum<GanttChartModelEvent.ID>

An event identifier used to indicate what kind of event has taken place.

Since:
1.0
See Also:
GanttChartModelEvent.getId(), IGanttChartModel.addGanttChartModelListener(IGanttChartModelListener), IGanttChartModel.removeGanttChartModelListener(IGanttChartModelListener)

Enum Constant Summary
LAYER_ADDED
          Used when a layer was added to the Gantt chart model.
LAYER_REMOVED
          Used when a layer was removed from a Gantt chart model.
RELATIONSHIP_ADDED
          Used when a relationship was added to gantt chart model.
RELATIONSHIP_REMOVED
          Used when a relationship was removed from the gantt chart model.
TIMELINE_OBJECT_CHANGED
          Constant used to indicate that a timeline object has been changed in some way (new time span, new percentage complete, new capacity, ...).
TIMELINE_OBJECTS_ADDED
          Constant used to indicate that timeline objects have been added to the model.
TIMELINE_OBJECTS_REMOVED
          Constant used to indicate that timeline objects have been removed from the model.
 
Method Summary
static GanttChartModelEvent.ID valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static GanttChartModelEvent.ID[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

LAYER_ADDED

public static final GanttChartModelEvent.ID LAYER_ADDED
Used when a layer was added to the Gantt chart model.

Since:
1.0
See Also:
DefaultGanttChartModel.addLayer(ILayer)

LAYER_REMOVED

public static final GanttChartModelEvent.ID LAYER_REMOVED
Used when a layer was removed from a Gantt chart model.

Since:
1.0
See Also:
DefaultGanttChartModel.removeLayer(ILayer)

TIMELINE_OBJECTS_ADDED

public static final GanttChartModelEvent.ID TIMELINE_OBJECTS_ADDED
Constant used to indicate that timeline objects have been added to the model.

Since:
1.0
See Also:
DefaultGanttChartModel.addTimelineObjects(IGanttChartNode, ILayer, Collection)

TIMELINE_OBJECTS_REMOVED

public static final GanttChartModelEvent.ID TIMELINE_OBJECTS_REMOVED
Constant used to indicate that timeline objects have been removed from the model.

Since:
1.0
See Also:
DefaultGanttChartModel.removeTimelineObjects(IGanttChartNode, ILayer, Collection)

TIMELINE_OBJECT_CHANGED

public static final GanttChartModelEvent.ID TIMELINE_OBJECT_CHANGED
Constant used to indicate that a timeline object has been changed in some way (new time span, new percentage complete, new capacity, ...).

Since:
1.0
See Also:
DefaultGanttChartModel.timelineObjectChanged(ITimelineObject)

RELATIONSHIP_ADDED

public static final GanttChartModelEvent.ID RELATIONSHIP_ADDED
Used when a relationship was added to gantt chart model.

Since:
1.0
See Also:
DefaultGanttChartModel.addRelationships(Collection)

RELATIONSHIP_REMOVED

public static final GanttChartModelEvent.ID RELATIONSHIP_REMOVED
Used when a relationship was removed from the gantt chart model.

Since:
1.0
See Also:
DefaultGanttChartModel.removeRelationships(Collection), DefaultGanttChartModel.clearRelationships()
Method Detail

values

public static final GanttChartModelEvent.ID[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(GanttChartModelEvent.ID c : GanttChartModelEvent.ID.values())
        System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they're declared

valueOf

public static GanttChartModelEvent.ID valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name