wee 0.3.1 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (92) hide show
  1. data/README +0 -1
  2. data/Rakefile +5 -0
  3. data/TODO +6 -0
  4. data/doc/rdoc/classes/Enumerable.html +6 -6
  5. data/doc/rdoc/classes/Wee/AnswerDecoration.html +10 -10
  6. data/doc/rdoc/classes/Wee/Application.html +110 -52
  7. data/doc/rdoc/classes/Wee/Brush/ActionCallbackMixin.html +8 -15
  8. data/doc/rdoc/classes/Wee/Brush/ActionURLCallbackMixin.html +8 -19
  9. data/doc/rdoc/classes/Wee/Brush/AnchorTag.html +22 -22
  10. data/doc/rdoc/classes/Wee/Brush/FileUploadTag.html +156 -0
  11. data/doc/rdoc/classes/Wee/Brush/FormTag.html +50 -25
  12. data/doc/rdoc/classes/Wee/Brush/GenericEncodedTextBrush.html +12 -12
  13. data/doc/rdoc/classes/Wee/Brush/GenericTagBrush.html +36 -36
  14. data/doc/rdoc/classes/Wee/Brush/GenericTextBrush.html +12 -12
  15. data/doc/rdoc/classes/Wee/Brush/ImageButtonTag.html +16 -16
  16. data/doc/rdoc/classes/Wee/Brush/InputCallbackMixin.html +8 -15
  17. data/doc/rdoc/classes/Wee/Brush/InputTag.html +12 -12
  18. data/doc/rdoc/classes/Wee/Brush/Page.html +14 -14
  19. data/doc/rdoc/classes/Wee/Brush/SelectListTag.html +28 -28
  20. data/doc/rdoc/classes/Wee/Brush/SelectOptionTag.html +14 -14
  21. data/doc/rdoc/classes/Wee/Brush/SubmitButtonTag.html +7 -7
  22. data/doc/rdoc/classes/Wee/Brush/TableDataTag.html +14 -14
  23. data/doc/rdoc/classes/Wee/Brush/TableHeaderTag.html +7 -7
  24. data/doc/rdoc/classes/Wee/Brush/TableRowTag.html +36 -36
  25. data/doc/rdoc/classes/Wee/Brush/TableTag.html +6 -6
  26. data/doc/rdoc/classes/Wee/Brush/TextAreaTag.html +28 -28
  27. data/doc/rdoc/classes/Wee/Brush/TextInputTag.html +7 -7
  28. data/doc/rdoc/classes/Wee/Brush.html +19 -19
  29. data/doc/rdoc/classes/Wee/CallbackRegistry.html +33 -33
  30. data/doc/rdoc/classes/Wee/CallbackStream.html +18 -18
  31. data/doc/rdoc/classes/Wee/Canvas.html +24 -24
  32. data/doc/rdoc/classes/Wee/Component.html +163 -138
  33. data/doc/rdoc/classes/Wee/Decoration.html +72 -41
  34. data/doc/rdoc/classes/Wee/Delegate.html +31 -31
  35. data/doc/rdoc/classes/Wee/ErrorResponse.html +12 -12
  36. data/doc/rdoc/classes/Wee/GenericResponse.html +6 -6
  37. data/doc/rdoc/classes/Wee/Helper.html +148 -0
  38. data/doc/rdoc/classes/Wee/HtmlCanvas.html +267 -166
  39. data/doc/rdoc/classes/Wee/HtmlWriter.html +40 -40
  40. data/doc/rdoc/classes/Wee/LiteralMethodCallback.html +12 -12
  41. data/doc/rdoc/classes/Wee/PageDecoration.html +199 -0
  42. data/doc/rdoc/classes/Wee/Presenter.html +69 -69
  43. data/doc/rdoc/classes/Wee/RedirectResponse.html +6 -6
  44. data/doc/rdoc/classes/Wee/RefreshResponse.html +6 -6
  45. data/doc/rdoc/classes/Wee/Request.html +18 -18
  46. data/doc/rdoc/classes/Wee/RequestHandler.html +32 -31
  47. data/doc/rdoc/classes/Wee/Response.html +24 -24
  48. data/doc/rdoc/classes/Wee/Session.html +83 -64
  49. data/doc/rdoc/classes/Wee/SimpleIdGenerator.html +18 -18
  50. data/doc/rdoc/classes/Wee/Snapshot.html +19 -19
  51. data/doc/rdoc/classes/Wee/Utils/LRUCache.html +6 -6
  52. data/doc/rdoc/classes/Wee/ValueHolder.html +18 -18
  53. data/doc/rdoc/classes/Wee/WEBrickAdaptor.html +66 -62
  54. data/doc/rdoc/classes/Wee.html +63 -2
  55. data/doc/rdoc/created.rid +1 -1
  56. data/doc/rdoc/files/README.html +6 -9
  57. data/doc/rdoc/files/lib/wee/adaptors/webrick_rb.html +1 -1
  58. data/doc/rdoc/files/lib/wee/application_rb.html +1 -1
  59. data/doc/rdoc/files/lib/wee/components/page_decoration_rb.html +101 -0
  60. data/doc/rdoc/files/lib/wee/components_rb.html +108 -0
  61. data/doc/rdoc/files/lib/wee/core/callback_rb.html +1 -1
  62. data/doc/rdoc/files/lib/wee/core/component_rb.html +1 -1
  63. data/doc/rdoc/files/lib/wee/core/decoration_rb.html +1 -1
  64. data/doc/rdoc/files/lib/wee/core_rb.html +3 -3
  65. data/doc/rdoc/files/lib/wee/renderer/html/brushes_rb.html +1 -1
  66. data/doc/rdoc/files/lib/wee/renderer/html/canvas_rb.html +1 -1
  67. data/doc/rdoc/files/lib/wee/requesthandler_rb.html +1 -1
  68. data/doc/rdoc/files/lib/wee/session_rb.html +2 -1
  69. data/doc/rdoc/files/lib/wee/utils/autoreload_rb.html +101 -0
  70. data/doc/rdoc/files/lib/wee/utils/helper_rb.html +108 -0
  71. data/doc/rdoc/files/lib/wee_rb.html +2 -1
  72. data/doc/rdoc/fr_class_index.html +3 -1
  73. data/doc/rdoc/fr_file_index.html +4 -0
  74. data/doc/rdoc/fr_method_index.html +203 -191
  75. data/examples/example.rb +2 -16
  76. data/examples/test.rb +15 -18
  77. data/lib/wee/adaptors/webrick.rb +3 -1
  78. data/lib/wee/application.rb +55 -19
  79. data/lib/wee/components/page_decoration.rb +14 -0
  80. data/lib/wee/components.rb +1 -0
  81. data/lib/wee/core/callback.rb +1 -1
  82. data/lib/wee/core/component.rb +27 -3
  83. data/lib/wee/core/decoration.rb +9 -0
  84. data/lib/wee/renderer/html/brushes.rb +21 -23
  85. data/lib/wee/renderer/html/canvas.rb +25 -4
  86. data/lib/wee/requesthandler.rb +1 -0
  87. data/lib/wee/session.rb +21 -1
  88. data/lib/wee/utils/autoreload.rb +27 -0
  89. data/lib/wee/utils/helper.rb +15 -0
  90. data/lib/wee.rb +2 -1
  91. metadata +203 -191
  92. data/test/components/page_decoration.rb +0 -7
