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">&</span><span class="ruby-identifier">block</span>)
- <span class="ruby-ivar">@view_buffer</span> <span class="ruby-operator"><<</span> <span class="ruby-value str">"<m:item height=\"1ex\" accesskey=\""</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"><<</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"><<</span> <span class="ruby-node">"#{@accesskey+=1}"</span>
- <span class="ruby-keyword kw">end</span>
- <span class="ruby-ivar">@view_buffer</span> <span class="ruby-operator"><<</span> <span class="ruby-value str">"\">"</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"><<</span> <span class="ruby-node">" style=\"#{xstyle}\""</span>
- <span class="ruby-keyword kw">else</span>
- <span class="ruby-ivar">@view_buffer</span> <span class="ruby-operator"><<</span> <span class="ruby-value str">" style=\"optionmenu\""</span>
- <span class="ruby-keyword kw">end</span>
- <span class="ruby-ivar">@view_buffer</span> <span class="ruby-operator"><<</span> <span class="ruby-value str">"<m:output style=\"label\">"</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">label</span> <span class="ruby-operator"><<</span> <span class="ruby-value str">"</m:output>"</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">"1"</span>, <span class="ruby-identifier">label</span>=<span class="ruby-value str">""</span>, <span class="ruby-identifier">refid</span>=<span class="ruby-keyword kw">nil</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
+ <span class="ruby-ivar">@view_buffer</span> <span class="ruby-operator"><<</span> <span class="ruby-node">"<m:softkey position=\"#{position}\"><m:label>#{label}</m:label>"</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"><<</span> <span class="ruby-value str">"</m:item>"</span>
+ <span class="ruby-keyword kw">else</span>
+ <span class="ruby-ivar">@view_buffer</span> <span class="ruby-operator"><<</span> <span class="ruby-node">"<m:show-popup refid=\"#{refid}\" ev:event=\"DOMActivate\" />"</span>
+ <span class="ruby-keyword kw">end</span>
+ <span class="ruby-ivar">@view_buffer</span> <span class="ruby-operator"><<</span> <span class="ruby-value str">'</m:softkey>'</span>
<span class="ruby-keyword kw">end</span></pre>
</body>
</html>
\ No newline at end of file