class TaskJuggler::TableColumnDefinition

This class holds the definition of a column of a report. This is the user specified data that is later used to generate the actual ReportTableColumn. The column is uniquely identified by an ID.

Attributes

cellColor[R]
cellText[R]
column[RW]
content[RW]
end[RW]
fontColor[R]
hAlign[R]
id[R]
listItem[RW]
listType[RW]
scale[RW]
start[RW]
timeformat1[RW]
timeformat2[RW]
title[RW]
tooltip[R]
width[RW]

Public Class Methods

new(id, title) click to toggle source
# File lib/taskjuggler/TableColumnDefinition.rb, line 65
def initialize(id, title)
  # The column ID. It must be unique within the report.
  @id = id
  # An alternative title for the column header.
  @title = title
  # An alternative start date for columns with time-variant values.
  @start = nil
  # An alternative end date for columns with time-variant values.
  @end = nil
  # For regular columns (non-calendar and non-chart) the user can override
  # the actual cell content.
  @cellText = CellSettingPatternList.new
  # The content attribute is only used for calendar columns. It specifies
  # what content should be displayed in the calendar columns.
  @content = 'load'
  # Horizontal alignment of the cell content.
  @hAlign = CellSettingPatternList.new
  # An alternative content for the tooltip message. It should be a
  # RichText object.
  @tooltip = CellSettingPatternList.new
  # An alternative background color for the cell. The color setting is
  # stored as "#RGB" or "#RRGGBB" String.
  @cellColor = CellSettingPatternList.new
  # An alternative font color for the cell. The format is equivalent to
  # the @cellColor setting.
  @fontColor = CellSettingPatternList.new
  # Specifies a RichText pattern to be used to generate the text of the
  # individual list items.
  @listItem = nil
  # Specifies whether list items are comma separated, bullet or numbered
  # list.
  @listType = nil
  # The scale attribute is only used for Gantt chart columns. It specifies
  # the minimum resolution of the chart.
  @scale = 'week'
  # The width of columns.
  @width = nil
  # Format of the upper calendar header line
  @timeformat1 = nil
  # Format of the lower calendar header line
  @timeformat2 = nil

  # Reference to the ReportTableColumn object that was created based on this
  # definition.
  @column = nil
end