@@ -88,31 +88,35 @@
88
88
  <h3 class="section-bar">Methods</h3>
89
89
 
90
90
  <div class="name-list">
91
- <a href="#M000064">&lt;&lt;</a>&nbsp;&nbsp;
92
- <a href="#M000059">anchor</a>&nbsp;&nbsp;
93
- <a href="#M000044">bold</a>&nbsp;&nbsp;
94
- <a href="#M000061">break</a>&nbsp;&nbsp;
95
- <a href="#M000065">encode_text</a>&nbsp;&nbsp;
96
- <a href="#M000050">form</a>&nbsp;&nbsp;
97
- <a href="#M000067">handle</a>&nbsp;&nbsp;
98
- <a href="#M000062">image</a>&nbsp;&nbsp;
99
- <a href="#M000057">image_button</a>&nbsp;&nbsp;
100
- <a href="#M000051">input</a>&nbsp;&nbsp;
101
- <a href="#M000045">method_missing</a>&nbsp;&nbsp;
102
- <a href="#M000043">new</a>&nbsp;&nbsp;
103
- <a href="#M000054">option</a>&nbsp;&nbsp;
104
- <a href="#M000058">page</a>&nbsp;&nbsp;
105
- <a href="#M000066">render</a>&nbsp;&nbsp;
106
- <a href="#M000055">select_list</a>&nbsp;&nbsp;
107
- <a href="#M000060">space</a>&nbsp;&nbsp;
108
- <a href="#M000056">submit_button</a>&nbsp;&nbsp;
109
- <a href="#M000046">table</a>&nbsp;&nbsp;
110
- <a href="#M000048">table_data</a>&nbsp;&nbsp;
111
- <a href="#M000049">table_header</a>&nbsp;&nbsp;
112
- <a href="#M000047">table_row</a>&nbsp;&nbsp;
113
- <a href="#M000063">text</a>&nbsp;&nbsp;
114
- <a href="#M000053">text_area</a>&nbsp;&nbsp;
115
- <a href="#M000052">text_input</a>&nbsp;&nbsp;
91
+ <a href="#M000070">&lt;&lt;</a>&nbsp;&nbsp;
92
+ <a href="#M000063">anchor</a>&nbsp;&nbsp;
93
+ <a href="#M000065">bold</a>&nbsp;&nbsp;
94
+ <a href="#M000067">break</a>&nbsp;&nbsp;
95
+ <a href="#M000071">encode_text</a>&nbsp;&nbsp;
96
+ <a href="#M000061">file_upload</a>&nbsp;&nbsp;
97
+ <a href="#M000053">form</a>&nbsp;&nbsp;
98
+ <a href="#M000073">handle</a>&nbsp;&nbsp;
99
+ <a href="#M000068">image</a>&nbsp;&nbsp;
100
+ <a href="#M000060">image_button</a>&nbsp;&nbsp;
101
+ <a href="#M000054">input</a>&nbsp;&nbsp;
102
+ <a href="#M000046">method_missing</a>&nbsp;&nbsp;
103
+ <a href="#M000045">new</a>&nbsp;&nbsp;
104
+ <a href="#M000057">option</a>&nbsp;&nbsp;
105
+ <a href="#M000062">page</a>&nbsp;&nbsp;
106
+ <a href="#M000066">paragraph</a>&nbsp;&nbsp;
107
+ <a href="#M000048">register_callback</a>&nbsp;&nbsp;
108
+ <a href="#M000072">render</a>&nbsp;&nbsp;
109
+ <a href="#M000058">select_list</a>&nbsp;&nbsp;
110
+ <a href="#M000064">space</a>&nbsp;&nbsp;
111
+ <a href="#M000059">submit_button</a>&nbsp;&nbsp;
112
+ <a href="#M000049">table</a>&nbsp;&nbsp;
113
+ <a href="#M000051">table_data</a>&nbsp;&nbsp;
114
+ <a href="#M000052">table_header</a>&nbsp;&nbsp;
115
+ <a href="#M000050">table_row</a>&nbsp;&nbsp;
116
+ <a href="#M000069">text</a>&nbsp;&nbsp;
117
+ <a href="#M000056">text_area</a>&nbsp;&nbsp;
118
+ <a href="#M000055">text_input</a>&nbsp;&nbsp;
119
+ <a href="#M000047">url_for_callback</a>&nbsp;&nbsp;
116
120
  </div>
