TimelineSpan - Global
-
- UpdatedFeb 1, 2024
- 6 minutes to read
- Washington DC
- API reference
This class defines a set of properties that describe the characteristics and interactive behavior of an element rendered within a TimelineItem.
Since it is extremely important for all of a TimelineItem's collection of spans to be unique, the creation of a new instance should be performed via the createTimelineItem method of an existing TimelineIteminstance.
TimelineSpan - addPredecessor(Object Array objArray)
Adds multiple relationships between the current instance and other TimelineSpan objects by enumerating through the array of JavaScript objects.
Each object should have an internal property relationship_sys_id and predecessor_sys_id specified.
Name | Type | Description |
---|---|---|
objArray | Object Array | JavaScript object array that contains two internal properties: relationship_sys_id and predecessor_sys_id. |
Type | Description |
---|---|
void |
TimelineSpan - addPredecessor(String strPredecessorSysId, String strRelationshipSysId, String strTableName)
Adds the specified relationship between the current instance and another TimelineSpan and allows the relationship to open a GlideWindow to display information about the relationship.
Name | Type | Description |
---|---|---|
strPredecessorSysId | String | The sys ID of the planned task that is the predecessor of the relationship. |
strRelationshipSysId | String | The sys ID of the relationship of the relationship. |
strTableName | String | The name of the table for the relationship. |
Type | Description |
---|---|
void |
TimelineSpan - addPredecessor(String strPredecessorSysId, String strRelationshipSysId)
Adds the specified relationship between the current instance and another TimelineSpan with sys ID strPredecessorSysId.
The drawn line will not have any double click handlers associated with it.
Name | Type | Description |
---|---|---|
strPredecessorSysId | String | The sys ID of the planned task that is the predecessor of the relationship. |
strRelationshipSysId | String | The sys ID of the relationship of the relationship. |
Type | Description |
---|---|
void |
TimelineSpan - getAllowXDragLeft()
Returns the boolean value of the AllowXDragLeft property.
Name | Type | Description |
---|---|---|
none |
Type | Description |
---|---|
Boolean | True if the object's start time can be adjusted; False otherwise. |
TimelineSpan - getAllowXDragRight()
Returns the boolean value of the AllowXDragRight property.
Name | Type | Description |
---|---|---|
none |
Type | Description |
---|---|
Boolean | True if the object's end time can be adjusted; false otherwise. |
TimelineSpan - getAllowXMove()
Returns the boolean value of the AllowXMove property.
Name | Type | Description |
---|---|---|
none |
Type | Description |
---|---|
Boolean | True if the object can be moved; false otherwise. |
TimelineSpan - getAllowYMove()
Returns the boolean value of the AllowYMove property.
Name | Type | Description |
---|---|---|
none |
Type | Description |
---|---|
Boolean | True if the object can be moved vertically; false otherwise. |
TimelineSpan - getAllowYMovePredecessor()
Returns the boolean value of the AllowYMovePredecessor property.
Name | Type | Description |
---|---|---|
none |
Type | Description |
---|---|
Boolean | True if the a dashed relationship line can be drawn from the current object to a new successor; false otherwise. |
TimelineSpan - getInnerSegmentClass()
Returns the name of the current inner segment class for the TimelineSpan.
Name | Type | Description |
---|---|---|
none |
Type | Description |
---|---|
String | The name of the class for the current inner segment style. |
TimelineSpan - getInnerSegmentEndTimeMs()
Returns the time in milliseconds of the end time of the inner segment portion of the TimelineSpan .
Name | Type | Description |
---|---|---|
none |
Type | Description |
---|---|
Number | The end time of the TimelineSpan inner segment portion in milliseconds. |
TimelineSpan - getInnerSegmentStartTimeMs()
Returns the time in milliseconds of the start time of the inner segment portion of the TimelineSpan.
Name | Type | Description |
---|---|---|
none |
Type | Description |
---|---|
Number | The start time of the TimelineSpan inner segment portion in milliseconds. |
TimelineSpan - getIsChanged()
Returns a boolean that specifies whether or not the current timeline item has been modified after initialization.
Name | Type | Description |
---|---|---|
none |
Type | Description |
---|---|
Boolean | True if the current span has been marked as changed; otherwise false. |
TimelineSpan - getPointIconClass()
Returns a string that specifies the name of the icon class to use for displaying the element on the timeline if the current instance has zero duration.
Name | Type | Description |
---|---|---|
none |
Type | Description |
---|---|
String | The name of the icon class to use for displaying the current TimelineSpan if the duration is zero. |
TimelineSpan - getPredecessors()
Returns an array of all the predecessor objects associated with the current instance. Each array object is a HashMap that contains a predecessor_sys_id and relationship_sys_id property.
Name | Type | Description |
---|---|---|
none |
Type | Description |
---|---|
Object Array | List of HashMaps that contain two internal properties: predecessor_sys_id and relationship_sys_id. |
TimelineSpan - getSpanColor()
Returns the string name of the color specified for displaying this span.
Name | Type | Description |
---|---|---|
none |
Type | Description |
---|---|
String | The HTML color name to use as the background color for the element. |
TimelineSpan - getSpanText()
Returns the string that specifies the text to display adjacent to the time element.
glideTimeline.showTimelineText(true)
.Name | Type | Description |
---|---|---|
None |
Type | Description |
---|---|
String | Text displayed adjacent to the element. |
TimelineSpan - getStartTimeMs()
Returns the start time in milliseconds of the current TimelineSpan object.
Name | Type | Description |
---|---|---|
none |
Type | Description |
---|---|
Number | The start time of the element in milliseconds. |
TimelineSpan - getSysId()
Returns the sys ID of the current object.
This method is useful for returning the sys Id when the current object instance was created without a specific sys Id to obtain the dynamically generated GUID.
Name | Type | Description |
---|---|---|
none |
Type | Description |
---|---|
String | The unique system ID of the current element. |
TimelineSpan - getTable()
Returns the name of the table where the sys ID is referenced.
Name | Type | Description |
---|---|---|
none |
Type | Description |
---|---|
String | The table name. |
TimelineSpan - getTooltip()
Returns the text/html to display in the tooltip when the TimelineSpan element is being hovered over.
Name | Type | Description |
---|---|---|
none |
Type | Description |
---|---|
String | The tooltip text. |
TimelineSpan - setAllowXDragLeft(Boolean bFlag)
Sets a flag that determines whether the element's start date can be dragged left or right therefore adjusting the duration of the task.
The effect of this behavior is controlled by the script include that handles the appropriate event. The default value for this property is false.
Name | Type | Description |
---|---|---|
bFlag | Boolean | True to enable the element's start date to be adjusted; false otherwise. |
Type | Description |
---|---|
void |
TimelineSpan - setAllowXDragRight(Boolean bFlag)
Sets a flag that determines whether the element's end date can be dragged left or right therefore adjusting the duration of the task.
The effect of this behavior is controlled by the script include that handles the appropriate event. The default value for this property is false.
Name | Type | Description |
---|---|---|
bFlag | Boolean | True to enable the element's end date to be adjusted; false otherwise. |
Type | Description |
---|---|
void |
TimelineSpan - setAllowXMove(Boolean bFlag )
Sets a flag that determines whether the element can be moved to start at a different time.
The effect of this behavior is controlled by the script include that handles the appropriate event. The default value for this property is false.
Name | Type | Description |
---|---|---|
bFlag | Boolean | True to enable the element to be moved horizontally; false otherwise. |
Type | Description |
---|---|
void |
TimelineSpan - setAllowYMove(Boolean bFlag )
Sets a flag that determines whether the element can be dragged vertically on the timeline.
The effect of this behavior is controlled by the script include that handles the appropriate event. The default value for this property is false.
Name | Type | Description |
---|---|---|
bFlag | Boolean | True to enable the element to be moved vertically; false otherwise. |
Type | Description |
---|---|
void |
TimelineSpan - setAllowYMovePredecessor(Boolean bFlag)
Sets a flag that determines whether a dashed relationship line can be drawn from this element interactively on the timeline.
The effect of this behavior is controlled by the script include that handles the appropriate event. The default value for this property is false.
Name | Type | Description |
---|---|---|
bFlag | Boolean | True to enable a relationship line to be drawn from this element; false otherwise. |
Type | Description |
---|---|
void |
TimelineSpan - setInnerSegmentClass(String styleClass)
Specifies the name of the class to use for stylizing the inner segment if it exists.
The default value is green.
Name | Type | Description |
---|---|---|
styleClass | String | One of the following values: green, blue, or silver. |
Type | Description |
---|---|
void |
TimelineSpan - setInnerSegmentTimeSpan(Number startTimeMs, Number endTimeMs)
Creates an inner segment to show within the current timespan defined by the range specified.
Name | Type | Description |
---|---|---|
startTimeMs | Number | The start time in milliseconds. |
endTimeMs | Number | The end time in milliseconds. |
Type | Description |
---|---|
void |
TimelineSpan - setPointIconClass(String iconClassName)
Sets the icon class to use for displaying the current element on the timeline if the current instance has zero duration.
Name | Type | Description |
---|---|---|
iconClassName | String | String that specifies one of the following values:
|
Type | Description |
---|---|
void |
TimelineSpan - setSpanColor(String strColor)
Sets the color for displaying this span.
Name | Type | Description |
---|---|---|
strColor | String | The HTML color name for the color of this span. |
Type | Description |
---|---|
void |
TimelineSpan - setSpanText(String strSpanText)
Sets the text to display adjacent to the time element.
glideTimeline.showTimelineText(true).
Name | Type | Description |
---|---|---|
strSpanText | String | The text to display next to the time element. |
Type | Description |
---|---|
void |
TimelineSpan - setTimeSpan(Number nStartTime, Number nEndTimeMs)
Sets the start and end dates for the current span.
Name | Type | Description |
---|---|---|
nStartTime | Number | The start time in milliseconds. |
nEndTimeMs | Number | The end time in milliseconds. |
Type | Description |
---|---|
void |
TimelineSpan - setTimeSpan(String strStartTime, String strEndTimeMs)
Sets the start and end times for the current span.
Name | Type | Description |
---|---|---|
strStartTime | String | The start time in milliseconds. |
strEndTimeMs | String | The end time in milliseconds. |
Type | Description |
---|---|
void |
TimelineSpan - setTooltip(String strTooltipText)
Sets the text to display in the tooltip when the TimelinSpan element is being hovered over.
Name | Type | Description |
---|---|---|
strTooltipText | String | The text to display in the tooltip. |
Type | Description |
---|---|
void |
On this page
- TimelineSpan - addPredecessor(Object Array objArray)
- TimelineSpan - addPredecessor(String strPredecessorSysId, String strRelationshipSysId, String strTableName)
- TimelineSpan - addPredecessor(String strPredecessorSysId, String strRelationshipSysId)
- TimelineSpan - getAllowXDragLeft()
- TimelineSpan - getAllowXDragRight()
- TimelineSpan - getAllowXMove()
- TimelineSpan - getAllowYMove()
- TimelineSpan - getAllowYMovePredecessor()
- TimelineSpan - getInnerSegmentClass()
- TimelineSpan - getInnerSegmentEndTimeMs()
- TimelineSpan - getInnerSegmentStartTimeMs()
- TimelineSpan - getIsChanged()
- TimelineSpan - getPointIconClass()
- TimelineSpan - getPredecessors()
- TimelineSpan - getSpanColor()
- TimelineSpan - getSpanText()
- TimelineSpan - getStartTimeMs()
- TimelineSpan - getSysId()
- TimelineSpan - getTable()
- TimelineSpan - getTooltip()
- TimelineSpan - setAllowXDragLeft(Boolean bFlag)
- TimelineSpan - setAllowXDragRight(Boolean bFlag)
- TimelineSpan - setAllowXMove(Boolean bFlag )
- TimelineSpan - setAllowYMove(Boolean bFlag )
- TimelineSpan - setAllowYMovePredecessor(Boolean bFlag)
- TimelineSpan - setInnerSegmentClass(String styleClass)
- TimelineSpan - setInnerSegmentTimeSpan(Number startTimeMs, Number endTimeMs)
- TimelineSpan - setPointIconClass(String iconClassName)
- TimelineSpan - setSpanColor(String strColor)
- TimelineSpan - setSpanText(String strSpanText)
- TimelineSpan - setTimeSpan(Number nStartTime, Number nEndTimeMs)
- TimelineSpan - setTimeSpan(String strStartTime, String strEndTimeMs)
- TimelineSpan - setTooltip(String strTooltipText)