wee 0.8.0 → 0.9.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (231) hide show
  1. data/ChangeLog +286 -0
  2. data/Features +185 -0
  3. data/doc/rdoc/classes/ActionView.html +107 -0
  4. data/doc/rdoc/classes/ActionView/Base.html +133 -0
  5. data/doc/rdoc/classes/Array.html +7 -59
  6. data/doc/rdoc/classes/Cache/StorageCache.html +38 -38
  7. data/doc/rdoc/classes/Cache/Strategy/CapacityBounded.html +30 -30
  8. data/doc/rdoc/classes/Cache/Strategy/LFU.html +24 -24
  9. data/doc/rdoc/classes/Cache/Strategy/LRU.html +24 -24
  10. data/doc/rdoc/classes/Cache/Strategy/Unbounded.html +24 -24
  11. data/doc/rdoc/classes/Enumerable.html +6 -6
  12. data/doc/rdoc/classes/Hash.html +120 -0
  13. data/doc/rdoc/classes/Main.html +58 -34
  14. data/doc/rdoc/classes/Object.html +12 -12
  15. data/doc/rdoc/classes/OgScaffolder.html +165 -166
  16. data/doc/rdoc/classes/OgScaffolder/Editor.html +112 -112
  17. data/doc/rdoc/classes/String.html +7 -59
  18. data/doc/rdoc/classes/Struct.html +14 -14
  19. data/doc/rdoc/classes/Wee.html +70 -6
  20. data/doc/rdoc/classes/Wee/AbstractSession.html +502 -0
  21. data/doc/rdoc/classes/Wee/AnswerDecoration.html +11 -11
  22. data/doc/rdoc/classes/Wee/Application.html +139 -84
  23. data/doc/rdoc/classes/Wee/Brush.html +21 -18
  24. data/doc/rdoc/classes/Wee/Brush/AnchorTag.html +90 -17
  25. data/doc/rdoc/classes/Wee/Brush/CheckboxTag.html +162 -0
  26. data/doc/rdoc/classes/Wee/Brush/FileUploadTag.html +7 -7
  27. data/doc/rdoc/classes/Wee/Brush/FormTag.html +41 -17
  28. data/doc/rdoc/classes/Wee/Brush/GenericEncodedTextBrush.html +12 -12
  29. data/doc/rdoc/classes/Wee/Brush/GenericSingleTagBrush.html +7 -7
  30. data/doc/rdoc/classes/Wee/Brush/GenericTagBrush.html +112 -86
  31. data/doc/rdoc/classes/Wee/Brush/GenericTextBrush.html +12 -12
  32. data/doc/rdoc/classes/Wee/Brush/HiddenInputTag.html +160 -0
  33. data/doc/rdoc/classes/Wee/Brush/ImageButtonTag.html +15 -15
  34. data/doc/rdoc/classes/Wee/Brush/ImageTag.html +21 -21
  35. data/doc/rdoc/classes/Wee/Brush/InputTag.html +14 -14
  36. data/doc/rdoc/classes/Wee/Brush/JavascriptTag.html +7 -7
  37. data/doc/rdoc/classes/Wee/Brush/Page.html +14 -14
  38. data/doc/rdoc/classes/Wee/Brush/RadioButtonTag.html +234 -0
  39. data/doc/rdoc/classes/Wee/Brush/RadioButtonTag/RadioGroup.html +207 -0
  40. data/doc/rdoc/classes/Wee/Brush/SelectListTag.html +124 -28
  41. data/doc/rdoc/classes/Wee/Brush/SelectListTag/SelectListCallback.html +7 -7
  42. data/doc/rdoc/classes/Wee/Brush/SelectOptionTag.html +7 -7
  43. data/doc/rdoc/classes/Wee/Brush/SubmitButtonTag.html +7 -7
  44. data/doc/rdoc/classes/Wee/Brush/TableDataTag.html +14 -14
  45. data/doc/rdoc/classes/Wee/Brush/TableHeaderTag.html +7 -7
  46. data/doc/rdoc/classes/Wee/Brush/TableRowTag.html +42 -42
  47. data/doc/rdoc/classes/Wee/Brush/TableTag.html +7 -7
  48. data/doc/rdoc/classes/Wee/Brush/TextAreaTag.html +48 -15
  49. data/doc/rdoc/classes/Wee/Brush/TextInputTag.html +7 -7
  50. data/doc/rdoc/classes/Wee/CallbackRegistry.html +38 -38
  51. data/doc/rdoc/classes/Wee/CallbackStream.html +18 -18
  52. data/doc/rdoc/classes/Wee/CanvasMixin.html +225 -0
  53. data/doc/rdoc/classes/Wee/Component.html +202 -201
  54. data/doc/rdoc/classes/Wee/Component/OnAnswer.html +7 -7
  55. data/doc/rdoc/classes/Wee/ComponentDispatcher.html +289 -0
  56. data/doc/rdoc/classes/Wee/ComponentRunner.html +321 -0
  57. data/doc/rdoc/classes/Wee/Context.html +63 -3
  58. data/doc/rdoc/classes/Wee/Decoration.html +45 -45
  59. data/doc/rdoc/classes/Wee/Delegate.html +30 -30
  60. data/doc/rdoc/classes/Wee/DupReplaceSnapshotMixin.html +164 -0
  61. data/doc/rdoc/classes/Wee/ErrorResponse.html +16 -16
  62. data/doc/rdoc/classes/Wee/Examples.html +114 -0
  63. data/doc/rdoc/classes/Wee/Examples/Calculator.html +319 -0
  64. data/doc/rdoc/classes/Wee/Examples/Counter.html +289 -0
  65. data/doc/rdoc/classes/Wee/Examples/EditableCounter.html +210 -0
  66. data/doc/rdoc/classes/Wee/Examples/Window.html +346 -0
  67. data/doc/rdoc/classes/Wee/FastCGIAdaptor.html +227 -0
  68. data/doc/rdoc/classes/Wee/FormDecoration.html +6 -6
  69. data/doc/rdoc/classes/Wee/GenericResponse.html +7 -7
  70. data/doc/rdoc/classes/Wee/HtmlCanvasRenderer.html +1230 -0
  71. data/doc/rdoc/classes/Wee/HtmlWriter.html +40 -40
  72. data/doc/rdoc/classes/Wee/IdGenerator.html +148 -0
  73. data/doc/rdoc/classes/Wee/LiteralMethodCallback.html +27 -14
  74. data/doc/rdoc/classes/Wee/LoginDecoration.html +261 -0
  75. data/doc/rdoc/classes/Wee/Md5IdGenerator.html +14 -14
  76. data/doc/rdoc/classes/Wee/MessageBox.html +14 -14
  77. data/doc/rdoc/classes/Wee/Nitro.html +114 -0
  78. data/doc/rdoc/classes/Wee/Nitro/ControllerClassMixin.html +192 -0
  79. data/doc/rdoc/classes/Wee/Nitro/ControllerMixin.html +345 -0
  80. data/doc/rdoc/classes/Wee/Nitro/FormTag.html +155 -0
  81. data/doc/rdoc/classes/Wee/Nitro/HtmlCanvasRenderer.html +178 -0
  82. data/doc/rdoc/classes/Wee/Page.html +4 -0
  83. data/doc/rdoc/classes/Wee/PageDecoration.html +18 -18
  84. data/doc/rdoc/classes/Wee/PagelessApplication.html +13 -11
  85. data/doc/rdoc/classes/Wee/PagelessComponentDriver.html +296 -0
  86. data/doc/rdoc/classes/Wee/PagelessRequest.html +52 -21
  87. data/doc/rdoc/classes/Wee/PagelessSession.html +130 -91
  88. data/doc/rdoc/classes/Wee/Pager.html +534 -0
  89. data/doc/rdoc/classes/Wee/Presenter.html +482 -298
  90. data/doc/rdoc/classes/Wee/Rails.html +114 -0
  91. data/doc/rdoc/classes/Wee/Rails/ControllerClassMixin.html +192 -0
  92. data/doc/rdoc/classes/Wee/Rails/ControllerMixin.html +342 -0
  93. data/doc/rdoc/classes/Wee/Rails/FormTag.html +155 -0
  94. data/doc/rdoc/classes/Wee/Rails/HtmlCanvasRenderer.html +177 -0
  95. data/doc/rdoc/classes/Wee/RedirectResponse.html +7 -7
  96. data/doc/rdoc/classes/Wee/RefreshResponse.html +7 -7
  97. data/doc/rdoc/classes/Wee/Renderer.html +208 -0
  98. data/doc/rdoc/classes/Wee/RenderingContext.html +175 -3
  99. data/doc/rdoc/classes/Wee/Request.html +197 -46
  100. data/doc/rdoc/classes/Wee/RequestHandler.html +31 -31
  101. data/doc/rdoc/classes/Wee/Response.html +44 -43
  102. data/doc/rdoc/classes/Wee/Session.html +296 -402
  103. data/doc/rdoc/classes/Wee/SimpleIdGenerator.html +14 -14
  104. data/doc/rdoc/classes/Wee/Snapshot.html +19 -19
  105. data/doc/rdoc/classes/Wee/Utils.html +22 -22
  106. data/doc/rdoc/classes/Wee/Utils/LRUCache.html +6 -6
  107. data/doc/rdoc/classes/Wee/ValueHolder.html +19 -19
  108. data/doc/rdoc/classes/Wee/WEBrickAdaptor.html +72 -46
  109. data/doc/rdoc/classes/Wee/WrapperDecoration.html +6 -6
  110. data/doc/rdoc/created.rid +1 -1
  111. data/doc/rdoc/files/INSTALL.html +1 -1
  112. data/doc/rdoc/files/README.html +8 -12
  113. data/doc/rdoc/files/lib/cache/cache_rb.html +1 -1
  114. data/doc/rdoc/files/lib/wee/abstractsession_rb.html +108 -0
  115. data/doc/rdoc/files/lib/wee/adaptors/fastcgi_rb.html +108 -0
  116. data/doc/rdoc/files/lib/wee/adaptors/nitro_rb.html +101 -0
  117. data/doc/rdoc/files/lib/wee/adaptors/rails_rb.html +101 -0
  118. data/doc/rdoc/files/lib/wee/adaptors/webrick_rb.html +1 -1
  119. data/doc/rdoc/files/lib/wee/application_rb.html +1 -1
  120. data/doc/rdoc/files/lib/wee/components/component_dispatcher_rb.html +108 -0
  121. data/doc/rdoc/files/lib/wee/components/form_decoration_rb.html +1 -1
  122. data/doc/rdoc/files/lib/wee/components/login_decoration_rb.html +101 -0
  123. data/doc/rdoc/files/lib/wee/components/messagebox_rb.html +1 -1
  124. data/doc/rdoc/files/lib/wee/components/page_decoration_rb.html +1 -1
  125. data/doc/rdoc/files/lib/wee/components/pager_rb.html +101 -0
  126. data/doc/rdoc/files/lib/wee/components/wrapper_decoration_rb.html +1 -1
  127. data/doc/rdoc/files/lib/wee/components_rb.html +4 -1
  128. data/doc/rdoc/files/lib/wee/continuation/core/component_rb.html +1 -1
  129. data/doc/rdoc/files/lib/wee/continuation/session_rb.html +1 -1
  130. data/doc/rdoc/files/lib/wee/continuation_rb.html +1 -1
  131. data/doc/rdoc/files/lib/wee/core/callback_rb.html +1 -1
  132. data/doc/rdoc/files/lib/wee/core/component_rb.html +1 -1
  133. data/doc/rdoc/files/lib/wee/core/componentrunner_rb.html +110 -0
  134. data/doc/rdoc/files/lib/wee/core/context_rb.html +101 -0
  135. data/doc/rdoc/files/lib/wee/core/decoration_rb.html +1 -1
  136. data/doc/rdoc/files/lib/wee/core/idgen_rb.html +101 -0
  137. data/doc/rdoc/files/lib/wee/core/page_rb.html +101 -0
  138. data/doc/rdoc/files/lib/wee/core/presenter_rb.html +1 -1
  139. data/doc/rdoc/files/lib/wee/core/renderer_rb.html +107 -0
  140. data/doc/rdoc/files/lib/wee/core/snapshot_rb.html +1 -1
  141. data/doc/rdoc/files/lib/wee/core/valueholder_rb.html +2 -2
  142. data/doc/rdoc/files/lib/wee/core_ext_rb.html +101 -0
  143. data/doc/rdoc/files/lib/wee/core_rb.html +7 -14
  144. data/doc/rdoc/files/lib/wee/databases/og/application_rb.html +1 -1
  145. data/doc/rdoc/files/lib/wee/databases/og/old_scaffolder_rb.html +1 -1
  146. data/doc/rdoc/files/lib/wee/databases/og/scaffolder_rb.html +1 -1
  147. data/doc/rdoc/files/lib/wee/databases/og/session_rb.html +1 -1
  148. data/doc/rdoc/files/lib/wee/databases/og_rb.html +1 -1
  149. data/doc/rdoc/files/lib/wee/examples/calculator_rb.html +107 -0
  150. data/doc/rdoc/files/lib/wee/examples/counter_rb.html +101 -0
  151. data/doc/rdoc/files/lib/wee/examples/editable_counter_rb.html +114 -0
  152. data/doc/rdoc/files/lib/wee/examples/window_rb.html +101 -0
  153. data/doc/rdoc/files/lib/wee/idgen/md5_rb.html +1 -1
  154. data/doc/rdoc/files/lib/wee/idgen/simple_rb.html +1 -1
  155. data/doc/rdoc/files/lib/wee/page_rb.html +1 -1
  156. data/doc/rdoc/files/lib/wee/pageless/application_rb.html +8 -1
  157. data/doc/rdoc/files/lib/wee/pageless/request_rb.html +1 -1
  158. data/doc/rdoc/files/lib/wee/pageless/session_rb.html +2 -1
  159. data/doc/rdoc/files/lib/wee/pageless_rb.html +1 -1
  160. data/doc/rdoc/files/lib/wee/renderer/html/brushes_rb.html +1 -1
  161. data/doc/rdoc/files/lib/wee/renderer/html/canvas_rb.html +1 -1
  162. data/doc/rdoc/files/lib/wee/renderer/html/writer_rb.html +1 -1
  163. data/doc/rdoc/files/lib/wee/request_rb.html +5 -4
  164. data/doc/rdoc/files/lib/wee/requesthandler_rb.html +1 -1
  165. data/doc/rdoc/files/lib/wee/response_rb.html +2 -1
  166. data/doc/rdoc/files/lib/wee/session_rb.html +2 -3
  167. data/doc/rdoc/files/lib/wee/skeleton/og/components/main_rb.html +1 -1
  168. data/doc/rdoc/files/lib/wee/skeleton/og/conf/db_rb.html +2 -2
  169. data/doc/rdoc/files/lib/wee/skeleton/og/models/recipe_rb.html +1 -1
  170. data/doc/rdoc/files/lib/wee/skeleton/og/run_rb.html +1 -1
  171. data/doc/rdoc/files/lib/wee/skeleton/simple/components/main_rb.html +1 -1
  172. data/doc/rdoc/files/lib/wee/skeleton/simple/run_rb.html +1 -1
  173. data/doc/rdoc/files/lib/wee/snapshot_ext_rb.html +1 -1
  174. data/doc/rdoc/files/lib/wee/template_rb.html +1 -1
  175. data/doc/rdoc/files/lib/wee/utils/autoreload_rb.html +1 -1
  176. data/doc/rdoc/files/lib/wee/utils/cache_rb.html +1 -1
  177. data/doc/rdoc/files/lib/wee/utils/helper_rb.html +1 -1
  178. data/doc/rdoc/files/lib/wee/utils_rb.html +1 -1
  179. data/doc/rdoc/files/lib/wee_rb.html +5 -3
  180. data/doc/rdoc/fr_class_index.html +34 -2
  181. data/doc/rdoc/fr_file_index.html +17 -1
  182. data/doc/rdoc/fr_method_index.html +464 -314
  183. data/examples/ajax/ajax.rb +1 -1
  184. data/examples/demo.rb +47 -0
  185. data/examples/{calendar.rb → demo/calendar.rb} +89 -97
  186. data/examples/{example.rb → demo/example.rb} +17 -97
  187. data/examples/dispatcher.rb +37 -0
  188. data/examples/draw.rb +14 -11
  189. data/examples/nitro/run.rb +42 -0
  190. data/examples/radio.rb +44 -0
  191. data/examples/test.rb +3 -27
  192. data/lib/wee.rb +15 -3
  193. data/lib/wee/adaptors/nitro.rb +154 -0
  194. data/lib/wee/adaptors/rails.rb +154 -0
  195. data/lib/wee/application.rb +22 -20
  196. data/lib/wee/components.rb +3 -0
  197. data/lib/wee/components/component_dispatcher.rb +46 -0
  198. data/lib/wee/components/login_decoration.rb +35 -0
  199. data/lib/wee/components/messagebox.rb +2 -2
  200. data/lib/wee/components/pager.rb +102 -0
  201. data/lib/wee/continuation/core/component.rb +13 -12
  202. data/lib/wee/continuation/session.rb +11 -19
  203. data/lib/wee/core.rb +8 -7
  204. data/lib/wee/core/component.rb +8 -28
  205. data/lib/wee/core/componentrunner.rb +73 -0
  206. data/lib/wee/core/context.rb +27 -0
  207. data/lib/wee/core/idgen.rb +5 -0
  208. data/lib/wee/core/page.rb +1 -0
  209. data/lib/wee/core/presenter.rb +10 -126
  210. data/lib/wee/core/renderer.rb +23 -0
  211. data/lib/wee/core_ext.rb +122 -0
  212. data/lib/wee/databases/og/scaffolder.rb +0 -1
  213. data/lib/wee/examples/calculator.rb +70 -0
  214. data/lib/wee/examples/counter.rb +33 -0
  215. data/lib/wee/examples/editable_counter.rb +31 -0
  216. data/{examples → lib/wee/examples}/window.rb +29 -23
  217. data/lib/wee/idgen/md5.rb +1 -1
  218. data/lib/wee/idgen/simple.rb +1 -1
  219. data/lib/wee/pageless/session.rb +2 -3
  220. data/lib/wee/renderer/html/brushes.rb +142 -22
  221. data/lib/wee/renderer/html/canvas.rb +57 -19
  222. data/lib/wee/response.rb +3 -2
  223. data/lib/wee/session.rb +10 -54
  224. data/lib/wee/skeleton/og/components/main.rb +5 -1
  225. data/lib/wee/skeleton/og/conf/db.rb +1 -1
  226. data/lib/wee/snapshot_ext.rb +4 -10
  227. data/lib/wee/template.rb +19 -5
  228. data/lib/wee/utils/helper.rb +2 -2
  229. metadata +90 -13
  230. data/examples/calculator.rb +0 -67
  231. data/lib/wee/context.rb +0 -2
