lpmp 1.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 (636) hide show
  1. data/LICENSE +3 -0
  2. data/README +3 -0
  3. data/Rakefile +45 -0
  4. data/bin/lpmp +107 -0
  5. data/config/help.yaml +1 -0
  6. data/config/hosts.yaml +2 -0
  7. data/config/log.yaml +1 -0
  8. data/config/memcache.yaml +5 -0
  9. data/erb/index.erb +62 -0
  10. data/lib/bg_pull/caichen.rb +199 -0
  11. data/lib/bg_pull/lpmp.rb +45 -0
  12. data/lib/exception.rb +8 -0
  13. data/lib/lpmp.rb +53 -0
  14. data/lib/pull/lpmp.rb +355 -0
  15. data/lib/remote_lmp.rb +129 -0
  16. data/lib/utils.rb +14 -0
  17. data/lib/xq_push/caichen.rb +174 -0
  18. data/lib/xq_push/lpmp.rb +96 -0
  19. data/log/lpmp1st.log +1 -0
  20. data/public/css/ext-portal.css +40 -0
  21. data/public/css/lpmp.css +6 -0
  22. data/public/designer/caichen.epj +1 -0
  23. data/public/designer/hostmonitor.epj +1 -0
  24. data/public/ext-3.0.0/INCLUDE_ORDER.txt +35 -0
  25. data/public/ext-3.0.0/adapter/ext/ext-base-debug.js +3589 -0
  26. data/public/ext-3.0.0/adapter/ext/ext-base.js +7 -0
  27. data/public/ext-3.0.0/adapter/jquery/ext-jquery-adapter-debug.js +2292 -0
  28. data/public/ext-3.0.0/adapter/jquery/ext-jquery-adapter.js +7 -0
  29. data/public/ext-3.0.0/adapter/prototype/ext-prototype-adapter-debug.js +2346 -0
  30. data/public/ext-3.0.0/adapter/prototype/ext-prototype-adapter.js +7 -0
  31. data/public/ext-3.0.0/adapter/yui/ext-yui-adapter-debug.js +2136 -0
  32. data/public/ext-3.0.0/adapter/yui/ext-yui-adapter.js +7 -0
  33. data/public/ext-3.0.0/ext-all-debug.js +65610 -0
  34. data/public/ext-3.0.0/ext-all.js +11 -0
  35. data/public/ext-3.0.0/license.txt +42 -0
  36. data/public/ext-3.0.0/pkgs/cmp-foundation-debug.js +11287 -0
  37. data/public/ext-3.0.0/pkgs/cmp-foundation.js +7 -0
  38. data/public/ext-3.0.0/pkgs/data-foundation-debug.js +3853 -0
  39. data/public/ext-3.0.0/pkgs/data-foundation.js +7 -0
  40. data/public/ext-3.0.0/pkgs/data-grouping-debug.js +139 -0
  41. data/public/ext-3.0.0/pkgs/data-grouping.js +7 -0
  42. data/public/ext-3.0.0/pkgs/data-json-debug.js +582 -0
  43. data/public/ext-3.0.0/pkgs/data-json.js +7 -0
  44. data/public/ext-3.0.0/pkgs/data-list-views-debug.js +1278 -0
  45. data/public/ext-3.0.0/pkgs/data-list-views.js +7 -0
  46. data/public/ext-3.0.0/pkgs/data-xml-debug.js +234 -0
  47. data/public/ext-3.0.0/pkgs/data-xml.js +7 -0
  48. data/public/ext-3.0.0/pkgs/direct-debug.js +1121 -0
  49. data/public/ext-3.0.0/pkgs/direct.js +7 -0
  50. data/public/ext-3.0.0/pkgs/ext-dd-debug.js +4567 -0
  51. data/public/ext-3.0.0/pkgs/ext-dd.js +7 -0
  52. data/public/ext-3.0.0/pkgs/ext-foundation-debug.js +13417 -0
  53. data/public/ext-3.0.0/pkgs/ext-foundation.js +7 -0
  54. data/public/ext-3.0.0/pkgs/pkg-buttons-debug.js +1060 -0
  55. data/public/ext-3.0.0/pkgs/pkg-buttons.js +7 -0
  56. data/public/ext-3.0.0/pkgs/pkg-charts-debug.js +1621 -0
  57. data/public/ext-3.0.0/pkgs/pkg-charts.js +10 -0
  58. data/public/ext-3.0.0/pkgs/pkg-forms-debug.js +7661 -0
  59. data/public/ext-3.0.0/pkgs/pkg-forms.js +7 -0
  60. data/public/ext-3.0.0/pkgs/pkg-grid-editor-debug.js +560 -0
  61. data/public/ext-3.0.0/pkgs/pkg-grid-editor.js +7 -0
  62. data/public/ext-3.0.0/pkgs/pkg-grid-foundation-debug.js +4765 -0
  63. data/public/ext-3.0.0/pkgs/pkg-grid-foundation.js +7 -0
  64. data/public/ext-3.0.0/pkgs/pkg-grid-grouping-debug.js +517 -0
  65. data/public/ext-3.0.0/pkgs/pkg-grid-grouping.js +7 -0
  66. data/public/ext-3.0.0/pkgs/pkg-grid-property-debug.js +370 -0
  67. data/public/ext-3.0.0/pkgs/pkg-grid-property.js +7 -0
  68. data/public/ext-3.0.0/pkgs/pkg-history-debug.js +203 -0
  69. data/public/ext-3.0.0/pkgs/pkg-history.js +7 -0
  70. data/public/ext-3.0.0/pkgs/pkg-menu-debug.js +1628 -0
  71. data/public/ext-3.0.0/pkgs/pkg-menu.js +7 -0
  72. data/public/ext-3.0.0/pkgs/pkg-tabs-debug.js +1100 -0
  73. data/public/ext-3.0.0/pkgs/pkg-tabs.js +7 -0
  74. data/public/ext-3.0.0/pkgs/pkg-tips-debug.js +994 -0
  75. data/public/ext-3.0.0/pkgs/pkg-tips.js +7 -0
  76. data/public/ext-3.0.0/pkgs/pkg-toolbars-debug.js +1374 -0
  77. data/public/ext-3.0.0/pkgs/pkg-toolbars.js +7 -0
  78. data/public/ext-3.0.0/pkgs/pkg-tree-debug.js +4522 -0
  79. data/public/ext-3.0.0/pkgs/pkg-tree.js +7 -0
  80. data/public/ext-3.0.0/pkgs/resizable-debug.js +760 -0
  81. data/public/ext-3.0.0/pkgs/resizable.js +7 -0
  82. data/public/ext-3.0.0/pkgs/state-debug.js +274 -0
  83. data/public/ext-3.0.0/pkgs/state.js +7 -0
  84. data/public/ext-3.0.0/pkgs/window-debug.js +1888 -0
  85. data/public/ext-3.0.0/pkgs/window.js +7 -0
  86. data/public/ext-3.0.0/resources/charts.swf +0 -0
  87. data/public/ext-3.0.0/resources/css/README.txt +3 -0
  88. data/public/ext-3.0.0/resources/css/ext-all-notheme.css +5345 -0
  89. data/public/ext-3.0.0/resources/css/ext-all.css +6990 -0
  90. data/public/ext-3.0.0/resources/css/reset-min.css +7 -0
  91. data/public/ext-3.0.0/resources/css/structure/borders.css +54 -0
  92. data/public/ext-3.0.0/resources/css/structure/box.css +80 -0
  93. data/public/ext-3.0.0/resources/css/structure/button.css +440 -0
  94. data/public/ext-3.0.0/resources/css/structure/combo.css +45 -0
  95. data/public/ext-3.0.0/resources/css/structure/core.css +326 -0
  96. data/public/ext-3.0.0/resources/css/structure/date-picker.css +265 -0
  97. data/public/ext-3.0.0/resources/css/structure/dd.css +61 -0
  98. data/public/ext-3.0.0/resources/css/structure/debug.css +26 -0
  99. data/public/ext-3.0.0/resources/css/structure/dialog.css +62 -0
  100. data/public/ext-3.0.0/resources/css/structure/editor.css +92 -0
  101. data/public/ext-3.0.0/resources/css/structure/form.css +562 -0
  102. data/public/ext-3.0.0/resources/css/structure/grid.css +552 -0
  103. data/public/ext-3.0.0/resources/css/structure/layout.css +296 -0
  104. data/public/ext-3.0.0/resources/css/structure/list-view.css +85 -0
  105. data/public/ext-3.0.0/resources/css/structure/menu.css +205 -0
  106. data/public/ext-3.0.0/resources/css/structure/panel-reset.css +130 -0
  107. data/public/ext-3.0.0/resources/css/structure/panel.css +468 -0
  108. data/public/ext-3.0.0/resources/css/structure/progress.css +42 -0
  109. data/public/ext-3.0.0/resources/css/structure/qtips.css +153 -0
  110. data/public/ext-3.0.0/resources/css/structure/reset.css +7 -0
  111. data/public/ext-3.0.0/resources/css/structure/resizable.css +149 -0
  112. data/public/ext-3.0.0/resources/css/structure/slider.css +103 -0
  113. data/public/ext-3.0.0/resources/css/structure/tabs.css +372 -0
  114. data/public/ext-3.0.0/resources/css/structure/toolbar.css +259 -0
  115. data/public/ext-3.0.0/resources/css/structure/tree.css +203 -0
  116. data/public/ext-3.0.0/resources/css/structure/window.css +222 -0
  117. data/public/ext-3.0.0/resources/css/visual/borders.css +25 -0
  118. data/public/ext-3.0.0/resources/css/visual/box.css +74 -0
  119. data/public/ext-3.0.0/resources/css/visual/button.css +94 -0
  120. data/public/ext-3.0.0/resources/css/visual/combo.css +43 -0
  121. data/public/ext-3.0.0/resources/css/visual/core.css +76 -0
  122. data/public/ext-3.0.0/resources/css/visual/date-picker.css +143 -0
  123. data/public/ext-3.0.0/resources/css/visual/dd.css +29 -0
  124. data/public/ext-3.0.0/resources/css/visual/debug.css +24 -0
  125. data/public/ext-3.0.0/resources/css/visual/dialog.css +34 -0
  126. data/public/ext-3.0.0/resources/css/visual/editor.css +13 -0
  127. data/public/ext-3.0.0/resources/css/visual/form.css +117 -0
  128. data/public/ext-3.0.0/resources/css/visual/grid.css +272 -0
  129. data/public/ext-3.0.0/resources/css/visual/layout.css +53 -0
  130. data/public/ext-3.0.0/resources/css/visual/list-view.css +37 -0
  131. data/public/ext-3.0.0/resources/css/visual/menu.css +82 -0
  132. data/public/ext-3.0.0/resources/css/visual/panel.css +87 -0
  133. data/public/ext-3.0.0/resources/css/visual/progress.css +32 -0
  134. data/public/ext-3.0.0/resources/css/visual/qtips.css +44 -0
  135. data/public/ext-3.0.0/resources/css/visual/resizable.css +43 -0
  136. data/public/ext-3.0.0/resources/css/visual/slider.css +21 -0
  137. data/public/ext-3.0.0/resources/css/visual/tabs.css +119 -0
  138. data/public/ext-3.0.0/resources/css/visual/toolbar.css +103 -0
  139. data/public/ext-3.0.0/resources/css/visual/tree.css +157 -0
  140. data/public/ext-3.0.0/resources/css/visual/window.css +86 -0
  141. data/public/ext-3.0.0/resources/css/xtheme-blue.css +1652 -0
  142. data/public/ext-3.0.0/resources/expressinstall.swf +0 -0
  143. data/public/ext-3.0.0/resources/images/default/box/corners-blue.gif +0 -0
  144. data/public/ext-3.0.0/resources/images/default/box/corners.gif +0 -0
  145. data/public/ext-3.0.0/resources/images/default/box/l-blue.gif +0 -0
  146. data/public/ext-3.0.0/resources/images/default/box/l.gif +0 -0
  147. data/public/ext-3.0.0/resources/images/default/box/r-blue.gif +0 -0
  148. data/public/ext-3.0.0/resources/images/default/box/r.gif +0 -0
  149. data/public/ext-3.0.0/resources/images/default/box/tb-blue.gif +0 -0
  150. data/public/ext-3.0.0/resources/images/default/box/tb.gif +0 -0
  151. data/public/ext-3.0.0/resources/images/default/button/arrow.gif +0 -0
  152. data/public/ext-3.0.0/resources/images/default/button/btn.gif +0 -0
  153. data/public/ext-3.0.0/resources/images/default/button/group-cs.gif +0 -0
  154. data/public/ext-3.0.0/resources/images/default/button/group-lr.gif +0 -0
  155. data/public/ext-3.0.0/resources/images/default/button/group-tb.gif +0 -0
  156. data/public/ext-3.0.0/resources/images/default/button/s-arrow-b-noline.gif +0 -0
  157. data/public/ext-3.0.0/resources/images/default/button/s-arrow-b.gif +0 -0
  158. data/public/ext-3.0.0/resources/images/default/button/s-arrow-bo.gif +0 -0
  159. data/public/ext-3.0.0/resources/images/default/button/s-arrow-noline.gif +0 -0
  160. data/public/ext-3.0.0/resources/images/default/button/s-arrow-o.gif +0 -0
  161. data/public/ext-3.0.0/resources/images/default/button/s-arrow.gif +0 -0
  162. data/public/ext-3.0.0/resources/images/default/dd/drop-add.gif +0 -0
  163. data/public/ext-3.0.0/resources/images/default/dd/drop-no.gif +0 -0
  164. data/public/ext-3.0.0/resources/images/default/dd/drop-yes.gif +0 -0
  165. data/public/ext-3.0.0/resources/images/default/editor/tb-sprite.gif +0 -0
  166. data/public/ext-3.0.0/resources/images/default/form/checkbox.gif +0 -0
  167. data/public/ext-3.0.0/resources/images/default/form/clear-trigger.gif +0 -0
  168. data/public/ext-3.0.0/resources/images/default/form/clear-trigger.psd +0 -0
  169. data/public/ext-3.0.0/resources/images/default/form/date-trigger.gif +0 -0
  170. data/public/ext-3.0.0/resources/images/default/form/date-trigger.psd +0 -0
  171. data/public/ext-3.0.0/resources/images/default/form/error-tip-corners.gif +0 -0
  172. data/public/ext-3.0.0/resources/images/default/form/exclamation.gif +0 -0
  173. data/public/ext-3.0.0/resources/images/default/form/radio.gif +0 -0
  174. data/public/ext-3.0.0/resources/images/default/form/search-trigger.gif +0 -0
  175. data/public/ext-3.0.0/resources/images/default/form/search-trigger.psd +0 -0
  176. data/public/ext-3.0.0/resources/images/default/form/text-bg.gif +0 -0
  177. data/public/ext-3.0.0/resources/images/default/form/trigger-tpl.gif +0 -0
  178. data/public/ext-3.0.0/resources/images/default/form/trigger.gif +0 -0
  179. data/public/ext-3.0.0/resources/images/default/form/trigger.psd +0 -0
  180. data/public/ext-3.0.0/resources/images/default/gradient-bg.gif +0 -0
  181. data/public/ext-3.0.0/resources/images/default/grid/arrow-left-white.gif +0 -0
  182. data/public/ext-3.0.0/resources/images/default/grid/arrow-right-white.gif +0 -0
  183. data/public/ext-3.0.0/resources/images/default/grid/col-move-bottom.gif +0 -0
  184. data/public/ext-3.0.0/resources/images/default/grid/col-move-top.gif +0 -0
  185. data/public/ext-3.0.0/resources/images/default/grid/columns.gif +0 -0
  186. data/public/ext-3.0.0/resources/images/default/grid/dirty.gif +0 -0
  187. data/public/ext-3.0.0/resources/images/default/grid/done.gif +0 -0
  188. data/public/ext-3.0.0/resources/images/default/grid/drop-no.gif +0 -0
  189. data/public/ext-3.0.0/resources/images/default/grid/drop-yes.gif +0 -0
  190. data/public/ext-3.0.0/resources/images/default/grid/footer-bg.gif +0 -0
  191. data/public/ext-3.0.0/resources/images/default/grid/grid-blue-hd.gif +0 -0
  192. data/public/ext-3.0.0/resources/images/default/grid/grid-blue-split.gif +0 -0
  193. data/public/ext-3.0.0/resources/images/default/grid/grid-hrow.gif +0 -0
  194. data/public/ext-3.0.0/resources/images/default/grid/grid-loading.gif +0 -0
  195. data/public/ext-3.0.0/resources/images/default/grid/grid-split.gif +0 -0
  196. data/public/ext-3.0.0/resources/images/default/grid/grid-vista-hd.gif +0 -0
  197. data/public/ext-3.0.0/resources/images/default/grid/grid3-hd-btn.gif +0 -0
  198. data/public/ext-3.0.0/resources/images/default/grid/grid3-hrow-over.gif +0 -0
  199. data/public/ext-3.0.0/resources/images/default/grid/grid3-hrow.gif +0 -0
  200. data/public/ext-3.0.0/resources/images/default/grid/grid3-special-col-bg.gif +0 -0
  201. data/public/ext-3.0.0/resources/images/default/grid/grid3-special-col-sel-bg.gif +0 -0
  202. data/public/ext-3.0.0/resources/images/default/grid/group-by.gif +0 -0
  203. data/public/ext-3.0.0/resources/images/default/grid/group-collapse.gif +0 -0
  204. data/public/ext-3.0.0/resources/images/default/grid/group-expand-sprite.gif +0 -0
  205. data/public/ext-3.0.0/resources/images/default/grid/group-expand.gif +0 -0
  206. data/public/ext-3.0.0/resources/images/default/grid/hd-pop.gif +0 -0
  207. data/public/ext-3.0.0/resources/images/default/grid/hmenu-asc.gif +0 -0
  208. data/public/ext-3.0.0/resources/images/default/grid/hmenu-desc.gif +0 -0
  209. data/public/ext-3.0.0/resources/images/default/grid/hmenu-lock.gif +0 -0
  210. data/public/ext-3.0.0/resources/images/default/grid/hmenu-lock.png +0 -0
  211. data/public/ext-3.0.0/resources/images/default/grid/hmenu-unlock.gif +0 -0
  212. data/public/ext-3.0.0/resources/images/default/grid/hmenu-unlock.png +0 -0
  213. data/public/ext-3.0.0/resources/images/default/grid/invalid_line.gif +0 -0
  214. data/public/ext-3.0.0/resources/images/default/grid/loading.gif +0 -0
  215. data/public/ext-3.0.0/resources/images/default/grid/mso-hd.gif +0 -0
  216. data/public/ext-3.0.0/resources/images/default/grid/nowait.gif +0 -0
  217. data/public/ext-3.0.0/resources/images/default/grid/page-first-disabled.gif +0 -0
  218. data/public/ext-3.0.0/resources/images/default/grid/page-first.gif +0 -0
  219. data/public/ext-3.0.0/resources/images/default/grid/page-last-disabled.gif +0 -0
  220. data/public/ext-3.0.0/resources/images/default/grid/page-last.gif +0 -0
  221. data/public/ext-3.0.0/resources/images/default/grid/page-next-disabled.gif +0 -0
  222. data/public/ext-3.0.0/resources/images/default/grid/page-next.gif +0 -0
  223. data/public/ext-3.0.0/resources/images/default/grid/page-prev-disabled.gif +0 -0
  224. data/public/ext-3.0.0/resources/images/default/grid/page-prev.gif +0 -0
  225. data/public/ext-3.0.0/resources/images/default/grid/pick-button.gif +0 -0
  226. data/public/ext-3.0.0/resources/images/default/grid/refresh.gif +0 -0
  227. data/public/ext-3.0.0/resources/images/default/grid/row-check-sprite.gif +0 -0
  228. data/public/ext-3.0.0/resources/images/default/grid/row-expand-sprite.gif +0 -0
  229. data/public/ext-3.0.0/resources/images/default/grid/row-over.gif +0 -0
  230. data/public/ext-3.0.0/resources/images/default/grid/row-sel.gif +0 -0
  231. data/public/ext-3.0.0/resources/images/default/grid/sort-hd.gif +0 -0
  232. data/public/ext-3.0.0/resources/images/default/grid/sort_asc.gif +0 -0
  233. data/public/ext-3.0.0/resources/images/default/grid/sort_desc.gif +0 -0
  234. data/public/ext-3.0.0/resources/images/default/grid/wait.gif +0 -0
  235. data/public/ext-3.0.0/resources/images/default/layout/collapse.gif +0 -0
  236. data/public/ext-3.0.0/resources/images/default/layout/expand.gif +0 -0
  237. data/public/ext-3.0.0/resources/images/default/layout/gradient-bg.gif +0 -0
  238. data/public/ext-3.0.0/resources/images/default/layout/mini-bottom.gif +0 -0
  239. data/public/ext-3.0.0/resources/images/default/layout/mini-left.gif +0 -0
  240. data/public/ext-3.0.0/resources/images/default/layout/mini-right.gif +0 -0
  241. data/public/ext-3.0.0/resources/images/default/layout/mini-top.gif +0 -0
  242. data/public/ext-3.0.0/resources/images/default/layout/ns-collapse.gif +0 -0
  243. data/public/ext-3.0.0/resources/images/default/layout/ns-expand.gif +0 -0
  244. data/public/ext-3.0.0/resources/images/default/layout/panel-close.gif +0 -0
  245. data/public/ext-3.0.0/resources/images/default/layout/panel-title-bg.gif +0 -0
  246. data/public/ext-3.0.0/resources/images/default/layout/panel-title-light-bg.gif +0 -0
  247. data/public/ext-3.0.0/resources/images/default/layout/stick.gif +0 -0
  248. data/public/ext-3.0.0/resources/images/default/layout/stuck.gif +0 -0
  249. data/public/ext-3.0.0/resources/images/default/layout/tab-close-on.gif +0 -0
  250. data/public/ext-3.0.0/resources/images/default/layout/tab-close.gif +0 -0
  251. data/public/ext-3.0.0/resources/images/default/menu/checked.gif +0 -0
  252. data/public/ext-3.0.0/resources/images/default/menu/group-checked.gif +0 -0
  253. data/public/ext-3.0.0/resources/images/default/menu/item-over.gif +0 -0
  254. data/public/ext-3.0.0/resources/images/default/menu/menu-parent.gif +0 -0
  255. data/public/ext-3.0.0/resources/images/default/menu/menu.gif +0 -0
  256. data/public/ext-3.0.0/resources/images/default/menu/unchecked.gif +0 -0
  257. data/public/ext-3.0.0/resources/images/default/panel/corners-sprite.gif +0 -0
  258. data/public/ext-3.0.0/resources/images/default/panel/left-right.gif +0 -0
  259. data/public/ext-3.0.0/resources/images/default/panel/light-hd.gif +0 -0
  260. data/public/ext-3.0.0/resources/images/default/panel/tool-sprite-tpl.gif +0 -0
  261. data/public/ext-3.0.0/resources/images/default/panel/tool-sprites.gif +0 -0
  262. data/public/ext-3.0.0/resources/images/default/panel/tools-sprites-trans.gif +0 -0
  263. data/public/ext-3.0.0/resources/images/default/panel/top-bottom.gif +0 -0
  264. data/public/ext-3.0.0/resources/images/default/panel/top-bottom.png +0 -0
  265. data/public/ext-3.0.0/resources/images/default/panel/white-corners-sprite.gif +0 -0
  266. data/public/ext-3.0.0/resources/images/default/panel/white-left-right.gif +0 -0
  267. data/public/ext-3.0.0/resources/images/default/panel/white-top-bottom.gif +0 -0
  268. data/public/ext-3.0.0/resources/images/default/progress/progress-bg.gif +0 -0
  269. data/public/ext-3.0.0/resources/images/default/qtip/bg.gif +0 -0
  270. data/public/ext-3.0.0/resources/images/default/qtip/close.gif +0 -0
  271. data/public/ext-3.0.0/resources/images/default/qtip/tip-anchor-sprite.gif +0 -0
  272. data/public/ext-3.0.0/resources/images/default/qtip/tip-sprite.gif +0 -0
  273. data/public/ext-3.0.0/resources/images/default/s.gif +0 -0
  274. data/public/ext-3.0.0/resources/images/default/shadow-c.png +0 -0
  275. data/public/ext-3.0.0/resources/images/default/shadow-lr.png +0 -0
  276. data/public/ext-3.0.0/resources/images/default/shadow.png +0 -0
  277. data/public/ext-3.0.0/resources/images/default/shared/blue-loading.gif +0 -0
  278. data/public/ext-3.0.0/resources/images/default/shared/calendar.gif +0 -0
  279. data/public/ext-3.0.0/resources/images/default/shared/glass-bg.gif +0 -0
  280. data/public/ext-3.0.0/resources/images/default/shared/hd-sprite.gif +0 -0
  281. data/public/ext-3.0.0/resources/images/default/shared/large-loading.gif +0 -0
  282. data/public/ext-3.0.0/resources/images/default/shared/left-btn.gif +0 -0
  283. data/public/ext-3.0.0/resources/images/default/shared/loading-balls.gif +0 -0
  284. data/public/ext-3.0.0/resources/images/default/shared/right-btn.gif +0 -0
  285. data/public/ext-3.0.0/resources/images/default/shared/warning.gif +0 -0
  286. data/public/ext-3.0.0/resources/images/default/sizer/e-handle-dark.gif +0 -0
  287. data/public/ext-3.0.0/resources/images/default/sizer/e-handle.gif +0 -0
  288. data/public/ext-3.0.0/resources/images/default/sizer/ne-handle-dark.gif +0 -0
  289. data/public/ext-3.0.0/resources/images/default/sizer/ne-handle.gif +0 -0
  290. data/public/ext-3.0.0/resources/images/default/sizer/nw-handle-dark.gif +0 -0
  291. data/public/ext-3.0.0/resources/images/default/sizer/nw-handle.gif +0 -0
  292. data/public/ext-3.0.0/resources/images/default/sizer/s-handle-dark.gif +0 -0
  293. data/public/ext-3.0.0/resources/images/default/sizer/s-handle.gif +0 -0
  294. data/public/ext-3.0.0/resources/images/default/sizer/se-handle-dark.gif +0 -0
  295. data/public/ext-3.0.0/resources/images/default/sizer/se-handle.gif +0 -0
  296. data/public/ext-3.0.0/resources/images/default/sizer/square.gif +0 -0
  297. data/public/ext-3.0.0/resources/images/default/sizer/sw-handle-dark.gif +0 -0
  298. data/public/ext-3.0.0/resources/images/default/sizer/sw-handle.gif +0 -0
  299. data/public/ext-3.0.0/resources/images/default/slider/slider-bg.png +0 -0
  300. data/public/ext-3.0.0/resources/images/default/slider/slider-thumb.png +0 -0
  301. data/public/ext-3.0.0/resources/images/default/slider/slider-v-bg.png +0 -0
  302. data/public/ext-3.0.0/resources/images/default/slider/slider-v-thumb.png +0 -0
  303. data/public/ext-3.0.0/resources/images/default/tabs/scroll-left.gif +0 -0
  304. data/public/ext-3.0.0/resources/images/default/tabs/scroll-right.gif +0 -0
  305. data/public/ext-3.0.0/resources/images/default/tabs/scroller-bg.gif +0 -0
  306. data/public/ext-3.0.0/resources/images/default/tabs/tab-btm-inactive-left-bg.gif +0 -0
  307. data/public/ext-3.0.0/resources/images/default/tabs/tab-btm-inactive-right-bg.gif +0 -0
  308. data/public/ext-3.0.0/resources/images/default/tabs/tab-btm-left-bg.gif +0 -0
  309. data/public/ext-3.0.0/resources/images/default/tabs/tab-btm-right-bg.gif +0 -0
  310. data/public/ext-3.0.0/resources/images/default/tabs/tab-close.gif +0 -0
  311. data/public/ext-3.0.0/resources/images/default/tabs/tab-strip-bg.gif +0 -0
  312. data/public/ext-3.0.0/resources/images/default/tabs/tab-strip-bg.png +0 -0
  313. data/public/ext-3.0.0/resources/images/default/tabs/tab-strip-btm-bg.gif +0 -0
  314. data/public/ext-3.0.0/resources/images/default/tabs/tabs-sprite.gif +0 -0
  315. data/public/ext-3.0.0/resources/images/default/toolbar/bg.gif +0 -0
  316. data/public/ext-3.0.0/resources/images/default/toolbar/btn-arrow-light.gif +0 -0
  317. data/public/ext-3.0.0/resources/images/default/toolbar/btn-arrow.gif +0 -0
  318. data/public/ext-3.0.0/resources/images/default/toolbar/btn-over-bg.gif +0 -0
  319. data/public/ext-3.0.0/resources/images/default/toolbar/gray-bg.gif +0 -0
  320. data/public/ext-3.0.0/resources/images/default/toolbar/more.gif +0 -0
  321. data/public/ext-3.0.0/resources/images/default/toolbar/tb-bg.gif +0 -0
  322. data/public/ext-3.0.0/resources/images/default/toolbar/tb-btn-sprite.gif +0 -0
  323. data/public/ext-3.0.0/resources/images/default/toolbar/tb-xl-btn-sprite.gif +0 -0
  324. data/public/ext-3.0.0/resources/images/default/toolbar/tb-xl-sep.gif +0 -0
  325. data/public/ext-3.0.0/resources/images/default/tree/arrows.gif +0 -0
  326. data/public/ext-3.0.0/resources/images/default/tree/drop-add.gif +0 -0
  327. data/public/ext-3.0.0/resources/images/default/tree/drop-between.gif +0 -0
  328. data/public/ext-3.0.0/resources/images/default/tree/drop-no.gif +0 -0
  329. data/public/ext-3.0.0/resources/images/default/tree/drop-over.gif +0 -0
  330. data/public/ext-3.0.0/resources/images/default/tree/drop-under.gif +0 -0
  331. data/public/ext-3.0.0/resources/images/default/tree/drop-yes.gif +0 -0
  332. data/public/ext-3.0.0/resources/images/default/tree/elbow-end-minus-nl.gif +0 -0
  333. data/public/ext-3.0.0/resources/images/default/tree/elbow-end-minus.gif +0 -0
  334. data/public/ext-3.0.0/resources/images/default/tree/elbow-end-plus-nl.gif +0 -0
  335. data/public/ext-3.0.0/resources/images/default/tree/elbow-end-plus.gif +0 -0
  336. data/public/ext-3.0.0/resources/images/default/tree/elbow-end.gif +0 -0
  337. data/public/ext-3.0.0/resources/images/default/tree/elbow-line.gif +0 -0
  338. data/public/ext-3.0.0/resources/images/default/tree/elbow-minus-nl.gif +0 -0
  339. data/public/ext-3.0.0/resources/images/default/tree/elbow-minus.gif +0 -0
  340. data/public/ext-3.0.0/resources/images/default/tree/elbow-plus-nl.gif +0 -0
  341. data/public/ext-3.0.0/resources/images/default/tree/elbow-plus.gif +0 -0
  342. data/public/ext-3.0.0/resources/images/default/tree/elbow.gif +0 -0
  343. data/public/ext-3.0.0/resources/images/default/tree/folder-open.gif +0 -0
  344. data/public/ext-3.0.0/resources/images/default/tree/folder.gif +0 -0
  345. data/public/ext-3.0.0/resources/images/default/tree/leaf.gif +0 -0
  346. data/public/ext-3.0.0/resources/images/default/tree/loading.gif +0 -0
  347. data/public/ext-3.0.0/resources/images/default/tree/s.gif +0 -0
  348. data/public/ext-3.0.0/resources/images/default/window/icon-error.gif +0 -0
  349. data/public/ext-3.0.0/resources/images/default/window/icon-info.gif +0 -0
  350. data/public/ext-3.0.0/resources/images/default/window/icon-question.gif +0 -0
  351. data/public/ext-3.0.0/resources/images/default/window/icon-warning.gif +0 -0
  352. data/public/ext-3.0.0/resources/images/default/window/left-corners.png +0 -0
  353. data/public/ext-3.0.0/resources/images/default/window/left-corners.psd +0 -0
  354. data/public/ext-3.0.0/resources/images/default/window/left-right.png +0 -0
  355. data/public/ext-3.0.0/resources/images/default/window/left-right.psd +0 -0
  356. data/public/ext-3.0.0/resources/images/default/window/right-corners.png +0 -0
  357. data/public/ext-3.0.0/resources/images/default/window/right-corners.psd +0 -0
  358. data/public/ext-3.0.0/resources/images/default/window/top-bottom.png +0 -0
  359. data/public/ext-3.0.0/resources/images/default/window/top-bottom.psd +0 -0
  360. data/public/ext-3.0.0/resources/images/icon/chart.gif +0 -0
  361. data/public/ext-3.0.0/src/adapter/core/ext-base-ajax.js +371 -0
  362. data/public/ext-3.0.0/src/adapter/core/ext-base-anim-extra.js +301 -0
  363. data/public/ext-3.0.0/src/adapter/core/ext-base-anim.js +477 -0
  364. data/public/ext-3.0.0/src/adapter/core/ext-base-begin.js +18 -0
  365. data/public/ext-3.0.0/src/adapter/core/ext-base-dom.js +157 -0
  366. data/public/ext-3.0.0/src/adapter/core/ext-base-end.js +21 -0
  367. data/public/ext-3.0.0/src/adapter/core/ext-base-event.js +453 -0
  368. data/public/ext-3.0.0/src/adapter/core/ext-base-point.js +17 -0
  369. data/public/ext-3.0.0/src/adapter/core/ext-base-region.js +81 -0
  370. data/public/ext-3.0.0/src/adapter/ext-base-dom-more.js +9 -0
  371. data/public/ext-3.0.0/src/adapter/jquery-bridge.js +546 -0
  372. data/public/ext-3.0.0/src/adapter/prototype-bridge.js +600 -0
  373. data/public/ext-3.0.0/src/adapter/yui-bridge.js +390 -0
  374. data/public/ext-3.0.0/src/core/CompositeElement.js +136 -0
  375. data/public/ext-3.0.0/src/core/CompositeElementLite-more.js +102 -0
  376. data/public/ext-3.0.0/src/core/DomHelper-more.js +179 -0
  377. data/public/ext-3.0.0/src/core/Element-more.js +192 -0
  378. data/public/ext-3.0.0/src/core/Element.alignment.js +370 -0
  379. data/public/ext-3.0.0/src/core/Element.dd.js +46 -0
  380. data/public/ext-3.0.0/src/core/Element.fx-more.js +152 -0
  381. data/public/ext-3.0.0/src/core/Element.insertion-more.js +52 -0
  382. data/public/ext-3.0.0/src/core/Element.keys.js +48 -0
  383. data/public/ext-3.0.0/src/core/Element.legacy.js +42 -0
  384. data/public/ext-3.0.0/src/core/Element.position-more.js +165 -0
  385. data/public/ext-3.0.0/src/core/Element.scroll-more.js +110 -0
  386. data/public/ext-3.0.0/src/core/Element.style-more.js +318 -0
  387. data/public/ext-3.0.0/src/core/Error.js +81 -0
  388. data/public/ext-3.0.0/src/core/EventManager-more.js +334 -0
  389. data/public/ext-3.0.0/src/core/Ext-more.js +669 -0
  390. data/public/ext-3.0.0/src/core/Template-more.js +115 -0
  391. data/public/ext-3.0.0/src/core/core/CompositeElementLite.js +197 -0
  392. data/public/ext-3.0.0/src/core/core/DomHelper.js +378 -0
  393. data/public/ext-3.0.0/src/core/core/DomQuery.js +826 -0
  394. data/public/ext-3.0.0/src/core/core/Element.fx.js +324 -0
  395. data/public/ext-3.0.0/src/core/core/Element.insertion.js +147 -0
  396. data/public/ext-3.0.0/src/core/core/Element.js +945 -0
  397. data/public/ext-3.0.0/src/core/core/Element.position.js +303 -0
  398. data/public/ext-3.0.0/src/core/core/Element.scroll.js +58 -0
  399. data/public/ext-3.0.0/src/core/core/Element.style.js +439 -0
  400. data/public/ext-3.0.0/src/core/core/Element.traversal.js +176 -0
  401. data/public/ext-3.0.0/src/core/core/EventManager.js +623 -0
  402. data/public/ext-3.0.0/src/core/core/Ext.js +922 -0
  403. data/public/ext-3.0.0/src/core/core/Fx.js +1115 -0
  404. data/public/ext-3.0.0/src/core/core/Template.js +185 -0
  405. data/public/ext-3.0.0/src/data/Api.js +210 -0
  406. data/public/ext-3.0.0/src/data/ArrayReader.js +102 -0
  407. data/public/ext-3.0.0/src/data/ArrayStore.js +70 -0
  408. data/public/ext-3.0.0/src/data/DataField.js +249 -0
  409. data/public/ext-3.0.0/src/data/DataProxy.js +427 -0
  410. data/public/ext-3.0.0/src/data/DataReader.js +160 -0
  411. data/public/ext-3.0.0/src/data/DataWriter.js +201 -0
  412. data/public/ext-3.0.0/src/data/DirectProxy.js +141 -0
  413. data/public/ext-3.0.0/src/data/DirectStore.js +52 -0
  414. data/public/ext-3.0.0/src/data/GroupingStore.js +139 -0
  415. data/public/ext-3.0.0/src/data/HttpProxy.js +276 -0
  416. data/public/ext-3.0.0/src/data/JsonReader.js +311 -0
  417. data/public/ext-3.0.0/src/data/JsonStore.js +49 -0
  418. data/public/ext-3.0.0/src/data/JsonWriter.js +77 -0
  419. data/public/ext-3.0.0/src/data/MemoryProxy.js +69 -0
  420. data/public/ext-3.0.0/src/data/Record.js +400 -0
  421. data/public/ext-3.0.0/src/data/ScriptTagProxy.js +279 -0
  422. data/public/ext-3.0.0/src/data/SortTypes.js +91 -0
  423. data/public/ext-3.0.0/src/data/Store.js +1492 -0
  424. data/public/ext-3.0.0/src/data/StoreMgr.js +72 -0
  425. data/public/ext-3.0.0/src/data/Tree.js +785 -0
  426. data/public/ext-3.0.0/src/data/XmlReader.js +128 -0
  427. data/public/ext-3.0.0/src/data/XmlStore.js +75 -0
  428. data/public/ext-3.0.0/src/data/XmlWriter.js +45 -0
  429. data/public/ext-3.0.0/src/data/core/Connection.js +575 -0
  430. data/public/ext-3.0.0/src/dd/DDCore.js +2992 -0
  431. data/public/ext-3.0.0/src/dd/DragSource.js +365 -0
  432. data/public/ext-3.0.0/src/dd/DragTracker.js +217 -0
  433. data/public/ext-3.0.0/src/dd/DragZone.js +133 -0
  434. data/public/ext-3.0.0/src/dd/DropTarget.js +115 -0
  435. data/public/ext-3.0.0/src/dd/DropZone.js +262 -0
  436. data/public/ext-3.0.0/src/dd/Registry.js +127 -0
  437. data/public/ext-3.0.0/src/dd/ScrollManager.js +201 -0
  438. data/public/ext-3.0.0/src/dd/StatusProxy.js +171 -0
  439. data/public/ext-3.0.0/src/debug.js +906 -0
  440. data/public/ext-3.0.0/src/direct/Direct.js +235 -0
  441. data/public/ext-3.0.0/src/direct/Event.js +34 -0
  442. data/public/ext-3.0.0/src/direct/JsonProvider.js +45 -0
  443. data/public/ext-3.0.0/src/direct/PollingProvider.js +151 -0
  444. data/public/ext-3.0.0/src/direct/Provider.js +110 -0
  445. data/public/ext-3.0.0/src/direct/RemotingProvider.js +373 -0
  446. data/public/ext-3.0.0/src/direct/Transaction.js +32 -0
  447. data/public/ext-3.0.0/src/locale/ext-lang-af.js +184 -0
  448. data/public/ext-3.0.0/src/locale/ext-lang-bg.js +278 -0
  449. data/public/ext-3.0.0/src/locale/ext-lang-ca.js +315 -0
  450. data/public/ext-3.0.0/src/locale/ext-lang-cs.js +293 -0
  451. data/public/ext-3.0.0/src/locale/ext-lang-da.js +296 -0
  452. data/public/ext-3.0.0/src/locale/ext-lang-de.js +326 -0
  453. data/public/ext-3.0.0/src/locale/ext-lang-el_GR.js +309 -0
  454. data/public/ext-3.0.0/src/locale/ext-lang-en.js +335 -0
  455. data/public/ext-3.0.0/src/locale/ext-lang-en_GB.js +315 -0
  456. data/public/ext-3.0.0/src/locale/ext-lang-es.js +318 -0
  457. data/public/ext-3.0.0/src/locale/ext-lang-fa.js +272 -0
  458. data/public/ext-3.0.0/src/locale/ext-lang-fi.js +302 -0
  459. data/public/ext-3.0.0/src/locale/ext-lang-fr.js +335 -0
  460. data/public/ext-3.0.0/src/locale/ext-lang-fr_CA.js +218 -0
  461. data/public/ext-3.0.0/src/locale/ext-lang-gr.js +175 -0
  462. data/public/ext-3.0.0/src/locale/ext-lang-he.js +292 -0
  463. data/public/ext-3.0.0/src/locale/ext-lang-hr.js +295 -0
  464. data/public/ext-3.0.0/src/locale/ext-lang-hu.js +296 -0
  465. data/public/ext-3.0.0/src/locale/ext-lang-id.js +302 -0
  466. data/public/ext-3.0.0/src/locale/ext-lang-it.js +295 -0
  467. data/public/ext-3.0.0/src/locale/ext-lang-ja.js +318 -0
  468. data/public/ext-3.0.0/src/locale/ext-lang-ko.js +267 -0
  469. data/public/ext-3.0.0/src/locale/ext-lang-lt.js +333 -0
  470. data/public/ext-3.0.0/src/locale/ext-lang-lv.js +176 -0
  471. data/public/ext-3.0.0/src/locale/ext-lang-mk.js +176 -0
  472. data/public/ext-3.0.0/src/locale/ext-lang-nl.js +323 -0
  473. data/public/ext-3.0.0/src/locale/ext-lang-no_NB.js +294 -0
  474. data/public/ext-3.0.0/src/locale/ext-lang-no_NN.js +294 -0
  475. data/public/ext-3.0.0/src/locale/ext-lang-pl.js +304 -0
  476. data/public/ext-3.0.0/src/locale/ext-lang-pt.js +260 -0
  477. data/public/ext-3.0.0/src/locale/ext-lang-pt_BR.js +302 -0
  478. data/public/ext-3.0.0/src/locale/ext-lang-pt_PT.js +298 -0
  479. data/public/ext-3.0.0/src/locale/ext-lang-ro.js +295 -0
  480. data/public/ext-3.0.0/src/locale/ext-lang-ru.js +319 -0
  481. data/public/ext-3.0.0/src/locale/ext-lang-sk.js +182 -0
  482. data/public/ext-3.0.0/src/locale/ext-lang-sl.js +176 -0
  483. data/public/ext-3.0.0/src/locale/ext-lang-sr.js +179 -0
  484. data/public/ext-3.0.0/src/locale/ext-lang-sr_RS.js +178 -0
  485. data/public/ext-3.0.0/src/locale/ext-lang-sv_SE.js +178 -0
  486. data/public/ext-3.0.0/src/locale/ext-lang-th.js +294 -0
  487. data/public/ext-3.0.0/src/locale/ext-lang-tr.js +306 -0
  488. data/public/ext-3.0.0/src/locale/ext-lang-ukr.js +258 -0
  489. data/public/ext-3.0.0/src/locale/ext-lang-vn.js +181 -0
  490. data/public/ext-3.0.0/src/locale/ext-lang-zh_CN.js +174 -0
  491. data/public/ext-3.0.0/src/locale/ext-lang-zh_TW.js +178 -0
  492. data/public/ext-3.0.0/src/state/CookieProvider.js +91 -0
  493. data/public/ext-3.0.0/src/state/Provider.js +127 -0
  494. data/public/ext-3.0.0/src/state/StateManager.js +69 -0
  495. data/public/ext-3.0.0/src/util/CSS.js +161 -0
  496. data/public/ext-3.0.0/src/util/ClickRepeater.js +200 -0
  497. data/public/ext-3.0.0/src/util/Cookies.js +96 -0
  498. data/public/ext-3.0.0/src/util/Date.js +1317 -0
  499. data/public/ext-3.0.0/src/util/Format.js +356 -0
  500. data/public/ext-3.0.0/src/util/History.js +203 -0
  501. data/public/ext-3.0.0/src/util/KeyMap.js +242 -0
  502. data/public/ext-3.0.0/src/util/KeyNav.js +161 -0
  503. data/public/ext-3.0.0/src/util/MixedCollection.js +576 -0
  504. data/public/ext-3.0.0/src/util/Observable-more.js +178 -0
  505. data/public/ext-3.0.0/src/util/TextMetrics.js +131 -0
  506. data/public/ext-3.0.0/src/util/UpdateManager.js +536 -0
  507. data/public/ext-3.0.0/src/util/XTemplate.js +379 -0
  508. data/public/ext-3.0.0/src/util/core/DelayedTask.js +68 -0
  509. data/public/ext-3.0.0/src/util/core/JSON.js +174 -0
  510. data/public/ext-3.0.0/src/util/core/Observable.js +483 -0
  511. data/public/ext-3.0.0/src/util/core/TaskMgr.js +174 -0
  512. data/public/ext-3.0.0/src/widgets/Action.js +252 -0
  513. data/public/ext-3.0.0/src/widgets/BoxComponent.js +519 -0
  514. data/public/ext-3.0.0/src/widgets/Button.js +762 -0
  515. data/public/ext-3.0.0/src/widgets/ButtonGroup.js +103 -0
  516. data/public/ext-3.0.0/src/widgets/ColorPalette.js +148 -0
  517. data/public/ext-3.0.0/src/widgets/Component.js +1540 -0
  518. data/public/ext-3.0.0/src/widgets/ComponentMgr.js +159 -0
  519. data/public/ext-3.0.0/src/widgets/Container.js +894 -0
  520. data/public/ext-3.0.0/src/widgets/CycleButton.js +188 -0
  521. data/public/ext-3.0.0/src/widgets/DataView.js +749 -0
  522. data/public/ext-3.0.0/src/widgets/DatePicker.js +771 -0
  523. data/public/ext-3.0.0/src/widgets/Editor.js +385 -0
  524. data/public/ext-3.0.0/src/widgets/Layer.js +466 -0
  525. data/public/ext-3.0.0/src/widgets/LoadMask.js +123 -0
  526. data/public/ext-3.0.0/src/widgets/MessageBox.js +626 -0
  527. data/public/ext-3.0.0/src/widgets/PagingToolbar.js +502 -0
  528. data/public/ext-3.0.0/src/widgets/Panel.js +1772 -0
  529. data/public/ext-3.0.0/src/widgets/PanelDD.js +154 -0
  530. data/public/ext-3.0.0/src/widgets/ProgressBar.js +289 -0
  531. data/public/ext-3.0.0/src/widgets/Resizable.js +760 -0
  532. data/public/ext-3.0.0/src/widgets/Shadow.js +192 -0
  533. data/public/ext-3.0.0/src/widgets/Slider.js +426 -0
  534. data/public/ext-3.0.0/src/widgets/SplitBar.js +436 -0
  535. data/public/ext-3.0.0/src/widgets/SplitButton.js +124 -0
  536. data/public/ext-3.0.0/src/widgets/TabPanel.js +1100 -0
  537. data/public/ext-3.0.0/src/widgets/Toolbar.js +781 -0
  538. data/public/ext-3.0.0/src/widgets/Viewport.js +124 -0
  539. data/public/ext-3.0.0/src/widgets/Window.js +941 -0
  540. data/public/ext-3.0.0/src/widgets/WindowManager.js +187 -0
  541. data/public/ext-3.0.0/src/widgets/chart/Chart.js +721 -0
  542. data/public/ext-3.0.0/src/widgets/chart/EventProxy.js +20 -0
  543. data/public/ext-3.0.0/src/widgets/chart/FlashComponent.js +117 -0
  544. data/public/ext-3.0.0/src/widgets/chart/swfobject.js +783 -0
  545. data/public/ext-3.0.0/src/widgets/form/Action.js +626 -0
  546. data/public/ext-3.0.0/src/widgets/form/BasicForm.js +735 -0
  547. data/public/ext-3.0.0/src/widgets/form/Checkbox.js +177 -0
  548. data/public/ext-3.0.0/src/widgets/form/CheckboxGroup.js +419 -0
  549. data/public/ext-3.0.0/src/widgets/form/Combo.js +1232 -0
  550. data/public/ext-3.0.0/src/widgets/form/DateField.js +389 -0
  551. data/public/ext-3.0.0/src/widgets/form/DisplayField.js +98 -0
  552. data/public/ext-3.0.0/src/widgets/form/Field.js +640 -0
  553. data/public/ext-3.0.0/src/widgets/form/FieldSet.js +305 -0
  554. data/public/ext-3.0.0/src/widgets/form/Form.js +335 -0
  555. data/public/ext-3.0.0/src/widgets/form/Hidden.js +39 -0
  556. data/public/ext-3.0.0/src/widgets/form/HtmlEditor.js +1179 -0
  557. data/public/ext-3.0.0/src/widgets/form/Label.js +64 -0
  558. data/public/ext-3.0.0/src/widgets/form/NumberField.js +139 -0
  559. data/public/ext-3.0.0/src/widgets/form/Radio.js +81 -0
  560. data/public/ext-3.0.0/src/widgets/form/RadioGroup.js +116 -0
  561. data/public/ext-3.0.0/src/widgets/form/TextArea.js +117 -0
  562. data/public/ext-3.0.0/src/widgets/form/TextField.js +491 -0
  563. data/public/ext-3.0.0/src/widgets/form/TimeField.js +146 -0
  564. data/public/ext-3.0.0/src/widgets/form/TriggerField.js +328 -0
  565. data/public/ext-3.0.0/src/widgets/form/VTypes.js +135 -0
  566. data/public/ext-3.0.0/src/widgets/grid/AbstractSelectionModel.js +57 -0
  567. data/public/ext-3.0.0/src/widgets/grid/CellSelectionModel.js +262 -0
  568. data/public/ext-3.0.0/src/widgets/grid/CheckboxSelectionModel.js +103 -0
  569. data/public/ext-3.0.0/src/widgets/grid/Column.js +406 -0
  570. data/public/ext-3.0.0/src/widgets/grid/ColumnDD.js +199 -0
  571. data/public/ext-3.0.0/src/widgets/grid/ColumnModel.js +592 -0
  572. data/public/ext-3.0.0/src/widgets/grid/ColumnSplitDD.js +62 -0
  573. data/public/ext-3.0.0/src/widgets/grid/EditorGrid.js +291 -0
  574. data/public/ext-3.0.0/src/widgets/grid/GridDD.js +95 -0
  575. data/public/ext-3.0.0/src/widgets/grid/GridEditor.js +21 -0
  576. data/public/ext-3.0.0/src/widgets/grid/GridPanel.js +952 -0
  577. data/public/ext-3.0.0/src/widgets/grid/GridView.js +1776 -0
  578. data/public/ext-3.0.0/src/widgets/grid/GroupingView.js +517 -0
  579. data/public/ext-3.0.0/src/widgets/grid/PropertyGrid.js +370 -0
  580. data/public/ext-3.0.0/src/widgets/grid/RowNumberer.js +61 -0
  581. data/public/ext-3.0.0/src/widgets/grid/RowSelectionModel.js +530 -0
  582. data/public/ext-3.0.0/src/widgets/layout/AbsoluteLayout.js +82 -0
  583. data/public/ext-3.0.0/src/widgets/layout/AccordionLayout.js +177 -0
  584. data/public/ext-3.0.0/src/widgets/layout/AnchorLayout.js +200 -0
  585. data/public/ext-3.0.0/src/widgets/layout/BorderLayout.js +1108 -0
  586. data/public/ext-3.0.0/src/widgets/layout/BoxLayout.js +417 -0
  587. data/public/ext-3.0.0/src/widgets/layout/CardLayout.js +127 -0
  588. data/public/ext-3.0.0/src/widgets/layout/ColumnLayout.js +130 -0
  589. data/public/ext-3.0.0/src/widgets/layout/ContainerLayout.js +215 -0
  590. data/public/ext-3.0.0/src/widgets/layout/FitLayout.js +48 -0
  591. data/public/ext-3.0.0/src/widgets/layout/FormLayout.js +266 -0
  592. data/public/ext-3.0.0/src/widgets/layout/TableLayout.js +194 -0
  593. data/public/ext-3.0.0/src/widgets/list/ColumnResizer.js +123 -0
  594. data/public/ext-3.0.0/src/widgets/list/ListView.js +357 -0
  595. data/public/ext-3.0.0/src/widgets/list/Sorter.js +70 -0
  596. data/public/ext-3.0.0/src/widgets/menu/BaseItem.js +160 -0
  597. data/public/ext-3.0.0/src/widgets/menu/CheckItem.js +114 -0
  598. data/public/ext-3.0.0/src/widgets/menu/ColorMenu.js +72 -0
  599. data/public/ext-3.0.0/src/widgets/menu/DateMenu.js +90 -0
  600. data/public/ext-3.0.0/src/widgets/menu/Item.js +211 -0
  601. data/public/ext-3.0.0/src/widgets/menu/Menu.js +733 -0
  602. data/public/ext-3.0.0/src/widgets/menu/MenuMgr.js +211 -0
  603. data/public/ext-3.0.0/src/widgets/menu/Separator.js +46 -0
  604. data/public/ext-3.0.0/src/widgets/menu/TextItem.js +46 -0
  605. data/public/ext-3.0.0/src/widgets/tips/QuickTip.js +207 -0
  606. data/public/ext-3.0.0/src/widgets/tips/QuickTips.js +159 -0
  607. data/public/ext-3.0.0/src/widgets/tips/Tip.js +157 -0
  608. data/public/ext-3.0.0/src/widgets/tips/ToolTip.js +492 -0
  609. data/public/ext-3.0.0/src/widgets/tree/AsyncTreeNode.js +114 -0
  610. data/public/ext-3.0.0/src/widgets/tree/TreeDragZone.js +82 -0
  611. data/public/ext-3.0.0/src/widgets/tree/TreeDropZone.js +321 -0
  612. data/public/ext-3.0.0/src/widgets/tree/TreeEditor.js +160 -0
  613. data/public/ext-3.0.0/src/widgets/tree/TreeEventModel.js +169 -0
  614. data/public/ext-3.0.0/src/widgets/tree/TreeFilter.js +114 -0
  615. data/public/ext-3.0.0/src/widgets/tree/TreeLoader.js +342 -0
  616. data/public/ext-3.0.0/src/widgets/tree/TreeNode.js +546 -0
  617. data/public/ext-3.0.0/src/widgets/tree/TreeNodeUI.js +633 -0
  618. data/public/ext-3.0.0/src/widgets/tree/TreePanel.js +918 -0
  619. data/public/ext-3.0.0/src/widgets/tree/TreeSelectionModel.js +315 -0
  620. data/public/ext-3.0.0/src/widgets/tree/TreeSorter.js +106 -0
  621. data/public/js/ext-portal.js +235 -0
  622. data/public/js/global.js +7 -0
  623. data/public/js/outerframe.js +47 -0
  624. data/public/js/portal.js +713 -0
  625. data/public/js/test_chart.js +152 -0
  626. data/test/config.rb +62 -0
  627. data/test/config/hosts.yaml +5 -0
  628. data/test/config/log.yaml +1 -0
  629. data/test/config/memcache.yaml +5 -0
  630. data/test/exception.rb +39 -0
  631. data/test/method_missing.rb +14 -0
  632. data/test/module.rb +39 -0
  633. data/test/remote_lmp.rb +126 -0
  634. data/test/sinatra.rb +29 -0
  635. data/test/sinatra_base.rb +16 -0
  636. metadata +690 -0