117
121
  </div>
118
122
 
@@ -157,19 +161,19 @@
157
161
  <div id="methods">
158
162
  <h3 class="section-bar">Public Class methods</h3>
159
163
 
160
- <div id="method-M000043" class="method-detail">
161
- <a name="M000043"></a>
164
+ <div id="method-M000045" class="method-detail">
165
+ <a name="M000045"></a>
162
166
 
163
167
  <div class="method-heading">
164
- <a href="#M000043" class="method-signature">
168
+ <a href="#M000045" class="method-signature">
165
169
  <span class="method-name">new</span><span class="method-args">(rendering_context)</span>
166
170
  </a>
167
171
  </div>
168
172
 
169
173
  <div class="method-description">
170
174
  <p><a class="source-toggle" href="#"
171
- onclick="toggleCode('M000043-source');return false;">[Source]</a></p>
172
- <div class="method-source-code" id="M000043-source">
175
+ onclick="toggleCode('M000045-source');return false;">[Source]</a></p>
176
+ <div class="method-source-code" id="M000045-source">
173
177
  <pre>
174
178
  <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 39</span>
175
179
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">rendering_context</span>)
@@ -184,8 +188,8 @@
184
188
 
185
189
  <h3 class="section-bar">Public Instance methods</h3>
186
190
 
187
- <div id="method-M000064" class="method-detail">
188
- <a name="M000064"></a>
191
+ <div id="method-M000070" class="method-detail">
192
+ <a name="M000070"></a>
189
193
 
190
194
  <div class="method-heading">
191
195
  <span class="method-name">&lt;&lt;</span><span class="method-args">(str)</span>
@@ -193,26 +197,26 @@
193
197
 
194
198
  <div class="method-description">
195
199
  <p>
196
- Alias for <a href="HtmlCanvas.html#M000063">text</a>
200
+ Alias for <a href="HtmlCanvas.html#M000069">text</a>
197
201
  </p>
198
202
  </div>
199
203
  </div>
200
204
 
201
- <div id="method-M000059" class="method-detail">
202
- <a name="M000059"></a>
205
+ <div id="method-M000063" class="method-detail">
206
+ <a name="M000063"></a>
203
207
 
204
208
  <div class="method-heading">
205
- <a href="#M000059" class="method-signature">
209
+ <a href="#M000063" class="method-signature">
206
210
  <span class="method-name">anchor</span><span class="method-args">(*args, &amp;block)</span>
207
211
  </a>
208
212
  </div>
209
213
 
210
214
  <div class="method-description">
211
215
  <p><a class="source-toggle" href="#"
212
- onclick="toggleCode('M000059-source');return false;">[Source]</a></p>
213
- <div class="method-source-code" id="M000059-source">
216
+ onclick="toggleCode('M000063-source');return false;">[Source]</a></p>
217
+ <div class="method-source-code" id="M000063-source">
214
218
  <pre>
215
- <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 105</span>
219
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 118</span>
216
220
  <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>)
217
221
  <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>)
218
222
  <span class="ruby-keyword kw">end</span>
@@ -221,21 +225,21 @@ Alias for <a href="HtmlCanvas.html#M000063">text</a>
221
225
  </div>
222
226
  </div>
223
227
 
224
- <div id="method-M000044" class="method-detail">
225
- <a name="M000044"></a>
228
+ <div id="method-M000065" class="method-detail">
229
+ <a name="M000065"></a>
226
230
 
227
231
  <div class="method-heading">
228
- <a href="#M000044" class="method-signature">
232
+ <a href="#M000065" class="method-signature">
229
233
  <span class="method-name">bold</span><span class="method-args">(*args, &amp;block)</span>
230
234
  </a>
231
235
  </div>
232
236
 
233
237
  <div class="method-description">
234
238
  <p><a class="source-toggle" href="#"
235
- onclick="toggleCode('M000044-source');return false;">[Source]</a></p>
236
- <div class="method-source-code" id="M000044-source">
239
+ onclick="toggleCode('M000065-source');return false;">[Source]</a></p>
240
+ <div class="method-source-code" id="M000065-source">
237
241
  <pre>
238
- <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 45</span>
242
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 126</span>
239
243
  <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>)
240
244
  <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>)
241
245
  <span class="ruby-keyword kw">end</span>
@@ -244,21 +248,21 @@ Alias for <a href="HtmlCanvas.html#M000063">text</a>
244
248
  </div>
245
249
  </div>
246
250
 
247
- <div id="method-M000061" class="method-detail">
248
- <a name="M000061"></a>
251
+ <div id="method-M000067" class="method-detail">
252
+ <a name="M000067"></a>
249
253
 
250
254
  <div class="method-heading">
251
- <a href="#M000061" class="method-signature">
255
+ <a href="#M000067" class="method-signature">
252
256
  <span class="method-name">break</span><span class="method-args">()</span>
253
257
  </a>
254
258
  </div>
255
259
 
256
260
  <div class="method-description">
257
261
  <p><a class="source-toggle" href="#"
258
- onclick="toggleCode('M000061-source');return false;">[Source]</a></p>
259
- <div class="method-source-code" id="M000061-source">
262
+ onclick="toggleCode('M000067-source');return false;">[Source]</a></p>
263
+ <div class="method-source-code" id="M000067-source">
260
264
  <pre>
261
- <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 113</span>
265
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 134</span>
262
266
  <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">break</span>
263
267
  <span class="ruby-identifier">set_brush</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;br&quot;</span>))
264
268
  <span class="ruby-keyword kw">end</span>
@@ -267,21 +271,21 @@ Alias for <a href="HtmlCanvas.html#M000063">text</a>
267
271
  </div>
268
272
  </div>
