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

- old
+ new

@@ -135,10 +135,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> @@ -213,10 +215,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> @@ -245,10 +249,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> @@ -525,10 +531,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> @@ -551,12 +559,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,20 +693,20 @@ <div class="method-source-code" id="new-source"> <pre> - <span class="ruby-comment cmt"># File lib/reports/Navigator.rb, line 22</span> -22: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">parent</span>, <span class="ruby-identifier">label</span> = <span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">url</span> = <span class="ruby-keyword kw">nil</span>) -23: <span class="ruby-ivar">@parent</span> = <span class="ruby-identifier">parent</span> -24: <span class="ruby-ivar">@label</span> = <span class="ruby-identifier">label</span> -25: <span class="ruby-ivar">@url</span> = <span class="ruby-identifier">url</span> -26: <span class="ruby-ivar">@elements</span> = [] -27: <span class="ruby-comment cmt"># True if the current report is included in this NavigatorElement or any</span> -28: <span class="ruby-comment cmt"># of its sub elements.</span> -29: <span class="ruby-ivar">@current</span> = <span class="ruby-keyword kw">false</span> -30: <span class="ruby-keyword kw">end</span></pre> + <span class="ruby-comment cmt"># File lib/reports/Navigator.rb, line 23</span> +23: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">parent</span>, <span class="ruby-identifier">label</span> = <span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">url</span> = <span class="ruby-keyword kw">nil</span>) +24: <span class="ruby-ivar">@parent</span> = <span class="ruby-identifier">parent</span> +25: <span class="ruby-ivar">@label</span> = <span class="ruby-identifier">label</span> +26: <span class="ruby-ivar">@url</span> = <span class="ruby-identifier">url</span> +27: <span class="ruby-ivar">@elements</span> = [] +28: <span class="ruby-comment cmt"># True if the current report is included in this NavigatorElement or any</span> +29: <span class="ruby-comment cmt"># of its sub elements.</span> +30: <span class="ruby-ivar">@current</span> = <span class="ruby-keyword kw">false</span> +31: <span class="ruby-keyword kw">end</span></pre> </div> </div> @@ -735,14 +741,14 @@ <div class="method-source-code" id="current-rl-source"> <pre> - <span class="ruby-comment cmt"># File lib/reports/Navigator.rb, line 95</span> -95: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">currentUrl</span> -96: <span class="ruby-identifier">root</span>.<span class="ruby-identifier">url</span> -97: <span class="ruby-keyword kw">end</span></pre> + <span class="ruby-comment cmt"># File lib/reports/Navigator.rb, line 96</span> +96: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">currentUrl</span> +97: <span class="ruby-identifier">root</span>.<span class="ruby-identifier">url</span> +98: <span class="ruby-keyword kw">end</span></pre> </div> </div> @@ -773,14 +779,14 @@ <div class="method-source-code" id="current-rl--source"> <pre> - <span class="ruby-comment cmt"># File lib/reports/Navigator.rb, line 90</span> -90: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">currentUrl=</span>(<span class="ruby-identifier">url</span>) -91: <span class="ruby-identifier">root</span>.<span class="ruby-identifier">url</span> = <span class="ruby-identifier">url</span> -92: <span class="ruby-keyword kw">end</span></pre> + <span class="ruby-comment cmt"># File lib/reports/Navigator.rb, line 91</span> +91: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">currentUrl=</span>(<span class="ruby-identifier">url</span>) +92: <span class="ruby-identifier">root</span>.<span class="ruby-identifier">url</span> = <span class="ruby-identifier">url</span> +93: <span class="ruby-keyword kw">end</span></pre> </div> </div> @@ -809,18 +815,18 @@ <div class="method-source-code" id="root-source"> <pre> - <span class="ruby-comment cmt"># File lib/reports/Navigator.rb, line 100</span> -100: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">root</span> -101: <span class="ruby-identifier">p</span> = <span class="ruby-keyword kw">self</span> -102: <span class="ruby-keyword kw">while</span> <span class="ruby-identifier">p</span>.<span class="ruby-identifier">parent</span> -103: <span class="ruby-identifier">p</span> = <span class="ruby-identifier">p</span>.<span class="ruby-identifier">parent</span> -104: <span class="ruby-keyword kw">end</span> -105: <span class="ruby-identifier">p</span> -106: <span class="ruby-keyword kw">end</span></pre> + <span class="ruby-comment cmt"># File lib/reports/Navigator.rb, line 101</span> +101: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">root</span> +102: <span class="ruby-identifier">p</span> = <span class="ruby-keyword kw">self</span> +103: <span class="ruby-keyword kw">while</span> <span class="ruby-identifier">p</span>.<span class="ruby-identifier">parent</span> +104: <span class="ruby-identifier">p</span> = <span class="ruby-identifier">p</span>.<span class="ruby-identifier">parent</span> +105: <span class="ruby-keyword kw">end</span> +106: <span class="ruby-identifier">p</span> +107: <span class="ruby-keyword kw">end</span></pre> </div> </div> @@ -847,55 +853,55 @@ <div class="method-source-code" id="to-html-source"> <pre> - <span class="ruby-comment cmt"># File lib/reports/Navigator.rb, line 32</span> -32: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_html</span> -33: <span class="ruby-identifier">first</span> = <span class="ruby-keyword kw">true</span> -34: <span class="ruby-identifier">html</span> = (<span class="ruby-identifier">div</span> = <span class="ruby-constant">XMLElement</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value str">'div'</span>)) -35: -36: <span class="ruby-ivar">@elements</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">element</span><span class="ruby-operator">|</span> -37: <span class="ruby-keyword kw">next</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">label</span> -38: -39: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">first</span> -40: <span class="ruby-identifier">first</span> = <span class="ruby-keyword kw">false</span> -41: <span class="ruby-keyword kw">else</span> -42: <span class="ruby-identifier">div</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-constant">XMLText</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value str">'|'</span>) -43: <span class="ruby-keyword kw">end</span> -44: -45: <span class="ruby-identifier">url</span> = <span class="ruby-identifier">element</span>.<span class="ruby-identifier">url</span> -46: <span class="ruby-keyword kw">if</span> <span class="ruby-operator">!</span><span class="ruby-identifier">url</span> -47: <span class="ruby-identifier">nEl</span> = <span class="ruby-identifier">element</span> -48: <span class="ruby-keyword kw">while</span> <span class="ruby-identifier">nEl</span>.<span class="ruby-identifier">elements</span>[<span class="ruby-value">0</span>] -49: <span class="ruby-keyword kw">break</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">nEl</span>.<span class="ruby-identifier">current</span> -50: -51: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">nEl</span>.<span class="ruby-identifier">elements</span>[<span class="ruby-value">0</span>].<span class="ruby-identifier">url</span> -52: <span class="ruby-identifier">url</span> = <span class="ruby-identifier">nEl</span>.<span class="ruby-identifier">elements</span>[<span class="ruby-value">0</span>].<span class="ruby-identifier">url</span> -53: <span class="ruby-keyword kw">break</span> -54: <span class="ruby-keyword kw">end</span> -55: <span class="ruby-identifier">nEl</span> = <span class="ruby-identifier">nEl</span>.<span class="ruby-identifier">elements</span>[<span class="ruby-value">0</span>] -56: <span class="ruby-keyword kw">end</span> -57: <span class="ruby-keyword kw">end</span> -58: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">url</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">url</span> <span class="ruby-operator">!=</span> <span class="ruby-identifier">currentUrl</span> -59: <span class="ruby-identifier">div</span> <span class="ruby-operator">&lt;&lt;</span> (<span class="ruby-identifier">span</span> = <span class="ruby-constant">XMLElement</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value str">'span'</span>, <span class="ruby-value str">'class'</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value str">'navbar_other'</span>)) -60: <span class="ruby-identifier">span</span> <span class="ruby-operator">&lt;&lt;</span> (<span class="ruby-identifier">a</span> = <span class="ruby-constant">XMLElement</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value str">'a'</span>, <span class="ruby-value str">'href'</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">url</span>)) -61: <span class="ruby-identifier">a</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-constant">XMLText</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">element</span>.<span class="ruby-identifier">label</span>) -62: <span class="ruby-keyword kw">else</span> -63: <span class="ruby-identifier">div</span> <span class="ruby-operator">&lt;&lt;</span> (<span class="ruby-identifier">span</span> = <span class="ruby-constant">XMLElement</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value str">'span'</span>, -64: <span class="ruby-value str">'class'</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value str">'navbar_current'</span>)) -65: <span class="ruby-identifier">span</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-constant">XMLText</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">element</span>.<span class="ruby-identifier">label</span>) -66: <span class="ruby-keyword kw">end</span> -67: <span class="ruby-keyword kw">end</span> -68: <span class="ruby-ivar">@elements</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">element</span><span class="ruby-operator">|</span> -69: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">element</span>.<span class="ruby-identifier">current</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-operator">!</span><span class="ruby-identifier">element</span>.<span class="ruby-identifier">elements</span>.<span class="ruby-identifier">empty?</span> -70: <span class="ruby-identifier">html</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-constant">XMLElement</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value str">'hr'</span>) <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">first</span> -71: <span class="ruby-identifier">html</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">element</span>.<span class="ruby-identifier">to_html</span> -72: <span class="ruby-keyword kw">end</span> -73: <span class="ruby-keyword kw">end</span> -74: <span class="ruby-identifier">html</span> -75: <span class="ruby-keyword kw">end</span></pre> + <span class="ruby-comment cmt"># File lib/reports/Navigator.rb, line 33</span> +33: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_html</span> +34: <span class="ruby-identifier">first</span> = <span class="ruby-keyword kw">true</span> +35: <span class="ruby-identifier">html</span> = (<span class="ruby-identifier">div</span> = <span class="ruby-constant">XMLElement</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value str">'div'</span>)) +36: +37: <span class="ruby-ivar">@elements</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">element</span><span class="ruby-operator">|</span> +38: <span class="ruby-keyword kw">next</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">label</span> +39: +40: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">first</span> +41: <span class="ruby-identifier">first</span> = <span class="ruby-keyword kw">false</span> +42: <span class="ruby-keyword kw">else</span> +43: <span class="ruby-identifier">div</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-constant">XMLText</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value str">'|'</span>) +44: <span class="ruby-keyword kw">end</span> +45: +46: <span class="ruby-identifier">url</span> = <span class="ruby-identifier">element</span>.<span class="ruby-identifier">url</span> +47: <span class="ruby-keyword kw">if</span> <span class="ruby-operator">!</span><span class="ruby-identifier">url</span> +48: <span class="ruby-identifier">nEl</span> = <span class="ruby-identifier">element</span> +49: <span class="ruby-keyword kw">while</span> <span class="ruby-identifier">nEl</span>.<span class="ruby-identifier">elements</span>[<span class="ruby-value">0</span>] +50: <span class="ruby-keyword kw">break</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">nEl</span>.<span class="ruby-identifier">current</span> +51: +52: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">nEl</span>.<span class="ruby-identifier">elements</span>[<span class="ruby-value">0</span>].<span class="ruby-identifier">url</span> +53: <span class="ruby-identifier">url</span> = <span class="ruby-identifier">nEl</span>.<span class="ruby-identifier">elements</span>[<span class="ruby-value">0</span>].<span class="ruby-identifier">url</span> +54: <span class="ruby-keyword kw">break</span> +55: <span class="ruby-keyword kw">end</span> +56: <span class="ruby-identifier">nEl</span> = <span class="ruby-identifier">nEl</span>.<span class="ruby-identifier">elements</span>[<span class="ruby-value">0</span>] +57: <span class="ruby-keyword kw">end</span> +58: <span class="ruby-keyword kw">end</span> +59: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">url</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">url</span> <span class="ruby-operator">!=</span> <span class="ruby-identifier">currentUrl</span> +60: <span class="ruby-identifier">div</span> <span class="ruby-operator">&lt;&lt;</span> (<span class="ruby-identifier">span</span> = <span class="ruby-constant">XMLElement</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value str">'span'</span>, <span class="ruby-value str">'class'</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value str">'navbar_other'</span>)) +61: <span class="ruby-identifier">span</span> <span class="ruby-operator">&lt;&lt;</span> (<span class="ruby-identifier">a</span> = <span class="ruby-constant">XMLElement</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value str">'a'</span>, <span class="ruby-value str">'href'</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">url</span>)) +62: <span class="ruby-identifier">a</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-constant">XMLText</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">element</span>.<span class="ruby-identifier">label</span>) +63: <span class="ruby-keyword kw">else</span> +64: <span class="ruby-identifier">div</span> <span class="ruby-operator">&lt;&lt;</span> (<span class="ruby-identifier">span</span> = <span class="ruby-constant">XMLElement</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value str">'span'</span>, +65: <span class="ruby-value str">'class'</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value str">'navbar_current'</span>)) +66: <span class="ruby-identifier">span</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-constant">XMLText</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">element</span>.<span class="ruby-identifier">label</span>) +67: <span class="ruby-keyword kw">end</span> +68: <span class="ruby-keyword kw">end</span> +69: <span class="ruby-ivar">@elements</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">element</span><span class="ruby-operator">|</span> +70: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">element</span>.<span class="ruby-identifier">current</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-operator">!</span><span class="ruby-identifier">element</span>.<span class="ruby-identifier">elements</span>.<span class="ruby-identifier">empty?</span> +71: <span class="ruby-identifier">html</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-constant">XMLElement</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value str">'hr'</span>) <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">first</span> +72: <span class="ruby-identifier">html</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">element</span>.<span class="ruby-identifier">to_html</span> +73: <span class="ruby-keyword kw">end</span> +74: <span class="ruby-keyword kw">end</span> +75: <span class="ruby-identifier">html</span> +76: <span class="ruby-keyword kw">end</span></pre> </div> </div> @@ -924,18 +930,18 @@ <div class="method-source-code" id="to-s-source"> <pre> - <span class="ruby-comment cmt"># File lib/reports/Navigator.rb, line 78</span> -78: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_s</span>(<span class="ruby-identifier">indent</span> = <span class="ruby-value">0</span>) -79: <span class="ruby-ivar">@elements</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">element</span><span class="ruby-operator">|</span> -80: <span class="ruby-identifier">puts</span> <span class="ruby-node">&quot;#{' ' * indent}#{element.current ? '&lt;' : ''}&quot;</span> <span class="ruby-operator">+</span> -81: <span class="ruby-node">&quot;#{element.label}#{element.current ? '&gt;' : ''}&quot;</span> <span class="ruby-operator">+</span> -82: <span class="ruby-node">&quot; -&gt; #{element.url}&quot;</span> -83: <span class="ruby-identifier">element</span>.<span class="ruby-identifier">to_s</span>(<span class="ruby-identifier">indent</span> <span class="ruby-operator">+</span> <span class="ruby-value">1</span>) -84: <span class="ruby-keyword kw">end</span> -85: <span class="ruby-keyword kw">end</span></pre> + <span class="ruby-comment cmt"># File lib/reports/Navigator.rb, line 79</span> +79: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_s</span>(<span class="ruby-identifier">indent</span> = <span class="ruby-value">0</span>) +80: <span class="ruby-ivar">@elements</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">element</span><span class="ruby-operator">|</span> +81: <span class="ruby-identifier">puts</span> <span class="ruby-node">&quot;#{' ' * indent}#{element.current ? '&lt;' : ''}&quot;</span> <span class="ruby-operator">+</span> +82: <span class="ruby-node">&quot;#{element.label}#{element.current ? '&gt;' : ''}&quot;</span> <span class="ruby-operator">+</span> +83: <span class="ruby-node">&quot; -&gt; #{element.url}&quot;</span> +84: <span class="ruby-identifier">element</span>.<span class="ruby-identifier">to_s</span>(<span class="ruby-identifier">indent</span> <span class="ruby-operator">+</span> <span class="ruby-value">1</span>) +85: <span class="ruby-keyword kw">end</span> +86: <span class="ruby-keyword kw">end</span></pre> </div> </div>