@@ -88,7 +88,7 @@
88
88
  <h3 class="section-bar">Methods</h3>
89
89
 
90
90
  <div class="name-list">
91
- <a href="#M000093">render_wrapper</a>&nbsp;&nbsp;
91
+ <a href="#M000153">render_wrapper</a>&nbsp;&nbsp;
92
92
  </div>
93
93
  </div>
94
94
 
@@ -110,19 +110,19 @@
110
110
  <div id="methods">
111
111
  <h3 class="section-bar">Private Instance methods</h3>
112
112
 
113
- <div id="method-M000093" class="method-detail">
114
- <a name="M000093"></a>
113
+ <div id="method-M000153" class="method-detail">
114
+ <a name="M000153"></a>
115
115
 
116
116
  <div class="method-heading">
117
- <a href="#M000093" class="method-signature">
117
+ <a href="#M000153" class="method-signature">
118
118
  <span class="method-name">render_wrapper</span><span class="method-args">() {|| ...}</span>
119
119
  </a>
120
120
  </div>
121
121
 
122
122
  <div class="method-description">
123
123
  <p><a class="source-toggle" href="#"
124
- onclick="toggleCode('M000093-source');return false;">[Source]</a></p>
125
- <div class="method-source-code" id="M000093-source">
124
+ onclick="toggleCode('M000153-source');return false;">[Source]</a></p>
125
+ <div class="method-source-code" id="M000153-source">
126
126
  <pre>
