doc/TaskJuggler/ReportTableColumn.html in taskjuggler-0.0.8 vs doc/TaskJuggler/ReportTableColumn.html in taskjuggler-0.0.9

- old
+ new

@@ -131,10 +131,12 @@ <li><a href="../TaskJuggler/AttributeBase.html">TaskJuggler::AttributeBase</a></li> <li><a href="../TaskJuggler/AttributeDefinition.html">TaskJuggler::AttributeDefinition</a></li> + <li><a href="../TaskJuggler/AttributeOverwrite.html">TaskJuggler::AttributeOverwrite</a></li> + <li><a href="../TaskJuggler/BatchProcessor.html">TaskJuggler::BatchProcessor</a></li> <li><a href="../TaskJuggler/Booking.html">TaskJuggler::Booking</a></li> <li><a href="../TaskJuggler/BookingListAttribute.html">TaskJuggler::BookingListAttribute</a></li> @@ -209,10 +211,12 @@ <li><a href="../TaskJuggler/HTMLGraphics.html">TaskJuggler::HTMLGraphics</a></li> <li><a href="../TaskJuggler/Interval.html">TaskJuggler::Interval</a></li> + <li><a href="../TaskJuggler/IntervalList.html">TaskJuggler::IntervalList</a></li> + <li><a href="../TaskJuggler/IntervalListAttribute.html">TaskJuggler::IntervalListAttribute</a></li> <li><a href="../TaskJuggler/JobInfo.html">TaskJuggler::JobInfo</a></li> <li><a href="../TaskJuggler/Journal.html">TaskJuggler::Journal</a></li> @@ -241,10 +245,12 @@ <li><a href="../TaskJuggler/LogicalExpression.html">TaskJuggler::LogicalExpression</a></li> <li><a href="../TaskJuggler/LogicalExpressionAttribute.html">TaskJuggler::LogicalExpressionAttribute</a></li> + <li><a href="../TaskJuggler/LogicalExpressionListAttribute.html">TaskJuggler::LogicalExpressionListAttribute</a></li> + <li><a href="../TaskJuggler/LogicalFlag.html">TaskJuggler::LogicalFlag</a></li> <li><a href="../TaskJuggler/LogicalFunction.html">TaskJuggler::LogicalFunction</a></li> <li><a href="../TaskJuggler/LogicalOperation.html">TaskJuggler::LogicalOperation</a></li> @@ -521,10 +527,12 @@ <li><a href="../TaskJuggler/VimSyntax.html">TaskJuggler::VimSyntax</a></li> <li><a href="../TaskJuggler/WebServer.html">TaskJuggler::WebServer</a></li> + <li><a href="../TaskJuggler/WelcomePage.html">TaskJuggler::WelcomePage</a></li> + <li><a href="../TaskJuggler/WorkingHours.html">TaskJuggler::WorkingHours</a></li> <li><a href="../TaskJuggler/WorkingHoursAttribute.html">TaskJuggler::WorkingHoursAttribute</a></li> <li><a href="../TaskJuggler/XMLBlob.html">TaskJuggler::XMLBlob</a></li> @@ -547,12 +555,10 @@ <li><a href="../RuntimeConfig.html">RuntimeConfig</a></li> <li><a href="../String.html">String</a></li> - <li><a href="../StringIO.html">StringIO</a></li> - </ul> <div id="no-class-search-results" style="display: none;">No matching classes.</div> </div> @@ -687,29 +693,29 @@ <div class="method-source-code" id="new-source"> <pre> - <span class="ruby-comment cmt"># File lib/reports/ReportTableColumn.rb, line 36</span> -36: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">table</span>, <span class="ruby-identifier">definition</span>, <span class="ruby-identifier">title</span>) -37: <span class="ruby-ivar">@table</span> = <span class="ruby-identifier">table</span> -38: <span class="ruby-comment cmt"># Register this new column with the ReportTable.</span> -39: <span class="ruby-ivar">@table</span>.<span class="ruby-identifier">addColumn</span>(<span class="ruby-keyword kw">self</span>) -40: <span class="ruby-ivar">@definition</span> = <span class="ruby-identifier">definition</span> -41: <span class="ruby-comment cmt"># Register this new column with the TableColumnDefinition.</span> -42: <span class="ruby-identifier">definition</span>.<span class="ruby-identifier">column</span> = <span class="ruby-keyword kw">self</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">definition</span> -43: -44: <span class="ruby-comment cmt"># Create the 2 cells of the header.</span> -45: <span class="ruby-ivar">@cell1</span> = <span class="ruby-constant">ReportTableCell</span>.<span class="ruby-identifier">new</span>(<span class="ruby-keyword kw">nil</span>, <span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">title</span>, <span class="ruby-keyword kw">true</span>) -46: <span class="ruby-ivar">@cell1</span>.<span class="ruby-identifier">padding</span> = <span class="ruby-value">5</span> -47: <span class="ruby-ivar">@cell2</span> = <span class="ruby-constant">ReportTableCell</span>.<span class="ruby-identifier">new</span>(<span class="ruby-keyword kw">nil</span>, <span class="ruby-keyword kw">nil</span>, <span class="ruby-value str">''</span>, <span class="ruby-keyword kw">true</span>) -48: <span class="ruby-comment cmt"># Header text is always bold.</span> -49: <span class="ruby-ivar">@cell1</span>.<span class="ruby-identifier">bold</span> = <span class="ruby-ivar">@cell2</span>.<span class="ruby-identifier">bold</span> = <span class="ruby-keyword kw">true</span> -50: <span class="ruby-comment cmt"># This variable is set to true if the column requires a scrollbar later</span> -51: <span class="ruby-comment cmt"># on.</span> -52: <span class="ruby-ivar">@scrollbar</span> = <span class="ruby-keyword kw">false</span> -53: <span class="ruby-keyword kw">end</span></pre> + <span class="ruby-comment cmt"># File lib/reports/ReportTableColumn.rb, line 37</span> +37: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">table</span>, <span class="ruby-identifier">definition</span>, <span class="ruby-identifier">title</span>) +38: <span class="ruby-ivar">@table</span> = <span class="ruby-identifier">table</span> +39: <span class="ruby-comment cmt"># Register this new column with the ReportTable.</span> +40: <span class="ruby-ivar">@table</span>.<span class="ruby-identifier">addColumn</span>(<span class="ruby-keyword kw">self</span>) +41: <span class="ruby-ivar">@definition</span> = <span class="ruby-identifier">definition</span> +42: <span class="ruby-comment cmt"># Register this new column with the TableColumnDefinition.</span> +43: <span class="ruby-identifier">definition</span>.<span class="ruby-identifier">column</span> = <span class="ruby-keyword kw">self</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">definition</span> +44: +45: <span class="ruby-comment cmt"># Create the 2 cells of the header.</span> +46: <span class="ruby-ivar">@cell1</span> = <span class="ruby-constant">ReportTableCell</span>.<span class="ruby-identifier">new</span>(<span class="ruby-keyword kw">nil</span>, <span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">title</span>, <span class="ruby-keyword kw">true</span>) +47: <span class="ruby-ivar">@cell1</span>.<span class="ruby-identifier">padding</span> = <span class="ruby-value">5</span> +48: <span class="ruby-ivar">@cell2</span> = <span class="ruby-constant">ReportTableCell</span>.<span class="ruby-identifier">new</span>(<span class="ruby-keyword kw">nil</span>, <span class="ruby-keyword kw">nil</span>, <span class="ruby-value str">''</span>, <span class="ruby-keyword kw">true</span>) +49: <span class="ruby-comment cmt"># Header text is always bold.</span> +50: <span class="ruby-ivar">@cell1</span>.<span class="ruby-identifier">bold</span> = <span class="ruby-ivar">@cell2</span>.<span class="ruby-identifier">bold</span> = <span class="ruby-keyword kw">true</span> +51: <span class="ruby-comment cmt"># This variable is set to true if the column requires a scrollbar later</span> +52: <span class="ruby-comment cmt"># on.</span> +53: <span class="ruby-ivar">@scrollbar</span> = <span class="ruby-keyword kw">false</span> +54: <span class="ruby-keyword kw">end</span></pre> </div> </div> @@ -744,16 +750,16 @@ <div class="method-source-code" id="min-idth-source"> <pre> - <span class="ruby-comment cmt"># File lib/reports/ReportTableColumn.rb, line 56</span> -56: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">minWidth</span> -57: <span class="ruby-identifier">width</span> = <span class="ruby-ivar">@cell1</span>.<span class="ruby-identifier">width</span> -58: <span class="ruby-identifier">width</span> = <span class="ruby-ivar">@cell2</span>.<span class="ruby-identifier">width</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">width</span>.<span class="ruby-identifier">nil?</span> <span class="ruby-operator">||</span> <span class="ruby-ivar">@cell2</span>.<span class="ruby-identifier">width</span> <span class="ruby-operator">&gt;</span> <span class="ruby-identifier">width</span> -59: <span class="ruby-identifier">width</span> -60: <span class="ruby-keyword kw">end</span></pre> + <span class="ruby-comment cmt"># File lib/reports/ReportTableColumn.rb, line 57</span> +57: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">minWidth</span> +58: <span class="ruby-identifier">width</span> = <span class="ruby-ivar">@cell1</span>.<span class="ruby-identifier">width</span> +59: <span class="ruby-identifier">width</span> = <span class="ruby-ivar">@cell2</span>.<span class="ruby-identifier">width</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">width</span>.<span class="ruby-identifier">nil?</span> <span class="ruby-operator">||</span> <span class="ruby-ivar">@cell2</span>.<span class="ruby-identifier">width</span> <span class="ruby-operator">&gt;</span> <span class="ruby-identifier">width</span> +60: <span class="ruby-identifier">width</span> +61: <span class="ruby-keyword kw">end</span></pre> </div> </div> @@ -784,15 +790,15 @@ <div class="method-source-code" id="to-csv-source"> <pre> - <span class="ruby-comment cmt"># File lib/reports/ReportTableColumn.rb, line 74</span> -74: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_csv</span>(<span class="ruby-identifier">csv</span>, <span class="ruby-identifier">startColumn</span>) -75: <span class="ruby-comment cmt"># For CSV reports we can only include the first header line.</span> -76: <span class="ruby-ivar">@cell1</span>.<span class="ruby-identifier">to_csv</span>(<span class="ruby-identifier">csv</span>, <span class="ruby-identifier">startColumn</span>, <span class="ruby-value">0</span>) -77: <span class="ruby-keyword kw">end</span></pre> + <span class="ruby-comment cmt"># File lib/reports/ReportTableColumn.rb, line 75</span> +75: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_csv</span>(<span class="ruby-identifier">csv</span>, <span class="ruby-identifier">startColumn</span>) +76: <span class="ruby-comment cmt"># For CSV reports we can only include the first header line.</span> +77: <span class="ruby-ivar">@cell1</span>.<span class="ruby-identifier">to_csv</span>(<span class="ruby-identifier">csv</span>, <span class="ruby-identifier">startColumn</span>, <span class="ruby-value">0</span>) +78: <span class="ruby-keyword kw">end</span></pre> </div> </div> @@ -821,17 +827,17 @@ <div class="method-source-code" id="to-html-source"> <pre> - <span class="ruby-comment cmt"># File lib/reports/ReportTableColumn.rb, line 63</span> -63: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_html</span>(<span class="ruby-identifier">row</span>) -64: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">row</span> <span class="ruby-operator">==</span> <span class="ruby-value">1</span> -65: <span class="ruby-ivar">@cell1</span>.<span class="ruby-identifier">to_html</span> -66: <span class="ruby-keyword kw">else</span> -67: <span class="ruby-ivar">@cell2</span>.<span class="ruby-identifier">to_html</span> -68: <span class="ruby-keyword kw">end</span> -69: <span class="ruby-keyword kw">end</span></pre> + <span class="ruby-comment cmt"># File lib/reports/ReportTableColumn.rb, line 64</span> +64: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_html</span>(<span class="ruby-identifier">row</span>) +65: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">row</span> <span class="ruby-operator">==</span> <span class="ruby-value">1</span> +66: <span class="ruby-ivar">@cell1</span>.<span class="ruby-identifier">to_html</span> +67: <span class="ruby-keyword kw">else</span> +68: <span class="ruby-ivar">@cell2</span>.<span class="ruby-identifier">to_html</span> +69: <span class="ruby-keyword kw">end</span> +70: <span class="ruby-keyword kw">end</span></pre> </div> </div>