269
273
 
270
- <div id="method-M000065" class="method-detail">
271
- <a name="M000065"></a>
274
+ <div id="method-M000071" class="method-detail">
275
+ <a name="M000071"></a>
272
276
 
273
277
  <div class="method-heading">
274
- <a href="#M000065" class="method-signature">
278
+ <a href="#M000071" class="method-signature">
275
279
  <span class="method-name">encode_text</span><span class="method-args">(str)</span>
276
280
  </a>
277
281
  </div>
278
282
 
279
283
  <div class="method-description">
280
284
  <p><a class="source-toggle" href="#"
281
- onclick="toggleCode('M000065-source');return false;">[Source]</a></p>
282
- <div class="method-source-code" id="M000065-source">
285
+ onclick="toggleCode('M000071-source');return false;">[Source]</a></p>
286
+ <div class="method-source-code" id="M000071-source">
283
287
  <pre>
284
- <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 126</span>
288
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 147</span>
285
289
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">encode_text</span>(<span class="ruby-identifier">str</span>)
286
290
  <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>))
287
291
  <span class="ruby-keyword kw">end</span>
@@ -290,21 +294,44 @@ Alias for <a href="HtmlCanvas.html#M000063">text</a>
290
294
  </div>
291
295
  </div>
292
296
 
293
- <div id="method-M000050" class="method-detail">
294
- <a name="M000050"></a>
297
+ <div id="method-M000061" class="method-detail">
298
+ <a name="M000061"></a>
295
299
 
296
300
  <div class="method-heading">
297
- <a href="#M000050" class="method-signature">
301
+ <a href="#M000061" class="method-signature">
302
+ <span class="method-name">file_upload</span><span class="method-args">(*args, &amp;block)</span>
303
+ </a>
304
+ </div>
305
+
306
+ <div class="method-description">
307
+ <p><a class="source-toggle" href="#"
308
+ onclick="toggleCode('M000061-source');return false;">[Source]</a></p>
309
+ <div class="method-source-code" id="M000061-source">
310
+ <pre>
311
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 110</span>
312
+ <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>)
313
+ <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>)
314
+ <span class="ruby-keyword kw">end</span>
315
+ </pre>
316
+ </div>
317
+ </div>
318
+ </div>
319
+
320
+ <div id="method-M000053" class="method-detail">
321
+ <a name="M000053"></a>
322
+
323
+ <div class="method-heading">
324
+ <a href="#M000053" class="method-signature">
298
325
  <span class="method-name">form</span><span class="method-args">(*args, &amp;block)</span>
299
326
  </a>
300
327
  </div>
301
328
 
302
329
  <div class="method-description">
303
330
  <p><a class="source-toggle" href="#"
304
- onclick="toggleCode('M000050-source');return false;">[Source]</a></p>
305
- <div class="method-source-code" id="M000050-source">
331
+ onclick="toggleCode('M000053-source');return false;">[Source]</a></p>
332
+ <div class="method-source-code" id="M000053-source">
306
333
  <pre>
307
- <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 69</span>
334
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 78</span>
308
335
  <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>)
309
336
  <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>)
310
337
  <span class="ruby-keyword kw">end</span>
@@ -313,21 +340,21 @@ Alias for <a href="HtmlCanvas.html#M000063">text</a>
313
340
  </div>
314
341
  </div>
315
342
 
316
- <div id="method-M000062" class="method-detail">
317
- <a name="M000062"></a>
343
+ <div id="method-M000068" class="method-detail">
344
+ <a name="M000068"></a>
318
345
 
319
346
  <div class="method-heading">
320
- <a href="#M000062" class="method-signature">
347
+ <a href="#M000068" class="method-signature">
321
348
  <span class="method-name">image</span><span class="method-args">()</span>
322
349
  </a>
323
350
  </div>
324
351
 
325
352
  <div class="method-description">
326
353
  <p><a class="source-toggle" href="#"
327
- onclick="toggleCode('M000062-source');return false;">[Source]</a></p>
328
- <div class="method-source-code" id="M000062-source">
354
+ onclick="toggleCode('M000068-source');return false;">[Source]</a></p>
355
+ <div class="method-source-code" id="M000068-source">
329
356
  <pre>
330
- <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 117</span>
357
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 138</span>
331
358
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">image</span>
332
359
  <span class="ruby-identifier">set_brush</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;img&quot;</span>))
333
360
  <span class="ruby-keyword kw">end</span>
@@ -336,21 +363,21 @@ Alias for <a href="HtmlCanvas.html#M000063">text</a>
336
363
  </div>
337
364
  </div>
338
365
 
339
- <div id="method-M000057" class="method-detail">
340
- <a name="M000057"></a>
366
+ <div id="method-M000060" class="method-detail">
367
+ <a name="M000060"></a>
341
368
 
342
369
  <div class="method-heading">
343
- <a href="#M000057" class="method-signature">
370
+ <a href="#M000060" class="method-signature">
344
371
  <span class="method-name">image_button</span><span class="method-args">(*args, &amp;block)</span>
345
372
  </a>
346
373
  </div>
347
374
 
348
375
  <div class="method-description">
349
376
  <p><a class="source-toggle" href="#"
350
- onclick="toggleCode('M000057-source');return false;">[Source]</a></p>
351
- <div class="method-source-code" id="M000057-source">
377
+ onclick="toggleCode('M000060-source');return false;">[Source]</a></p>
378
+ <div class="method-source-code" id="M000060-source">
352
379
  <pre>
353
- <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 97</span>
380
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 106</span>
354
381
  <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>)
355
382
  <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>)
356
383
  <span class="ruby-keyword kw">end</span>
@@ -359,21 +386,21 @@ Alias for <a href="HtmlCanvas.html#M000063">text</a>
359
386
  </div>
360
387
  </div>
361
388
 