@@ -0,0 +1,159 @@
1
+ /*!
2
+ * Ext JS Library 3.0.0
3
+ * Copyright(c) 2006-2009 Ext JS, LLC
4
+ * licensing@extjs.com
5
+ * http://www.extjs.com/license
6
+ */
7
+ /**
8
+ * @class Ext.ComponentMgr
9
+ * <p>Provides a registry of all Components (instances of {@link Ext.Component} or any subclass
10
+ * thereof) on a page so that they can be easily accessed by {@link Ext.Component component}
11
+ * {@link Ext.Component#id id} (see {@link #get}, or the convenience method {@link Ext#getCmp Ext.getCmp}).</p>
12
+ * <p>This object also provides a registry of available Component <i>classes</i>
13
+ * indexed by a mnemonic code known as the Component's {@link Ext.Component#xtype xtype}.
14
+ * The <tt>{@link Ext.Component#xtype xtype}</tt> provides a way to avoid instantiating child Components
15
+ * when creating a full, nested config object for a complete Ext page.</p>
16
+ * <p>A child Component may be specified simply as a <i>config object</i>
17
+ * as long as the correct <tt>{@link Ext.Component#xtype xtype}</tt> is specified so that if and when the Component
18
+ * needs rendering, the correct type can be looked up for lazy instantiation.</p>
19
+ * <p>For a list of all available <tt>{@link Ext.Component#xtype xtypes}</tt>, see {@link Ext.Component}.</p>
20
+ * @singleton
21
+ */
22
+ Ext.ComponentMgr = function(){
23
+ var all = new Ext.util.MixedCollection();
24
+ var types = {};
25
+ var ptypes = {};
26
+
27
+ return {
28
+ /**
29
+ * Registers a component.
30
+ * @param {Ext.Component} c The component
31
+ */
32
+ register : function(c){
33
+ all.add(c);
34
+ },
35
+
36
+ /**
37
+ * Unregisters a component.
38
+ * @param {Ext.Component} c The component
39
+ */
40
+ unregister : function(c){
41
+ all.remove(c);
42
+ },
43
+
44
+ /**
45
+ * Returns a component by {@link Ext.Component#id id}.
46
+ * For additional details see {@link Ext.util.MixedCollection#get}.
47
+ * @param {String} id The component {@link Ext.Component#id id}
48
+ * @return Ext.Component The Component, <tt>undefined</tt> if not found, or <tt>null</tt> if a
49
+ * Class was found.
50
+ */
51
+ get : function(id){
52
+ return all.get(id);
53
+ },
54
+
55
+ /**
56
+ * Registers a function that will be called when a specified component is added to ComponentMgr
57
+ * @param {String} id The component {@link Ext.Component#id id}
58
+ * @param {Function} fn The callback function
59
+ * @param {Object} scope The scope of the callback
60
+ */
61
+ onAvailable : function(id, fn, scope){
62
+ all.on("add", function(index, o){
63
+ if(o.id == id){
64
+ fn.call(scope || o, o);
65
+ all.un("add", fn, scope);
66
+ }
67
+ });
68
+ },
69
+
70
+ /**
71
+ * The MixedCollection used internally for the component cache. An example usage may be subscribing to
72
+ * events on the MixedCollection to monitor addition or removal. Read-only.
73
+ * @type {MixedCollection}
74
+ */
75
+ all : all,
76
+
77
+ /**
78
+ * Checks if a Component type is registered.
79
+ * @param {Ext.Component} xtype The mnemonic string by which the Component class may be looked up
80
+ * @return {Boolean} Whether the type is registered.
81
+ */
82
+ isRegistered : function(xtype){
83
+ return types[xtype] !== undefined;
84
+ },
85
+
86
+ /**
87
+ * <p>Registers a new Component constructor, keyed by a new
88
+ * {@link Ext.Component#xtype}.</p>
89
+ * <p>Use this method (or its alias {@link Ext#reg Ext.reg}) to register new
90
+ * subclasses of {@link Ext.Component} so that lazy instantiation may be used when specifying
91
+ * child Components.
92
+ * see {@link Ext.Container#items}</p>
93
+ * @param {String} xtype The mnemonic string by which the Component class may be looked up.
94
+ * @param {Constructor} cls The new Component class.
95
+ */
96
+ registerType : function(xtype, cls){
97
+ types[xtype] = cls;
98
+ cls.xtype = xtype;
99
+ },
100
+
101
+ /**
102
+ * Creates a new Component from the specified config object using the
103
+ * config object's {@link Ext.component#xtype xtype} to determine the class to instantiate.
104
+ * @param {Object} config A configuration object for the Component you wish to create.
105
+ * @param {Constructor} defaultType The constructor to provide the default Component type if
106
+ * the config object does not contain a <tt>xtype</tt>. (Optional if the config contains a <tt>xtype</tt>).
107
+ * @return {Ext.Component} The newly instantiated Component.
108
+ */
109
+ create : function(config, defaultType){
110
+ return config.render ? config : new types[config.xtype || defaultType](config);
111
+ },
112
+
113
+ /**
114
+ * <p>Registers a new Plugin constructor, keyed by a new
115
+ * {@link Ext.Component#ptype}.</p>
116
+ * <p>Use this method (or its alias {@link Ext#preg Ext.preg}) to register new
117
+ * plugins for {@link Ext.Component}s so that lazy instantiation may be used when specifying
118
+ * Plugins.</p>
119
+ * @param {String} ptype The mnemonic string by which the Plugin class may be looked up.
120
+ * @param {Constructor} cls The new Plugin class.
121
+ */
122
+ registerPlugin : function(ptype, cls){
123
+ ptypes[ptype] = cls;
124
+ cls.ptype = ptype;
125
+ },
126
+
127
+ /**
128
+ * Creates a new Plugin from the specified config object using the
129
+ * config object's {@link Ext.component#ptype ptype} to determine the class to instantiate.
130
+ * @param {Object} config A configuration object for the Plugin you wish to create.
131
+ * @param {Constructor} defaultType The constructor to provide the default Plugin type if
132
+ * the config object does not contain a <tt>ptype</tt>. (Optional if the config contains a <tt>ptype</tt>).
133
+ * @return {Ext.Component} The newly instantiated Plugin.
134
+ */
135
+ createPlugin : function(config, defaultType){
136
+ return new ptypes[config.ptype || defaultType](config);
137
+ }
138
+ };
139
+ }();
140
+
141
+ /**
142
+ * Shorthand for {@link Ext.ComponentMgr#registerType}
143
+ * @param {String} xtype The {@link Ext.component#xtype mnemonic string} by which the Component class
144
+ * may be looked up.
145
+ * @param {Constructor} cls The new Component class.
146
+ * @member Ext
147
+ * @method reg
148
+ */
149
+ Ext.reg = Ext.ComponentMgr.registerType; // this will be called a lot internally, shorthand to keep the bytes down
150
+ /**
151
+ * Shorthand for {@link Ext.ComponentMgr#registerPlugin}
152
+ * @param {String} ptype The {@link Ext.component#ptype mnemonic string} by which the Plugin class
153
+ * may be looked up.
154
+ * @param {Constructor} cls The new Plugin class.
155
+ * @member Ext
156
+ * @method preg
157
+ */
158
+ Ext.preg = Ext.ComponentMgr.registerPlugin;
159
+ Ext.create = Ext.ComponentMgr.create;
@@ -0,0 +1,894 @@
1
+ /*!
2
+ * Ext JS Library 3.0.0
3
+ * Copyright(c) 2006-2009 Ext JS, LLC
4
+ * licensing@extjs.com
5
+ * http://www.extjs.com/license
6
+ */
7
+ /**
8
+ * @class Ext.Container
9
+ * @extends Ext.BoxComponent
10
+ * <p>Base class for any {@link Ext.BoxComponent} that may contain other Components. Containers handle the
11
+ * basic behavior of containing items, namely adding, inserting and removing items.</p>
12
+ *
13
+ * <p>The most commonly used Container classes are {@link Ext.Panel}, {@link Ext.Window} and {@link Ext.TabPanel}.
14
+ * If you do not need the capabilities offered by the aforementioned classes you can create a lightweight
15
+ * Container to be encapsulated by an HTML element to your specifications by using the
16
+ * <tt><b>{@link Ext.Component#autoEl autoEl}</b></tt> config option. This is a useful technique when creating
17
+ * embedded {@link Ext.layout.ColumnLayout column} layouts inside {@link Ext.form.FormPanel FormPanels}
18
+ * for example.</p>
19
+ *
20
+ * <p>The code below illustrates both how to explicitly create a Container, and how to implicitly
21
+ * create one using the <b><tt>'container'</tt></b> xtype:<pre><code>
22
+ // explicitly create a Container
23
+ var embeddedColumns = new Ext.Container({
24
+ autoEl: 'div', // This is the default
25
+ layout: 'column',
26
+ defaults: {
27
+ // implicitly create Container by specifying xtype
28
+ xtype: 'container',
29
+ autoEl: 'div', // This is the default.
30
+ layout: 'form',
31
+ columnWidth: 0.5,
32
+ style: {
33
+ padding: '10px'
34
+ }
35
+ },
36
+ // The two items below will be Ext.Containers, each encapsulated by a &lt;DIV> element.
37
+ items: [{
38
+ items: {
39
+ xtype: 'datefield',
40
+ name: 'startDate',
41
+ fieldLabel: 'Start date'
42
+ }
43
+ }, {
44
+ items: {
45
+ xtype: 'datefield',
46
+ name: 'endDate',
47
+ fieldLabel: 'End date'
48
+ }
49
+ }]
50
+ });</code></pre></p>
51
+ *
52
+ * <p><u><b>Layout</b></u></p>
53
+ * <p>Container classes delegate the rendering of child Components to a layout
54
+ * manager class which must be configured into the Container using the
55
+ * <code><b>{@link #layout}</b></code> configuration property.</p>
56
+ * <p>When either specifying child <code>{@link #items}</code> of a Container,
57
+ * or dynamically {@link #add adding} Components to a Container, remember to
58
+ * consider how you wish the Container to arrange those child elements, and
59
+ * whether those child elements need to be sized using one of Ext's built-in
60
+ * <b><code>{@link #layout}</code></b> schemes. By default, Containers use the
61
+ * {@link Ext.layout.ContainerLayout ContainerLayout} scheme which only
62
+ * renders child components, appending them one after the other inside the
63
+ * Container, and <b>does not apply any sizing</b> at all.</p>
64
+ * <p>A common mistake is when a developer neglects to specify a
65
+ * <b><code>{@link #layout}</code></b> (e.g. widgets like GridPanels or
66
+ * TreePanels are added to Containers for which no <tt><b>{@link #layout}</b></tt>
67
+ * has been specified). If a Container is left to use the default
68
+ * {@link Ext.layout.ContainerLayout ContainerLayout} scheme, none of its
69
+ * child components will be resized, or changed in any way when the Container
70
+ * is resized.</p>
71
+ * <p>Certain layout managers allow dynamic addition of child components.
72
+ * Those that do include {@link Ext.layout.CardLayout},
73
+ * {@link Ext.layout.AnchorLayout}, {@link Ext.layout.FormLayout}, and
74
+ * {@link Ext.layout.TableLayout}. For example:<pre><code>
75
+ // Create the GridPanel.
76
+ var myNewGrid = new Ext.grid.GridPanel({
77
+ store: myStore,
78
+ columns: myColumnModel,
79
+ title: 'Results', // the title becomes the title of the tab
80
+ });
81
+
82
+ myTabPanel.add(myNewGrid); // {@link Ext.TabPanel} implicitly uses {@link Ext.layout.CardLayout CardLayout}
83
+ myTabPanel.{@link Ext.TabPanel#setActiveTab setActiveTab}(myNewGrid);
84
+ * </code></pre></p>
85
+ * <p>The example above adds a newly created GridPanel to a TabPanel. Note that
86
+ * a TabPanel uses {@link Ext.layout.CardLayout} as its layout manager which
87
+ * means all its child items are sized to {@link Ext.layout.FitLayout fit}
88
+ * exactly into its client area.
89
+ * <p><b><u>Overnesting is a common problem</u></b>.
90
+ * An example of overnesting occurs when a GridPanel is added to a TabPanel
91
+ * by wrapping the GridPanel <i>inside</i> a wrapping Panel (that has no
92
+ * <tt><b>{@link #layout}</b></tt> specified) and then add that wrapping Panel
93
+ * to the TabPanel. The point to realize is that a GridPanel <b>is</b> a
94
+ * Component which can be added directly to a Container. If the wrapping Panel
95
+ * has no <tt><b>{@link #layout}</b></tt> configuration, then the overnested
96
+ * GridPanel will not be sized as expected.<p>
97
+ </code></pre>
98
+ *
99
+ * <p><u><b>Adding via remote configuration</b></u></p>
100
+ *
101
+ * <p>A server side script can be used to add Components which are generated dynamically on the server.
102
+ * An example of adding a GridPanel to a TabPanel where the GridPanel is generated by the server
103
+ * based on certain parameters:
104
+ * </p><pre><code>
105
+ // execute an Ajax request to invoke server side script:
106
+ Ext.Ajax.request({
107
+ url: 'gen-invoice-grid.php',
108
+ // send additional parameters to instruct server script
109
+ params: {
110
+ startDate: Ext.getCmp('start-date').getValue(),
111
+ endDate: Ext.getCmp('end-date').getValue()
112
+ },
113
+ // process the response object to add it to the TabPanel:
114
+ success: function(xhr) {
115
+ var newComponent = eval(xhr.responseText); // see discussion below
116
+ myTabPanel.add(newComponent); // add the component to the TabPanel
117
+ myTabPanel.setActiveTab(newComponent);
118
+ },
119
+ failure: function() {
120
+ Ext.Msg.alert("Grid create failed", "Server communication failure");
121
+ }
122
+ });
123
+ </code></pre>
124
+ * <p>The server script needs to return an executable Javascript statement which, when processed
125
+ * using <tt>eval()</tt>, will return either a config object with an {@link Ext.Component#xtype xtype},
126
+ * or an instantiated Component. The server might return this for example:</p><pre><code>
127
+ (function() {
128
+ function formatDate(value){
129
+ return value ? value.dateFormat('M d, Y') : '';
130
+ };
131
+
132
+ var store = new Ext.data.Store({
133
+ url: 'get-invoice-data.php',
134
+ baseParams: {
135
+ startDate: '01/01/2008',
136
+ endDate: '01/31/2008'
137
+ },
138
+ reader: new Ext.data.JsonReader({
139
+ record: 'transaction',
140
+ idProperty: 'id',
141
+ totalRecords: 'total'
142
+ }, [
143
+ 'customer',
144
+ 'invNo',
145
+ {name: 'date', type: 'date', dateFormat: 'm/d/Y'},
146
+ {name: 'value', type: 'float'}
147
+ ])
148
+ });
149
+
150
+ var grid = new Ext.grid.GridPanel({
151
+ title: 'Invoice Report',
152
+ bbar: new Ext.PagingToolbar(store),
153
+ store: store,
154
+ columns: [
155
+ {header: "Customer", width: 250, dataIndex: 'customer', sortable: true},
156
+ {header: "Invoice Number", width: 120, dataIndex: 'invNo', sortable: true},
157
+ {header: "Invoice Date", width: 100, dataIndex: 'date', renderer: formatDate, sortable: true},
158
+ {header: "Value", width: 120, dataIndex: 'value', renderer: 'usMoney', sortable: true}
159
+ ],
160
+ });
161
+ store.load();
162
+ return grid; // return instantiated component
163
+ })();
164
+ </code></pre>
165
+ * <p>When the above code fragment is passed through the <tt>eval</tt> function in the success handler
166
+ * of the Ajax request, the code is executed by the Javascript processor, and the anonymous function
167
+ * runs, and returns the instantiated grid component.</p>
168
+ * <p>Note: since the code above is <i>generated</i> by a server script, the <tt>baseParams</tt> for
169
+ * the Store, the metadata to allow generation of the Record layout, and the ColumnModel
170
+ * can all be generated into the code since these are all known on the server.</p>
171
+ *
172
+ * @xtype container
173
+ */
174
+ Ext.Container = Ext.extend(Ext.BoxComponent, {
175
+ /**
176
+ * @cfg {Boolean} monitorResize
177
+ * True to automatically monitor window resize events to handle anything that is sensitive to the current size
178
+ * of the viewport. This value is typically managed by the chosen <code>{@link #layout}</code> and should not need
179
+ * to be set manually.
180
+ */
181
+ /**
182
+ * @cfg {String/Object} layout
183
+ * When creating complex UIs, it is important to remember that sizing and
184
+ * positioning of child items is the responsibility of the Container's
185
+ * layout manager. If you expect child items to be sized in response to
186
+ * user interactions, <b>you must specify a layout manager</b> which
187
+ * creates and manages the type of layout you have in mind. For example:<pre><code>
188
+ new Ext.Window({
189
+ width:300, height: 300,
190
+ layout: 'fit', // explicitly set layout manager: override the default (layout:'auto')
191
+ items: [{
192
+ title: 'Panel inside a Window'
193
+ }]
194
+ }).show();
195
+ * </code></pre>
196
+ * <p>Omitting the {@link #layout} config means that the
197
+ * {@link Ext.layout.ContainerLayout default layout manager} will be used which does
198
+ * nothing but render child components sequentially into the Container (no sizing or
199
+ * positioning will be performed in this situation).</p>
200
+ * <p>The layout manager class for this container may be specified as either as an
201
+ * Object or as a String:</p>
202
+ * <div><ul class="mdetail-params">
203
+ *
204
+ * <li><u>Specify as an Object</u></li>
205
+ * <div><ul class="mdetail-params">
206
+ * <li>Example usage:</li>
207
+ <pre><code>
208
+ layout: {
209
+ type: 'vbox',
210
+ padding: '5',
211
+ align: 'left'
212
+ }
213
+ </code></pre>
214
+ *
215
+ * <li><tt><b>type</b></tt></li>
216
+ * <br/><p>The layout type to be used for this container. If not specified,
217
+ * a default {@link Ext.layout.ContainerLayout} will be created and used.</p>
218
+ * <br/><p>Valid layout <tt>type</tt> values are:</p>
219
+ * <div class="sub-desc"><ul class="mdetail-params">
220
+ * <li><tt><b>{@link Ext.layout.AbsoluteLayout absolute}</b></tt></li>
221
+ * <li><tt><b>{@link Ext.layout.AccordionLayout accordion}</b></tt></li>
222
+ * <li><tt><b>{@link Ext.layout.AnchorLayout anchor}</b></tt></li>
223
+ * <li><tt><b>{@link Ext.layout.ContainerLayout auto}</b></tt> &nbsp;&nbsp;&nbsp; <b>Default</b></li>
224
+ * <li><tt><b>{@link Ext.layout.BorderLayout border}</b></tt></li>
225
+ * <li><tt><b>{@link Ext.layout.CardLayout card}</b></tt></li>
226
+ * <li><tt><b>{@link Ext.layout.ColumnLayout column}</b></tt></li>
227
+ * <li><tt><b>{@link Ext.layout.FitLayout fit}</b></tt></li>
228
+ * <li><tt><b>{@link Ext.layout.FormLayout form}</b></tt></li>
229
+ * <li><tt><b>{@link Ext.layout.HBoxLayout hbox}</b></tt></li>
230
+ * <li><tt><b>{@link Ext.layout.MenuLayout menu}</b></tt></li>
231
+ * <li><tt><b>{@link Ext.layout.TableLayout table}</b></tt></li>
232
+ * <li><tt><b>{@link Ext.layout.ToolbarLayout toolbar}</b></tt></li>
233
+ * <li><tt><b>{@link Ext.layout.VBoxLayout vbox}</b></tt></li>
234
+ * </ul></div>
235
+ *
236
+ * <li>Layout specific configuration properties</li>
237
+ * <br/><p>Additional layout specific configuration properties may also be
238
+ * specified. For complete details regarding the valid config options for
239
+ * each layout type, see the layout class corresponding to the <tt>type</tt>
240
+ * specified.</p>
241
+ *
242
+ * </ul></div>
243
+ *
244
+ * <li><u>Specify as a String</u></li>
245
+ * <div><ul class="mdetail-params">
246
+ * <li>Example usage:</li>
247
+ <pre><code>
248
+ layout: 'vbox',
249
+ layoutConfig: {
250
+ padding: '5',
251
+ align: 'left'
252
+ }
253
+ </code></pre>
254
+ * <li><tt><b>layout</b></tt></li>
255
+ * <br/><p>The layout <tt>type</tt> to be used for this container (see list
256
+ * of valid layout type values above).</p><br/>
257
+ * <li><tt><b>{@link #layoutConfig}</b></tt></li>
258
+ * <br/><p>Additional layout specific configuration properties. For complete
259
+ * details regarding the valid config options for each layout type, see the
260
+ * layout class corresponding to the <tt>layout</tt> specified.</p>
261
+ * </ul></div></ul></div>
262
+ */
263
+ /**
264
+ * @cfg {Object} layoutConfig
265
+ * This is a config object containing properties specific to the chosen
266
+ * <b><code>{@link #layout}</code></b> if <b><code>{@link #layout}</code></b>
267
+ * has been specified as a <i>string</i>.</p>
268
+ */
269
+ /**
270
+ * @cfg {Boolean/Number} bufferResize
271
+ * When set to true (100 milliseconds) or a number of milliseconds, the layout assigned for this container will buffer
272
+ * the frequency it calculates and does a re-layout of components. This is useful for heavy containers or containers
273
+ * with a large quantity of sub-components for which frequent layout calls would be expensive.
274
+ */
275
+ bufferResize: 100,
276
+
277
+ /**
278
+ * @cfg {String/Number} activeItem
279
+ * A string component id or the numeric index of the component that should be initially activated within the
280
+ * container's layout on render. For example, activeItem: 'item-1' or activeItem: 0 (index 0 = the first
281
+ * item in the container's collection). activeItem only applies to layout styles that can display
282
+ * items one at a time (like {@link Ext.layout.AccordionLayout}, {@link Ext.layout.CardLayout} and
283
+ * {@link Ext.layout.FitLayout}). Related to {@link Ext.layout.ContainerLayout#activeItem}.
284
+ */
285
+ /**
286
+ * @cfg {Object/Array} items
287
+ * <pre><b>** IMPORTANT</b>: be sure to specify a <b><code>{@link #layout}</code> ! **</b></pre>
288
+ * <p>A single item, or an array of child Components to be added to this container,
289
+ * for example:</p>
290
+ * <pre><code>
291
+ // specifying a single item
292
+ items: {...},
293
+ layout: 'fit', // specify a layout!
294
+
295
+ // specifying multiple items
296
+ items: [{...}, {...}],
297
+ layout: 'anchor', // specify a layout!
298
+ * </code></pre>
299
+ * <p>Each item may be:</p>
300
+ * <div><ul class="mdetail-params">
301
+ * <li>any type of object based on {@link Ext.Component}</li>
302
+ * <li>a fully instanciated object or</li>
303
+ * <li>an object literal that:</li>
304
+ * <div><ul class="mdetail-params">
305
+ * <li>has a specified <code>{@link Ext.Component#xtype xtype}</code></li>
306
+ * <li>the {@link Ext.Component#xtype} specified is associated with the Component
307
+ * desired and should be chosen from one of the available xtypes as listed
308
+ * in {@link Ext.Component}.</li>
309
+ * <li>If an <code>{@link Ext.Component#xtype xtype}</code> is not explicitly
310
+ * specified, the {@link #defaultType} for that Container is used.</li>
311
+ * <li>will be "lazily instanciated", avoiding the overhead of constructing a fully
312
+ * instanciated Component object</li>
313
+ * </ul></div></ul></div>
314
+ * <p><b>Notes</b>:</p>
315
+ * <div><ul class="mdetail-params">
316
+ * <li>Ext uses lazy rendering. Child Components will only be rendered
317
+ * should it become necessary. Items are automatically laid out when they are first
318
+ * shown (no sizing is done while hidden), or in response to a {@link #doLayout} call.</li>
319
+ * <li>Do not specify <code>{@link Ext.Panel#contentEl contentEl}</code>/
320
+ * <code>{@link Ext.Panel#html html}</code> with <code>items</code>.</li>
321
+ * </ul></div>
322
+ */
323
+ /**
324
+ * @cfg {Object} defaults
325
+ * <p>A config object that will be applied to all components added to this container either via the {@link #items}
326
+ * config or via the {@link #add} or {@link #insert} methods. The <tt>defaults</tt> config can contain any
327
+ * number of name/value property pairs to be added to each item, and should be valid for the types of items
328
+ * being added to the container. For example, to automatically apply padding to the body of each of a set of
329
+ * contained {@link Ext.Panel} items, you could pass: <tt>defaults: {bodyStyle:'padding:15px'}</tt>.</p><br/>
330
+ * <p><b>Note</b>: <tt>defaults</tt> will not be applied to config objects if the option is already specified.
331
+ * For example:</p><pre><code>
332
+ defaults: { // defaults are applied to items, not the container
333
+ autoScroll:true
334
+ },
335
+ items: [
336
+ {
337
+ xtype: 'panel', // defaults <b>do not</b> have precedence over
338
+ id: 'panel1', // options in config objects, so the defaults
339
+ autoScroll: false // will not be applied here, panel1 will be autoScroll:false
340
+ },
341
+ new Ext.Panel({ // defaults <b>do</b> have precedence over options
342
+ id: 'panel2', // options in components, so the defaults
343
+ autoScroll: false // will be applied here, panel2 will be autoScroll:true.
344
+ })
345
+ ]
346
+ * </code></pre>
347
+ */
348
+
349
+
350
+ /** @cfg {Boolean} autoDestroy
351
+ * If true the container will automatically destroy any contained component that is removed from it, else
352
+ * destruction must be handled manually (defaults to true).
353
+ */
354
+ autoDestroy : true,
355
+
356
+ /** @cfg {Boolean} forceLayout
357
+ * If true the container will force a layout initially even if hidden or collapsed. This option
358
+ * is useful for forcing forms to render in collapsed or hidden containers. (defaults to false).
359
+ */
360
+ forceLayout: false,
361
+
362
+ /** @cfg {Boolean} hideBorders
363
+ * True to hide the borders of each contained component, false to defer to the component's existing
364
+ * border settings (defaults to false).
365
+ */
366
+ /** @cfg {String} defaultType
367
+ * <p>The default {@link Ext.Component xtype} of child Components to create in this Container when
368
+ * a child item is specified as a raw configuration object, rather than as an instantiated Component.</p>
369
+ * <p>Defaults to <tt>'panel'</tt>, except {@link Ext.menu.Menu} which defaults to <tt>'menuitem'</tt>,
370
+ * and {@link Ext.Toolbar} and {@link Ext.ButtonGroup} which default to <tt>'button'</tt>.</p>
371
+ */
372
+ defaultType : 'panel',
373
+
374
+ // private
375
+ initComponent : function(){
376
+ Ext.Container.superclass.initComponent.call(this);
377
+
378
+ this.addEvents(
379
+ /**
380
+ * @event afterlayout
381
+ * Fires when the components in this container are arranged by the associated layout manager.
382
+ * @param {Ext.Container} this
383
+ * @param {ContainerLayout} layout The ContainerLayout implementation for this container
384
+ */
385
+ 'afterlayout',
386
+ /**
387
+ * @event beforeadd
388
+ * Fires before any {@link Ext.Component} is added or inserted into the container.
389
+ * A handler can return false to cancel the add.
390
+ * @param {Ext.Container} this
391
+ * @param {Ext.Component} component The component being added
392
+ * @param {Number} index The index at which the component will be added to the container's items collection
393
+ */
394
+ 'beforeadd',
395
+ /**
396
+ * @event beforeremove
397
+ * Fires before any {@link Ext.Component} is removed from the container. A handler can return
398
+ * false to cancel the remove.
399
+ * @param {Ext.Container} this
400
+ * @param {Ext.Component} component The component being removed
401
+ */
402
+ 'beforeremove',
403
+ /**
404
+ * @event add
405
+ * @bubbles
406
+ * Fires after any {@link Ext.Component} is added or inserted into the container.
407
+ * @param {Ext.Container} this
408
+ * @param {Ext.Component} component The component that was added
409
+ * @param {Number} index The index at which the component was added to the container's items collection
410
+ */
411
+ 'add',
412
+ /**
413
+ * @event remove
414
+ * @bubbles
415
+ * Fires after any {@link Ext.Component} is removed from the container.
416
+ * @param {Ext.Container} this
417
+ * @param {Ext.Component} component The component that was removed
418
+ */
419
+ 'remove'
420
+ );
421
+
422
+ this.enableBubble('add', 'remove');
423
+
424
+ /**
425
+ * The collection of components in this container as a {@link Ext.util.MixedCollection}
426
+ * @type MixedCollection
427
+ * @property items
428
+ */
429
+ var items = this.items;
430
+ if(items){
431
+ delete this.items;
432
+ if(Ext.isArray(items) && items.length > 0){
433
+ this.add.apply(this, items);
434
+ }else{
435
+ this.add(items);
436
+ }
437
+ }
438
+ },
439
+
440
+ // private
441
+ initItems : function(){
442
+ if(!this.items){
443
+ this.items = new Ext.util.MixedCollection(false, this.getComponentId);
444
+ this.getLayout(); // initialize the layout
445
+ }
446
+ },
447
+
448
+ // private
449
+ setLayout : function(layout){
450
+ if(this.layout && this.layout != layout){
451
+ this.layout.setContainer(null);
452
+ }
453
+ this.initItems();
454
+ this.layout = layout;
455
+ layout.setContainer(this);
456
+ },
457
+
458
+ // private
459
+ render : function(){
460
+ Ext.Container.superclass.render.apply(this, arguments);
461
+ if(this.layout){
462
+ if(Ext.isObject(this.layout) && !this.layout.layout){
463
+ this.layoutConfig = this.layout;
464
+ this.layout = this.layoutConfig.type;
465
+ }
466
+ if(typeof this.layout == 'string'){
467
+ this.layout = new Ext.Container.LAYOUTS[this.layout.toLowerCase()](this.layoutConfig);
468
+ }
469
+ this.setLayout(this.layout);
470
+
471
+ if(this.activeItem !== undefined){
472
+ var item = this.activeItem;
473
+ delete this.activeItem;
474
+ this.layout.setActiveItem(item);
475
+ }
476
+ }
477
+ if(!this.ownerCt){
478
+ // force a layout if no ownerCt is set
479
+ this.doLayout(false, true);
480
+ }
481
+ if(this.monitorResize === true){
482
+ Ext.EventManager.onWindowResize(this.doLayout, this, [false]);
483
+ }
484
+ },
485
+
486
+ /**
487
+ * <p>Returns the Element to be used to contain the child Components of this Container.</p>
488
+ * <p>An implementation is provided which returns the Container's {@link #getEl Element}, but
489
+ * if there is a more complex structure to a Container, this may be overridden to return
490
+ * the element into which the {@link #layout layout} renders child Components.</p>
491
+ * @return {Ext.Element} The Element to render child Components into.
492
+ */
493
+ getLayoutTarget : function(){
494
+ return this.el;
495
+ },
496
+
497
+ // private - used as the key lookup function for the items collection
498
+ getComponentId : function(comp){
499
+ return comp.getItemId();
500
+ },
501
+
502
+ /**
503
+ * <p>Adds {@link Ext.Component Component}(s) to this Container.</p>
504
+ * <br><p><b>Description</b></u> :
505
+ * <div><ul class="mdetail-params">
506
+ * <li>Fires the {@link #beforeadd} event before adding</li>
507
+ * <li>The Container's {@link #defaults default config values} will be applied
508
+ * accordingly (see <code>{@link #defaults}</code> for details).</li>
509
+ * <li>Fires the {@link #add} event after the component has been added.</li>
510
+ * </ul></div>
511
+ * <br><p><b>Notes</b></u> :
512
+ * <div><ul class="mdetail-params">
513
+ * <li>If the Container is <i>already rendered</i> when <tt>add</tt>
514
+ * is called, you may need to call {@link #doLayout} to refresh the view which causes
515
+ * any unrendered child Components to be rendered. This is required so that you can
516
+ * <tt>add</tt> multiple child components if needed while only refreshing the layout
517
+ * once. For example:<pre><code>
518
+ var tb = new {@link Ext.Toolbar}();
519
+ tb.render(document.body); // toolbar is rendered
520
+ tb.add({text:'Button 1'}); // add multiple items ({@link #defaultType} for {@link Ext.Toolbar Toolbar} is 'button')
521
+ tb.add({text:'Button 2'});
522
+ tb.{@link #doLayout}(); // refresh the layout
523
+ * </code></pre></li>
524
+ * <li><i>Warning:</i> Containers directly managed by the BorderLayout layout manager
525
+ * may not be removed or added. See the Notes for {@link Ext.layout.BorderLayout BorderLayout}
526
+ * for more details.</li>
527
+ * </ul></div>
528
+ * @param {Object/Array} component
529
+ * <p>Either a single component or an Array of components to add. See
530
+ * <code>{@link #items}</code> for additional information.</p>
531
+ * @param {Object} (Optional) component_2
532
+ * @param {Object} (Optional) component_n
533
+ * @return {Ext.Component} component The Component (or config object) that was added.
534
+ */
535
+ add : function(comp){
536
+ this.initItems();
537
+ var args = arguments.length > 1;
538
+ if(args || Ext.isArray(comp)){
539
+ Ext.each(args ? arguments : comp, function(c){
540
+ this.add(c);
541
+ }, this);
542
+ return;
543
+ }
544
+ var c = this.lookupComponent(this.applyDefaults(comp));
545
+ var pos = this.items.length;
546
+ if(this.fireEvent('beforeadd', this, c, pos) !== false && this.onBeforeAdd(c) !== false){
547
+ this.items.add(c);
548
+ c.ownerCt = this;
549
+ this.fireEvent('add', this, c, pos);
550
+ }
551
+ return c;
552
+ },
553
+
554
+ /**
555
+ * Inserts a Component into this Container at a specified index. Fires the
556
+ * {@link #beforeadd} event before inserting, then fires the {@link #add} event after the
557
+ * Component has been inserted.
558
+ * @param {Number} index The index at which the Component will be inserted
559
+ * into the Container's items collection
560
+ * @param {Ext.Component} component The child Component to insert.<br><br>
561
+ * Ext uses lazy rendering, and will only render the inserted Component should
562
+ * it become necessary.<br><br>
563
+ * A Component config object may be passed in order to avoid the overhead of
564
+ * constructing a real Component object if lazy rendering might mean that the
565
+ * inserted Component will not be rendered immediately. To take advantage of
566
+ * this 'lazy instantiation', set the {@link Ext.Component#xtype} config
567
+ * property to the registered type of the Component wanted.<br><br>
568
+ * For a list of all available xtypes, see {@link Ext.Component}.
569
+ * @return {Ext.Component} component The Component (or config object) that was
570
+ * inserted with the Container's default config values applied.
571
+ */
572
+ insert : function(index, comp){
573
+ this.initItems();
574
+ var a = arguments, len = a.length;
575
+ if(len > 2){
576
+ for(var i = len-1; i >= 1; --i) {
577
+ this.insert(index, a[i]);
578
+ }
579
+ return;
580
+ }
581
+ var c = this.lookupComponent(this.applyDefaults(comp));
582
+
583
+ if(c.ownerCt == this && this.items.indexOf(c) < index){
584
+ --index;
585
+ }
586
+
587
+ if(this.fireEvent('beforeadd', this, c, index) !== false && this.onBeforeAdd(c) !== false){
588
+ this.items.insert(index, c);
589
+ c.ownerCt = this;
590
+ this.fireEvent('add', this, c, index);
591
+ }
592
+ return c;
593
+ },
594
+
595
+ // private
596
+ applyDefaults : function(c){
597
+ if(this.defaults){
598
+ if(typeof c == 'string'){
599
+ c = Ext.ComponentMgr.get(c);
600
+ Ext.apply(c, this.defaults);
601
+ }else if(!c.events){
602
+ Ext.applyIf(c, this.defaults);
603
+ }else{
604
+ Ext.apply(c, this.defaults);
605
+ }
606
+ }
607
+ return c;
608
+ },
609
+
610
+ // private
611
+ onBeforeAdd : function(item){
612
+ if(item.ownerCt){
613
+ item.ownerCt.remove(item, false);
614
+ }
615
+ if(this.hideBorders === true){
616
+ item.border = (item.border === true);
617
+ }
618
+ },
619
+
620
+ /**
621
+ * Removes a component from this container. Fires the {@link #beforeremove} event before removing, then fires
622
+ * the {@link #remove} event after the component has been removed.
623
+ * @param {Component/String} component The component reference or id to remove.
624
+ * @param {Boolean} autoDestroy (optional) True to automatically invoke the removed Component's {@link Ext.Component#destroy} function.
625
+ * Defaults to the value of this Container's {@link #autoDestroy} config.
626
+ * @return {Ext.Component} component The Component that was removed.
627
+ */
628
+ remove : function(comp, autoDestroy){
629
+ this.initItems();
630
+ var c = this.getComponent(comp);
631
+ if(c && this.fireEvent('beforeremove', this, c) !== false){
632
+ this.items.remove(c);
633
+ delete c.ownerCt;
634
+ if(autoDestroy === true || (autoDestroy !== false && this.autoDestroy)){
635
+ c.destroy();
636
+ }
637
+ if(this.layout && this.layout.activeItem == c){
638
+ delete this.layout.activeItem;
639
+ }
640
+ this.fireEvent('remove', this, c);
641
+ }
642
+ return c;
643
+ },
644
+
645
+ /**
646
+ * Removes all components from this container.
647
+ * @param {Boolean} autoDestroy (optional) True to automatically invoke the removed Component's {@link Ext.Component#destroy} function.
648
+ * Defaults to the value of this Container's {@link #autoDestroy} config.
649
+ * @return {Array} Array of the destroyed components
650
+ */
651
+ removeAll: function(autoDestroy){
652
+ this.initItems();
653
+ var item, rem = [], items = [];
654
+ this.items.each(function(i){
655
+ rem.push(i);
656
+ });
657
+ for (var i = 0, len = rem.length; i < len; ++i){
658
+ item = rem[i];
659
+ this.remove(item, autoDestroy);
660
+ if(item.ownerCt !== this){
661
+ items.push(item);
662
+ }
663
+ }
664
+ return items;
665
+ },
666
+
667
+ /**
668
+ * Examines this container's <code>{@link #items}</code> <b>property</b>
669
+ * and gets a direct child component of this container.
670
+ * @param {String/Number} comp This parameter may be any of the following:
671
+ * <div><ul class="mdetail-params">
672
+ * <li>a <b><tt>String</tt></b> : representing the <code>{@link Ext.Component#itemId itemId}</code>
673
+ * or <code>{@link Ext.Component#id id}</code> of the child component </li>
674
+ * <li>a <b><tt>Number</tt></b> : representing the position of the child component
675
+ * within the <code>{@link #items}</code> <b>property</b></li>
676
+ * </ul></div>
677
+ * <p>For additional information see {@link Ext.util.MixedCollection#get}.
678
+ * @return Ext.Component The component (if found).
679
+ */
680
+ getComponent : function(comp){
681
+ if(Ext.isObject(comp)){
682
+ return comp;
683
+ }
684
+ return this.items.get(comp);
685
+ },
686
+
687
+ // private
688
+ lookupComponent : function(comp){
689
+ if(typeof comp == 'string'){
690
+ return Ext.ComponentMgr.get(comp);
691
+ }else if(!comp.events){
692
+ return this.createComponent(comp);
693
+ }
694
+ return comp;
695
+ },
696
+
697
+ // private
698
+ createComponent : function(config){
699
+ return Ext.create(config, this.defaultType);
700
+ },
701
+
702
+ /**
703
+ * Force this container's layout to be recalculated. A call to this function is required after adding a new component
704
+ * to an already rendered container, or possibly after changing sizing/position properties of child components.
705
+ * @param {Boolean} shallow (optional) True to only calc the layout of this component, and let child components auto
706
+ * calc layouts as required (defaults to false, which calls doLayout recursively for each subcontainer)
707
+ * @param {Boolean} force (optional) True to force a layout to occur, even if the item is hidden.
708
+ * @return {Ext.Container} this
709
+ */
710
+ doLayout: function(shallow, force){
711
+ var rendered = this.rendered,
712
+ forceLayout = this.forceLayout;
713
+
714
+ if(!this.isVisible() || this.collapsed){
715
+ this.deferLayout = this.deferLayout || !shallow;
716
+ if(!(force || forceLayout)){
717
+ return;
718
+ }
719
+ shallow = shallow && !this.deferLayout;
720
+ } else {
721
+ delete this.deferLayout;
722
+ }
723
+ if(rendered && this.layout){
724
+ this.layout.layout();
725
+ }
726
+ if(shallow !== true && this.items){
727
+ var cs = this.items.items;
728
+ for(var i = 0, len = cs.length; i < len; i++){
729
+ var c = cs[i];
730
+ if(c.doLayout){
731
+ c.forceLayout = forceLayout;
732
+ c.doLayout();
733
+ }
734
+ }
735
+ }
736
+ if(rendered){
737
+ this.onLayout(shallow, force);
738
+ }
739
+ delete this.forceLayout;
740
+ },
741
+
742
+ //private
743
+ onLayout : Ext.emptyFn,
744
+
745
+ onShow : function(){
746
+ Ext.Container.superclass.onShow.call(this);
747
+ if(this.deferLayout !== undefined){
748
+ this.doLayout(true);
749
+ }
750
+ },
751
+
752
+ /**
753
+ * Returns the layout currently in use by the container. If the container does not currently have a layout
754
+ * set, a default {@link Ext.layout.ContainerLayout} will be created and set as the container's layout.
755
+ * @return {ContainerLayout} layout The container's layout
756
+ */
757
+ getLayout : function(){
758
+ if(!this.layout){
759
+ var layout = new Ext.layout.ContainerLayout(this.layoutConfig);
760
+ this.setLayout(layout);
761
+ }
762
+ return this.layout;
763
+ },
764
+
765
+ // private
766
+ beforeDestroy : function(){
767
+ if(this.items){
768
+ Ext.destroy.apply(Ext, this.items.items);
769
+ }
770
+ if(this.monitorResize){
771
+ Ext.EventManager.removeResizeListener(this.doLayout, this);
772
+ }
773
+ Ext.destroy(this.layout);
774
+ Ext.Container.superclass.beforeDestroy.call(this);
775
+ },
776
+
777
+ /**
778
+ * Bubbles up the component/container heirarchy, calling the specified function with each component. The scope (<i>this</i>) of
779
+ * function call will be the scope provided or the current component. The arguments to the function
780
+ * will be the args provided or the current component. If the function returns false at any point,
781
+ * the bubble is stopped.
782
+ * @param {Function} fn The function to call
783
+ * @param {Object} scope (optional) The scope of the function (defaults to current node)
784
+ * @param {Array} args (optional) The args to call the function with (default to passing the current component)
785
+ * @return {Ext.Container} this
786
+ */
787
+ bubble : function(fn, scope, args){
788
+ var p = this;
789
+ while(p){
790
+ if(fn.apply(scope || p, args || [p]) === false){
791
+ break;
792
+ }
793
+ p = p.ownerCt;
794
+ }
795
+ return this;
796
+ },
797
+
798
+ /**
799
+ * Cascades down the component/container heirarchy from this component (called first), calling the specified function with
800
+ * each component. The scope (<i>this</i>) of
801
+ * function call will be the scope provided or the current component. The arguments to the function
802
+ * will be the args provided or the current component. If the function returns false at any point,
803
+ * the cascade is stopped on that branch.
804
+ * @param {Function} fn The function to call
805
+ * @param {Object} scope (optional) The scope of the function (defaults to current component)
806
+ * @param {Array} args (optional) The args to call the function with (defaults to passing the current component)
807
+ * @return {Ext.Container} this
808
+ */
809
+ cascade : function(fn, scope, args){
810
+ if(fn.apply(scope || this, args || [this]) !== false){
811
+ if(this.items){
812
+ var cs = this.items.items;
813
+ for(var i = 0, len = cs.length; i < len; i++){
814
+ if(cs[i].cascade){
815
+ cs[i].cascade(fn, scope, args);
816
+ }else{
817
+ fn.apply(scope || cs[i], args || [cs[i]]);
818
+ }
819
+ }
820
+ }
821
+ }
822
+ return this;
823
+ },
824
+
825
+ /**
826
+ * Find a component under this container at any level by id
827
+ * @param {String} id
828
+ * @return Ext.Component
829
+ */
830
+ findById : function(id){
831
+ var m, ct = this;
832
+ this.cascade(function(c){
833
+ if(ct != c && c.id === id){
834
+ m = c;
835
+ return false;
836
+ }
837
+ });
838
+ return m || null;
839
+ },
840
+
841
+ /**
842
+ * Find a component under this container at any level by xtype or class
843
+ * @param {String/Class} xtype The xtype string for a component, or the class of the component directly
844
+ * @param {Boolean} shallow (optional) False to check whether this Component is descended from the xtype (this is
845
+ * the default), or true to check whether this Component is directly of the specified xtype.
846
+ * @return {Array} Array of Ext.Components
847
+ */
848
+ findByType : function(xtype, shallow){
849
+ return this.findBy(function(c){
850
+ return c.isXType(xtype, shallow);
851
+ });
852
+ },
853
+
854
+ /**
855
+ * Find a component under this container at any level by property
856
+ * @param {String} prop
857
+ * @param {String} value
858
+ * @return {Array} Array of Ext.Components
859
+ */
860
+ find : function(prop, value){
861
+ return this.findBy(function(c){
862
+ return c[prop] === value;
863
+ });
864
+ },
865
+
866
+ /**
867
+ * Find a component under this container at any level by a custom function. If the passed function returns
868
+ * true, the component will be included in the results. The passed function is called with the arguments (component, this container).
869
+ * @param {Function} fn The function to call
870
+ * @param {Object} scope (optional)
871
+ * @return {Array} Array of Ext.Components
872
+ */
873
+ findBy : function(fn, scope){
874
+ var m = [], ct = this;
875
+ this.cascade(function(c){
876
+ if(ct != c && fn.call(scope || c, c, ct) === true){
877
+ m.push(c);
878
+ }
879
+ });
880
+ return m;
881
+ },
882
+
883
+ /**
884
+ * Get a component contained by this container (alias for items.get(key))
885
+ * @param {String/Number} key The index or id of the component
886
+ * @return {Ext.Component} Ext.Component
887
+ */
888
+ get : function(key){
889
+ return this.items.get(key);
890
+ }
891
+ });
892
+
893
+ Ext.Container.LAYOUTS = {};
894
+ Ext.reg('container', Ext.Container);