riojs 0.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (270) hide show
  1. data/LICENSE +20 -0
  2. data/README.rdoc +24 -0
  3. data/VERSION +1 -0
  4. data/bin/rio +5 -0
  5. data/generators/rio_app/USAGE +19 -0
  6. data/generators/rio_app/rio_app_generator.rb +40 -0
  7. data/generators/rio_app/templates/app.build +10 -0
  8. data/generators/rio_app/templates/app.css +0 -0
  9. data/generators/rio_app/templates/app.js +20 -0
  10. data/generators/rio_app/templates/app_view.html.erb +19 -0
  11. data/generators/rio_app/templates/fixture.js +4 -0
  12. data/generators/rio_app/templates/rio.html.erb +18 -0
  13. data/generators/rio_app/templates/rio_controller.rb +2 -0
  14. data/generators/rio_app/templates/spec.js +7 -0
  15. data/generators/rio_component/USAGE +13 -0
  16. data/generators/rio_component/rio_component_generator.rb +16 -0
  17. data/generators/rio_component/templates/component.css +0 -0
  18. data/generators/rio_component/templates/component.js +11 -0
  19. data/generators/rio_component/templates/fixture.js +3 -0
  20. data/generators/rio_component/templates/spec.js +6 -0
  21. data/generators/rio_model/USAGE +12 -0
  22. data/generators/rio_model/rio_model_generator.rb +21 -0
  23. data/generators/rio_model/templates/fixture.js +3 -0
  24. data/generators/rio_model/templates/model.js +9 -0
  25. data/generators/rio_model/templates/spec.js +6 -0
  26. data/generators/rio_page/USAGE +14 -0
  27. data/generators/rio_page/rio_page_generator.rb +16 -0
  28. data/generators/rio_page/templates/fixture.js +3 -0
  29. data/generators/rio_page/templates/page.css +12 -0
  30. data/generators/rio_page/templates/page.js +12 -0
  31. data/generators/rio_page/templates/page.jst +64 -0
  32. data/generators/rio_page/templates/spec.js +6 -0
  33. data/generators/rio_resource/USAGE +20 -0
  34. data/generators/rio_resource/rio_resource_generator.rb +10 -0
  35. data/generators/rio_resource/templates/controller.rb +3 -0
  36. data/init.rb +4 -0
  37. data/install/config/juggernaut_hosts.yml +18 -0
  38. data/install/lib/tasks/rio.rake +1 -0
  39. data/install/script/rio_server +37 -0
  40. data/lib/rio/autospec.rb +86 -0
  41. data/lib/rio/install.rb +90 -0
  42. data/lib/rio/juggernaut.rb +212 -0
  43. data/lib/rio/path.rb +3 -0
  44. data/lib/rio/rio_compressor.rb +219 -0
  45. data/lib/rio/rio_file_controller.rb +16 -0
  46. data/lib/rio/rio_on_rails.rb +586 -0
  47. data/lib/rio/rio_proxy_controller.rb +60 -0
  48. data/lib/rio/rio_push_controller.rb +48 -0
  49. data/lib/rio/rio_routes.rb +24 -0
  50. data/lib/rio/rio_spec_controller.rb +70 -0
  51. data/lib/riojs.rb +14 -0
  52. data/lib/tasks/rio.rb +63 -0
  53. data/public/images/background-chiffon.png +0 -0
  54. data/public/images/button-gradient-overlay-down.png +0 -0
  55. data/public/images/button-gradient-overlay.png +0 -0
  56. data/public/images/icons/add.png +0 -0
  57. data/public/images/icons/error-big.png +0 -0
  58. data/public/images/icons/warning-big.png +0 -0
  59. data/public/images/rio-logo-big.png +0 -0
  60. data/public/images/rio-logo.png +0 -0
  61. data/public/images/splitter-handle-horizontal.png +0 -0
  62. data/public/images/splitter-handle-vertical.png +0 -0
  63. data/public/images/tab-bar-gradient-overlay.png +0 -0
  64. data/public/images/title-gradient-overlay.png +0 -0
  65. data/public/images/trash.gif +0 -0
  66. data/public/javascripts/components/accordion.js +144 -0
  67. data/public/javascripts/components/alert_box.js +59 -0
  68. data/public/javascripts/components/base.js +47 -0
  69. data/public/javascripts/components/box.js +63 -0
  70. data/public/javascripts/components/button.js +98 -0
  71. data/public/javascripts/components/checkbox.js +44 -0
  72. data/public/javascripts/components/container.js +265 -0
  73. data/public/javascripts/components/grid_view.js +107 -0
  74. data/public/javascripts/components/image.js +19 -0
  75. data/public/javascripts/components/input.js +171 -0
  76. data/public/javascripts/components/label.js +15 -0
  77. data/public/javascripts/components/lightbox.js +160 -0
  78. data/public/javascripts/components/link.js +43 -0
  79. data/public/javascripts/components/list_item.js +44 -0
  80. data/public/javascripts/components/list_view.js +192 -0
  81. data/public/javascripts/components/marquee.js +131 -0
  82. data/public/javascripts/components/menu.js +89 -0
  83. data/public/javascripts/components/notification.js +75 -0
  84. data/public/javascripts/components/overlay.js +134 -0
  85. data/public/javascripts/components/panel.js +146 -0
  86. data/public/javascripts/components/radio.js +46 -0
  87. data/public/javascripts/components/splitter.js +65 -0
  88. data/public/javascripts/components/tab_bar.js +64 -0
  89. data/public/javascripts/components/tab_panel.js +57 -0
  90. data/public/javascripts/components/textarea.js +223 -0
  91. data/public/javascripts/components/toggle_button.js +22 -0
  92. data/public/javascripts/components/tooltip.js +80 -0
  93. data/public/javascripts/lib/application.js +482 -0
  94. data/public/javascripts/lib/attr.js +760 -0
  95. data/public/javascripts/lib/benchmark.js +235 -0
  96. data/public/javascripts/lib/blank.html +39 -0
  97. data/public/javascripts/lib/boot.js +300 -0
  98. data/public/javascripts/lib/clipboard.js +96 -0
  99. data/public/javascripts/lib/collection_entity.js +46 -0
  100. data/public/javascripts/lib/component.js +129 -0
  101. data/public/javascripts/lib/console.js +75 -0
  102. data/public/javascripts/lib/console/apps/console.build +43 -0
  103. data/public/javascripts/lib/console/apps/console.js +28 -0
  104. data/public/javascripts/lib/console/blank.html +39 -0
  105. data/public/javascripts/lib/console/components/benchmark.js +196 -0
  106. data/public/javascripts/lib/console/components/console.js +352 -0
  107. data/public/javascripts/lib/console/components/dependencies_list.js +17 -0
  108. data/public/javascripts/lib/console/components/docs.js +66 -0
  109. data/public/javascripts/lib/console/components/playground.js +30 -0
  110. data/public/javascripts/lib/console/console.html +27 -0
  111. data/public/javascripts/lib/console/console_commands.js +287 -0
  112. data/public/javascripts/lib/console/console_commands.js.rej +21 -0
  113. data/public/javascripts/lib/console/console_mixin.js +22 -0
  114. data/public/javascripts/lib/console/docs/files.html +579 -0
  115. data/public/javascripts/lib/console/docs/index.html +323 -0
  116. data/public/javascripts/lib/console/docs/symbols/Object.html +291 -0
  117. data/public/javascripts/lib/console/docs/symbols/_global_.html +413 -0
  118. data/public/javascripts/lib/console/docs/symbols/rio.AIM.html +490 -0
  119. data/public/javascripts/lib/console/docs/symbols/rio.Application.html +841 -0
  120. data/public/javascripts/lib/console/docs/symbols/rio.Attr.html +1075 -0
  121. data/public/javascripts/lib/console/docs/symbols/rio.Binding.html +272 -0
  122. data/public/javascripts/lib/console/docs/symbols/rio.Component.html +419 -0
  123. data/public/javascripts/lib/console/docs/symbols/rio.Cookie.html +543 -0
  124. data/public/javascripts/lib/console/docs/symbols/rio.DelayedTask#initialize.html +270 -0
  125. data/public/javascripts/lib/console/docs/symbols/rio.DelayedTask.html +391 -0
  126. data/public/javascripts/lib/console/docs/symbols/rio.JsTemplate.html +271 -0
  127. data/public/javascripts/lib/console/docs/symbols/rio.Juggernaut.html +329 -0
  128. data/public/javascripts/lib/console/docs/symbols/rio.Model.html +822 -0
  129. data/public/javascripts/lib/console/docs/symbols/rio.Page.html +383 -0
  130. data/public/javascripts/lib/console/docs/symbols/rio.Template.html +328 -0
  131. data/public/javascripts/lib/console/docs/symbols/rio.Utils.html +617 -0
  132. data/public/javascripts/lib/console/docs/symbols/rio.html +506 -0
  133. data/public/javascripts/lib/console/docs/symbols/src/public_javascripts_components_base.js.html +54 -0
  134. data/public/javascripts/lib/console/docs/symbols/src/public_javascripts_lib_application.js.html +490 -0
  135. data/public/javascripts/lib/console/docs/symbols/src/public_javascripts_lib_attr.js.html +768 -0
  136. data/public/javascripts/lib/console/docs/symbols/src/public_javascripts_lib_boot.js.html +308 -0
  137. data/public/javascripts/lib/console/docs/symbols/src/public_javascripts_lib_clipboard.js.html +103 -0
  138. data/public/javascripts/lib/console/docs/symbols/src/public_javascripts_lib_collection_entity.js.html +53 -0
  139. data/public/javascripts/lib/console/docs/symbols/src/public_javascripts_lib_component.js.html +137 -0
  140. data/public/javascripts/lib/console/docs/symbols/src/public_javascripts_lib_cookie.js.html +81 -0
  141. data/public/javascripts/lib/console/docs/symbols/src/public_javascripts_lib_delayed_task.js.html +68 -0
  142. data/public/javascripts/lib/console/docs/symbols/src/public_javascripts_lib_file.js.html +80 -0
  143. data/public/javascripts/lib/console/docs/symbols/src/public_javascripts_lib_flash_detect.js.html +129 -0
  144. data/public/javascripts/lib/console/docs/symbols/src/public_javascripts_lib_form.js.html +95 -0
  145. data/public/javascripts/lib/console/docs/symbols/src/public_javascripts_lib_id.js.html +50 -0
  146. data/public/javascripts/lib/console/docs/symbols/src/public_javascripts_lib_inflector.js.html +167 -0
  147. data/public/javascripts/lib/console/docs/symbols/src/public_javascripts_lib_js_template.js.html +283 -0
  148. data/public/javascripts/lib/console/docs/symbols/src/public_javascripts_lib_juggernaut.js.html +303 -0
  149. data/public/javascripts/lib/console/docs/symbols/src/public_javascripts_lib_key_map.js.html +68 -0
  150. data/public/javascripts/lib/console/docs/symbols/src/public_javascripts_lib_layout_manager.js.html +175 -0
  151. data/public/javascripts/lib/console/docs/symbols/src/public_javascripts_lib_log.js.html +17 -0
  152. data/public/javascripts/lib/console/docs/symbols/src/public_javascripts_lib_model.js.html +1074 -0
  153. data/public/javascripts/lib/console/docs/symbols/src/public_javascripts_lib_page.js.html +246 -0
  154. data/public/javascripts/lib/console/docs/symbols/src/public_javascripts_lib_parameters.js.html +66 -0
  155. data/public/javascripts/lib/console/docs/symbols/src/public_javascripts_lib_protohack.js.html +305 -0
  156. data/public/javascripts/lib/console/docs/symbols/src/public_javascripts_lib_push.js.html +12 -0
  157. data/public/javascripts/lib/console/docs/symbols/src/public_javascripts_lib_rsh.js.html +659 -0
  158. data/public/javascripts/lib/console/docs/symbols/src/public_javascripts_lib_swfobject.js.html +12 -0
  159. data/public/javascripts/lib/console/docs/symbols/src/public_javascripts_lib_tag.js.html +60 -0
  160. data/public/javascripts/lib/console/docs/symbols/src/public_javascripts_lib_template.js.html +64 -0
  161. data/public/javascripts/lib/console/docs/symbols/src/public_javascripts_lib_theme.js.html +105 -0
  162. data/public/javascripts/lib/console/docs/symbols/src/public_javascripts_lib_undo.js.html +142 -0
  163. data/public/javascripts/lib/console/docs/symbols/src/public_javascripts_lib_utils.js.html +87 -0
  164. data/public/javascripts/lib/console/docs/symbols/src/public_javascripts_lib_yaml.js.html +88 -0
  165. data/public/javascripts/lib/console/file-small.png +0 -0
  166. data/public/javascripts/lib/console/green-circle.png +0 -0
  167. data/public/javascripts/lib/console/loading.gif +0 -0
  168. data/public/javascripts/lib/console/pages/console_page.js +149 -0
  169. data/public/javascripts/lib/console/pages/console_page.jst +27 -0
  170. data/public/javascripts/lib/console/red-circle.png +0 -0
  171. data/public/javascripts/lib/cookie.js +74 -0
  172. data/public/javascripts/lib/delayed_task.js +61 -0
  173. data/public/javascripts/lib/dependencies.js +76 -0
  174. data/public/javascripts/lib/environment.js +30 -0
  175. data/public/javascripts/lib/event.simulate.js +137 -0
  176. data/public/javascripts/lib/expressinstall.swf +0 -0
  177. data/public/javascripts/lib/file.js +72 -0
  178. data/public/javascripts/lib/flash_detect.js +122 -0
  179. data/public/javascripts/lib/flashembed.min.js +16 -0
  180. data/public/javascripts/lib/form.js +88 -0
  181. data/public/javascripts/lib/id.js +43 -0
  182. data/public/javascripts/lib/inflector.js +160 -0
  183. data/public/javascripts/lib/instrumenter.js +106 -0
  184. data/public/javascripts/lib/js_template.js +275 -0
  185. data/public/javascripts/lib/jslint.js +4950 -0
  186. data/public/javascripts/lib/juggernaut.js +295 -0
  187. data/public/javascripts/lib/juggernaut.swf +0 -0
  188. data/public/javascripts/lib/key_map.js +60 -0
  189. data/public/javascripts/lib/layout_manager.js +167 -0
  190. data/public/javascripts/lib/model.js +1067 -0
  191. data/public/javascripts/lib/page.js +238 -0
  192. data/public/javascripts/lib/parameters.js +59 -0
  193. data/public/javascripts/lib/png_fix.js +75 -0
  194. data/public/javascripts/lib/protohack.js +297 -0
  195. data/public/javascripts/lib/push.js +5 -0
  196. data/public/javascripts/lib/rio.build +28 -0
  197. data/public/javascripts/lib/rio_development.build +5 -0
  198. data/public/javascripts/lib/rio_lint.js +66 -0
  199. data/public/javascripts/lib/rsh.js +651 -0
  200. data/public/javascripts/lib/spec.js +545 -0
  201. data/public/javascripts/lib/spec_runner.js +242 -0
  202. data/public/javascripts/lib/swfobject.js +5 -0
  203. data/public/javascripts/lib/tag.js +52 -0
  204. data/public/javascripts/lib/undo.js +134 -0
  205. data/public/javascripts/lib/utils.js +80 -0
  206. data/public/javascripts/lib/yaml.js +80 -0
  207. data/public/javascripts/pages/playground_page.js +15 -0
  208. data/public/javascripts/prototype/builder.js +146 -0
  209. data/public/javascripts/prototype/controls.js +1004 -0
  210. data/public/javascripts/prototype/dragdrop.js +1030 -0
  211. data/public/javascripts/prototype/effects.js +1137 -0
  212. data/public/javascripts/prototype/prototype.js +4320 -0
  213. data/public/javascripts/prototype/slider.js +283 -0
  214. data/public/javascripts/prototype/sound.js +67 -0
  215. data/public/javascripts/specs/components/box_spec.js +6 -0
  216. data/public/javascripts/specs/components/checkbox_spec.js +26 -0
  217. data/public/javascripts/specs/components/container_spec.js +6 -0
  218. data/public/javascripts/specs/components/input_spec.js +71 -0
  219. data/public/javascripts/specs/components/panel_spec.js +6 -0
  220. data/public/javascripts/specs/components/radio_spec.js +40 -0
  221. data/public/javascripts/specs/fixtures/components/box.js +3 -0
  222. data/public/javascripts/specs/fixtures/components/checkbox.js +9 -0
  223. data/public/javascripts/specs/fixtures/components/container.js +3 -0
  224. data/public/javascripts/specs/fixtures/components/input.js +12 -0
  225. data/public/javascripts/specs/fixtures/components/menu.js +19 -0
  226. data/public/javascripts/specs/fixtures/components/menu_item.js +18 -0
  227. data/public/javascripts/specs/fixtures/components/radio.js +11 -0
  228. data/public/javascripts/specs/lib/application_spec.js +281 -0
  229. data/public/javascripts/specs/lib/attr_spec.js +1514 -0
  230. data/public/javascripts/specs/lib/benchmark_spec.js +361 -0
  231. data/public/javascripts/specs/lib/collection_entity_spec.js +131 -0
  232. data/public/javascripts/specs/lib/component_spec.js +86 -0
  233. data/public/javascripts/specs/lib/form_spec.js +171 -0
  234. data/public/javascripts/specs/lib/id_spec.js +21 -0
  235. data/public/javascripts/specs/lib/instrumenter_spec.js +5 -0
  236. data/public/javascripts/specs/lib/js_template_spec.js +131 -0
  237. data/public/javascripts/specs/lib/key_map_spec.js +227 -0
  238. data/public/javascripts/specs/lib/model_spec.js +2268 -0
  239. data/public/javascripts/specs/lib/parameters_spec.js +94 -0
  240. data/public/javascripts/specs/lib/spec_spec.js +943 -0
  241. data/public/javascripts/specs/lib/undo_spec.js +105 -0
  242. data/public/javascripts/specs/lib/yaml_spec.js +127 -0
  243. data/public/sounds/basso.wav +0 -0
  244. data/public/sounds/purr.wav +0 -0
  245. data/public/stylesheets/components/accordion.css +24 -0
  246. data/public/stylesheets/components/alert_box.css +35 -0
  247. data/public/stylesheets/components/box.css +0 -0
  248. data/public/stylesheets/components/button.css +39 -0
  249. data/public/stylesheets/components/checkbox.css +9 -0
  250. data/public/stylesheets/components/container.css +3 -0
  251. data/public/stylesheets/components/grid_view.css +52 -0
  252. data/public/stylesheets/components/input.css +10 -0
  253. data/public/stylesheets/components/label.css +3 -0
  254. data/public/stylesheets/components/lightbox.css +31 -0
  255. data/public/stylesheets/components/link.css +4 -0
  256. data/public/stylesheets/components/list_view.css +23 -0
  257. data/public/stylesheets/components/marquee.css +29 -0
  258. data/public/stylesheets/components/menu.css +34 -0
  259. data/public/stylesheets/components/notification.css +52 -0
  260. data/public/stylesheets/components/overlay.css +8 -0
  261. data/public/stylesheets/components/panel.css +36 -0
  262. data/public/stylesheets/components/radio.css +9 -0
  263. data/public/stylesheets/components/splitter.css +35 -0
  264. data/public/stylesheets/components/tab_bar.css +59 -0
  265. data/public/stylesheets/components/tab_panel.css +15 -0
  266. data/public/stylesheets/components/textarea.css +11 -0
  267. data/public/stylesheets/components/tooltip.css +10 -0
  268. data/public/stylesheets/console.css +151 -0
  269. data/public/stylesheets/css_reset.css +55 -0
  270. metadata +343 -0
