lib/rmobio/doc/classes/Rmobio/Rxml/XformsTransformer.src/M000023.html in rmobio-1.1.14 vs lib/rmobio/doc/classes/Rmobio/Rxml/XformsTransformer.src/M000023.html in rmobio-1.1.15

- old
+ new

@@ -3,32 +3,25 @@ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> - <title>menu (Rmobio::Rxml::XformsTransformer)</title> + <title>softkey (Rmobio::Rxml::XformsTransformer)</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" /> </head> <body class="standalone-code"> - <pre><span class="ruby-comment cmt"># File rxml/xforms_transformer.rb, line 843</span> - <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">menu</span>(<span class="ruby-identifier">doc</span>, <span class="ruby-identifier">label</span>, <span class="ruby-identifier">accesskey</span>=<span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">xstyle</span>=<span class="ruby-keyword kw">nil</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>) - <span class="ruby-ivar">@view_buffer</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-value str">&quot;&lt;m:item height=\&quot;1ex\&quot; accesskey=\&quot;&quot;</span> - <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">accesskey</span> - <span class="ruby-ivar">@view_buffer</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">accesskey</span> - <span class="ruby-keyword kw">else</span> - <span class="ruby-ivar">@view_buffer</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-node">&quot;#{@accesskey+=1}&quot;</span> - <span class="ruby-keyword kw">end</span> - <span class="ruby-ivar">@view_buffer</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-value str">&quot;\&quot;&gt;&quot;</span> - <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">xstyle</span> - <span class="ruby-ivar">@view_buffer</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-node">&quot; style=\&quot;#{xstyle}\&quot;&quot;</span> - <span class="ruby-keyword kw">else</span> - <span class="ruby-ivar">@view_buffer</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-value str">&quot; style=\&quot;optionmenu\&quot;&quot;</span> - <span class="ruby-keyword kw">end</span> - <span class="ruby-ivar">@view_buffer</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-value str">&quot;&lt;m:output style=\&quot;label\&quot;&gt;&quot;</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">label</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-value str">&quot;&lt;/m:output&gt;&quot;</span> - <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">block</span> + <pre><span class="ruby-comment cmt"># File rxml/xforms_transformer.rb, line 803</span> + <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">softkey</span>(<span class="ruby-identifier">doc</span>, <span class="ruby-identifier">position</span>=<span class="ruby-value str">&quot;1&quot;</span>, <span class="ruby-identifier">label</span>=<span class="ruby-value str">&quot;&quot;</span>, <span class="ruby-identifier">refid</span>=<span class="ruby-keyword kw">nil</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>) + <span class="ruby-ivar">@view_buffer</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-node">&quot;&lt;m:softkey position=\&quot;#{position}\&quot;&gt;&lt;m:label&gt;#{label}&lt;/m:label&gt;&quot;</span> + + <span class="ruby-comment cmt"># If we have a refid, setup a popup for the child menus; otherwise, execute</span> + <span class="ruby-comment cmt"># the proc to take action.</span> + <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">refid</span>.<span class="ruby-identifier">nil?</span> <span class="ruby-keyword kw">and</span> <span class="ruby-identifier">block</span> <span class="ruby-keyword kw">yield</span> <span class="ruby-identifier">doc</span> - <span class="ruby-keyword kw">end</span> - <span class="ruby-ivar">@view_buffer</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-value str">&quot;&lt;/m:item&gt;&quot;</span> + <span class="ruby-keyword kw">else</span> + <span class="ruby-ivar">@view_buffer</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-node">&quot;&lt;m:show-popup refid=\&quot;#{refid}\&quot; ev:event=\&quot;DOMActivate\&quot; /&gt;&quot;</span> + <span class="ruby-keyword kw">end</span> + <span class="ruby-ivar">@view_buffer</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-value str">'&lt;/m:softkey&gt;'</span> <span class="ruby-keyword kw">end</span></pre> </body> </html> \ No newline at end of file