lpmp 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/LICENSE +3 -0
- data/README +3 -0
- data/Rakefile +45 -0
- data/bin/lpmp +107 -0
- data/config/help.yaml +1 -0
- data/config/hosts.yaml +2 -0
- data/config/log.yaml +1 -0
- data/config/memcache.yaml +5 -0
- data/erb/index.erb +62 -0
- data/lib/bg_pull/caichen.rb +199 -0
- data/lib/bg_pull/lpmp.rb +45 -0
- data/lib/exception.rb +8 -0
- data/lib/lpmp.rb +53 -0
- data/lib/pull/lpmp.rb +355 -0
- data/lib/remote_lmp.rb +129 -0
- data/lib/utils.rb +14 -0
- data/lib/xq_push/caichen.rb +174 -0
- data/lib/xq_push/lpmp.rb +96 -0
- data/log/lpmp1st.log +1 -0
- data/public/css/ext-portal.css +40 -0
- data/public/css/lpmp.css +6 -0
- data/public/designer/caichen.epj +1 -0
- data/public/designer/hostmonitor.epj +1 -0
- data/public/ext-3.0.0/INCLUDE_ORDER.txt +35 -0
- data/public/ext-3.0.0/adapter/ext/ext-base-debug.js +3589 -0
- data/public/ext-3.0.0/adapter/ext/ext-base.js +7 -0
- data/public/ext-3.0.0/adapter/jquery/ext-jquery-adapter-debug.js +2292 -0
- data/public/ext-3.0.0/adapter/jquery/ext-jquery-adapter.js +7 -0
- data/public/ext-3.0.0/adapter/prototype/ext-prototype-adapter-debug.js +2346 -0
- data/public/ext-3.0.0/adapter/prototype/ext-prototype-adapter.js +7 -0
- data/public/ext-3.0.0/adapter/yui/ext-yui-adapter-debug.js +2136 -0
- data/public/ext-3.0.0/adapter/yui/ext-yui-adapter.js +7 -0
- data/public/ext-3.0.0/ext-all-debug.js +65610 -0
- data/public/ext-3.0.0/ext-all.js +11 -0
- data/public/ext-3.0.0/license.txt +42 -0
- data/public/ext-3.0.0/pkgs/cmp-foundation-debug.js +11287 -0
- data/public/ext-3.0.0/pkgs/cmp-foundation.js +7 -0
- data/public/ext-3.0.0/pkgs/data-foundation-debug.js +3853 -0
- data/public/ext-3.0.0/pkgs/data-foundation.js +7 -0
- data/public/ext-3.0.0/pkgs/data-grouping-debug.js +139 -0
- data/public/ext-3.0.0/pkgs/data-grouping.js +7 -0
- data/public/ext-3.0.0/pkgs/data-json-debug.js +582 -0
- data/public/ext-3.0.0/pkgs/data-json.js +7 -0
- data/public/ext-3.0.0/pkgs/data-list-views-debug.js +1278 -0
- data/public/ext-3.0.0/pkgs/data-list-views.js +7 -0
- data/public/ext-3.0.0/pkgs/data-xml-debug.js +234 -0
- data/public/ext-3.0.0/pkgs/data-xml.js +7 -0
- data/public/ext-3.0.0/pkgs/direct-debug.js +1121 -0
- data/public/ext-3.0.0/pkgs/direct.js +7 -0
- data/public/ext-3.0.0/pkgs/ext-dd-debug.js +4567 -0
- data/public/ext-3.0.0/pkgs/ext-dd.js +7 -0
- data/public/ext-3.0.0/pkgs/ext-foundation-debug.js +13417 -0
- data/public/ext-3.0.0/pkgs/ext-foundation.js +7 -0
- data/public/ext-3.0.0/pkgs/pkg-buttons-debug.js +1060 -0
- data/public/ext-3.0.0/pkgs/pkg-buttons.js +7 -0
- data/public/ext-3.0.0/pkgs/pkg-charts-debug.js +1621 -0
- data/public/ext-3.0.0/pkgs/pkg-charts.js +10 -0
- data/public/ext-3.0.0/pkgs/pkg-forms-debug.js +7661 -0
- data/public/ext-3.0.0/pkgs/pkg-forms.js +7 -0
- data/public/ext-3.0.0/pkgs/pkg-grid-editor-debug.js +560 -0
- data/public/ext-3.0.0/pkgs/pkg-grid-editor.js +7 -0
- data/public/ext-3.0.0/pkgs/pkg-grid-foundation-debug.js +4765 -0
- data/public/ext-3.0.0/pkgs/pkg-grid-foundation.js +7 -0
- data/public/ext-3.0.0/pkgs/pkg-grid-grouping-debug.js +517 -0
- data/public/ext-3.0.0/pkgs/pkg-grid-grouping.js +7 -0
- data/public/ext-3.0.0/pkgs/pkg-grid-property-debug.js +370 -0
- data/public/ext-3.0.0/pkgs/pkg-grid-property.js +7 -0
- data/public/ext-3.0.0/pkgs/pkg-history-debug.js +203 -0
- data/public/ext-3.0.0/pkgs/pkg-history.js +7 -0
- data/public/ext-3.0.0/pkgs/pkg-menu-debug.js +1628 -0
- data/public/ext-3.0.0/pkgs/pkg-menu.js +7 -0
- data/public/ext-3.0.0/pkgs/pkg-tabs-debug.js +1100 -0
- data/public/ext-3.0.0/pkgs/pkg-tabs.js +7 -0
- data/public/ext-3.0.0/pkgs/pkg-tips-debug.js +994 -0
- data/public/ext-3.0.0/pkgs/pkg-tips.js +7 -0
- data/public/ext-3.0.0/pkgs/pkg-toolbars-debug.js +1374 -0
- data/public/ext-3.0.0/pkgs/pkg-toolbars.js +7 -0
- data/public/ext-3.0.0/pkgs/pkg-tree-debug.js +4522 -0
- data/public/ext-3.0.0/pkgs/pkg-tree.js +7 -0
- data/public/ext-3.0.0/pkgs/resizable-debug.js +760 -0
- data/public/ext-3.0.0/pkgs/resizable.js +7 -0
- data/public/ext-3.0.0/pkgs/state-debug.js +274 -0
- data/public/ext-3.0.0/pkgs/state.js +7 -0
- data/public/ext-3.0.0/pkgs/window-debug.js +1888 -0
- data/public/ext-3.0.0/pkgs/window.js +7 -0
- data/public/ext-3.0.0/resources/charts.swf +0 -0
- data/public/ext-3.0.0/resources/css/README.txt +3 -0
- data/public/ext-3.0.0/resources/css/ext-all-notheme.css +5345 -0
- data/public/ext-3.0.0/resources/css/ext-all.css +6990 -0
- data/public/ext-3.0.0/resources/css/reset-min.css +7 -0
- data/public/ext-3.0.0/resources/css/structure/borders.css +54 -0
- data/public/ext-3.0.0/resources/css/structure/box.css +80 -0
- data/public/ext-3.0.0/resources/css/structure/button.css +440 -0
- data/public/ext-3.0.0/resources/css/structure/combo.css +45 -0
- data/public/ext-3.0.0/resources/css/structure/core.css +326 -0
- data/public/ext-3.0.0/resources/css/structure/date-picker.css +265 -0
- data/public/ext-3.0.0/resources/css/structure/dd.css +61 -0
- data/public/ext-3.0.0/resources/css/structure/debug.css +26 -0
- data/public/ext-3.0.0/resources/css/structure/dialog.css +62 -0
- data/public/ext-3.0.0/resources/css/structure/editor.css +92 -0
- data/public/ext-3.0.0/resources/css/structure/form.css +562 -0
- data/public/ext-3.0.0/resources/css/structure/grid.css +552 -0
- data/public/ext-3.0.0/resources/css/structure/layout.css +296 -0
- data/public/ext-3.0.0/resources/css/structure/list-view.css +85 -0
- data/public/ext-3.0.0/resources/css/structure/menu.css +205 -0
- data/public/ext-3.0.0/resources/css/structure/panel-reset.css +130 -0
- data/public/ext-3.0.0/resources/css/structure/panel.css +468 -0
- data/public/ext-3.0.0/resources/css/structure/progress.css +42 -0
- data/public/ext-3.0.0/resources/css/structure/qtips.css +153 -0
- data/public/ext-3.0.0/resources/css/structure/reset.css +7 -0
- data/public/ext-3.0.0/resources/css/structure/resizable.css +149 -0
- data/public/ext-3.0.0/resources/css/structure/slider.css +103 -0
- data/public/ext-3.0.0/resources/css/structure/tabs.css +372 -0
- data/public/ext-3.0.0/resources/css/structure/toolbar.css +259 -0
- data/public/ext-3.0.0/resources/css/structure/tree.css +203 -0
- data/public/ext-3.0.0/resources/css/structure/window.css +222 -0
- data/public/ext-3.0.0/resources/css/visual/borders.css +25 -0
- data/public/ext-3.0.0/resources/css/visual/box.css +74 -0
- data/public/ext-3.0.0/resources/css/visual/button.css +94 -0
- data/public/ext-3.0.0/resources/css/visual/combo.css +43 -0
- data/public/ext-3.0.0/resources/css/visual/core.css +76 -0
- data/public/ext-3.0.0/resources/css/visual/date-picker.css +143 -0
- data/public/ext-3.0.0/resources/css/visual/dd.css +29 -0
- data/public/ext-3.0.0/resources/css/visual/debug.css +24 -0
- data/public/ext-3.0.0/resources/css/visual/dialog.css +34 -0
- data/public/ext-3.0.0/resources/css/visual/editor.css +13 -0
- data/public/ext-3.0.0/resources/css/visual/form.css +117 -0
- data/public/ext-3.0.0/resources/css/visual/grid.css +272 -0
- data/public/ext-3.0.0/resources/css/visual/layout.css +53 -0
- data/public/ext-3.0.0/resources/css/visual/list-view.css +37 -0
- data/public/ext-3.0.0/resources/css/visual/menu.css +82 -0
- data/public/ext-3.0.0/resources/css/visual/panel.css +87 -0
- data/public/ext-3.0.0/resources/css/visual/progress.css +32 -0
- data/public/ext-3.0.0/resources/css/visual/qtips.css +44 -0
- data/public/ext-3.0.0/resources/css/visual/resizable.css +43 -0
- data/public/ext-3.0.0/resources/css/visual/slider.css +21 -0
- data/public/ext-3.0.0/resources/css/visual/tabs.css +119 -0
- data/public/ext-3.0.0/resources/css/visual/toolbar.css +103 -0
- data/public/ext-3.0.0/resources/css/visual/tree.css +157 -0
- data/public/ext-3.0.0/resources/css/visual/window.css +86 -0
- data/public/ext-3.0.0/resources/css/xtheme-blue.css +1652 -0
- data/public/ext-3.0.0/resources/expressinstall.swf +0 -0
- data/public/ext-3.0.0/resources/images/default/box/corners-blue.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/box/corners.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/box/l-blue.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/box/l.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/box/r-blue.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/box/r.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/box/tb-blue.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/box/tb.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/button/arrow.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/button/btn.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/button/group-cs.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/button/group-lr.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/button/group-tb.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/button/s-arrow-b-noline.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/button/s-arrow-b.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/button/s-arrow-bo.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/button/s-arrow-noline.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/button/s-arrow-o.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/button/s-arrow.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/dd/drop-add.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/dd/drop-no.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/dd/drop-yes.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/editor/tb-sprite.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/form/checkbox.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/form/clear-trigger.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/form/clear-trigger.psd +0 -0
- data/public/ext-3.0.0/resources/images/default/form/date-trigger.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/form/date-trigger.psd +0 -0
- data/public/ext-3.0.0/resources/images/default/form/error-tip-corners.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/form/exclamation.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/form/radio.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/form/search-trigger.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/form/search-trigger.psd +0 -0
- data/public/ext-3.0.0/resources/images/default/form/text-bg.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/form/trigger-tpl.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/form/trigger.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/form/trigger.psd +0 -0
- data/public/ext-3.0.0/resources/images/default/gradient-bg.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/grid/arrow-left-white.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/grid/arrow-right-white.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/grid/col-move-bottom.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/grid/col-move-top.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/grid/columns.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/grid/dirty.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/grid/done.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/grid/drop-no.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/grid/drop-yes.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/grid/footer-bg.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/grid/grid-blue-hd.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/grid/grid-blue-split.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/grid/grid-hrow.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/grid/grid-loading.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/grid/grid-split.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/grid/grid-vista-hd.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/grid/grid3-hd-btn.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/grid/grid3-hrow-over.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/grid/grid3-hrow.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/grid/grid3-special-col-bg.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/grid/grid3-special-col-sel-bg.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/grid/group-by.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/grid/group-collapse.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/grid/group-expand-sprite.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/grid/group-expand.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/grid/hd-pop.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/grid/hmenu-asc.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/grid/hmenu-desc.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/grid/hmenu-lock.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/grid/hmenu-lock.png +0 -0
- data/public/ext-3.0.0/resources/images/default/grid/hmenu-unlock.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/grid/hmenu-unlock.png +0 -0
- data/public/ext-3.0.0/resources/images/default/grid/invalid_line.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/grid/loading.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/grid/mso-hd.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/grid/nowait.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/grid/page-first-disabled.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/grid/page-first.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/grid/page-last-disabled.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/grid/page-last.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/grid/page-next-disabled.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/grid/page-next.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/grid/page-prev-disabled.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/grid/page-prev.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/grid/pick-button.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/grid/refresh.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/grid/row-check-sprite.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/grid/row-expand-sprite.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/grid/row-over.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/grid/row-sel.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/grid/sort-hd.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/grid/sort_asc.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/grid/sort_desc.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/grid/wait.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/layout/collapse.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/layout/expand.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/layout/gradient-bg.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/layout/mini-bottom.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/layout/mini-left.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/layout/mini-right.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/layout/mini-top.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/layout/ns-collapse.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/layout/ns-expand.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/layout/panel-close.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/layout/panel-title-bg.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/layout/panel-title-light-bg.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/layout/stick.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/layout/stuck.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/layout/tab-close-on.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/layout/tab-close.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/menu/checked.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/menu/group-checked.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/menu/item-over.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/menu/menu-parent.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/menu/menu.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/menu/unchecked.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/panel/corners-sprite.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/panel/left-right.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/panel/light-hd.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/panel/tool-sprite-tpl.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/panel/tool-sprites.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/panel/tools-sprites-trans.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/panel/top-bottom.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/panel/top-bottom.png +0 -0
- data/public/ext-3.0.0/resources/images/default/panel/white-corners-sprite.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/panel/white-left-right.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/panel/white-top-bottom.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/progress/progress-bg.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/qtip/bg.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/qtip/close.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/qtip/tip-anchor-sprite.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/qtip/tip-sprite.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/s.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/shadow-c.png +0 -0
- data/public/ext-3.0.0/resources/images/default/shadow-lr.png +0 -0
- data/public/ext-3.0.0/resources/images/default/shadow.png +0 -0
- data/public/ext-3.0.0/resources/images/default/shared/blue-loading.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/shared/calendar.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/shared/glass-bg.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/shared/hd-sprite.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/shared/large-loading.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/shared/left-btn.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/shared/loading-balls.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/shared/right-btn.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/shared/warning.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/sizer/e-handle-dark.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/sizer/e-handle.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/sizer/ne-handle-dark.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/sizer/ne-handle.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/sizer/nw-handle-dark.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/sizer/nw-handle.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/sizer/s-handle-dark.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/sizer/s-handle.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/sizer/se-handle-dark.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/sizer/se-handle.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/sizer/square.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/sizer/sw-handle-dark.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/sizer/sw-handle.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/slider/slider-bg.png +0 -0
- data/public/ext-3.0.0/resources/images/default/slider/slider-thumb.png +0 -0
- data/public/ext-3.0.0/resources/images/default/slider/slider-v-bg.png +0 -0
- data/public/ext-3.0.0/resources/images/default/slider/slider-v-thumb.png +0 -0
- data/public/ext-3.0.0/resources/images/default/tabs/scroll-left.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/tabs/scroll-right.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/tabs/scroller-bg.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/tabs/tab-btm-inactive-left-bg.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/tabs/tab-btm-inactive-right-bg.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/tabs/tab-btm-left-bg.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/tabs/tab-btm-right-bg.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/tabs/tab-close.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/tabs/tab-strip-bg.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/tabs/tab-strip-bg.png +0 -0
- data/public/ext-3.0.0/resources/images/default/tabs/tab-strip-btm-bg.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/tabs/tabs-sprite.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/toolbar/bg.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/toolbar/btn-arrow-light.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/toolbar/btn-arrow.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/toolbar/btn-over-bg.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/toolbar/gray-bg.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/toolbar/more.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/toolbar/tb-bg.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/toolbar/tb-btn-sprite.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/toolbar/tb-xl-btn-sprite.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/toolbar/tb-xl-sep.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/tree/arrows.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/tree/drop-add.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/tree/drop-between.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/tree/drop-no.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/tree/drop-over.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/tree/drop-under.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/tree/drop-yes.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/tree/elbow-end-minus-nl.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/tree/elbow-end-minus.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/tree/elbow-end-plus-nl.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/tree/elbow-end-plus.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/tree/elbow-end.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/tree/elbow-line.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/tree/elbow-minus-nl.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/tree/elbow-minus.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/tree/elbow-plus-nl.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/tree/elbow-plus.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/tree/elbow.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/tree/folder-open.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/tree/folder.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/tree/leaf.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/tree/loading.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/tree/s.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/window/icon-error.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/window/icon-info.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/window/icon-question.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/window/icon-warning.gif +0 -0
- data/public/ext-3.0.0/resources/images/default/window/left-corners.png +0 -0
- data/public/ext-3.0.0/resources/images/default/window/left-corners.psd +0 -0
- data/public/ext-3.0.0/resources/images/default/window/left-right.png +0 -0
- data/public/ext-3.0.0/resources/images/default/window/left-right.psd +0 -0
- data/public/ext-3.0.0/resources/images/default/window/right-corners.png +0 -0
- data/public/ext-3.0.0/resources/images/default/window/right-corners.psd +0 -0
- data/public/ext-3.0.0/resources/images/default/window/top-bottom.png +0 -0
- data/public/ext-3.0.0/resources/images/default/window/top-bottom.psd +0 -0
- data/public/ext-3.0.0/resources/images/icon/chart.gif +0 -0
- data/public/ext-3.0.0/src/adapter/core/ext-base-ajax.js +371 -0
- data/public/ext-3.0.0/src/adapter/core/ext-base-anim-extra.js +301 -0
- data/public/ext-3.0.0/src/adapter/core/ext-base-anim.js +477 -0
- data/public/ext-3.0.0/src/adapter/core/ext-base-begin.js +18 -0
- data/public/ext-3.0.0/src/adapter/core/ext-base-dom.js +157 -0
- data/public/ext-3.0.0/src/adapter/core/ext-base-end.js +21 -0
- data/public/ext-3.0.0/src/adapter/core/ext-base-event.js +453 -0
- data/public/ext-3.0.0/src/adapter/core/ext-base-point.js +17 -0
- data/public/ext-3.0.0/src/adapter/core/ext-base-region.js +81 -0
- data/public/ext-3.0.0/src/adapter/ext-base-dom-more.js +9 -0
- data/public/ext-3.0.0/src/adapter/jquery-bridge.js +546 -0
- data/public/ext-3.0.0/src/adapter/prototype-bridge.js +600 -0
- data/public/ext-3.0.0/src/adapter/yui-bridge.js +390 -0
- data/public/ext-3.0.0/src/core/CompositeElement.js +136 -0
- data/public/ext-3.0.0/src/core/CompositeElementLite-more.js +102 -0
- data/public/ext-3.0.0/src/core/DomHelper-more.js +179 -0
- data/public/ext-3.0.0/src/core/Element-more.js +192 -0
- data/public/ext-3.0.0/src/core/Element.alignment.js +370 -0
- data/public/ext-3.0.0/src/core/Element.dd.js +46 -0
- data/public/ext-3.0.0/src/core/Element.fx-more.js +152 -0
- data/public/ext-3.0.0/src/core/Element.insertion-more.js +52 -0
- data/public/ext-3.0.0/src/core/Element.keys.js +48 -0
- data/public/ext-3.0.0/src/core/Element.legacy.js +42 -0
- data/public/ext-3.0.0/src/core/Element.position-more.js +165 -0
- data/public/ext-3.0.0/src/core/Element.scroll-more.js +110 -0
- data/public/ext-3.0.0/src/core/Element.style-more.js +318 -0
- data/public/ext-3.0.0/src/core/Error.js +81 -0
- data/public/ext-3.0.0/src/core/EventManager-more.js +334 -0
- data/public/ext-3.0.0/src/core/Ext-more.js +669 -0
- data/public/ext-3.0.0/src/core/Template-more.js +115 -0
- data/public/ext-3.0.0/src/core/core/CompositeElementLite.js +197 -0
- data/public/ext-3.0.0/src/core/core/DomHelper.js +378 -0
- data/public/ext-3.0.0/src/core/core/DomQuery.js +826 -0
- data/public/ext-3.0.0/src/core/core/Element.fx.js +324 -0
- data/public/ext-3.0.0/src/core/core/Element.insertion.js +147 -0
- data/public/ext-3.0.0/src/core/core/Element.js +945 -0
- data/public/ext-3.0.0/src/core/core/Element.position.js +303 -0
- data/public/ext-3.0.0/src/core/core/Element.scroll.js +58 -0
- data/public/ext-3.0.0/src/core/core/Element.style.js +439 -0
- data/public/ext-3.0.0/src/core/core/Element.traversal.js +176 -0
- data/public/ext-3.0.0/src/core/core/EventManager.js +623 -0
- data/public/ext-3.0.0/src/core/core/Ext.js +922 -0
- data/public/ext-3.0.0/src/core/core/Fx.js +1115 -0
- data/public/ext-3.0.0/src/core/core/Template.js +185 -0
- data/public/ext-3.0.0/src/data/Api.js +210 -0
- data/public/ext-3.0.0/src/data/ArrayReader.js +102 -0
- data/public/ext-3.0.0/src/data/ArrayStore.js +70 -0
- data/public/ext-3.0.0/src/data/DataField.js +249 -0
- data/public/ext-3.0.0/src/data/DataProxy.js +427 -0
- data/public/ext-3.0.0/src/data/DataReader.js +160 -0
- data/public/ext-3.0.0/src/data/DataWriter.js +201 -0
- data/public/ext-3.0.0/src/data/DirectProxy.js +141 -0
- data/public/ext-3.0.0/src/data/DirectStore.js +52 -0
- data/public/ext-3.0.0/src/data/GroupingStore.js +139 -0
- data/public/ext-3.0.0/src/data/HttpProxy.js +276 -0
- data/public/ext-3.0.0/src/data/JsonReader.js +311 -0
- data/public/ext-3.0.0/src/data/JsonStore.js +49 -0
- data/public/ext-3.0.0/src/data/JsonWriter.js +77 -0
- data/public/ext-3.0.0/src/data/MemoryProxy.js +69 -0
- data/public/ext-3.0.0/src/data/Record.js +400 -0
- data/public/ext-3.0.0/src/data/ScriptTagProxy.js +279 -0
- data/public/ext-3.0.0/src/data/SortTypes.js +91 -0
- data/public/ext-3.0.0/src/data/Store.js +1492 -0
- data/public/ext-3.0.0/src/data/StoreMgr.js +72 -0
- data/public/ext-3.0.0/src/data/Tree.js +785 -0
- data/public/ext-3.0.0/src/data/XmlReader.js +128 -0
- data/public/ext-3.0.0/src/data/XmlStore.js +75 -0
- data/public/ext-3.0.0/src/data/XmlWriter.js +45 -0
- data/public/ext-3.0.0/src/data/core/Connection.js +575 -0
- data/public/ext-3.0.0/src/dd/DDCore.js +2992 -0
- data/public/ext-3.0.0/src/dd/DragSource.js +365 -0
- data/public/ext-3.0.0/src/dd/DragTracker.js +217 -0
- data/public/ext-3.0.0/src/dd/DragZone.js +133 -0
- data/public/ext-3.0.0/src/dd/DropTarget.js +115 -0
- data/public/ext-3.0.0/src/dd/DropZone.js +262 -0
- data/public/ext-3.0.0/src/dd/Registry.js +127 -0
- data/public/ext-3.0.0/src/dd/ScrollManager.js +201 -0
- data/public/ext-3.0.0/src/dd/StatusProxy.js +171 -0
- data/public/ext-3.0.0/src/debug.js +906 -0
- data/public/ext-3.0.0/src/direct/Direct.js +235 -0
- data/public/ext-3.0.0/src/direct/Event.js +34 -0
- data/public/ext-3.0.0/src/direct/JsonProvider.js +45 -0
- data/public/ext-3.0.0/src/direct/PollingProvider.js +151 -0
- data/public/ext-3.0.0/src/direct/Provider.js +110 -0
- data/public/ext-3.0.0/src/direct/RemotingProvider.js +373 -0
- data/public/ext-3.0.0/src/direct/Transaction.js +32 -0
- data/public/ext-3.0.0/src/locale/ext-lang-af.js +184 -0
- data/public/ext-3.0.0/src/locale/ext-lang-bg.js +278 -0
- data/public/ext-3.0.0/src/locale/ext-lang-ca.js +315 -0
- data/public/ext-3.0.0/src/locale/ext-lang-cs.js +293 -0
- data/public/ext-3.0.0/src/locale/ext-lang-da.js +296 -0
- data/public/ext-3.0.0/src/locale/ext-lang-de.js +326 -0
- data/public/ext-3.0.0/src/locale/ext-lang-el_GR.js +309 -0
- data/public/ext-3.0.0/src/locale/ext-lang-en.js +335 -0
- data/public/ext-3.0.0/src/locale/ext-lang-en_GB.js +315 -0
- data/public/ext-3.0.0/src/locale/ext-lang-es.js +318 -0
- data/public/ext-3.0.0/src/locale/ext-lang-fa.js +272 -0
- data/public/ext-3.0.0/src/locale/ext-lang-fi.js +302 -0
- data/public/ext-3.0.0/src/locale/ext-lang-fr.js +335 -0
- data/public/ext-3.0.0/src/locale/ext-lang-fr_CA.js +218 -0
- data/public/ext-3.0.0/src/locale/ext-lang-gr.js +175 -0
- data/public/ext-3.0.0/src/locale/ext-lang-he.js +292 -0
- data/public/ext-3.0.0/src/locale/ext-lang-hr.js +295 -0
- data/public/ext-3.0.0/src/locale/ext-lang-hu.js +296 -0
- data/public/ext-3.0.0/src/locale/ext-lang-id.js +302 -0
- data/public/ext-3.0.0/src/locale/ext-lang-it.js +295 -0
- data/public/ext-3.0.0/src/locale/ext-lang-ja.js +318 -0
- data/public/ext-3.0.0/src/locale/ext-lang-ko.js +267 -0
- data/public/ext-3.0.0/src/locale/ext-lang-lt.js +333 -0
- data/public/ext-3.0.0/src/locale/ext-lang-lv.js +176 -0
- data/public/ext-3.0.0/src/locale/ext-lang-mk.js +176 -0
- data/public/ext-3.0.0/src/locale/ext-lang-nl.js +323 -0
- data/public/ext-3.0.0/src/locale/ext-lang-no_NB.js +294 -0
- data/public/ext-3.0.0/src/locale/ext-lang-no_NN.js +294 -0
- data/public/ext-3.0.0/src/locale/ext-lang-pl.js +304 -0
- data/public/ext-3.0.0/src/locale/ext-lang-pt.js +260 -0
- data/public/ext-3.0.0/src/locale/ext-lang-pt_BR.js +302 -0
- data/public/ext-3.0.0/src/locale/ext-lang-pt_PT.js +298 -0
- data/public/ext-3.0.0/src/locale/ext-lang-ro.js +295 -0
- data/public/ext-3.0.0/src/locale/ext-lang-ru.js +319 -0
- data/public/ext-3.0.0/src/locale/ext-lang-sk.js +182 -0
- data/public/ext-3.0.0/src/locale/ext-lang-sl.js +176 -0
- data/public/ext-3.0.0/src/locale/ext-lang-sr.js +179 -0
- data/public/ext-3.0.0/src/locale/ext-lang-sr_RS.js +178 -0
- data/public/ext-3.0.0/src/locale/ext-lang-sv_SE.js +178 -0
- data/public/ext-3.0.0/src/locale/ext-lang-th.js +294 -0
- data/public/ext-3.0.0/src/locale/ext-lang-tr.js +306 -0
- data/public/ext-3.0.0/src/locale/ext-lang-ukr.js +258 -0
- data/public/ext-3.0.0/src/locale/ext-lang-vn.js +181 -0
- data/public/ext-3.0.0/src/locale/ext-lang-zh_CN.js +174 -0
- data/public/ext-3.0.0/src/locale/ext-lang-zh_TW.js +178 -0
- data/public/ext-3.0.0/src/state/CookieProvider.js +91 -0
- data/public/ext-3.0.0/src/state/Provider.js +127 -0
- data/public/ext-3.0.0/src/state/StateManager.js +69 -0
- data/public/ext-3.0.0/src/util/CSS.js +161 -0
- data/public/ext-3.0.0/src/util/ClickRepeater.js +200 -0
- data/public/ext-3.0.0/src/util/Cookies.js +96 -0
- data/public/ext-3.0.0/src/util/Date.js +1317 -0
- data/public/ext-3.0.0/src/util/Format.js +356 -0
- data/public/ext-3.0.0/src/util/History.js +203 -0
- data/public/ext-3.0.0/src/util/KeyMap.js +242 -0
- data/public/ext-3.0.0/src/util/KeyNav.js +161 -0
- data/public/ext-3.0.0/src/util/MixedCollection.js +576 -0
- data/public/ext-3.0.0/src/util/Observable-more.js +178 -0
- data/public/ext-3.0.0/src/util/TextMetrics.js +131 -0
- data/public/ext-3.0.0/src/util/UpdateManager.js +536 -0
- data/public/ext-3.0.0/src/util/XTemplate.js +379 -0
- data/public/ext-3.0.0/src/util/core/DelayedTask.js +68 -0
- data/public/ext-3.0.0/src/util/core/JSON.js +174 -0
- data/public/ext-3.0.0/src/util/core/Observable.js +483 -0
- data/public/ext-3.0.0/src/util/core/TaskMgr.js +174 -0
- data/public/ext-3.0.0/src/widgets/Action.js +252 -0
- data/public/ext-3.0.0/src/widgets/BoxComponent.js +519 -0
- data/public/ext-3.0.0/src/widgets/Button.js +762 -0
- data/public/ext-3.0.0/src/widgets/ButtonGroup.js +103 -0
- data/public/ext-3.0.0/src/widgets/ColorPalette.js +148 -0
- data/public/ext-3.0.0/src/widgets/Component.js +1540 -0
- data/public/ext-3.0.0/src/widgets/ComponentMgr.js +159 -0
- data/public/ext-3.0.0/src/widgets/Container.js +894 -0
- data/public/ext-3.0.0/src/widgets/CycleButton.js +188 -0
- data/public/ext-3.0.0/src/widgets/DataView.js +749 -0
- data/public/ext-3.0.0/src/widgets/DatePicker.js +771 -0
- data/public/ext-3.0.0/src/widgets/Editor.js +385 -0
- data/public/ext-3.0.0/src/widgets/Layer.js +466 -0
- data/public/ext-3.0.0/src/widgets/LoadMask.js +123 -0
- data/public/ext-3.0.0/src/widgets/MessageBox.js +626 -0
- data/public/ext-3.0.0/src/widgets/PagingToolbar.js +502 -0
- data/public/ext-3.0.0/src/widgets/Panel.js +1772 -0
- data/public/ext-3.0.0/src/widgets/PanelDD.js +154 -0
- data/public/ext-3.0.0/src/widgets/ProgressBar.js +289 -0
- data/public/ext-3.0.0/src/widgets/Resizable.js +760 -0
- data/public/ext-3.0.0/src/widgets/Shadow.js +192 -0
- data/public/ext-3.0.0/src/widgets/Slider.js +426 -0
- data/public/ext-3.0.0/src/widgets/SplitBar.js +436 -0
- data/public/ext-3.0.0/src/widgets/SplitButton.js +124 -0
- data/public/ext-3.0.0/src/widgets/TabPanel.js +1100 -0
- data/public/ext-3.0.0/src/widgets/Toolbar.js +781 -0
- data/public/ext-3.0.0/src/widgets/Viewport.js +124 -0
- data/public/ext-3.0.0/src/widgets/Window.js +941 -0
- data/public/ext-3.0.0/src/widgets/WindowManager.js +187 -0
- data/public/ext-3.0.0/src/widgets/chart/Chart.js +721 -0
- data/public/ext-3.0.0/src/widgets/chart/EventProxy.js +20 -0
- data/public/ext-3.0.0/src/widgets/chart/FlashComponent.js +117 -0
- data/public/ext-3.0.0/src/widgets/chart/swfobject.js +783 -0
- data/public/ext-3.0.0/src/widgets/form/Action.js +626 -0
- data/public/ext-3.0.0/src/widgets/form/BasicForm.js +735 -0
- data/public/ext-3.0.0/src/widgets/form/Checkbox.js +177 -0
- data/public/ext-3.0.0/src/widgets/form/CheckboxGroup.js +419 -0
- data/public/ext-3.0.0/src/widgets/form/Combo.js +1232 -0
- data/public/ext-3.0.0/src/widgets/form/DateField.js +389 -0
- data/public/ext-3.0.0/src/widgets/form/DisplayField.js +98 -0
- data/public/ext-3.0.0/src/widgets/form/Field.js +640 -0
- data/public/ext-3.0.0/src/widgets/form/FieldSet.js +305 -0
- data/public/ext-3.0.0/src/widgets/form/Form.js +335 -0
- data/public/ext-3.0.0/src/widgets/form/Hidden.js +39 -0
- data/public/ext-3.0.0/src/widgets/form/HtmlEditor.js +1179 -0
- data/public/ext-3.0.0/src/widgets/form/Label.js +64 -0
- data/public/ext-3.0.0/src/widgets/form/NumberField.js +139 -0
- data/public/ext-3.0.0/src/widgets/form/Radio.js +81 -0
- data/public/ext-3.0.0/src/widgets/form/RadioGroup.js +116 -0
- data/public/ext-3.0.0/src/widgets/form/TextArea.js +117 -0
- data/public/ext-3.0.0/src/widgets/form/TextField.js +491 -0
- data/public/ext-3.0.0/src/widgets/form/TimeField.js +146 -0
- data/public/ext-3.0.0/src/widgets/form/TriggerField.js +328 -0
- data/public/ext-3.0.0/src/widgets/form/VTypes.js +135 -0
- data/public/ext-3.0.0/src/widgets/grid/AbstractSelectionModel.js +57 -0
- data/public/ext-3.0.0/src/widgets/grid/CellSelectionModel.js +262 -0
- data/public/ext-3.0.0/src/widgets/grid/CheckboxSelectionModel.js +103 -0
- data/public/ext-3.0.0/src/widgets/grid/Column.js +406 -0
- data/public/ext-3.0.0/src/widgets/grid/ColumnDD.js +199 -0
- data/public/ext-3.0.0/src/widgets/grid/ColumnModel.js +592 -0
- data/public/ext-3.0.0/src/widgets/grid/ColumnSplitDD.js +62 -0
- data/public/ext-3.0.0/src/widgets/grid/EditorGrid.js +291 -0
- data/public/ext-3.0.0/src/widgets/grid/GridDD.js +95 -0
- data/public/ext-3.0.0/src/widgets/grid/GridEditor.js +21 -0
- data/public/ext-3.0.0/src/widgets/grid/GridPanel.js +952 -0
- data/public/ext-3.0.0/src/widgets/grid/GridView.js +1776 -0
- data/public/ext-3.0.0/src/widgets/grid/GroupingView.js +517 -0
- data/public/ext-3.0.0/src/widgets/grid/PropertyGrid.js +370 -0
- data/public/ext-3.0.0/src/widgets/grid/RowNumberer.js +61 -0
- data/public/ext-3.0.0/src/widgets/grid/RowSelectionModel.js +530 -0
- data/public/ext-3.0.0/src/widgets/layout/AbsoluteLayout.js +82 -0
- data/public/ext-3.0.0/src/widgets/layout/AccordionLayout.js +177 -0
- data/public/ext-3.0.0/src/widgets/layout/AnchorLayout.js +200 -0
- data/public/ext-3.0.0/src/widgets/layout/BorderLayout.js +1108 -0
- data/public/ext-3.0.0/src/widgets/layout/BoxLayout.js +417 -0
- data/public/ext-3.0.0/src/widgets/layout/CardLayout.js +127 -0
- data/public/ext-3.0.0/src/widgets/layout/ColumnLayout.js +130 -0
- data/public/ext-3.0.0/src/widgets/layout/ContainerLayout.js +215 -0
- data/public/ext-3.0.0/src/widgets/layout/FitLayout.js +48 -0
- data/public/ext-3.0.0/src/widgets/layout/FormLayout.js +266 -0
- data/public/ext-3.0.0/src/widgets/layout/TableLayout.js +194 -0
- data/public/ext-3.0.0/src/widgets/list/ColumnResizer.js +123 -0
- data/public/ext-3.0.0/src/widgets/list/ListView.js +357 -0
- data/public/ext-3.0.0/src/widgets/list/Sorter.js +70 -0
- data/public/ext-3.0.0/src/widgets/menu/BaseItem.js +160 -0
- data/public/ext-3.0.0/src/widgets/menu/CheckItem.js +114 -0
- data/public/ext-3.0.0/src/widgets/menu/ColorMenu.js +72 -0
- data/public/ext-3.0.0/src/widgets/menu/DateMenu.js +90 -0
- data/public/ext-3.0.0/src/widgets/menu/Item.js +211 -0
- data/public/ext-3.0.0/src/widgets/menu/Menu.js +733 -0
- data/public/ext-3.0.0/src/widgets/menu/MenuMgr.js +211 -0
- data/public/ext-3.0.0/src/widgets/menu/Separator.js +46 -0
- data/public/ext-3.0.0/src/widgets/menu/TextItem.js +46 -0
- data/public/ext-3.0.0/src/widgets/tips/QuickTip.js +207 -0
- data/public/ext-3.0.0/src/widgets/tips/QuickTips.js +159 -0
- data/public/ext-3.0.0/src/widgets/tips/Tip.js +157 -0
- data/public/ext-3.0.0/src/widgets/tips/ToolTip.js +492 -0
- data/public/ext-3.0.0/src/widgets/tree/AsyncTreeNode.js +114 -0
- data/public/ext-3.0.0/src/widgets/tree/TreeDragZone.js +82 -0
- data/public/ext-3.0.0/src/widgets/tree/TreeDropZone.js +321 -0
- data/public/ext-3.0.0/src/widgets/tree/TreeEditor.js +160 -0
- data/public/ext-3.0.0/src/widgets/tree/TreeEventModel.js +169 -0
- data/public/ext-3.0.0/src/widgets/tree/TreeFilter.js +114 -0
- data/public/ext-3.0.0/src/widgets/tree/TreeLoader.js +342 -0
- data/public/ext-3.0.0/src/widgets/tree/TreeNode.js +546 -0
- data/public/ext-3.0.0/src/widgets/tree/TreeNodeUI.js +633 -0
- data/public/ext-3.0.0/src/widgets/tree/TreePanel.js +918 -0
- data/public/ext-3.0.0/src/widgets/tree/TreeSelectionModel.js +315 -0
- data/public/ext-3.0.0/src/widgets/tree/TreeSorter.js +106 -0
- data/public/js/ext-portal.js +235 -0
- data/public/js/global.js +7 -0
- data/public/js/outerframe.js +47 -0
- data/public/js/portal.js +713 -0
- data/public/js/test_chart.js +152 -0
- data/test/config.rb +62 -0
- data/test/config/hosts.yaml +5 -0
- data/test/config/log.yaml +1 -0
- data/test/config/memcache.yaml +5 -0
- data/test/exception.rb +39 -0
- data/test/method_missing.rb +14 -0
- data/test/module.rb +39 -0
- data/test/remote_lmp.rb +126 -0
- data/test/sinatra.rb +29 -0
- data/test/sinatra_base.rb +16 -0
- 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 <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> <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);
|