127
127
  <span class="ruby-comment cmt"># File lib/wee/components/form_decoration.rb, line 4</span>
128
128
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">render_wrapper</span>
@@ -88,7 +88,7 @@
88
88
  <h3 class="section-bar">Methods</h3>
89
89
 
90
90
  <div class="name-list">
91
- <a href="#M000094">new</a>&nbsp;&nbsp;
91
+ <a href="#M000154">new</a>&nbsp;&nbsp;
92
92
  </div>
93
93
  </div>
94
94
 
@@ -123,21 +123,21 @@
123
123
  <div id="methods">
124
124
  <h3 class="section-bar">Public Class methods</h3>
125
125
 
126
- <div id="method-M000094" class="method-detail">
127
- <a name="M000094"></a>
126
+ <div id="method-M000154" class="method-detail">
127
+ <a name="M000154"></a>
128
128
 
129
129
  <div class="method-heading">
130
- <a href="#M000094" class="method-signature">
130
+ <a href="#M000154" class="method-signature">
131
131
  <span class="method-name">new</span><span class="method-args">(mime_type = 'text/html', content='')</span>
132
132
  </a>
133
133
  </div>
134
134
 
135
135
  <div class="method-description">
136
136
  <p><a class="source-toggle" href="#"
137
- onclick="toggleCode('M000094-source');return false;">[Source]</a></p>
138
- <div class="method-source-code" id="M000094-source">
137
+ onclick="toggleCode('M000154-source');return false;">[Source]</a></p>
138
+ <div class="method-source-code" id="M000154-source">
139
139
  <pre>
140
- <span class="ruby-comment cmt"># File lib/wee/response.rb, line 40</span>
140
+ <span class="ruby-comment cmt"># File lib/wee/response.rb, line 42</span>
141
141
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">mime_type</span> = <span class="ruby-value str">'text/html'</span>, <span class="ruby-identifier">content</span>=<span class="ruby-value str">''</span>)
142
142
  <span class="ruby-keyword kw">super</span>
143
143
  <span class="ruby-ivar">@header</span>[<span class="ruby-value str">'Expires'</span>] = (<span class="ruby-constant">Time</span>.<span class="ruby-identifier">now</span> <span class="ruby-operator">+</span> <span class="ruby-constant">EXPIRE_OFFSET</span>).<span class="ruby-identifier">rfc822</span>