362
- <div id="method-M000051" class="method-detail">
363
- <a name="M000051"></a>
389
+ <div id="method-M000054" class="method-detail">
390
+ <a name="M000054"></a>
364
391
 
365
392
  <div class="method-heading">
366
- <a href="#M000051" class="method-signature">
393
+ <a href="#M000054" class="method-signature">
367
394
  <span class="method-name">input</span><span class="method-args">(*args, &amp;block)</span>
368
395
  </a>
369
396
  </div>
370
397
 
371
398
  <div class="method-description">
372
399
  <p><a class="source-toggle" href="#"
373
- onclick="toggleCode('M000051-source');return false;">[Source]</a></p>
374
- <div class="method-source-code" id="M000051-source">
400
+ onclick="toggleCode('M000054-source');return false;">[Source]</a></p>
401
+ <div class="method-source-code" id="M000054-source">
375
402
  <pre>
376
- <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 73</span>
403
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 82</span>
377
404
  <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>)
378
405
  <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>)
379
406
  <span class="ruby-keyword kw">end</span>
@@ -382,21 +409,21 @@ Alias for <a href="HtmlCanvas.html#M000063">text</a>
382
409
  </div>
383
410
  </div>
384
411
 
385
- <div id="method-M000045" class="method-detail">
386
- <a name="M000045"></a>
412
+ <div id="method-M000046" class="method-detail">
413
+ <a name="M000046"></a>
387
414
 
388
415
  <div class="method-heading">
389
- <a href="#M000045" class="method-signature">
416
+ <a href="#M000046" class="method-signature">
390
417
  <span class="method-name">method_missing</span><span class="method-args">(id, *args, &amp;block)</span>
391
418
  </a>
392
419
  </div>
393
420
 
394
421
  <div class="method-description">
395
422
  <p><a class="source-toggle" href="#"
396
- onclick="toggleCode('M000045-source');return false;">[Source]</a></p>
397
- <div class="method-source-code" id="M000045-source">
423
+ onclick="toggleCode('M000046-source');return false;">[Source]</a></p>
424
+ <div class="method-source-code" id="M000046-source">
398
425
  <pre>
399
- <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 49</span>
426
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 45</span>
400
427
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">method_missing</span>(<span class="ruby-identifier">id</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
401
428
  <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-identifier">id</span>.<span class="ruby-identifier">to_s</span>), <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
402
429
  <span class="ruby-keyword kw">end</span>
@@ -405,21 +432,21 @@ Alias for <a href="HtmlCanvas.html#M000063">text</a>
405
432
  </div>
406
433
  </div>
407
434
 
408
- <div id="method-M000054" class="method-detail">
409
- <a name="M000054"></a>
435
+ <div id="method-M000057" class="method-detail">
436
+ <a name="M000057"></a>
410
437
 
411
438
  <div class="method-heading">
412
- <a href="#M000054" class="method-signature">
439
+ <a href="#M000057" class="method-signature">
413
440
  <span class="method-name">option</span><span class="method-args">(*args, &amp;block)</span>
414
441
  </a>
415
442
  </div>
416
443
 
417
444
  <div class="method-description">
418
445
  <p><a class="source-toggle" href="#"
419
- onclick="toggleCode('M000054-source');return false;">[Source]</a></p>
420
- <div class="method-source-code" id="M000054-source">
446
+ onclick="toggleCode('M000057-source');return false;">[Source]</a></p>
447
+ <div class="method-source-code" id="M000057-source">
421
448
  <pre>
422
- <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 85</span>
449
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 94</span>
423
450
  <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>)
424
451
  <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>)
425
452
  <span class="ruby-keyword kw">end</span>
@@ -428,21 +455,21 @@ Alias for <a href="HtmlCanvas.html#M000063">text</a>
428
455
  </div>
429
456
  </div>
430
457
 
431
- <div id="method-M000058" class="method-detail">
432
- <a name="M000058"></a>
458
+ <div id="method-M000062" class="method-detail">
459
+ <a name="M000062"></a>
433
460
 
434
461
  <div class="method-heading">
435
- <a href="#M000058" class="method-signature">
462
+ <a href="#M000062" class="method-signature">
436
463
  <span class="method-name">page</span><span class="method-args">(*args, &amp;block)</span>
437
464
  </a>
438
465
  </div>
439
466
 
440
467
  <div class="method-description">
441
468
  <p><a class="source-toggle" href="#"
442
- onclick="toggleCode('M000058-source');return false;">[Source]</a></p>
443
- <div class="method-source-code" id="M000058-source">
469
+ onclick="toggleCode('M000062-source');return false;">[Source]</a></p>
470
+ <div class="method-source-code" id="M000062-source">
444
471
  <pre>
445
- <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 101</span>
472
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 114</span>
446
473
  <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>)
447
474
  <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>)
448
475
  <span class="ruby-keyword kw">end</span>
@@ -456,7 +483,7 @@ Alias for <a href="HtmlCanvas.html#M000063">text</a>
456
483
 
457
484
  <div class="method-heading">
458
485
  <a href="#M000066" class="method-signature">
459
- <span class="method-name">render</span><span class="method-args">(obj)</span>
486
+ <span class="method-name">paragraph</span><span class="method-args">()</span>
460
487
  </a>
461
488
  </div>
462
489
 
@@ -466,6 +493,53 @@ Alias for <a href="HtmlCanvas.html#M000063">text</a>
466
493
  <div class="method-source-code" id="M000066-source">
467
494
  <pre>
468
495
  <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 130</span>
