GlideTimelineItem - Global

GlideTimelineItem extends the abstract ScheduleItem class to define additional properties that are specific to the time line.

A time line item is essentially any item that is displayed in a singular row across the time line. A GlideTimelineItem has zero or more associated spans (TimelineSpan objects).

GlideTimelineItem - createTimelineSpan(String tableName)

Creates a new TimelineSpan object associated with the current instance object.

If no other TimelineSpan objects exist, the newly created object will share the same sys_id as current instance object. Otherwise, a randomly generated GUID will be used.

Table 1. Parameters
Name Type Description
tableName String The name of the table associated with current object.
Table 2. Returns
TypeDescription
ObjectThe newly-created span object instance.

GlideTimelineItem - createTimelineSpan(String tableName, String sys_id)

Creates a new TimelineSpan object associated with the current instance object using the specified table and sysId.

Table 3. Parameters
Name Type Description
tableName String The name of the table associated with current object
sys_id String The sys ID for the object.
Table 4. Returns
TypeDescription
ObjectThe newly-created span object instance.

GlideTimelineItem - getImage( )

Returns a string specifying the name of the image file associated with the current GlideTimelineItem.

Table 5. Parameters
Name Type Description
none
Table 6. Returns
TypeDescription
StringThe name of the image file associated with the current GlideTimelineItem. If no image is associated with the current item, an empty string ("") is returned.

GlideTimelineItem - getIsDroppable( )

Indicates whether or not the current instance object should be allowed as a "drop zone" when moving timeline elements vertically.

Table 7. Parameters
Name Type Description
none
Table 8. Returns
TypeDescription
BooleanTrue if droppable; false otherwise.

GlideTimelineItem - getLeftLabelText( )

Returns the text to be displayed in the left pane (if enabled).

Table 9. Parameters
Name Type Description
none
Table 10. Returns
TypeDescription
StringThe value of the text to be displayed in the left pane.

GlideTimelineItem - getParent( )

Returns the unique sysId of the current GlideTimelineItem's parent object.

Table 11. Parameters
Name Type Description
none
Table 12. Returns
TypeDescription
StringThe unique sysId of the current GlideTimelineItem's parent object. If the parent does not exist, this will return an empty string ("").

GlideTimelineItem - getTimelineSpans( )

Returns all the TimelineSpan objects associated with the current instance in an ArrayList.

Table 13. Parameters
Name Type Description
none
Table 14. Returns
TypeDescription
Object ArrayThe list of TimelineSpan objects associated with the current instance.

GlideTimelineItem - GlideTimelineItem(String tableName)

Create a "dummy" GlideTimelineItem object.

This is useful for creating rows that do not allow any YMoving into; however, contain nested children (e.g. The top-level "Users" row in the Group Resource Timeline). The sys_id needs to be unique for DOM level functions to parse correctly. By default this object will not be "droppable" because a table name was not specified.

Table 15. Parameters
Name Type Description
tableName String The name of the table associated with current object.
Table 16. Returns
Type Description
void

GlideTimelineItem - GlideTimelineItem(String tableName, String sys_id)

Constructor that sets the required table and sys_id properties.

The rest of this object's properties should be set by the caller. By default, this object instance is "droppable" since a table name is specified.

Table 17. Parameters
Name Type Description
tableName String The name of the table associated with current object.
sys_id String The sys ID for the object.
Table 18. Returns
TypeDescription
void

GlideTimelineItem - isTextBold( )

Indicates if the left pane text is set to be displayed using a bold style.

Table 19. Parameters
Name Type Description
none
Table 20. Returns
TypeDescription
BooleanTrue if the text should be bolded; otherwise false.

GlideTimelineItem - setImage(String strImageName)

Sets the name of the image file (including it's path) to use as the icon for the item in the left pane.

Table 21. Parameters
Name Type Description
strImageName String The name of the image, including its path.
Table 22. Returns
TypeDescription
void

GlideTimelineItem - setIsDraggable(Boolean b)

Sets whether or not the current instance object can be clicked and dragged into another GlideTimelineItem.

Table 23. Parameters
Name Type Description
b Boolean True if item should be able to be moved with click and drag. Otherwise, false.
Table 24. Returns
TypeDescription
void

GlideTimelineItem - setLeftLabelText(String strText)

Specifies the text to display in the left pane for this item.

Table 25. Parameters
Name Type Description
strText String The text to display in the left pane for this item.
Table 26. Returns
TypeDescription
void

GlideTimelineItem - setParent(String sysId)

Sets the parent of the current GlideTimelineItem.

Table 27. Parameters
Name Type Description
sysId String The sysID of the GlideTimelineItem that should become the parent of the current GlideTimelineItem.
Table 28. Returns
TypeDescription
void

GlideTimelineItem - setTextBold(Boolean b)

Specifies whether or not to bold the text style of the item in the left pane.

Table 29. Parameters
Name Type Description
b Boolean True if text in left pane should be bolded; otherwise false.
Table 30. Returns
TypeDescription
void