@@ -0,0 +1,1230 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7
+ <head>
8
+ <title>Class: Wee::HtmlCanvasRenderer</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <meta http-equiv="Content-Script-Type" content="text/javascript" />
11
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
12
+ <script type="text/javascript">
13
+ // <![CDATA[
14
+
15
+ function popupCode( url ) {
16
+ window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
17
+ }
18
+
19
+ function toggleCode( id ) {
20
+ if ( document.getElementById )
21
+ elem = document.getElementById( id );
22
+ else if ( document.all )
23
+ elem = eval( "document.all." + id );
24
+ else
25
+ return false;
26
+
27
+ elemStyle = elem.style;
28
+
29
+ if ( elemStyle.display != "block" ) {
30
+ elemStyle.display = "block"
31
+ } else {
32
+ elemStyle.display = "none"
33
+ }
34
+
35
+ return true;
36
+ }
37
+
38
+ // Make codeblocks hidden by default
39
+ document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
40
+
41
+ // ]]>
42
+ </script>
43
+
44
+ </head>
45
+ <body>
46
+
47
+
48
+
49
+ <div id="classHeader">
50
+ <table class="header-table">
51
+ <tr class="top-aligned-row">
52
+ <td><strong>Class</strong></td>
53
+ <td class="class-name-in-header">Wee::HtmlCanvasRenderer</td>
54
+ </tr>
55
+ <tr class="top-aligned-row">
56
+ <td><strong>In:</strong></td>
57
+ <td>
58
+ <a href="../../files/lib/wee/renderer/html/canvas_rb.html">
59
+ lib/wee/renderer/html/canvas.rb
60
+ </a>
61
+ <br />
62
+ </td>
63
+ </tr>
64
+
65
+ <tr class="top-aligned-row">
66
+ <td><strong>Parent:</strong></td>
67
+ <td>
68
+ <a href="Renderer.html">
69
+ Renderer
70
+ </a>
71
+ </td>
72
+ </tr>
73
+ </table>
74
+ </div>
75
+ <!-- banner header -->
76
+
77
+ <div id="bodyContent">
78
+
79
+
80
+
81
+ <div id="contextContent">
82
+
83
+
84
+
85
+ </div>
86
+
87
+ <div id="method-list">
88
+ <h3 class="section-bar">Methods</h3>
89
+
90
+ <div class="name-list">
91
+ <a href="#M000460">&lt;&lt;</a>&nbsp;&nbsp;
92
+ <a href="#M000450">anchor</a>&nbsp;&nbsp;
93
+ <a href="#M000452">bold</a>&nbsp;&nbsp;
94
+ <a href="#M000456">break</a>&nbsp;&nbsp;
95
+ <a href="#M000428">build_url</a>&nbsp;&nbsp;
96
+ <a href="#M000441">check_box</a>&nbsp;&nbsp;
97
+ <a href="#M000442">checkbox</a>&nbsp;&nbsp;
98
+ <a href="#M000461">encode_text</a>&nbsp;&nbsp;
99
+ <a href="#M000448">file_upload</a>&nbsp;&nbsp;
100
+ <a href="#M000435">form</a>&nbsp;&nbsp;
101
+ <a href="#M000423">generic_single_tag</a>&nbsp;&nbsp;
102
+ <a href="#M000422">generic_tag</a>&nbsp;&nbsp;
103
+ <a href="#M000465">handle</a>&nbsp;&nbsp;
104
+ <a href="#M000437">hidden_input</a>&nbsp;&nbsp;
105
+ <a href="#M000457">image</a>&nbsp;&nbsp;
106
+ <a href="#M000447">image_button</a>&nbsp;&nbsp;
107
+ <a href="#M000436">input</a>&nbsp;&nbsp;
108
+ <a href="#M000453">javascript</a>&nbsp;&nbsp;
109
+ <a href="#M000455">label</a>&nbsp;&nbsp;
110
+ <a href="#M000458">link_css</a>&nbsp;&nbsp;
111
+ <a href="#M000462">multiline_text</a>&nbsp;&nbsp;
112
+ <a href="#M000424">new</a>&nbsp;&nbsp;
113
+ <a href="#M000439">new_radio_group</a>&nbsp;&nbsp;
114
+ <a href="#M000444">option</a>&nbsp;&nbsp;
115
+ <a href="#M000449">page</a>&nbsp;&nbsp;
116
+ <a href="#M000454">paragraph</a>&nbsp;&nbsp;
117
+ <a href="#M000440">radio_button</a>&nbsp;&nbsp;
118
+ <a href="#M000429">register_callback</a>&nbsp;&nbsp;
119
+ <a href="#M000430">register_named_callback</a>&nbsp;&nbsp;
120
+ <a href="#M000463">render</a>&nbsp;&nbsp;
121
+ <a href="#M000445">select_list</a>&nbsp;&nbsp;
122
+ <a href="#M000451">space</a>&nbsp;&nbsp;
123
+ <a href="#M000446">submit_button</a>&nbsp;&nbsp;
124
+ <a href="#M000431">table</a>&nbsp;&nbsp;
125
+ <a href="#M000433">table_data</a>&nbsp;&nbsp;
126
+ <a href="#M000434">table_header</a>&nbsp;&nbsp;
127
+ <a href="#M000432">table_row</a>&nbsp;&nbsp;
128
+ <a href="#M000464">template</a>&nbsp;&nbsp;
129
+ <a href="#M000459">text</a>&nbsp;&nbsp;
130
+ <a href="#M000443">text_area</a>&nbsp;&nbsp;
131
+ <a href="#M000438">text_input</a>&nbsp;&nbsp;
132
+ <a href="#M000425">url_for_callback</a>&nbsp;&nbsp;
133
+ <a href="#M000427">url_for_callback_id</a>&nbsp;&nbsp;
134
+ <a href="#M000426">url_for_named_callback</a>&nbsp;&nbsp;
135
+ </div>
136
+ </div>
137
+
138
+ </div>
139
+
140
+
141
+ <!-- if includes -->
142
+ <div id="includes">
143
+ <h3 class="section-bar">Included Modules</h3>
144
+
145
+ <div id="includes-list">
146
+ <span class="include-name"><a href="CanvasMixin.html">CanvasMixin</a></span>
147
+ </div>
148
+ </div>
149
+
150
+ <div id="section">
151
+
152
+
153
+
154
+
155
+
156
+ <div id="attribute-list">
157
+ <h3 class="section-bar">Attributes</h3>
158
+
159
+ <div class="name-list">
160
+ <table>
161
+ <tr class="top-aligned-row context-row">
162
+ <td class="context-item-name">document</td>
163
+ <td class="context-item-value">&nbsp;[R]&nbsp;</td>
164
+ <td class="context-item-desc"></td>
165
+ </tr>
166
+ </table>
167
+ </div>
168
+ </div>
169
+
170
+
171
+
172
+ <!-- if method_list -->
173
+ <div id="methods">
174
+ <h3 class="section-bar">Public Class methods</h3>
175
+
176
+ <div id="method-M000423" class="method-detail">
177
+ <a name="M000423"></a>
178
+
179
+ <div class="method-heading">
180
+ <a href="#M000423" class="method-signature">
181
+ <span class="method-name">generic_single_tag</span><span class="method-args">(*attrs)</span>
182
+ </a>
183
+ </div>
184
+
185
+ <div class="method-description">
186
+ <p><a class="source-toggle" href="#"
187
+ onclick="toggleCode('M000423-source');return false;">[Source]</a></p>
188
+ <div class="method-source-code" id="M000423-source">
189
+ <pre>
190
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 49</span>
191
+ <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">generic_single_tag</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">attrs</span>)
192
+ <span class="ruby-identifier">attrs</span>.<span class="ruby-identifier">each</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">a</span><span class="ruby-operator">|</span>
193
+ <span class="ruby-identifier">class_eval</span> <span class="ruby-node">&quot;
194
+ def #{ a }(*args, &amp;block)
195
+ handle(Brush::GenericSingleTagBrush.new('#{ a }'), *args, &amp;block)
196
+ end
197
+ &quot;</span>
198
+ }
199
+ <span class="ruby-keyword kw">end</span>
200
+ </pre>
201
+ </div>
202
+ </div>
203
+ </div>
204
+
205
+ <div id="method-M000422" class="method-detail">
206
+ <a name="M000422"></a>
207
+
208
+ <div class="method-heading">
209
+ <a href="#M000422" class="method-signature">
210
+ <span class="method-name">generic_tag</span><span class="method-args">(*attrs)</span>
211
+ </a>
212
+ </div>
213
+
214
+ <div class="method-description">
215
+ <p><a class="source-toggle" href="#"
216
+ onclick="toggleCode('M000422-source');return false;">[Source]</a></p>
217
+ <div class="method-source-code" id="M000422-source">
218
+ <pre>
219
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 39</span>
220
+ <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">generic_tag</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">attrs</span>)
221
+ <span class="ruby-identifier">attrs</span>.<span class="ruby-identifier">each</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">a</span><span class="ruby-operator">|</span>
222
+ <span class="ruby-identifier">class_eval</span> <span class="ruby-node">&quot;
223
+ def #{ a }(*args, &amp;block)
224
+ handle(Brush::GenericTagBrush.new('#{ a }'), *args, &amp;block)
225
+ end
226
+ &quot;</span>
227
+ }
228
+ <span class="ruby-keyword kw">end</span>
229
+ </pre>
230
+ </div>
231
+ </div>
232
+ </div>
233
+
234
+ <div id="method-M000424" class="method-detail">
235
+ <a name="M000424"></a>
236
+
237
+ <div class="method-heading">
238
+ <a href="#M000424" class="method-signature">
239
+ <span class="method-name">new</span><span class="method-args">(rendering_context, current_component=nil, &amp;block)</span>
240
+ </a>
241
+ </div>
242
+
243
+ <div class="method-description">
244
+ <p><a class="source-toggle" href="#"
245
+ onclick="toggleCode('M000424-source');return false;">[Source]</a></p>
246
+ <div class="method-source-code" id="M000424-source">
247
+ <pre>
248
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 59</span>
249
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">rendering_context</span>, <span class="ruby-identifier">current_component</span>=<span class="ruby-keyword kw">nil</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
250
+ <span class="ruby-comment cmt"># cache the document, to reduce method calls</span>
251
+ <span class="ruby-ivar">@document</span> = <span class="ruby-identifier">rendering_context</span>.<span class="ruby-identifier">document</span>
252
+
253
+ <span class="ruby-identifier">initialize_canvas</span>
254
+ <span class="ruby-keyword kw">super</span>
255
+ <span class="ruby-keyword kw">end</span>
256
+ </pre>
257
+ </div>
258
+ </div>
259
+ </div>
260
+
261
+ <h3 class="section-bar">Public Instance methods</h3>
262
+
263
+ <div id="method-M000460" class="method-detail">
264
+ <a name="M000460"></a>
265
+
266
+ <div class="method-heading">
267
+ <span class="method-name">&lt;&lt;</span><span class="method-args">(str)</span>
268
+ </div>
269
+
270
+ <div class="method-description">
271
+ <p>
272
+ Alias for <a href="HtmlCanvasRenderer.html#M000459">text</a>
273
+ </p>
274
+ </div>
275
+ </div>
276
+
277
+ <div id="method-M000450" class="method-detail">
278
+ <a name="M000450"></a>
279
+
280
+ <div class="method-heading">
281
+ <a href="#M000450" class="method-signature">
282
+ <span class="method-name">anchor</span><span class="method-args">(*args, &amp;block)</span>
283
+ </a>
284
+ </div>
285
+
286
+ <div class="method-description">
287
+ <p><a class="source-toggle" href="#"
288
+ onclick="toggleCode('M000450-source');return false;">[Source]</a></p>
289
+ <div class="method-source-code" id="M000450-source">
290
+ <pre>
291
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 173</span>
292
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">anchor</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
293
+ <span class="ruby-identifier">handle</span>(<span class="ruby-constant">Brush</span><span class="ruby-operator">::</span><span class="ruby-constant">AnchorTag</span>.<span class="ruby-identifier">new</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
294
+ <span class="ruby-keyword kw">end</span>
295
+ </pre>
296
+ </div>
297
+ </div>
298
+ </div>
299
+
300
+ <div id="method-M000452" class="method-detail">
301
+ <a name="M000452"></a>
302
+
303
+ <div class="method-heading">
304
+ <a href="#M000452" class="method-signature">
305
+ <span class="method-name">bold</span><span class="method-args">(*args, &amp;block)</span>
306
+ </a>
307
+ </div>
308
+
309
+ <div class="method-description">
310
+ <p><a class="source-toggle" href="#"
311
+ onclick="toggleCode('M000452-source');return false;">[Source]</a></p>
312
+ <div class="method-source-code" id="M000452-source">
313
+ <pre>
314
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 181</span>
315
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">bold</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
316
+ <span class="ruby-identifier">handle</span>(<span class="ruby-constant">Brush</span><span class="ruby-operator">::</span><span class="ruby-constant">GenericTagBrush</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value str">&quot;b&quot;</span>), <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
317
+ <span class="ruby-keyword kw">end</span>
318
+ </pre>
319
+ </div>
320
+ </div>
321
+ </div>
322
+
323
+ <div id="method-M000456" class="method-detail">
324
+ <a name="M000456"></a>
325
+
326
+ <div class="method-heading">
327
+ <a href="#M000456" class="method-signature">
328
+ <span class="method-name">break</span><span class="method-args">()</span>
329
+ </a>
330
+ </div>
331
+
332
+ <div class="method-description">
333
+ <p><a class="source-toggle" href="#"
334
+ onclick="toggleCode('M000456-source');return false;">[Source]</a></p>
335
+ <div class="method-source-code" id="M000456-source">
336
+ <pre>
337
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 197</span>
338
+ <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">break</span>
339
+ <span class="ruby-identifier">set_brush</span>(<span class="ruby-constant">Brush</span><span class="ruby-operator">::</span><span class="ruby-constant">GenericSingleTagBrush</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value str">&quot;br&quot;</span>))
340
+ <span class="ruby-keyword kw">end</span>
341
+ </pre>
342
+ </div>
343
+ </div>
344
+ </div>
345
+
346
+ <div id="method-M000428" class="method-detail">
347
+ <a name="M000428"></a>
348
+
349
+ <div class="method-heading">
350
+ <a href="#M000428" class="method-signature">
351
+ <span class="method-name">build_url</span><span class="method-args">(*args)</span>
352
+ </a>
353
+ </div>
354
+
355
+ <div class="method-description">
356
+ <p><a class="source-toggle" href="#"
357
+ onclick="toggleCode('M000428-source');return false;">[Source]</a></p>
358
+ <div class="method-source-code" id="M000428-source">
359
+ <pre>
360
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 87</span>
361
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">build_url</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
362
+ <span class="ruby-identifier">rendering_context</span>.<span class="ruby-identifier">request</span>.<span class="ruby-identifier">build_url</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
363
+ <span class="ruby-keyword kw">end</span>
364
+ </pre>
365
+ </div>
366
+ </div>
367
+ </div>
368
+
369
+ <div id="method-M000441" class="method-detail">
370
+ <a name="M000441"></a>
371
+
372
+ <div class="method-heading">
373
+ <a href="#M000441" class="method-signature">
374
+ <span class="method-name">check_box</span><span class="method-args">(*args, &amp;block)</span>
375
+ </a>
376
+ </div>
377
+
378
+ <div class="method-description">
379
+ <p><a class="source-toggle" href="#"
380
+ onclick="toggleCode('M000441-source');return false;">[Source]</a></p>
381
+ <div class="method-source-code" id="M000441-source">
382
+ <pre>
383
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 139</span>
384
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">check_box</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
385
+ <span class="ruby-identifier">handle</span>(<span class="ruby-constant">Wee</span><span class="ruby-operator">::</span><span class="ruby-constant">Brush</span><span class="ruby-operator">::</span><span class="ruby-constant">CheckboxTag</span>.<span class="ruby-identifier">new</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
386
+ <span class="ruby-keyword kw">end</span>
387
+ </pre>
388
+ </div>
389
+ </div>
390
+ </div>
391
+
392
+ <div id="method-M000442" class="method-detail">
393
+ <a name="M000442"></a>
394
+
395
+ <div class="method-heading">
396
+ <span class="method-name">checkbox</span><span class="method-args">(*args, &amp;block)</span>
397
+ </div>
398
+
399
+ <div class="method-description">
400
+ <p>
401
+ Alias for <a href="HtmlCanvasRenderer.html#M000441">check_box</a>
402
+ </p>
403
+ </div>
404
+ </div>
405
+
406
+ <div id="method-M000461" class="method-detail">
407
+ <a name="M000461"></a>
408
+
409
+ <div class="method-heading">
410
+ <a href="#M000461" class="method-signature">
411
+ <span class="method-name">encode_text</span><span class="method-args">(str)</span>
412
+ </a>
413
+ </div>
414
+
415
+ <div class="method-description">
416
+ <p><a class="source-toggle" href="#"
417
+ onclick="toggleCode('M000461-source');return false;">[Source]</a></p>
418
+ <div class="method-source-code" id="M000461-source">
419
+ <pre>
420
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 214</span>
421
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">encode_text</span>(<span class="ruby-identifier">str</span>)
422
+ <span class="ruby-identifier">set_brush</span>(<span class="ruby-constant">Brush</span><span class="ruby-operator">::</span><span class="ruby-constant">GenericEncodedTextBrush</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">str</span>))
423
+ <span class="ruby-keyword kw">end</span>
424
+ </pre>
425
+ </div>
426
+ </div>
427
+ </div>
428
+
429
+ <div id="method-M000448" class="method-detail">
430
+ <a name="M000448"></a>
431
+
432
+ <div class="method-heading">
433
+ <a href="#M000448" class="method-signature">
434
+ <span class="method-name">file_upload</span><span class="method-args">(*args, &amp;block)</span>
435
+ </a>
436
+ </div>
437
+
438
+ <div class="method-description">
439
+ <p><a class="source-toggle" href="#"
440
+ onclick="toggleCode('M000448-source');return false;">[Source]</a></p>
441
+ <div class="method-source-code" id="M000448-source">
442
+ <pre>
443
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 165</span>
444
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">file_upload</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
445
+ <span class="ruby-identifier">handle</span>(<span class="ruby-constant">Wee</span><span class="ruby-operator">::</span><span class="ruby-constant">Brush</span><span class="ruby-operator">::</span><span class="ruby-constant">FileUploadTag</span>.<span class="ruby-identifier">new</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
446
+ <span class="ruby-keyword kw">end</span>
447
+ </pre>
448
+ </div>
449
+ </div>
450
+ </div>
451
+
452
+ <div id="method-M000435" class="method-detail">
453
+ <a name="M000435"></a>
454
+
455
+ <div class="method-heading">
456
+ <a href="#M000435" class="method-signature">
457
+ <span class="method-name">form</span><span class="method-args">(*args, &amp;block)</span>
458
+ </a>
459
+ </div>
460
+
461
+ <div class="method-description">
462
+ <p><a class="source-toggle" href="#"
463
+ onclick="toggleCode('M000435-source');return false;">[Source]</a></p>
464
+ <div class="method-source-code" id="M000435-source">
465
+ <pre>
466
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 115</span>
467
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">form</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
468
+ <span class="ruby-identifier">handle</span>(<span class="ruby-constant">Brush</span><span class="ruby-operator">::</span><span class="ruby-constant">FormTag</span>.<span class="ruby-identifier">new</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
469
+ <span class="ruby-keyword kw">end</span>
470
+ </pre>
471
+ </div>
472
+ </div>
473
+ </div>
474
+
475
+ <div id="method-M000437" class="method-detail">
476
+ <a name="M000437"></a>
477
+
478
+ <div class="method-heading">
479
+ <a href="#M000437" class="method-signature">
480
+ <span class="method-name">hidden_input</span><span class="method-args">(*args, &amp;block)</span>
481
+ </a>
482
+ </div>
483
+
484
+ <div class="method-description">
485
+ <p><a class="source-toggle" href="#"
486
+ onclick="toggleCode('M000437-source');return false;">[Source]</a></p>
487
+ <div class="method-source-code" id="M000437-source">
488
+ <pre>
489
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 123</span>
490
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">hidden_input</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
491
+ <span class="ruby-identifier">handle</span>(<span class="ruby-constant">Brush</span><span class="ruby-operator">::</span><span class="ruby-constant">HiddenInputTag</span>.<span class="ruby-identifier">new</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
492
+ <span class="ruby-keyword kw">end</span>
493
+ </pre>
494
+ </div>
495
+ </div>
496
+ </div>
497
+
498
+ <div id="method-M000457" class="method-detail">
499
+ <a name="M000457"></a>
500
+
501
+ <div class="method-heading">
502
+ <a href="#M000457" class="method-signature">
503
+ <span class="method-name">image</span><span class="method-args">()</span>
504
+ </a>
505
+ </div>
506
+
507
+ <div class="method-description">
508
+ <p><a class="source-toggle" href="#"
509
+ onclick="toggleCode('M000457-source');return false;">[Source]</a></p>
510
+ <div class="method-source-code" id="M000457-source">
511
+ <pre>
512
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 201</span>
513
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">image</span>
514
+ <span class="ruby-identifier">handle</span>(<span class="ruby-constant">Brush</span><span class="ruby-operator">::</span><span class="ruby-constant">ImageTag</span>.<span class="ruby-identifier">new</span>)
515
+ <span class="ruby-keyword kw">end</span>
516
+ </pre>
517
+ </div>
518
+ </div>
519
+ </div>
520
+
521
+ <div id="method-M000447" class="method-detail">
522
+ <a name="M000447"></a>
523
+
524
+ <div class="method-heading">
525
+ <a href="#M000447" class="method-signature">
526
+ <span class="method-name">image_button</span><span class="method-args">(*args, &amp;block)</span>
527
+ </a>
528
+ </div>
529
+
530
+ <div class="method-description">
531
+ <p><a class="source-toggle" href="#"
532
+ onclick="toggleCode('M000447-source');return false;">[Source]</a></p>
533
+ <div class="method-source-code" id="M000447-source">
534
+ <pre>
535
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 161</span>
536
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">image_button</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
537
+ <span class="ruby-identifier">handle</span>(<span class="ruby-constant">Wee</span><span class="ruby-operator">::</span><span class="ruby-constant">Brush</span><span class="ruby-operator">::</span><span class="ruby-constant">ImageButtonTag</span>.<span class="ruby-identifier">new</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
538
+ <span class="ruby-keyword kw">end</span>
539
+ </pre>
540
+ </div>
541
+ </div>
542
+ </div>
543
+
544
+ <div id="method-M000436" class="method-detail">
545
+ <a name="M000436"></a>
546
+
547
+ <div class="method-heading">
548
+ <a href="#M000436" class="method-signature">
549
+ <span class="method-name">input</span><span class="method-args">(*args, &amp;block)</span>
550
+ </a>
551
+ </div>
552
+
553
+ <div class="method-description">
554
+ <p><a class="source-toggle" href="#"
555
+ onclick="toggleCode('M000436-source');return false;">[Source]</a></p>
556
+ <div class="method-source-code" id="M000436-source">
557
+ <pre>
558
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 119</span>
559
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">input</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
560
+ <span class="ruby-identifier">handle</span>(<span class="ruby-constant">Brush</span><span class="ruby-operator">::</span><span class="ruby-constant">InputTag</span>.<span class="ruby-identifier">new</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
561
+ <span class="ruby-keyword kw">end</span>
562
+ </pre>
563
+ </div>
564
+ </div>
565
+ </div>
566
+
567
+ <div id="method-M000453" class="method-detail">
568
+ <a name="M000453"></a>
569
+
570
+ <div class="method-heading">
571
+ <a href="#M000453" class="method-signature">
572
+ <span class="method-name">javascript</span><span class="method-args">(*args, &amp;block)</span>
573
+ </a>
574
+ </div>
575
+
576
+ <div class="method-description">
577
+ <p><a class="source-toggle" href="#"
578
+ onclick="toggleCode('M000453-source');return false;">[Source]</a></p>
579
+ <div class="method-source-code" id="M000453-source">
580
+ <pre>
581
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 185</span>
582
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">javascript</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
583
+ <span class="ruby-identifier">handle</span>(<span class="ruby-constant">Brush</span><span class="ruby-operator">::</span><span class="ruby-constant">JavascriptTag</span>.<span class="ruby-identifier">new</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
584
+ <span class="ruby-keyword kw">end</span>
585
+ </pre>
586
+ </div>
587
+ </div>
588
+ </div>
589
+
590
+ <div id="method-M000455" class="method-detail">
591
+ <a name="M000455"></a>
592
+
593
+ <div class="method-heading">
594
+ <a href="#M000455" class="method-signature">
595
+ <span class="method-name">label</span><span class="method-args">(*args, &amp;block)</span>
596
+ </a>
597
+ </div>
598
+
599
+ <div class="method-description">
600
+ <p><a class="source-toggle" href="#"
601
+ onclick="toggleCode('M000455-source');return false;">[Source]</a></p>
602
+ <div class="method-source-code" id="M000455-source">
603
+ <pre>
604
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 193</span>
605
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">label</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
606
+ <span class="ruby-identifier">handle</span>(<span class="ruby-constant">Brush</span><span class="ruby-operator">::</span><span class="ruby-constant">GenericTagBrush</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value str">&quot;label&quot;</span>), <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
607
+ <span class="ruby-keyword kw">end</span>
608
+ </pre>
609
+ </div>
610
+ </div>
611
+ </div>
612
+
613
+ <div id="method-M000458" class="method-detail">
614
+ <a name="M000458"></a>
615
+
616
+ <div class="method-heading">
617
+ <a href="#M000458" class="method-signature">
618
+ <span class="method-name">link_css</span><span class="method-args">(url)</span>
619
+ </a>
620
+ </div>
621
+
622
+ <div class="method-description">
623
+ <p><a class="source-toggle" href="#"
624
+ onclick="toggleCode('M000458-source');return false;">[Source]</a></p>
625
+ <div class="method-source-code" id="M000458-source">
626
+ <pre>
627
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 205</span>
628
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">link_css</span>(<span class="ruby-identifier">url</span>)
629
+ <span class="ruby-identifier">link</span>.<span class="ruby-identifier">type</span>(<span class="ruby-value str">'text/css'</span>).<span class="ruby-identifier">rel</span>(<span class="ruby-value str">'stylesheet'</span>).<span class="ruby-identifier">href</span>(<span class="ruby-identifier">url</span>)
630
+ <span class="ruby-keyword kw">end</span>
631
+ </pre>
632
+ </div>
633
+ </div>
634
+ </div>
635
+
636
+ <div id="method-M000462" class="method-detail">
637
+ <a name="M000462"></a>
638
+
639
+ <div class="method-heading">
640
+ <a href="#M000462" class="method-signature">
641
+ <span class="method-name">multiline_text</span><span class="method-args">(text, encode=true)</span>
642
+ </a>
643
+ </div>
644
+
645
+ <div class="method-description">
646
+ <p>
647
+ converts \n into &lt;br/&gt;
648
+ </p>
649
+ <p><a class="source-toggle" href="#"
650
+ onclick="toggleCode('M000462-source');return false;">[Source]</a></p>
651
+ <div class="method-source-code" id="M000462-source">
652
+ <pre>
653
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 219</span>
654
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">multiline_text</span>(<span class="ruby-identifier">text</span>, <span class="ruby-identifier">encode</span>=<span class="ruby-keyword kw">true</span>)
655
+ <span class="ruby-identifier">meth</span> = <span class="ruby-identifier">encode</span> <span class="ruby-value">? </span><span class="ruby-operator">:</span><span class="ruby-identifier">encode_text</span> <span class="ruby-operator">:</span> <span class="ruby-identifier">:text</span>
656
+ <span class="ruby-identifier">lines</span> = <span class="ruby-identifier">text</span>.<span class="ruby-identifier">split</span>(<span class="ruby-value str">&quot;\n&quot;</span>)
657
+ <span class="ruby-identifier">send</span>(<span class="ruby-identifier">meth</span>, <span class="ruby-identifier">lines</span>.<span class="ruby-identifier">first</span>)
658
+ <span class="ruby-identifier">lines</span>[<span class="ruby-value">1</span><span class="ruby-operator">..</span><span class="ruby-value">-1</span>].<span class="ruby-identifier">each</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">l</span><span class="ruby-operator">|</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">break</span>; <span class="ruby-identifier">send</span>(<span class="ruby-identifier">meth</span>, <span class="ruby-identifier">l</span>) }
659
+ <span class="ruby-keyword kw">end</span>
660
+ </pre>
661
+ </div>
662
+ </div>
663
+ </div>
664
+
665
+ <div id="method-M000439" class="method-detail">
666
+ <a name="M000439"></a>
667
+
668
+ <div class="method-heading">
669
+ <a href="#M000439" class="method-signature">
670
+ <span class="method-name">new_radio_group</span><span class="method-args">()</span>
671
+ </a>
672
+ </div>
673
+
674
+ <div class="method-description">
675
+ <p><a class="source-toggle" href="#"
676
+ onclick="toggleCode('M000439-source');return false;">[Source]</a></p>
677
+ <div class="method-source-code" id="M000439-source">
678
+ <pre>
679
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 131</span>
680
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">new_radio_group</span>
681
+ <span class="ruby-constant">Wee</span><span class="ruby-operator">::</span><span class="ruby-constant">Brush</span><span class="ruby-operator">::</span><span class="ruby-constant">RadioButtonTag</span><span class="ruby-operator">::</span><span class="ruby-constant">RadioGroup</span>.<span class="ruby-identifier">new</span>(<span class="ruby-keyword kw">self</span>)
682
+ <span class="ruby-keyword kw">end</span>
683
+ </pre>
684
+ </div>
685
+ </div>
686
+ </div>
687
+
688
+ <div id="method-M000444" class="method-detail">
689
+ <a name="M000444"></a>
690
+
691
+ <div class="method-heading">
692
+ <a href="#M000444" class="method-signature">
693
+ <span class="method-name">option</span><span class="method-args">(*args, &amp;block)</span>
694
+ </a>
695
+ </div>
696
+
697
+ <div class="method-description">
698
+ <p><a class="source-toggle" href="#"
699
+ onclick="toggleCode('M000444-source');return false;">[Source]</a></p>
700
+ <div class="method-source-code" id="M000444-source">
701
+ <pre>
702
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 149</span>
703
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">option</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
704
+ <span class="ruby-identifier">handle</span>(<span class="ruby-constant">Brush</span><span class="ruby-operator">::</span><span class="ruby-constant">SelectOptionTag</span>.<span class="ruby-identifier">new</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
705
+ <span class="ruby-keyword kw">end</span>
706
+ </pre>
707
+ </div>
708
+ </div>
709
+ </div>
710
+
711
+ <div id="method-M000449" class="method-detail">
712
+ <a name="M000449"></a>
713
+
714
+ <div class="method-heading">
715
+ <a href="#M000449" class="method-signature">
716
+ <span class="method-name">page</span><span class="method-args">(*args, &amp;block)</span>
717
+ </a>
718
+ </div>
719
+
720
+ <div class="method-description">
721
+ <p><a class="source-toggle" href="#"
722
+ onclick="toggleCode('M000449-source');return false;">[Source]</a></p>
723
+ <div class="method-source-code" id="M000449-source">
724
+ <pre>
725
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 169</span>
726
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">page</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
727
+ <span class="ruby-identifier">handle</span>(<span class="ruby-constant">Brush</span><span class="ruby-operator">::</span><span class="ruby-constant">Page</span>.<span class="ruby-identifier">new</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
728
+ <span class="ruby-keyword kw">end</span>
729
+ </pre>
730
+ </div>
731
+ </div>
732
+ </div>
733
+
734
+ <div id="method-M000454" class="method-detail">
735
+ <a name="M000454"></a>
736
+
737
+ <div class="method-heading">
738
+ <a href="#M000454" class="method-signature">
739
+ <span class="method-name">paragraph</span><span class="method-args">(*args, &amp;block)</span>
740
+ </a>
741
+ </div>
742
+
743
+ <div class="method-description">
744
+ <p><a class="source-toggle" href="#"
745
+ onclick="toggleCode('M000454-source');return false;">[Source]</a></p>
746
+ <div class="method-source-code" id="M000454-source">
747
+ <pre>
748
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 189</span>
749
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">paragraph</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
750
+ <span class="ruby-identifier">handle</span>(<span class="ruby-constant">Brush</span><span class="ruby-operator">::</span><span class="ruby-constant">GenericTagBrush</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value str">&quot;p&quot;</span>), <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
751
+ <span class="ruby-keyword kw">end</span>
752
+ </pre>
753
+ </div>
754
+ </div>
755
+ </div>
756
+
757
+ <div id="method-M000440" class="method-detail">
758
+ <a name="M000440"></a>
759
+
760
+ <div class="method-heading">
761
+ <a href="#M000440" class="method-signature">
762
+ <span class="method-name">radio_button</span><span class="method-args">(*args, &amp;block)</span>
763
+ </a>
764
+ </div>
765
+
766
+ <div class="method-description">
767
+ <p><a class="source-toggle" href="#"
768
+ onclick="toggleCode('M000440-source');return false;">[Source]</a></p>
769
+ <div class="method-source-code" id="M000440-source">
770
+ <pre>
771
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 135</span>
772
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">radio_button</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
773
+ <span class="ruby-identifier">handle</span>(<span class="ruby-constant">Brush</span><span class="ruby-operator">::</span><span class="ruby-constant">RadioButtonTag</span>.<span class="ruby-identifier">new</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
774
+ <span class="ruby-keyword kw">end</span>
775
+ </pre>
776
+ </div>
777
+ </div>
778
+ </div>
779
+
780
+ <div id="method-M000429" class="method-detail">
781
+ <a name="M000429"></a>
782
+
783
+ <div class="method-heading">
784
+ <a href="#M000429" class="method-signature">
785
+ <span class="method-name">register_callback</span><span class="method-args">(type, callback)</span>
786
+ </a>
787
+ </div>
788
+
789
+ <div class="method-description">
790
+ <p><a class="source-toggle" href="#"
791
+ onclick="toggleCode('M000429-source');return false;">[Source]</a></p>
792
+ <div class="method-source-code" id="M000429-source">
793
+ <pre>
794
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 91</span>
795
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">register_callback</span>(<span class="ruby-identifier">type</span>, <span class="ruby-identifier">callback</span>)
796
+ <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">rendering_context</span>.<span class="ruby-identifier">callbacks</span>.<span class="ruby-identifier">register_for</span>(<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">current_component</span>, <span class="ruby-identifier">type</span>, <span class="ruby-identifier">callback</span>)
797
+ <span class="ruby-keyword kw">end</span>
798
+ </pre>
799
+ </div>
800
+ </div>
801
+ </div>
802
+
803
+ <div id="method-M000430" class="method-detail">
804
+ <a name="M000430"></a>
805
+
806
+ <div class="method-heading">
807
+ <a href="#M000430" class="method-signature">
808
+ <span class="method-name">register_named_callback</span><span class="method-args">(name, type, callback)</span>
809
+ </a>
810
+ </div>
811
+
812
+ <div class="method-description">
813
+ <p><a class="source-toggle" href="#"
814
+ onclick="toggleCode('M000430-source');return false;">[Source]</a></p>
815
+ <div class="method-source-code" id="M000430-source">
816
+ <pre>
817
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 95</span>
818
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">register_named_callback</span>(<span class="ruby-identifier">name</span>, <span class="ruby-identifier">type</span>, <span class="ruby-identifier">callback</span>)
819
+ <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">rendering_context</span>.<span class="ruby-identifier">callbacks</span>.<span class="ruby-identifier">register_named_for</span>(<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">current_component</span>, <span class="ruby-identifier">type</span>, <span class="ruby-identifier">callback</span>, <span class="ruby-identifier">name</span>)
820
+ <span class="ruby-keyword kw">end</span>
821
+ </pre>
822
+ </div>
823
+ </div>
824
+ </div>
825
+
826
+ <div id="method-M000463" class="method-detail">
827
+ <a name="M000463"></a>
828
+
829
+ <div class="method-heading">
830
+ <a href="#M000463" class="method-signature">
831
+ <span class="method-name">render</span><span class="method-args">(obj)</span>
832
+ </a>
833
+ </div>
834
+
835
+ <div class="method-description">
836
+ <p><a class="source-toggle" href="#"
837
+ onclick="toggleCode('M000463-source');return false;">[Source]</a></p>
838
+ <div class="method-source-code" id="M000463-source">
839
+ <pre>
840
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 226</span>
841
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">render</span>(<span class="ruby-identifier">obj</span>)
842
+ <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">close</span>
843
+ <span class="ruby-identifier">obj</span>.<span class="ruby-identifier">do_render_chain</span>(<span class="ruby-ivar">@rendering_context</span>)
844
+ <span class="ruby-keyword kw">nil</span>
845
+ <span class="ruby-keyword kw">end</span>
846
+ </pre>
847
+ </div>
848
+ </div>
849
+ </div>
850
+
851
+ <div id="method-M000445" class="method-detail">
852
+ <a name="M000445"></a>
853
+
854
+ <div class="method-heading">
855
+ <a href="#M000445" class="method-signature">
856
+ <span class="method-name">select_list</span><span class="method-args">(items)</span>
857
+ </a>
858
+ </div>
859
+
860
+ <div class="method-description">
861
+ <p><a class="source-toggle" href="#"
862
+ onclick="toggleCode('M000445-source');return false;">[Source]</a></p>
863
+ <div class="method-source-code" id="M000445-source">
864
+ <pre>
865
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 153</span>
866
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">select_list</span>(<span class="ruby-identifier">items</span>)
867
+ <span class="ruby-identifier">handle</span>(<span class="ruby-constant">Brush</span><span class="ruby-operator">::</span><span class="ruby-constant">SelectListTag</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">items</span>))
868
+ <span class="ruby-keyword kw">end</span>
869
+ </pre>
870
+ </div>
871
+ </div>
872
+ </div>
873
+
874
+ <div id="method-M000451" class="method-detail">
875
+ <a name="M000451"></a>
876
+
877
+ <div class="method-heading">
878
+ <a href="#M000451" class="method-signature">
879
+ <span class="method-name">space</span><span class="method-args">(n=1)</span>
880
+ </a>
881
+ </div>
882
+
883
+ <div class="method-description">
884
+ <p><a class="source-toggle" href="#"
885
+ onclick="toggleCode('M000451-source');return false;">[Source]</a></p>
886
+ <div class="method-source-code" id="M000451-source">
887
+ <pre>
888
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 177</span>
889
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">space</span>(<span class="ruby-identifier">n</span>=<span class="ruby-value">1</span>)
890
+ <span class="ruby-identifier">set_brush</span>(<span class="ruby-constant">Brush</span><span class="ruby-operator">::</span><span class="ruby-constant">GenericTextBrush</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value str">&quot;&amp;nbsp;&quot;</span><span class="ruby-operator">*</span><span class="ruby-identifier">n</span>))
891
+ <span class="ruby-keyword kw">end</span>
892
+ </pre>
893
+ </div>
894
+ </div>
895
+ </div>
896
+
897
+ <div id="method-M000446" class="method-detail">
898
+ <a name="M000446"></a>
899
+
900
+ <div class="method-heading">
901
+ <a href="#M000446" class="method-signature">
902
+ <span class="method-name">submit_button</span><span class="method-args">(*args, &amp;block)</span>
903
+ </a>
904
+ </div>
905
+
906
+ <div class="method-description">
907
+ <p><a class="source-toggle" href="#"
908
+ onclick="toggleCode('M000446-source');return false;">[Source]</a></p>
909
+ <div class="method-source-code" id="M000446-source">
910
+ <pre>
911
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 157</span>
912
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">submit_button</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
913
+ <span class="ruby-identifier">handle</span>(<span class="ruby-constant">Brush</span><span class="ruby-operator">::</span><span class="ruby-constant">SubmitButtonTag</span>.<span class="ruby-identifier">new</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
914
+ <span class="ruby-keyword kw">end</span>
915
+ </pre>
916
+ </div>
917
+ </div>
918
+ </div>
919
+
920
+ <div id="method-M000431" class="method-detail">
921
+ <a name="M000431"></a>
922
+
923
+ <div class="method-heading">
924
+ <a href="#M000431" class="method-signature">
925
+ <span class="method-name">table</span><span class="method-args">(*args, &amp;block)</span>
926
+ </a>
927
+ </div>
928
+
929
+ <div class="method-description">
930
+ <p><a class="source-toggle" href="#"
931
+ onclick="toggleCode('M000431-source');return false;">[Source]</a></p>
932
+ <div class="method-source-code" id="M000431-source">
933
+ <pre>
934
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 99</span>
935
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">table</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
936
+ <span class="ruby-identifier">handle</span>(<span class="ruby-constant">Brush</span><span class="ruby-operator">::</span><span class="ruby-constant">TableTag</span>.<span class="ruby-identifier">new</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
937
+ <span class="ruby-keyword kw">end</span>
938
+ </pre>
939
+ </div>
940
+ </div>
941
+ </div>
942
+
943
+ <div id="method-M000433" class="method-detail">
944
+ <a name="M000433"></a>
945
+
946
+ <div class="method-heading">
947
+ <a href="#M000433" class="method-signature">
948
+ <span class="method-name">table_data</span><span class="method-args">(*args, &amp;block)</span>
949
+ </a>
950
+ </div>
951
+
952
+ <div class="method-description">
953
+ <p><a class="source-toggle" href="#"
954
+ onclick="toggleCode('M000433-source');return false;">[Source]</a></p>
955
+ <div class="method-source-code" id="M000433-source">
956
+ <pre>
957
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 107</span>
958
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">table_data</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
959
+ <span class="ruby-identifier">handle</span>(<span class="ruby-constant">Brush</span><span class="ruby-operator">::</span><span class="ruby-constant">TableDataTag</span>.<span class="ruby-identifier">new</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
960
+ <span class="ruby-keyword kw">end</span>
961
+ </pre>
962
+ </div>
963
+ </div>
964
+ </div>
965
+
966
+ <div id="method-M000434" class="method-detail">
967
+ <a name="M000434"></a>
968
+
969
+ <div class="method-heading">
970
+ <a href="#M000434" class="method-signature">
971
+ <span class="method-name">table_header</span><span class="method-args">(*args, &amp;block)</span>
972
+ </a>
973
+ </div>
974
+
975
+ <div class="method-description">
976
+ <p><a class="source-toggle" href="#"
977
+ onclick="toggleCode('M000434-source');return false;">[Source]</a></p>
978
+ <div class="method-source-code" id="M000434-source">
979
+ <pre>
980
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 111</span>
981
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">table_header</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
982
+ <span class="ruby-identifier">handle</span>(<span class="ruby-constant">Brush</span><span class="ruby-operator">::</span><span class="ruby-constant">TableHeaderTag</span>.<span class="ruby-identifier">new</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
983
+ <span class="ruby-keyword kw">end</span>
984
+ </pre>
985
+ </div>
986
+ </div>
987
+ </div>
988
+
989
+ <div id="method-M000432" class="method-detail">
990
+ <a name="M000432"></a>
991
+
992
+ <div class="method-heading">
993
+ <a href="#M000432" class="method-signature">
994
+ <span class="method-name">table_row</span><span class="method-args">(*args, &amp;block)</span>
995
+ </a>
996
+ </div>
997
+
998
+ <div class="method-description">
999
+ <p><a class="source-toggle" href="#"
1000
+ onclick="toggleCode('M000432-source');return false;">[Source]</a></p>
1001
+ <div class="method-source-code" id="M000432-source">
1002
+ <pre>
1003
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 103</span>
1004
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">table_row</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
1005
+ <span class="ruby-identifier">handle</span>(<span class="ruby-constant">Brush</span><span class="ruby-operator">::</span><span class="ruby-constant">TableRowTag</span>.<span class="ruby-identifier">new</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
1006
+ <span class="ruby-keyword kw">end</span>
1007
+ </pre>
1008
+ </div>
1009
+ </div>
1010
+ </div>
1011
+
1012
+ <div id="method-M000464" class="method-detail">
1013
+ <a name="M000464"></a>
1014
+
1015
+ <div class="method-heading">
1016
+ <a href="#M000464" class="method-signature">
1017
+ <span class="method-name">template</span><span class="method-args">(filename)</span>
1018
+ </a>
1019
+ </div>
1020
+
1021
+ <div class="method-description">
1022
+ <p><a class="source-toggle" href="#"
1023
+ onclick="toggleCode('M000464-source');return false;">[Source]</a></p>
1024
+ <div class="method-source-code" id="M000464-source">
1025
+ <pre>
1026
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 234</span>
1027
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">template</span>(<span class="ruby-identifier">filename</span>)
1028
+ <span class="ruby-identifier">raise</span> <span class="ruby-node">&quot;Template file #{ filename } not found!&quot;</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">exists?</span>(<span class="ruby-identifier">filename</span>)
1029
+ <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">close</span>
1030
+ <span class="ruby-identifier">compiler</span> = <span class="ruby-constant">ERB</span><span class="ruby-operator">::</span><span class="ruby-constant">Compiler</span>.<span class="ruby-identifier">new</span>(<span class="ruby-keyword kw">nil</span>)
1031
+ <span class="ruby-identifier">compiler</span>.<span class="ruby-identifier">put_cmd</span> = <span class="ruby-value str">'r &lt;&lt; '</span>
1032
+ <span class="ruby-identifier">src</span> = <span class="ruby-identifier">compiler</span>.<span class="ruby-identifier">compile</span>(<span class="ruby-constant">File</span>.<span class="ruby-identifier">read</span>(<span class="ruby-identifier">filename</span>))
1033
+ <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">$DEBUG</span>
1034
+ <span class="ruby-identifier">puts</span> <span class="ruby-value str">&quot;-------------------------&quot;</span>
1035
+ <span class="ruby-identifier">puts</span> <span class="ruby-identifier">src</span>
1036
+ <span class="ruby-identifier">puts</span> <span class="ruby-value str">&quot;-------------------------&quot;</span>
1037
+ <span class="ruby-keyword kw">end</span>
1038
+ <span class="ruby-ivar">@current_component</span>.<span class="ruby-identifier">instance_eval</span>(<span class="ruby-identifier">src</span>, <span class="ruby-value str">'(erb)'</span>, <span class="ruby-value">1</span>)
1039
+ <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">nil</span>
1040
+ <span class="ruby-keyword kw">end</span>
1041
+ </pre>
1042
+ </div>
1043
+ </div>
1044
+ </div>
1045
+
1046
+ <div id="method-M000459" class="method-detail">
1047
+ <a name="M000459"></a>
1048
+
1049
+ <div class="method-heading">
1050
+ <a href="#M000459" class="method-signature">
1051
+ <span class="method-name">text</span><span class="method-args">(str)</span>
1052
+ </a>
1053
+ </div>
1054
+
1055
+ <div class="method-description">
1056
+ <p><a class="source-toggle" href="#"
1057
+ onclick="toggleCode('M000459-source');return false;">[Source]</a></p>
1058
+ <div class="method-source-code" id="M000459-source">
1059
+ <pre>
1060
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 209</span>
1061
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">text</span>(<span class="ruby-identifier">str</span>)
1062
+ <span class="ruby-identifier">set_brush</span>(<span class="ruby-constant">Brush</span><span class="ruby-operator">::</span><span class="ruby-constant">GenericTextBrush</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">str</span>))
1063
+ <span class="ruby-keyword kw">end</span>
1064
+ </pre>
1065
+ </div>
1066
+ </div>
1067
+ </div>
1068
+
1069
+ <div id="method-M000443" class="method-detail">
1070
+ <a name="M000443"></a>
1071
+
1072
+ <div class="method-heading">
1073
+ <a href="#M000443" class="method-signature">
1074
+ <span class="method-name">text_area</span><span class="method-args">(*args, &amp;block)</span>
1075
+ </a>
1076
+ </div>
1077
+
1078
+ <div class="method-description">
1079
+ <p><a class="source-toggle" href="#"
1080
+ onclick="toggleCode('M000443-source');return false;">[Source]</a></p>
1081
+ <div class="method-source-code" id="M000443-source">
1082
+ <pre>
1083
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 145</span>
1084
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">text_area</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
1085
+ <span class="ruby-identifier">handle</span>(<span class="ruby-constant">Brush</span><span class="ruby-operator">::</span><span class="ruby-constant">TextAreaTag</span>.<span class="ruby-identifier">new</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
1086
+ <span class="ruby-keyword kw">end</span>
1087
+ </pre>
1088
+ </div>
1089
+ </div>
1090
+ </div>
1091
+
1092
+ <div id="method-M000438" class="method-detail">
1093
+ <a name="M000438"></a>
1094
+
1095
+ <div class="method-heading">
1096
+ <a href="#M000438" class="method-signature">
1097
+ <span class="method-name">text_input</span><span class="method-args">(*args, &amp;block)</span>
1098
+ </a>
1099
+ </div>
1100
+
1101
+ <div class="method-description">
1102
+ <p><a class="source-toggle" href="#"
1103
+ onclick="toggleCode('M000438-source');return false;">[Source]</a></p>
1104
+ <div class="method-source-code" id="M000438-source">
1105
+ <pre>
1106
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 127</span>
1107
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">text_input</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
1108
+ <span class="ruby-identifier">handle</span>(<span class="ruby-constant">Brush</span><span class="ruby-operator">::</span><span class="ruby-constant">TextInputTag</span>.<span class="ruby-identifier">new</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
1109
+ <span class="ruby-keyword kw">end</span>
1110
+ </pre>
1111
+ </div>
1112
+ </div>
1113
+ </div>
1114
+
1115
+ <div id="method-M000425" class="method-detail">
1116
+ <a name="M000425"></a>
1117
+
1118
+ <div class="method-heading">
1119
+ <a href="#M000425" class="method-signature">
1120
+ <span class="method-name">url_for_callback</span><span class="method-args">(callback, type=:action, hash=nil)</span>
1121
+ </a>
1122
+ </div>
1123
+
1124
+ <div class="method-description">
1125
+ <p><a class="source-toggle" href="#"
1126
+ onclick="toggleCode('M000425-source');return false;">[Source]</a></p>
1127
+ <div class="method-source-code" id="M000425-source">
1128
+ <pre>
1129
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 71</span>
1130
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">url_for_callback</span>(<span class="ruby-identifier">callback</span>, <span class="ruby-identifier">type</span>=<span class="ruby-identifier">:action</span>, <span class="ruby-identifier">hash</span>=<span class="ruby-keyword kw">nil</span>)
1131
+ <span class="ruby-identifier">url_for_callback_id</span>(<span class="ruby-identifier">register_callback</span>(<span class="ruby-identifier">type</span>, <span class="ruby-identifier">callback</span>), <span class="ruby-identifier">hash</span>)
1132
+ <span class="ruby-keyword kw">end</span>
1133
+ </pre>
1134
+ </div>
1135
+ </div>
1136
+ </div>
1137
+
1138
+ <div id="method-M000427" class="method-detail">
1139
+ <a name="M000427"></a>
1140
+
1141
+ <div class="method-heading">
1142
+ <a href="#M000427" class="method-signature">
1143
+ <span class="method-name">url_for_callback_id</span><span class="method-args">(callback_id, hash=nil)</span>
1144
+ </a>
1145
+ </div>
1146
+
1147
+ <div class="method-description">
1148
+ <p><a class="source-toggle" href="#"
1149
+ onclick="toggleCode('M000427-source');return false;">[Source]</a></p>
1150
+ <div class="method-source-code" id="M000427-source">
1151
+ <pre>
1152
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 79</span>
1153
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">url_for_callback_id</span>(<span class="ruby-identifier">callback_id</span>, <span class="ruby-identifier">hash</span>=<span class="ruby-keyword kw">nil</span>)
1154
+ <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">hash</span>
1155
+ <span class="ruby-identifier">build_url</span>(<span class="ruby-identifier">hash</span>.<span class="ruby-identifier">update</span>(<span class="ruby-identifier">:callback_id</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">callback_id</span>))
1156
+ <span class="ruby-keyword kw">else</span>
1157
+ <span class="ruby-identifier">build_url</span>(<span class="ruby-identifier">:callback_id</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">callback_id</span>)
1158
+ <span class="ruby-keyword kw">end</span>
1159
+ <span class="ruby-keyword kw">end</span>
1160
+ </pre>
1161
+ </div>
1162
+ </div>
1163
+ </div>
1164
+
1165
+ <div id="method-M000426" class="method-detail">
1166
+ <a name="M000426"></a>
1167
+
1168
+ <div class="method-heading">
1169
+ <a href="#M000426" class="method-signature">
1170
+ <span class="method-name">url_for_named_callback</span><span class="method-args">(name, callback, hash=nil)</span>
1171
+ </a>
1172
+ </div>
1173
+
1174
+ <div class="method-description">
1175
+ <p><a class="source-toggle" href="#"
1176
+ onclick="toggleCode('M000426-source');return false;">[Source]</a></p>
1177
+ <div class="method-source-code" id="M000426-source">
1178
+ <pre>
1179
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 75</span>
1180
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">url_for_named_callback</span>(<span class="ruby-identifier">name</span>, <span class="ruby-identifier">callback</span>, <span class="ruby-identifier">hash</span>=<span class="ruby-keyword kw">nil</span>)
1181
+ <span class="ruby-identifier">url_for_callback_id</span>(<span class="ruby-identifier">register_named_callback</span>(<span class="ruby-identifier">name</span>, <span class="ruby-identifier">:action</span>, <span class="ruby-identifier">callback</span>), <span class="ruby-identifier">hash</span>)
1182
+ <span class="ruby-keyword kw">end</span>
1183
+ </pre>
1184
+ </div>
1185
+ </div>
1186
+ </div>
1187
+
1188
+ <h3 class="section-bar">Private Instance methods</h3>
1189
+
1190
+ <div id="method-M000465" class="method-detail">
1191
+ <a name="M000465"></a>
1192
+
1193
+ <div class="method-heading">
1194
+ <a href="#M000465" class="method-signature">
1195
+ <span class="method-name">handle</span><span class="method-args">(brush, *args, &amp;block)</span>
1196
+ </a>
1197
+ </div>
1198
+
1199
+ <div class="method-description">
1200
+ <p><a class="source-toggle" href="#"
1201
+ onclick="toggleCode('M000465-source');return false;">[Source]</a></p>
1202
+ <div class="method-source-code" id="M000465-source">
1203
+ <pre>
1204
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 251</span>
1205
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">handle</span>(<span class="ruby-identifier">brush</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
1206
+ <span class="ruby-identifier">set_brush</span>(<span class="ruby-identifier">brush</span>)
1207
+ <span class="ruby-keyword kw">if</span> <span class="ruby-keyword kw">not</span> <span class="ruby-identifier">args</span>.<span class="ruby-identifier">empty?</span> <span class="ruby-keyword kw">or</span> <span class="ruby-identifier">block</span>
1208
+ <span class="ruby-identifier">brush</span>.<span class="ruby-identifier">with</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
1209
+ <span class="ruby-keyword kw">else</span>
1210
+ <span class="ruby-identifier">brush</span>
1211
+ <span class="ruby-keyword kw">end</span>
1212
+ <span class="ruby-keyword kw">end</span>
1213
+ </pre>
1214
+ </div>
1215
+ </div>
1216
+ </div>
1217
+
1218
+
1219
+ </div>
1220
+
1221
+
1222
+ </div>
1223
+
1224
+
1225
+ <div id="validator-badges">
1226
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
1227
+ </div>
1228
+
1229
+ </body>
1230
+ </html>