496
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">paragraph</span>
497
+ <span class="ruby-identifier">set_brush</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>))
498
+ <span class="ruby-keyword kw">end</span>
499
+ </pre>
500
+ </div>
501
+ </div>
502
+ </div>
503
+
504
+ <div id="method-M000048" class="method-detail">
505
+ <a name="M000048"></a>
506
+
507
+ <div class="method-heading">
508
+ <a href="#M000048" class="method-signature">
509
+ <span class="method-name">register_callback</span><span class="method-args">(type, &amp;block)</span>
510
+ </a>
511
+ </div>
512
+
513
+ <div class="method-description">
514
+ <p><a class="source-toggle" href="#"
515
+ onclick="toggleCode('M000048-source');return false;">[Source]</a></p>
516
+ <div class="method-source-code" id="M000048-source">
517
+ <pre>
518
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 57</span>
519
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">register_callback</span>(<span class="ruby-identifier">type</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
520
+ <span class="ruby-identifier">raise</span> <span class="ruby-constant">ArgumentError</span>, <span class="ruby-value str">&quot;no callback block given&quot;</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">block</span>.<span class="ruby-identifier">nil?</span>
521
+ <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-operator">&amp;</span><span class="ruby-identifier">block</span>)
522
+ <span class="ruby-keyword kw">end</span>
523
+ </pre>
524
+ </div>
525
+ </div>
526
+ </div>
527
+
528
+ <div id="method-M000072" class="method-detail">
529
+ <a name="M000072"></a>
530
+
531
+ <div class="method-heading">
532
+ <a href="#M000072" class="method-signature">
533
+ <span class="method-name">render</span><span class="method-args">(obj)</span>
534
+ </a>
535
+ </div>
536
+
537
+ <div class="method-description">
538
+ <p><a class="source-toggle" href="#"
539
+ onclick="toggleCode('M000072-source');return false;">[Source]</a></p>
540
+ <div class="method-source-code" id="M000072-source">
541
+ <pre>
542
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 151</span>
469
543
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">render</span>(<span class="ruby-identifier">obj</span>)
470
544
  <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">close</span>
471
545
  <span class="ruby-identifier">obj</span>.<span class="ruby-identifier">do_render_chain</span>(<span class="ruby-ivar">@rendering_context</span>)
@@ -476,21 +550,21 @@ Alias for <a href="HtmlCanvas.html#M000063">text</a>
476
550
  </div>
477
551
  </div>
478
552
 
479
- <div id="method-M000055" class="method-detail">
480
- <a name="M000055"></a>
553
+ <div id="method-M000058" class="method-detail">
554
+ <a name="M000058"></a>
481
555
 
482
556
  <div class="method-heading">
483
- <a href="#M000055" class="method-signature">
557
+ <a href="#M000058" class="method-signature">
484
558
  <span class="method-name">select_list</span><span class="method-args">(items)</span>
485
559
  </a>
486
560
  </div>
487
561
 
488
562
  <div class="method-description">
489
563
  <p><a class="source-toggle" href="#"
490
- onclick="toggleCode('M000055-source');return false;">[Source]</a></p>
491
- <div class="method-source-code" id="M000055-source">
564
+ onclick="toggleCode('M000058-source');return false;">[Source]</a></p>
565
+ <div class="method-source-code" id="M000058-source">
492
566
  <pre>
493
- <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 89</span>
567
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 98</span>
494
568
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">select_list</span>(<span class="ruby-identifier">items</span>)
495
569
  <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>))
496
570
  <span class="ruby-keyword kw">end</span>
@@ -499,21 +573,21 @@ Alias for <a href="HtmlCanvas.html#M000063">text</a>
499
573
  </div>
500
574
  </div>
501
575
 
502
- <div id="method-M000060" class="method-detail">
503
- <a name="M000060"></a>
576
+ <div id="method-M000064" class="method-detail">
577
+ <a name="M000064"></a>
504
578
 
505
579
  <div class="method-heading">
506
- <a href="#M000060" class="method-signature">
580
+ <a href="#M000064" class="method-signature">
507
581
  <span class="method-name">space</span><span class="method-args">(n=1)</span>
508
582
  </a>
509
583
  </div>
510
584
 
511
585
  <div class="method-description">
512
586
  <p><a class="source-toggle" href="#"
513
- onclick="toggleCode('M000060-source');return false;">[Source]</a></p>
514
- <div class="method-source-code" id="M000060-source">
587
+ onclick="toggleCode('M000064-source');return false;">[Source]</a></p>
588
+ <div class="method-source-code" id="M000064-source">
515
589
  <pre>
516
- <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 109</span>
590
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 122</span>
517
591
  <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>)
518
592
  <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>))
519
593
  <span class="ruby-keyword kw">end</span>
@@ -522,21 +596,21 @@ Alias for <a href="HtmlCanvas.html#M000063">text</a>
522
596
  </div>
523
597
  </div>
524
598
 
525
- <div id="method-M000056" class="method-detail">
526
- <a name="M000056"></a>
599
+ <div id="method-M000059" class="method-detail">
600
+ <a name="M000059"></a>
527
601
 
528
602
  <div class="method-heading">
529
- <a href="#M000056" class="method-signature">
603
+ <a href="#M000059" class="method-signature">
530
604
  <span class="method-name">submit_button</span><span class="method-args">(*args, &amp;block)</span>
531
605
  </a>
532
606
  </div>
533
607
 
534
608
  <div class="method-description">
535
609
  <p><a class="source-toggle" href="#"
536
- onclick="toggleCode('M000056-source');return false;">[Source]</a></p>
537
- <div class="method-source-code" id="M000056-source">
610
+ onclick="toggleCode('M000059-source');return false;">[Source]</a></p>
611
+ <div class="method-source-code" id="M000059-source">
538
612
  <pre>
539
- <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 93</span>
613
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 102</span>
540
614
  <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>)
541
615
  <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>)
542
616
  <span class="ruby-keyword kw">end</span>
@@ -545,21 +619,21 @@ Alias for <a href="HtmlCanvas.html#M000063">text</a>
545
619
  </div>
546
620
  </div>
547
621
 