@@ -0,0 +1,841 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
+ <head>
5
+ <meta http-equiv="content-type" content="text/html; charset=utf-8" />
6
+ <meta name="generator" content="JsDoc Toolkit" />
7
+
8
+ <title>JsDoc Reference - rio.Application</title>
9
+
10
+ <style type="text/css">
11
+ /* default.css */
12
+ body
13
+ {
14
+ font: 12px "Lucida Grande", Tahoma, Arial, Helvetica, sans-serif;
15
+ /* width: 100%;*/
16
+ }
17
+
18
+ .header
19
+ {
20
+ clear: both;
21
+ background-color: #ccc;
22
+ padding: 8px;
23
+ }
24
+
25
+ h1
26
+ {
27
+ font-size: 150%;
28
+ font-weight: bold;
29
+ padding: 0;
30
+ margin: 1em 0 0 .3em;
31
+ }
32
+
33
+ hr
34
+ {
35
+ border: none 0;
36
+ border-top: 1px solid #7F8FB1;
37
+ height: 1px;
38
+ }
39
+
40
+ pre.code
41
+ {
42
+ display: block;
43
+ padding: 8px;
44
+ border: 1px dashed #ccc;
45
+ }
46
+
47
+ #index
48
+ {
49
+ margin-top: 24px;
50
+ float: left;
51
+ width: 160px;
52
+ position: absolute;
53
+ left: 8px;
54
+ background-color: #F3F3F3;
55
+ padding: 8px;
56
+ }
57
+
58
+ #content
59
+ {
60
+ width: 98%;
61
+ }
62
+
63
+ .classList
64
+ {
65
+ list-style-type: none;
66
+ padding: 0;
67
+ margin: 0 0 0 8px;
68
+ font-family: arial, sans-serif;
69
+ font-size: 1em;
70
+ overflow: auto;
71
+ }
72
+
73
+ .classList li
74
+ {
75
+ padding: 0;
76
+ margin: 0 0 8px 0;
77
+ }
78
+
79
+ .summaryTable { width: 100%; }
80
+
81
+ h1.classTitle
82
+ {
83
+ font-size:170%;
84
+ line-height:130%;
85
+ }
86
+
87
+ h2 { font-size: 110%; }
88
+ caption, div.sectionTitle
89
+ {
90
+ background-color: #7F8FB1;
91
+ color: #fff;
92
+ font-size:130%;
93
+ text-align: left;
94
+ padding: 2px 6px 2px 6px;
95
+ border: 1px #7F8FB1 solid;
96
+ }
97
+
98
+ div.sectionTitle { margin-bottom: 8px; }
99
+ .summaryTable thead { display: none; }
100
+
101
+ .summaryTable td
102
+ {
103
+ vertical-align: top;
104
+ padding: 4px;
105
+ border-bottom: 1px #7F8FB1 solid;
106
+ border-right: 1px #7F8FB1 solid;
107
+ }
108
+
109
+ /*col#summaryAttributes {}*/
110
+ .summaryTable td.attributes
111
+ {
112
+ border-left: 1px #7F8FB1 solid;
113
+ width: 140px;
114
+ text-align: right;
115
+ }
116
+
117
+ td.attributes, .fixedFont
118
+ {
119
+ line-height: 15px;
120
+ color: #002EBE;
121
+ font-family: "Courier New",Courier,monospace;
122
+ font-size: 13px;
123
+ }
124
+
125
+ .summaryTable td.nameDescription
126
+ {
127
+ text-align: left;
128
+ font-size: 13px;
129
+ line-height: 15px;
130
+ }
131
+
132
+ .summaryTable td.nameDescription, .description
133
+ {
134
+ line-height: 15px;
135
+ padding: 4px;
136
+ padding-left: 4px;
137
+ }
138
+
139
+ .summaryTable { margin-bottom: 8px; }
140
+
141
+ ul.inheritsList
142
+ {
143
+ list-style: square;
144
+ margin-left: 20px;
145
+ padding-left: 0;
146
+ }
147
+
148
+ .detailList {
149
+ margin-left: 20px;
150
+ line-height: 15px;
151
+ }
152
+ .detailList dt { margin-left: 20px; }
153
+
154
+ .detailList .heading
155
+ {
156
+ font-weight: bold;
157
+ padding-bottom: 6px;
158
+ margin-left: 0;
159
+ }
160
+
161
+ .light, td.attributes, .light a:link, .light a:visited
162
+ {
163
+ color: #777;
164
+ font-style: italic;
165
+ }
166
+
167
+ .fineprint
168
+ {
169
+ text-align: right;
170
+ font-size: 10px;
171
+ }
172
+ </style>
173
+ </head>
174
+
175
+ <body>
176
+
177
+ <div id="content">
178
+ <!-- ============================== class title ============================ -->
179
+ <h1 class="classTitle">
180
+
181
+ Class rio.Application
182
+ </h1>
183
+
184
+ <!-- ============================== class summary ========================== -->
185
+ <p class="description">
186
+ <br />Extends
187
+ <a href="../symbols/rio.Attr.html#constructor">rio.Attr</a>.<br />
188
+
189
+
190
+ Application is used to create new rio application classes. It provides functionality for dependency management,
191
+ routing, history management and page management.
192
+
193
+
194
+ <br /><i>Defined in: </i> <a href="../symbols/src/public_javascripts_lib_application.js.html">application.js</a>.
195
+
196
+ </p>
197
+
198
+ <!-- ============================== constructor summary ==================== -->
199
+
200
+ <table class="summaryTable" cellspacing="0" summary="A summary of the constructor documented in the class rio.Application.">
201
+ <caption>Class Summary</caption>
202
+ <thead>
203
+ <tr>
204
+ <th scope="col">Constructor Attributes</th>
205
+ <th scope="col">Constructor Name and Description</th>
206
+ </tr>
207
+ </thead>
208
+ <tbody>
209
+ <tr>
210
+ <td class="attributes">&nbsp;</td>
211
+ <td class="nameDescription" >
212
+ <div class="fixedFont">
213
+ <b><a href="../symbols/rio.Application.html#constructor">rio.Application</a></b>()
214
+ </div>
215
+ <div class="description"></div>
216
+ </td>
217
+ </tr>
218
+ </tbody>
219
+ </table>
220
+
221
+
222
+ <!-- ============================== properties summary ===================== -->
223
+
224
+
225
+ <!-- ============================== methods summary ======================== -->
226
+
227
+
228
+
229
+ <table class="summaryTable" cellspacing="0" summary="A summary of the methods documented in the class rio.Application.">
230
+ <caption>Method Summary</caption>
231
+ <thead>
232
+ <tr>
233
+ <th scope="col">Method Attributes</th>
234
+ <th scope="col">Method Name and Description</th>
235
+ </tr>
236
+ </thead>
237
+ <tbody>
238
+
239
+ <tr>
240
+ <td class="attributes">&lt;static&gt; &nbsp;</td>
241
+ <td class="nameDescription">
242
+ <div class="fixedFont">rio.Application.<b><a href="../symbols/rio.Application.html#.create">create</a></b>(name, extends, args)
243
+ </div>
244
+ <div class="description">Creates an instance of rio.Application.</div>
245
+ </td>
246
+ </tr>
247
+
248
+ <tr>
249
+ <td class="attributes">&lt;static&gt; &nbsp;</td>
250
+ <td class="nameDescription">
251
+ <div class="fixedFont">rio.Application.<b><a href="../symbols/rio.Application.html#.fail">fail</a></b>(msg, msg)
252
+ </div>
253
+ <div class="description">This causes the application to fail and log a 'fail' error message.</div>
254
+ </td>
255
+ </tr>
256
+
257
+ <tr>
258
+ <td class="attributes">&nbsp;</td>
259
+ <td class="nameDescription">
260
+ <div class="fixedFont"><b><a href="../symbols/rio.Application.html#getCurrentPage">getCurrentPage</a></b>()
261
+ </div>
262
+ <div class="description">Returns the instance of the currently loaded page in the app.</div>
263
+ </td>
264
+ </tr>
265
+
266
+ <tr>
267
+ <td class="attributes">&lt;static&gt; &nbsp;</td>
268
+ <td class="nameDescription">
269
+ <div class="fixedFont">rio.Application.<b><a href="../symbols/rio.Application.html#.include">include</a></b>(fileName)
270
+ </div>
271
+ <div class="description">Alias of rio.Application.require</div>
272
+ </td>
273
+ </tr>
274
+
275
+ <tr>
276
+ <td class="attributes">&lt;static&gt; &nbsp;</td>
277
+ <td class="nameDescription">
278
+ <div class="fixedFont">rio.Application.<b><a href="../symbols/rio.Application.html#.includeCss">includeCss</a></b>(toInclude)
279
+ </div>
280
+ <div class="description"></div>
281
+ </td>
282
+ </tr>
283
+
284
+ <tr>
285
+ <td class="attributes">&nbsp;</td>
286
+ <td class="nameDescription">
287
+ <div class="fixedFont"><b><a href="../symbols/rio.Application.html#reboot">reboot</a></b>()
288
+ </div>
289
+ <div class="description">Reboots your application.</div>
290
+ </td>
291
+ </tr>
292
+
293
+ <tr>
294
+ <td class="attributes">&nbsp;</td>
295
+ <td class="nameDescription">
296
+ <div class="fixedFont"><b><a href="../symbols/rio.Application.html#refresh">refresh</a></b>()
297
+ </div>
298
+ <div class="description">Refreshes the browser.</div>
299
+ </td>
300
+ </tr>
301
+
302
+ <tr>
303
+ <td class="attributes">&lt;static&gt; &nbsp;</td>
304
+ <td class="nameDescription">
305
+ <div class="fixedFont">rio.Application.<b><a href="../symbols/rio.Application.html#.require">require</a></b>(fileName)
306
+ </div>
307
+ <div class="description">Alias of rio.Application.require</div>
308
+ </td>
309
+ </tr>
310
+
311
+ <tr>
312
+ <td class="attributes">&lt;static&gt; &nbsp;</td>
313
+ <td class="nameDescription">
314
+ <div class="fixedFont">rio.Application.<b><a href="../symbols/rio.Application.html#.route">route</a></b>(path, target)
315
+ </div>
316
+ <div class="description">Specifies the lowest priority route for an application class.</div>
317
+ </td>
318
+ </tr>
319
+
320
+ <tr>
321
+ <td class="attributes">&nbsp;</td>
322
+ <td class="nameDescription">
323
+ <div class="fixedFont"><b><a href="../symbols/rio.Application.html#toString">toString</a></b>()
324
+ </div>
325
+ <div class="description"></div>
326
+ </td>
327
+ </tr>
328
+
329
+ <tr>
330
+ <td class="attributes">&lt;static&gt; &nbsp;</td>
331
+ <td class="nameDescription">
332
+ <div class="fixedFont">rio.Application.<b><a href="../symbols/rio.Application.html#.toString">toString</a></b>()
333
+ </div>
334
+ <div class="description"></div>
335
+ </td>
336
+ </tr>
337
+
338
+ <tr>
339
+ <td class="attributes">&nbsp;</td>
340
+ <td class="nameDescription">
341
+ <div class="fixedFont"><b><a href="../symbols/rio.Application.html#unload">unload</a></b>()
342
+ </div>
343
+ <div class="description">This method is called just before the page is unloaded.</div>
344
+ </td>
345
+ </tr>
346
+
347
+ </tbody>
348
+ </table>
349
+
350
+
351
+
352
+ <dl class="inheritsList">
353
+ <dt>Methods borrowed from class <a href="../symbols/rio.Attr.html#constructor">rio.Attr</a>: </dt><dd><a href="../symbols/rio.Attr.html#bind">bind</a>, <a href="../symbols/rio.Attr.html#binding">binding</a>, <a href="../symbols/rio.Attr.html#.extend">extend</a>, <a href="../symbols/rio.Attr.html#fire">fire</a>, <a href="../symbols/rio.Attr.html#.fireWhenReady">fireWhenReady</a>, <a href="../symbols/rio.Attr.html#freeze">freeze</a>, <a href="../symbols/rio.Attr.html#frozen">frozen</a>, <a href="../symbols/rio.Attr.html#observe">observe</a>, <a href="../symbols/rio.Attr.html#setAndReturnAfterSet">setAndReturnAfterSet</a>, <a href="../symbols/rio.Attr.html#stopObserving">stopObserving</a>, <a href="../symbols/rio.Attr.html#.transaction">transaction</a>, <a href="../symbols/rio.Attr.html#unfreeze">unfreeze</a>, <a href="../symbols/rio.Attr.html#.updateAttributes">updateAttributes</a></dd>
354
+ </dl>
355
+
356
+
357
+
358
+ <!-- ============================== constructor details ==================== -->
359
+
360
+ <div class="details"><a name="constructor"> </a>
361
+ <div class="sectionTitle">
362
+ Class Detail
363
+ </div>
364
+
365
+ <div class="fixedFont">
366
+ <b>rio.Application</b>()
367
+ </div>
368
+
369
+ <div class="description">
370
+
371
+
372
+ </div>
373
+
374
+
375
+
376
+
377
+
378
+
379
+
380
+
381
+
382
+
383
+
384
+
385
+ </div>
386
+
387
+
388
+ <!-- ============================== field details ========================== -->
389
+
390
+
391
+ <!-- ============================== method details ========================= -->
392
+
393
+ <div class="sectionTitle">
394
+ Method Detail
395
+ </div>
396
+
397
+ <a name=".create"> </a>
398
+ <div class="fixedFont">&lt;static&gt;
399
+
400
+ <span class="light">{<a href="../symbols/rio.Application.html#constructor">rio.Application</a>}</span>
401
+ <span class="light">rio.Application.</span><b>create</b>(name, extends, args)
402
+
403
+ </div>
404
+ <div class="description">
405
+ Creates an instance of rio.Application.
406
+
407
+
408
+ </div>
409
+
410
+
411
+
412
+ <pre class="code"> rio.apps.example = rio.Application.create({
413
+ require: ["pages/example_page"],
414
+ requireCss: ["css_reset", "example"],
415
+ routes: {
416
+ "": "examplePage"
417
+ },
418
+ attrAccessors: [],
419
+ attrReaders: [],
420
+ methods: {
421
+ initialize: function(options) {
422
+ },
423
+
424
+ examplePage: function() {
425
+ return new rio.pages.ExamplePage();
426
+ }
427
+ }
428
+ });</pre>
429
+
430
+
431
+
432
+
433
+ <dl class="detailList">
434
+ <dt class="heading">Parameters:</dt>
435
+
436
+ <dt>
437
+ <span class="light fixedFont">{String}</span> <b>name</b>
438
+
439
+ </dt>
440
+ <dd>(optional) The name of this Application. Used primarily for testing reports.</dd>
441
+
442
+ <dt>
443
+ <span class="light fixedFont">{<a href="../symbols/Object.html#constructor">Object</a>}</span> <b>extends</b>
444
+
445
+ </dt>
446
+ <dd>(optional) An Attr class to use as a superclass.</dd>
447
+
448
+ <dt>
449
+ <span class="light fixedFont">{<a href="../symbols/Object.html#constructor">Object</a>}</span> <b>args</b>
450
+
451
+ </dt>
452
+ <dd>(optional) The definition of the class.</dd>
453
+
454
+ </dl>
455
+
456
+
457
+
458
+
459
+
460
+ <dl class="detailList">
461
+ <dt class="heading">Returns:</dt>
462
+
463
+ <dd>a new instance of type Application</dd>
464
+
465
+ </dl>
466
+
467
+
468
+
469
+
470
+ <hr />
471
+
472
+ <a name=".fail"> </a>
473
+ <div class="fixedFont">&lt;static&gt;
474
+
475
+
476
+ <span class="light">rio.Application.</span><b>fail</b>(msg, msg)
477
+
478
+ </div>
479
+ <div class="description">
480
+ This causes the application to fail and log a 'fail' error message. If the application class
481
+ has a fail method, that method will be called with the message passed in here.
482
+
483
+
484
+ </div>
485
+
486
+
487
+
488
+
489
+ <dl class="detailList">
490
+ <dt class="heading">Parameters:</dt>
491
+
492
+ <dt>
493
+ <span class="light fixedFont">{String}</span> <b>msg</b>
494
+
495
+ </dt>
496
+ <dd>The application failure message</dd>
497
+
498
+ <dt>
499
+ <span class="light fixedFont">{String}</span> <b>msg</b>
500
+
501
+ </dt>
502
+ <dd>A more in depth description of the application failure</dd>
503
+
504
+ </dl>
505
+
506
+
507
+
508
+
509
+
510
+
511
+
512
+
513
+ <hr />
514
+
515
+ <a name="getCurrentPage"> </a>
516
+ <div class="fixedFont">
517
+
518
+ <span class="light">{<a href="../symbols/rio.Page.html#constructor">rio.Page</a>}</span>
519
+ <b>getCurrentPage</b>()
520
+
521
+ </div>
522
+ <div class="description">
523
+ Returns the instance of the currently loaded page in the app.
524
+
525
+
526
+ </div>
527
+
528
+
529
+
530
+
531
+
532
+
533
+
534
+
535
+ <dl class="detailList">
536
+ <dt class="heading">Returns:</dt>
537
+
538
+ <dd>the instance of the currently loaded page</dd>
539
+
540
+ </dl>
541
+
542
+
543
+
544
+
545
+ <hr />
546
+
547
+ <a name=".include"> </a>
548
+ <div class="fixedFont">&lt;static&gt;
549
+
550
+
551
+ <span class="light">rio.Application.</span><b>include</b>(fileName)
552
+
553
+ </div>
554
+ <div class="description">
555
+ Alias of rio.Application.require
556
+
557
+
558
+ </div>
559
+
560
+
561
+
562
+
563
+ <dl class="detailList">
564
+ <dt class="heading">Parameters:</dt>
565
+
566
+ <dt>
567
+ <span class="light fixedFont">{String}</span> <b>fileName</b>
568
+
569
+ </dt>
570
+ <dd>The path to the javascript file that will be loaded.</dd>
571
+
572
+ </dl>
573
+
574
+
575
+
576
+
577
+
578
+
579
+
580
+
581
+ <hr />
582
+
583
+ <a name=".includeCss"> </a>
584
+ <div class="fixedFont">&lt;static&gt;
585
+
586
+
587
+ <span class="light">rio.Application.</span><b>includeCss</b>(toInclude)
588
+
589
+ </div>
590
+ <div class="description">
591
+
592
+
593
+
594
+ </div>
595
+
596
+
597
+
598
+
599
+ <dl class="detailList">
600
+ <dt class="heading">Parameters:</dt>
601
+
602
+ <dt>
603
+ <b>toInclude</b>
604
+
605
+ </dt>
606
+ <dd></dd>
607
+
608
+ </dl>
609
+
610
+
611
+
612
+
613
+
614
+
615
+
616
+
617
+ <hr />
618
+
619
+ <a name="reboot"> </a>
620
+ <div class="fixedFont">
621
+
622
+
623
+ <b>reboot</b>()
624
+
625
+ </div>
626
+ <div class="description">
627
+ Reboots your application. Rebooting your application will reset and reload the
628
+ current page.
629
+
630
+
631
+ </div>
632
+
633
+
634
+
635
+
636
+
637
+
638
+
639
+
640
+
641
+
642
+
643
+ <hr />
644
+
645
+ <a name="refresh"> </a>
646
+ <div class="fixedFont">
647
+
648
+
649
+ <b>refresh</b>()
650
+
651
+ </div>
652
+ <div class="description">
653
+ Refreshes the browser. This will reload your app's source code
654
+ and reinitialize your app. This is more severe than rebooting.
655
+
656
+
657
+ </div>
658
+
659
+
660
+
661
+
662
+
663
+
664
+
665
+
666
+
667
+
668
+
669
+ <hr />
670
+
671
+ <a name=".require"> </a>
672
+ <div class="fixedFont">&lt;static&gt;
673
+
674
+
675
+ <span class="light">rio.Application.</span><b>require</b>(fileName)
676
+
677
+ </div>
678
+ <div class="description">
679
+ Alias of rio.Application.require
680
+
681
+
682
+ </div>
683
+
684
+
685
+
686
+
687
+ <dl class="detailList">
688
+ <dt class="heading">Parameters:</dt>
689
+
690
+ <dt>
691
+ <span class="light fixedFont">{String}</span> <b>fileName</b>
692
+
693
+ </dt>
694
+ <dd>The path to the javascript file that will be loaded.</dd>
695
+
696
+ </dl>
697
+
698
+
699
+
700
+
701
+
702
+
703
+
704
+
705
+ <hr />
706
+
707
+ <a name=".route"> </a>
708
+ <div class="fixedFont">&lt;static&gt;
709
+
710
+
711
+ <span class="light">rio.Application.</span><b>route</b>(path, target)
712
+
713
+ </div>
714
+ <div class="description">
715
+ Specifies the lowest priority route for an application class.
716
+
717
+ <b>You are better off specifying routes when creating an
718
+ application with a 'routes' parameter.</b>
719
+
720
+
721
+ </div>
722
+
723
+
724
+
725
+
726
+ <dl class="detailList">
727
+ <dt class="heading">Parameters:</dt>
728
+
729
+ <dt>
730
+ <b>path</b>
731
+
732
+ </dt>
733
+ <dd></dd>
734
+
735
+ <dt>
736
+ <b>target</b>
737
+
738
+ </dt>
739
+ <dd></dd>
740
+
741
+ </dl>
742
+
743
+
744
+
745
+
746
+
747
+
748
+
749
+
750
+ <hr />
751
+
752
+ <a name="toString"> </a>
753
+ <div class="fixedFont">
754
+
755
+
756
+ <b>toString</b>()
757
+
758
+ </div>
759
+ <div class="description">
760
+
761
+
762
+
763
+ </div>
764
+
765
+
766
+
767
+
768
+
769
+
770
+
771
+
772
+
773
+
774
+
775
+ <hr />
776
+
777
+ <a name=".toString"> </a>
778
+ <div class="fixedFont">&lt;static&gt;
779
+
780
+
781
+ <span class="light">rio.Application.</span><b>toString</b>()
782
+
783
+ </div>
784
+ <div class="description">
785
+
786
+
787
+
788
+ </div>
789
+
790
+
791
+
792
+
793
+
794
+
795
+
796
+
797
+
798
+
799
+
800
+ <hr />
801
+
802
+ <a name="unload"> </a>
803
+ <div class="fixedFont">
804
+
805
+
806
+ <b>unload</b>()
807
+
808
+ </div>
809
+ <div class="description">
810
+ This method is called just before the page is unloaded. This can be triggered by
811
+ following a link, closing the window, using the back button, etc.
812
+
813
+ <i>This method is meant to be overriden</i>
814
+
815
+
816
+ </div>
817
+
818
+
819
+
820
+
821
+
822
+
823
+
824
+
825
+
826
+
827
+
828
+
829
+
830
+
831
+
832
+ <hr />
833
+ </div>
834
+
835
+ <!-- ============================== footer ================================= -->
836
+ <div class="fineprint" style="clear:both">
837
+
838
+ Documentation generated by <a href="http://www.jsdoctoolkit.org/" target="_blank">JsDoc Toolkit</a> 2.0.2 on Fri Jan 29 2010 14:20:38 GMT-0600 (CST)
839
+ </div>
840
+ </body>
841
+ </html>