548
- <div id="method-M000046" class="method-detail">
549
- <a name="M000046"></a>
622
+ <div id="method-M000049" class="method-detail">
623
+ <a name="M000049"></a>
550
624
 
551
625
  <div class="method-heading">
552
- <a href="#M000046" class="method-signature">
626
+ <a href="#M000049" class="method-signature">
553
627
  <span class="method-name">table</span><span class="method-args">(*args, &amp;block)</span>
554
628
  </a>
555
629
  </div>
556
630
 
557
631
  <div class="method-description">
558
632
  <p><a class="source-toggle" href="#"
559
- onclick="toggleCode('M000046-source');return false;">[Source]</a></p>
560
- <div class="method-source-code" id="M000046-source">
633
+ onclick="toggleCode('M000049-source');return false;">[Source]</a></p>
634
+ <div class="method-source-code" id="M000049-source">
561
635
  <pre>
562
- <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 53</span>
636
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 62</span>
563
637
  <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>)
564
638
  <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>)
565
639
  <span class="ruby-keyword kw">end</span>
@@ -568,21 +642,21 @@ Alias for <a href="HtmlCanvas.html#M000063">text</a>
568
642
  </div>
569
643
  </div>
570
644
 
571
- <div id="method-M000048" class="method-detail">
572
- <a name="M000048"></a>
645
+ <div id="method-M000051" class="method-detail">
646
+ <a name="M000051"></a>
573
647
 
574
648
  <div class="method-heading">
575
- <a href="#M000048" class="method-signature">
649
+ <a href="#M000051" class="method-signature">
576
650
  <span class="method-name">table_data</span><span class="method-args">(*args, &amp;block)</span>
577
651
  </a>
578
652
  </div>
579
653
 
580
654
  <div class="method-description">
581
655
  <p><a class="source-toggle" href="#"
582
- onclick="toggleCode('M000048-source');return false;">[Source]</a></p>
583
- <div class="method-source-code" id="M000048-source">
656
+ onclick="toggleCode('M000051-source');return false;">[Source]</a></p>
657
+ <div class="method-source-code" id="M000051-source">
584
658
  <pre>
585
- <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 61</span>
659
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 70</span>
586
660
  <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>)
587
661
  <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>)
588
662
  <span class="ruby-keyword kw">end</span>
@@ -591,21 +665,21 @@ Alias for <a href="HtmlCanvas.html#M000063">text</a>
591
665
  </div>
592
666
  </div>
593
667
 
594
- <div id="method-M000049" class="method-detail">
595
- <a name="M000049"></a>
668
+ <div id="method-M000052" class="method-detail">
669
+ <a name="M000052"></a>
596
670
 
597
671
  <div class="method-heading">
598
- <a href="#M000049" class="method-signature">
672
+ <a href="#M000052" class="method-signature">
599
673
  <span class="method-name">table_header</span><span class="method-args">(*args, &amp;block)</span>
600
674
  </a>
601
675
  </div>
602
676
 
603
677
  <div class="method-description">
604
678
  <p><a class="source-toggle" href="#"
605
- onclick="toggleCode('M000049-source');return false;">[Source]</a></p>
606
- <div class="method-source-code" id="M000049-source">
679
+ onclick="toggleCode('M000052-source');return false;">[Source]</a></p>
680
+ <div class="method-source-code" id="M000052-source">
607
681
  <pre>
608
- <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 65</span>
682
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 74</span>
609
683
  <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>)
610
684
  <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>)
611
685
  <span class="ruby-keyword kw">end</span>
@@ -614,21 +688,21 @@ Alias for <a href="HtmlCanvas.html#M000063">text</a>
614
688
  </div>
615
689
  </div>
616
690
 
617
- <div id="method-M000047" class="method-detail">
618
- <a name="M000047"></a>
691
+ <div id="method-M000050" class="method-detail">
692
+ <a name="M000050"></a>
619
693
 
620
694
  <div class="method-heading">
621
- <a href="#M000047" class="method-signature">
695
+ <a href="#M000050" class="method-signature">
622
696
  <span class="method-name">table_row</span><span class="method-args">(*args, &amp;block)</span>
623
697
  </a>
624
698
  </div>
625
699
 
626
700
  <div class="method-description">
627
701
  <p><a class="source-toggle" href="#"
628
- onclick="toggleCode('M000047-source');return false;">[Source]</a></p>
629
- <div class="method-source-code" id="M000047-source">
702
+ onclick="toggleCode('M000050-source');return false;">[Source]</a></p>
703
+ <div class="method-source-code" id="M000050-source">
630
704
  <pre>
631
- <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 57</span>
705
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 66</span>
632
706
  <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>)
633
707
  <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>)
634
708
  <span class="ruby-keyword kw">end</span>
@@ -637,21 +711,21 @@ Alias for <a href="HtmlCanvas.html#M000063">text</a>
637
711
  </div>
638
712
  </div>
639
713
 
640
- <div id="method-M000063" class="method-detail">
641
- <a name="M000063"></a>
714
+ <div id="method-M000069" class="method-detail">
715
+ <a name="M000069"></a>
642
716
 
643
717
  <div class="method-heading">
644
- <a href="#M000063" class="method-signature">
718
+ <a href="#M000069" class="method-signature">
645
719
  <span class="method-name">text</span><span class="method-args">(str)</span>
646
720
  </a>
647
721
  </div>
648
722
 
649
723
  <div class="method-description">
650
724
  <p><a class="source-toggle" href="#"
651
- onclick="toggleCode('M000063-source');return false;">[Source]</a></p>
652
- <div class="method-source-code" id="M000063-source">
725
+ onclick="toggleCode('M000069-source');return false;">[Source]</a></p>
726
+ <div class="method-source-code" id="M000069-source">
653
727
  <pre>
654
- <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 121</span>
728
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 142</span>
655
729
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">text</span>(<span class="ruby-identifier">str</span>)
656
730
  <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>))
657
731
  <span class="ruby-keyword kw">end</span>
@@ -660,21 +734,21 @@ Alias for <a href="HtmlCanvas.html#M000063">text</a>
660
734
  </div>
661
735
  </div>
662
736
 
663
- <div id="method-M000053" class="method-detail">
664
- <a name="M000053"></a>
737
+ <div id="method-M000056" class="method-detail">
738
+ <a name="M000056"></a>
665
739
 
666
740
  <div class="method-heading">
667
- <a href="#M000053" class="method-signature">
741
+ <a href="#M000056" class="method-signature">
668
742
  <span class="method-name">text_area</span><span class="method-args">(*args, &amp;block)</span>
669
743
  </a>
670
744
  </div>
671
745
 
672
746
  <div class="method-description">
673
747
  <p><a class="source-toggle" href="#"
674
- onclick="toggleCode('M000053-source');return false;">[Source]</a></p>
675
- <div class="method-source-code" id="M000053-source">
748
+ onclick="toggleCode('M000056-source');return false;">[Source]</a></p>
749
+ <div class="method-source-code" id="M000056-source">
676
750
  <pre>
677
- <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 81</span>
751
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 90</span>
678
752
  <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>)
679
753
  <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>)
680
754
  <span class="ruby-keyword kw">end</span>
@@ -683,21 +757,21 @@ Alias for <a href="HtmlCanvas.html#M000063">text</a>
683
757
  </div>
684
758
  </div>
685
759
 
686
- <div id="method-M000052" class="method-detail">
687
- <a name="M000052"></a>
760
+ <div id="method-M000055" class="method-detail">
761
+ <a name="M000055"></a>
688
762
 
689
763
  <div class="method-heading">
690
- <a href="#M000052" class="method-signature">
764
+ <a href="#M000055" class="method-signature">
691
765
  <span class="method-name">text_input</span><span class="method-args">(*args, &amp;block)</span>
692
766
  </a>
693
767
  </div>
694
768
 
695
769
  <div class="method-description">
696
770
  <p><a class="source-toggle" href="#"
697
- onclick="toggleCode('M000052-source');return false;">[Source]</a></p>
698
- <div class="method-source-code" id="M000052-source">
771
+ onclick="toggleCode('M000055-source');return false;">[Source]</a></p>
772
+ <div class="method-source-code" id="M000055-source">
699
773
  <pre>
700
- <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 77</span>
774
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 86</span>
701
775
  <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>)
702
776
  <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>)
703
777
  <span class="ruby-keyword kw">end</span>
@@ -706,23 +780,50 @@ Alias for <a href="HtmlCanvas.html#M000063">text</a>
706
780
  </div>
707
781
  </div>
708
782
 
783
+ <div id="method-M000047" class="method-detail">
784
+ <a name="M000047"></a>
785
+
786
+ <div class="method-heading">
787
+ <a href="#M000047" class="method-signature">
788
+ <span class="method-name">url_for_callback</span><span class="method-args">(symbol=nil, &amp;block)</span>
789
+ </a>
790
+ </div>
791
+
792
+ <div class="method-description">
793
+ <p><a class="source-toggle" href="#"
794
+ onclick="toggleCode('M000047-source');return false;">[Source]</a></p>
795
+ <div class="method-source-code" id="M000047-source">
796
+ <pre>
797
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 49</span>
798
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">url_for_callback</span>(<span class="ruby-identifier">symbol</span>=<span class="ruby-keyword kw">nil</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
799
+ <span class="ruby-identifier">raise</span> <span class="ruby-constant">ArgumentError</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">symbol</span> <span class="ruby-keyword kw">and</span> <span class="ruby-identifier">block</span>
800
+ <span class="ruby-identifier">block</span> = <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">current_component</span>.<span class="ruby-identifier">method</span>(<span class="ruby-identifier">symbol</span>) <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">block</span>
801
+ <span class="ruby-identifier">req</span> = <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">rendering_context</span>.<span class="ruby-identifier">request</span>
802
+ <span class="ruby-identifier">url</span> = <span class="ruby-identifier">req</span>.<span class="ruby-identifier">build_url</span>(<span class="ruby-identifier">req</span>.<span class="ruby-identifier">request_handler_id</span>, <span class="ruby-identifier">req</span>.<span class="ruby-identifier">page_id</span>, <span class="ruby-identifier">register_callback</span>(<span class="ruby-identifier">:action</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>))
803
+ <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">url</span>
804
+ <span class="ruby-keyword kw">end</span>
805
+ </pre>
806
+ </div>
807
+ </div>
808
+ </div>
809
+
709
810
  <h3 class="section-bar">Private Instance methods</h3>
710
811
 
711
- <div id="method-M000067" class="method-detail">
712
- <a name="M000067"></a>
812
+ <div id="method-M000073" class="method-detail">
813
+ <a name="M000073"></a>
713
814
 
714
815
  <div class="method-heading">
715
- <a href="#M000067" class="method-signature">
816
+ <a href="#M000073" class="method-signature">
716
817
  <span class="method-name">handle</span><span class="method-args">(brush, *args, &amp;block)</span>
717
818
  </a>
718
819
  </div>
719
820
 
720
821
  <div class="method-description">
721
822
  <p><a class="source-toggle" href="#"
722
- onclick="toggleCode('M000067-source');return false;">[Source]</a></p>
723
- <div class="method-source-code" id="M000067-source">
823
+ onclick="toggleCode('M000073-source');return false;">[Source]</a></p>
824
+ <div class="method-source-code" id="M000073-source">
724
825
  <pre>
725
- <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 138</span>
826
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 159</span>
726
827
  <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>)
727
828
  <span class="ruby-identifier">set_brush</span>(<span class="ruby-identifier">brush</span>)
728
829
  <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>