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,952 @@
|
|
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.grid.GridPanel
|
9
|
+
* @extends Ext.Panel
|
10
|
+
* <p>This class represents the primary interface of a component based grid control to represent data
|
11
|
+
* in a tabular format of rows and columns. The GridPanel is composed of the following:</p>
|
12
|
+
* <div class="mdetail-params"><ul>
|
13
|
+
* <li><b>{@link Ext.data.Store Store}</b> : The Model holding the data records (rows)
|
14
|
+
* <div class="sub-desc"></div></li>
|
15
|
+
* <li><b>{@link Ext.grid.ColumnModel Column model}</b> : Column makeup
|
16
|
+
* <div class="sub-desc"></div></li>
|
17
|
+
* <li><b>{@link Ext.grid.GridView View}</b> : Encapsulates the user interface
|
18
|
+
* <div class="sub-desc"></div></li>
|
19
|
+
* <li><b>{@link Ext.grid.AbstractSelectionModel selection model}</b> : Selection behavior
|
20
|
+
* <div class="sub-desc"></div></li>
|
21
|
+
* </ul></div>
|
22
|
+
* <p>Example usage:</p>
|
23
|
+
* <pre><code>
|
24
|
+
var grid = new Ext.grid.GridPanel({
|
25
|
+
{@link #store}: new (@link Ext.data.Store}({
|
26
|
+
{@link Ext.data.Store#autoDestroy autoDestroy}: true,
|
27
|
+
{@link Ext.data.Store#reader reader}: reader,
|
28
|
+
{@link Ext.data.Store#data data}: xg.dummyData
|
29
|
+
}),
|
30
|
+
{@link #columns}: [
|
31
|
+
{id: 'company', header: 'Company', width: 200, sortable: true, dataIndex: 'company'},
|
32
|
+
{header: 'Price', width: 120, sortable: true, renderer: Ext.util.Format.usMoney, dataIndex: 'price'},
|
33
|
+
{header: 'Change', width: 120, sortable: true, dataIndex: 'change'},
|
34
|
+
{header: '% Change', width: 120, sortable: true, dataIndex: 'pctChange'},
|
35
|
+
// instead of specifying renderer: Ext.util.Format.dateRenderer('m/d/Y') use xtype
|
36
|
+
{header: 'Last Updated', width: 135, sortable: true, dataIndex: 'lastChange', xtype: 'datecolumn', format: 'M d, Y'}
|
37
|
+
],
|
38
|
+
{@link #viewConfig}: {
|
39
|
+
{@link Ext.grid.GridView#forceFit forceFit}: true,
|
40
|
+
|
41
|
+
// Return CSS class to apply to rows depending upon data values
|
42
|
+
{@link Ext.grid.GridView#getRowClass getRowClass}: function(record, index) {
|
43
|
+
var c = record.{@link Ext.data.Record#get get}('change');
|
44
|
+
if (c < 0) {
|
45
|
+
return 'price-fall';
|
46
|
+
} else if (c > 0) {
|
47
|
+
return 'price-rise';
|
48
|
+
}
|
49
|
+
}
|
50
|
+
},
|
51
|
+
{@link #sm}: new Ext.grid.RowSelectionModel({singleSelect:true}),
|
52
|
+
width: 600,
|
53
|
+
height: 300,
|
54
|
+
frame: true,
|
55
|
+
title: 'Framed with Row Selection and Horizontal Scrolling',
|
56
|
+
iconCls: 'icon-grid'
|
57
|
+
});
|
58
|
+
* </code></pre>
|
59
|
+
* <p><b><u>Notes:</u></b></p>
|
60
|
+
* <div class="mdetail-params"><ul>
|
61
|
+
* <li>Although this class inherits many configuration options from base classes, some of them
|
62
|
+
* (such as autoScroll, autoWidth, layout, items, etc) are not used by this class, and will
|
63
|
+
* have no effect.</li>
|
64
|
+
* <li>A grid <b>requires</b> a width in which to scroll its columns, and a height in which to
|
65
|
+
* scroll its rows. These dimensions can either be set explicitly through the
|
66
|
+
* <tt>{@link Ext.BoxComponent#height height}</tt> and <tt>{@link Ext.BoxComponent#width width}</tt>
|
67
|
+
* configuration options or implicitly set by using the grid as a child item of a
|
68
|
+
* {@link Ext.Container Container} which will have a {@link Ext.Container#layout layout manager}
|
69
|
+
* provide the sizing of its child items (for example the Container of the Grid may specify
|
70
|
+
* <tt>{@link Ext.Container#layout layout}:'fit'</tt>).</li>
|
71
|
+
* <li>To access the data in a Grid, it is necessary to use the data model encapsulated
|
72
|
+
* by the {@link #store Store}. See the {@link #cellclick} event for more details.</li>
|
73
|
+
* </ul></div>
|
74
|
+
* @constructor
|
75
|
+
* @param {Object} config The config object
|
76
|
+
* @xtype grid
|
77
|
+
*/
|
78
|
+
Ext.grid.GridPanel = Ext.extend(Ext.Panel, {
|
79
|
+
/**
|
80
|
+
* @cfg {String} autoExpandColumn
|
81
|
+
* <p>The <tt>{@link Ext.grid.Column#id id}</tt> of a {@link Ext.grid.Column column} in
|
82
|
+
* this grid that should expand to fill unused space. This value specified here can not
|
83
|
+
* be <tt>0</tt>.</p>
|
84
|
+
* <br><p><b>Note</b>: If the Grid's {@link Ext.grid.GridView view} is configured with
|
85
|
+
* <tt>{@link Ext.grid.GridView#forceFit forceFit}=true</tt> the <tt>autoExpandColumn</tt>
|
86
|
+
* is ignored. See {@link Ext.grid.Column}.<tt>{@link Ext.grid.Column#width width}</tt>
|
87
|
+
* for additional details.</p>
|
88
|
+
* <p>See <tt>{@link #autoExpandMax}</tt> and <tt>{@link #autoExpandMin}</tt> also.</p>
|
89
|
+
*/
|
90
|
+
autoExpandColumn : false,
|
91
|
+
/**
|
92
|
+
* @cfg {Number} autoExpandMax The maximum width the <tt>{@link #autoExpandColumn}</tt>
|
93
|
+
* can have (if enabled). Defaults to <tt>1000</tt>.
|
94
|
+
*/
|
95
|
+
autoExpandMax : 1000,
|
96
|
+
/**
|
97
|
+
* @cfg {Number} autoExpandMin The minimum width the <tt>{@link #autoExpandColumn}</tt>
|
98
|
+
* can have (if enabled). Defaults to <tt>50</tt>.
|
99
|
+
*/
|
100
|
+
autoExpandMin : 50,
|
101
|
+
/**
|
102
|
+
* @cfg {Boolean} columnLines <tt>true</tt> to add css for column separation lines.
|
103
|
+
* Default is <tt>false</tt>.
|
104
|
+
*/
|
105
|
+
columnLines : false,
|
106
|
+
/**
|
107
|
+
* @cfg {Object} cm Shorthand for <tt>{@link #colModel}</tt>.
|
108
|
+
*/
|
109
|
+
/**
|
110
|
+
* @cfg {Object} colModel The {@link Ext.grid.ColumnModel} to use when rendering the grid (required).
|
111
|
+
*/
|
112
|
+
/**
|
113
|
+
* @cfg {Array} columns An array of {@link Ext.grid.Column columns} to auto create a
|
114
|
+
* {@link Ext.grid.ColumnModel}. The ColumnModel may be explicitly created via the
|
115
|
+
* <tt>{@link #colModel}</tt> configuration property.
|
116
|
+
*/
|
117
|
+
/**
|
118
|
+
* @cfg {String} ddGroup The DD group this GridPanel belongs to. Defaults to <tt>'GridDD'</tt> if not specified.
|
119
|
+
*/
|
120
|
+
/**
|
121
|
+
* @cfg {String} ddText
|
122
|
+
* Configures the text in the drag proxy. Defaults to:
|
123
|
+
* <pre><code>
|
124
|
+
* ddText : '{0} selected row{1}'
|
125
|
+
* </code></pre>
|
126
|
+
* <tt>{0}</tt> is replaced with the number of selected rows.
|
127
|
+
*/
|
128
|
+
ddText : '{0} selected row{1}',
|
129
|
+
/**
|
130
|
+
* @cfg {Boolean} deferRowRender <P>Defaults to <tt>true</tt> to enable deferred row rendering.</p>
|
131
|
+
* <p>This allows the GridPanel to be initially rendered empty, with the expensive update of the row
|
132
|
+
* structure deferred so that layouts with GridPanels appear more quickly.</p>
|
133
|
+
*/
|
134
|
+
deferRowRender : true,
|
135
|
+
/**
|
136
|
+
* @cfg {Boolean} disableSelection <p><tt>true</tt> to disable selections in the grid. Defaults to <tt>false</tt>.</p>
|
137
|
+
* <p>Ignored if a {@link #selModel SelectionModel} is specified.</p>
|
138
|
+
*/
|
139
|
+
/**
|
140
|
+
* @cfg {Boolean} enableColumnResize <tt>false</tt> to turn off column resizing for the whole grid. Defaults to <tt>true</tt>.
|
141
|
+
*/
|
142
|
+
/**
|
143
|
+
* @cfg {Boolean} enableColumnHide Defaults to <tt>true</tt> to enable hiding of columns with the header context menu.
|
144
|
+
*/
|
145
|
+
enableColumnHide : true,
|
146
|
+
/**
|
147
|
+
* @cfg {Boolean} enableColumnMove Defaults to <tt>true</tt> to enable drag and drop reorder of columns. <tt>false</tt>
|
148
|
+
* to turn off column reordering via drag drop.
|
149
|
+
*/
|
150
|
+
enableColumnMove : true,
|
151
|
+
/**
|
152
|
+
* @cfg {Boolean} enableDragDrop <p>Enables dragging of the selected rows of the GridPanel. Defaults to <tt>false</tt>.</p>
|
153
|
+
* <p>Setting this to <b><tt>true</tt></b> causes this GridPanel's {@link #getView GridView} to
|
154
|
+
* create an instance of {@link Ext.grid.GridDragZone}. <b>Note</b>: this is available only <b>after</b>
|
155
|
+
* the Grid has been rendered as the GridView's <tt>{@link Ext.grid.GridView#dragZone dragZone}</tt>
|
156
|
+
* property.</p>
|
157
|
+
* <p>A cooperating {@link Ext.dd.DropZone DropZone} must be created who's implementations of
|
158
|
+
* {@link Ext.dd.DropZone#onNodeEnter onNodeEnter}, {@link Ext.dd.DropZone#onNodeOver onNodeOver},
|
159
|
+
* {@link Ext.dd.DropZone#onNodeOut onNodeOut} and {@link Ext.dd.DropZone#onNodeDrop onNodeDrop} are able
|
160
|
+
* to process the {@link Ext.grid.GridDragZone#getDragData data} which is provided.</p>
|
161
|
+
*/
|
162
|
+
enableDragDrop : false,
|
163
|
+
/**
|
164
|
+
* @cfg {Boolean} enableHdMenu Defaults to <tt>true</tt> to enable the drop down button for menu in the headers.
|
165
|
+
*/
|
166
|
+
enableHdMenu : true,
|
167
|
+
/**
|
168
|
+
* @cfg {Boolean} hideHeaders True to hide the grid's header. Defaults to <code>false</code>.
|
169
|
+
*/
|
170
|
+
/**
|
171
|
+
* @cfg {Object} loadMask An {@link Ext.LoadMask} config or true to mask the grid while
|
172
|
+
* loading. Defaults to <code>false</code>.
|
173
|
+
*/
|
174
|
+
loadMask : false,
|
175
|
+
/**
|
176
|
+
* @cfg {Number} maxHeight Sets the maximum height of the grid - ignored if <tt>autoHeight</tt> is not on.
|
177
|
+
*/
|
178
|
+
/**
|
179
|
+
* @cfg {Number} minColumnWidth The minimum width a column can be resized to. Defaults to <tt>25</tt>.
|
180
|
+
*/
|
181
|
+
minColumnWidth : 25,
|
182
|
+
/**
|
183
|
+
* @cfg {Object} sm Shorthand for <tt>{@link #selModel}</tt>.
|
184
|
+
*/
|
185
|
+
/**
|
186
|
+
* @cfg {Object} selModel Any subclass of {@link Ext.grid.AbstractSelectionModel} that will provide
|
187
|
+
* the selection model for the grid (defaults to {@link Ext.grid.RowSelectionModel} if not specified).
|
188
|
+
*/
|
189
|
+
/**
|
190
|
+
* @cfg {Ext.data.Store} store The {@link Ext.data.Store} the grid should use as its data source (required).
|
191
|
+
*/
|
192
|
+
/**
|
193
|
+
* @cfg {Boolean} stripeRows <tt>true</tt> to stripe the rows. Default is <tt>false</tt>.
|
194
|
+
* <p>This causes the CSS class <tt><b>x-grid3-row-alt</b></tt> to be added to alternate rows of
|
195
|
+
* the grid. A default CSS rule is provided which sets a background colour, but you can override this
|
196
|
+
* with a rule which either overrides the <b>background-color</b> style using the '!important'
|
197
|
+
* modifier, or which uses a CSS selector of higher specificity.</p>
|
198
|
+
*/
|
199
|
+
stripeRows : false,
|
200
|
+
/**
|
201
|
+
* @cfg {Boolean} trackMouseOver True to highlight rows when the mouse is over. Default is <tt>true</tt>
|
202
|
+
* for GridPanel, but <tt>false</tt> for EditorGridPanel.
|
203
|
+
*/
|
204
|
+
trackMouseOver : true,
|
205
|
+
/**
|
206
|
+
* @cfg {Array} stateEvents
|
207
|
+
* An array of events that, when fired, should trigger this component to save its state.
|
208
|
+
* Defaults to:<pre><code>
|
209
|
+
* stateEvents: ['columnmove', 'columnresize', 'sortchange']
|
210
|
+
* </code></pre>
|
211
|
+
* <p>These can be any types of events supported by this component, including browser or
|
212
|
+
* custom events (e.g., <tt>['click', 'customerchange']</tt>).</p>
|
213
|
+
* <p>See {@link Ext.Component#stateful} for an explanation of saving and restoring
|
214
|
+
* Component state.</p>
|
215
|
+
*/
|
216
|
+
stateEvents : ['columnmove', 'columnresize', 'sortchange'],
|
217
|
+
/**
|
218
|
+
* @cfg {Object} view The {@link Ext.grid.GridView} used by the grid. This can be set
|
219
|
+
* before a call to {@link Ext.Component#render render()}.
|
220
|
+
*/
|
221
|
+
view : null,
|
222
|
+
/**
|
223
|
+
* @cfg {Object} viewConfig A config object that will be applied to the grid's UI view. Any of
|
224
|
+
* the config options available for {@link Ext.grid.GridView} can be specified here. This option
|
225
|
+
* is ignored if <tt>{@link #view}</tt> is specified.
|
226
|
+
*/
|
227
|
+
|
228
|
+
// private
|
229
|
+
rendered : false,
|
230
|
+
// private
|
231
|
+
viewReady : false,
|
232
|
+
|
233
|
+
// private
|
234
|
+
initComponent : function(){
|
235
|
+
Ext.grid.GridPanel.superclass.initComponent.call(this);
|
236
|
+
|
237
|
+
if(this.columnLines){
|
238
|
+
this.cls = (this.cls || '') + ' x-grid-with-col-lines';
|
239
|
+
}
|
240
|
+
// override any provided value since it isn't valid
|
241
|
+
// and is causing too many bug reports ;)
|
242
|
+
this.autoScroll = false;
|
243
|
+
this.autoWidth = false;
|
244
|
+
|
245
|
+
if(Ext.isArray(this.columns)){
|
246
|
+
this.colModel = new Ext.grid.ColumnModel(this.columns);
|
247
|
+
delete this.columns;
|
248
|
+
}
|
249
|
+
|
250
|
+
// check and correct shorthanded configs
|
251
|
+
if(this.ds){
|
252
|
+
this.store = this.ds;
|
253
|
+
delete this.ds;
|
254
|
+
}
|
255
|
+
if(this.cm){
|
256
|
+
this.colModel = this.cm;
|
257
|
+
delete this.cm;
|
258
|
+
}
|
259
|
+
if(this.sm){
|
260
|
+
this.selModel = this.sm;
|
261
|
+
delete this.sm;
|
262
|
+
}
|
263
|
+
this.store = Ext.StoreMgr.lookup(this.store);
|
264
|
+
|
265
|
+
this.addEvents(
|
266
|
+
// raw events
|
267
|
+
/**
|
268
|
+
* @event click
|
269
|
+
* The raw click event for the entire grid.
|
270
|
+
* @param {Ext.EventObject} e
|
271
|
+
*/
|
272
|
+
'click',
|
273
|
+
/**
|
274
|
+
* @event dblclick
|
275
|
+
* The raw dblclick event for the entire grid.
|
276
|
+
* @param {Ext.EventObject} e
|
277
|
+
*/
|
278
|
+
'dblclick',
|
279
|
+
/**
|
280
|
+
* @event contextmenu
|
281
|
+
* The raw contextmenu event for the entire grid.
|
282
|
+
* @param {Ext.EventObject} e
|
283
|
+
*/
|
284
|
+
'contextmenu',
|
285
|
+
/**
|
286
|
+
* @event mousedown
|
287
|
+
* The raw mousedown event for the entire grid.
|
288
|
+
* @param {Ext.EventObject} e
|
289
|
+
*/
|
290
|
+
'mousedown',
|
291
|
+
/**
|
292
|
+
* @event mouseup
|
293
|
+
* The raw mouseup event for the entire grid.
|
294
|
+
* @param {Ext.EventObject} e
|
295
|
+
*/
|
296
|
+
'mouseup',
|
297
|
+
/**
|
298
|
+
* @event mouseover
|
299
|
+
* The raw mouseover event for the entire grid.
|
300
|
+
* @param {Ext.EventObject} e
|
301
|
+
*/
|
302
|
+
'mouseover',
|
303
|
+
/**
|
304
|
+
* @event mouseout
|
305
|
+
* The raw mouseout event for the entire grid.
|
306
|
+
* @param {Ext.EventObject} e
|
307
|
+
*/
|
308
|
+
'mouseout',
|
309
|
+
/**
|
310
|
+
* @event keypress
|
311
|
+
* The raw keypress event for the entire grid.
|
312
|
+
* @param {Ext.EventObject} e
|
313
|
+
*/
|
314
|
+
'keypress',
|
315
|
+
/**
|
316
|
+
* @event keydown
|
317
|
+
* The raw keydown event for the entire grid.
|
318
|
+
* @param {Ext.EventObject} e
|
319
|
+
*/
|
320
|
+
'keydown',
|
321
|
+
|
322
|
+
// custom events
|
323
|
+
/**
|
324
|
+
* @event cellmousedown
|
325
|
+
* Fires before a cell is clicked
|
326
|
+
* @param {Grid} this
|
327
|
+
* @param {Number} rowIndex
|
328
|
+
* @param {Number} columnIndex
|
329
|
+
* @param {Ext.EventObject} e
|
330
|
+
*/
|
331
|
+
'cellmousedown',
|
332
|
+
/**
|
333
|
+
* @event rowmousedown
|
334
|
+
* Fires before a row is clicked
|
335
|
+
* @param {Grid} this
|
336
|
+
* @param {Number} rowIndex
|
337
|
+
* @param {Ext.EventObject} e
|
338
|
+
*/
|
339
|
+
'rowmousedown',
|
340
|
+
/**
|
341
|
+
* @event headermousedown
|
342
|
+
* Fires before a header is clicked
|
343
|
+
* @param {Grid} this
|
344
|
+
* @param {Number} columnIndex
|
345
|
+
* @param {Ext.EventObject} e
|
346
|
+
*/
|
347
|
+
'headermousedown',
|
348
|
+
|
349
|
+
/**
|
350
|
+
* @event cellclick
|
351
|
+
* Fires when a cell is clicked.
|
352
|
+
* The data for the cell is drawn from the {@link Ext.data.Record Record}
|
353
|
+
* for this row. To access the data in the listener function use the
|
354
|
+
* following technique:
|
355
|
+
* <pre><code>
|
356
|
+
function(grid, rowIndex, columnIndex, e) {
|
357
|
+
var record = grid.getStore().getAt(rowIndex); // Get the Record
|
358
|
+
var fieldName = grid.getColumnModel().getDataIndex(columnIndex); // Get field name
|
359
|
+
var data = record.get(fieldName);
|
360
|
+
}
|
361
|
+
</code></pre>
|
362
|
+
* @param {Grid} this
|
363
|
+
* @param {Number} rowIndex
|
364
|
+
* @param {Number} columnIndex
|
365
|
+
* @param {Ext.EventObject} e
|
366
|
+
*/
|
367
|
+
'cellclick',
|
368
|
+
/**
|
369
|
+
* @event celldblclick
|
370
|
+
* Fires when a cell is double clicked
|
371
|
+
* @param {Grid} this
|
372
|
+
* @param {Number} rowIndex
|
373
|
+
* @param {Number} columnIndex
|
374
|
+
* @param {Ext.EventObject} e
|
375
|
+
*/
|
376
|
+
'celldblclick',
|
377
|
+
/**
|
378
|
+
* @event rowclick
|
379
|
+
* Fires when a row is clicked
|
380
|
+
* @param {Grid} this
|
381
|
+
* @param {Number} rowIndex
|
382
|
+
* @param {Ext.EventObject} e
|
383
|
+
*/
|
384
|
+
'rowclick',
|
385
|
+
/**
|
386
|
+
* @event rowdblclick
|
387
|
+
* Fires when a row is double clicked
|
388
|
+
* @param {Grid} this
|
389
|
+
* @param {Number} rowIndex
|
390
|
+
* @param {Ext.EventObject} e
|
391
|
+
*/
|
392
|
+
'rowdblclick',
|
393
|
+
/**
|
394
|
+
* @event headerclick
|
395
|
+
* Fires when a header is clicked
|
396
|
+
* @param {Grid} this
|
397
|
+
* @param {Number} columnIndex
|
398
|
+
* @param {Ext.EventObject} e
|
399
|
+
*/
|
400
|
+
'headerclick',
|
401
|
+
/**
|
402
|
+
* @event headerdblclick
|
403
|
+
* Fires when a header cell is double clicked
|
404
|
+
* @param {Grid} this
|
405
|
+
* @param {Number} columnIndex
|
406
|
+
* @param {Ext.EventObject} e
|
407
|
+
*/
|
408
|
+
'headerdblclick',
|
409
|
+
/**
|
410
|
+
* @event rowcontextmenu
|
411
|
+
* Fires when a row is right clicked
|
412
|
+
* @param {Grid} this
|
413
|
+
* @param {Number} rowIndex
|
414
|
+
* @param {Ext.EventObject} e
|
415
|
+
*/
|
416
|
+
'rowcontextmenu',
|
417
|
+
/**
|
418
|
+
* @event cellcontextmenu
|
419
|
+
* Fires when a cell is right clicked
|
420
|
+
* @param {Grid} this
|
421
|
+
* @param {Number} rowIndex
|
422
|
+
* @param {Number} cellIndex
|
423
|
+
* @param {Ext.EventObject} e
|
424
|
+
*/
|
425
|
+
'cellcontextmenu',
|
426
|
+
/**
|
427
|
+
* @event headercontextmenu
|
428
|
+
* Fires when a header is right clicked
|
429
|
+
* @param {Grid} this
|
430
|
+
* @param {Number} columnIndex
|
431
|
+
* @param {Ext.EventObject} e
|
432
|
+
*/
|
433
|
+
'headercontextmenu',
|
434
|
+
/**
|
435
|
+
* @event bodyscroll
|
436
|
+
* Fires when the body element is scrolled
|
437
|
+
* @param {Number} scrollLeft
|
438
|
+
* @param {Number} scrollTop
|
439
|
+
*/
|
440
|
+
'bodyscroll',
|
441
|
+
/**
|
442
|
+
* @event columnresize
|
443
|
+
* Fires when the user resizes a column
|
444
|
+
* @param {Number} columnIndex
|
445
|
+
* @param {Number} newSize
|
446
|
+
*/
|
447
|
+
'columnresize',
|
448
|
+
/**
|
449
|
+
* @event columnmove
|
450
|
+
* Fires when the user moves a column
|
451
|
+
* @param {Number} oldIndex
|
452
|
+
* @param {Number} newIndex
|
453
|
+
*/
|
454
|
+
'columnmove',
|
455
|
+
/**
|
456
|
+
* @event sortchange
|
457
|
+
* Fires when the grid's store sort changes
|
458
|
+
* @param {Grid} this
|
459
|
+
* @param {Object} sortInfo An object with the keys field and direction
|
460
|
+
*/
|
461
|
+
'sortchange',
|
462
|
+
/**
|
463
|
+
* @event reconfigure
|
464
|
+
* Fires when the grid is reconfigured with a new store and/or column model.
|
465
|
+
* @param {Grid} this
|
466
|
+
* @param {Ext.data.Store} store The new store
|
467
|
+
* @param {Ext.grid.ColumnModel} colModel The new column model
|
468
|
+
*/
|
469
|
+
'reconfigure'
|
470
|
+
);
|
471
|
+
},
|
472
|
+
|
473
|
+
// private
|
474
|
+
onRender : function(ct, position){
|
475
|
+
Ext.grid.GridPanel.superclass.onRender.apply(this, arguments);
|
476
|
+
|
477
|
+
var c = this.body;
|
478
|
+
|
479
|
+
this.el.addClass('x-grid-panel');
|
480
|
+
|
481
|
+
var view = this.getView();
|
482
|
+
view.init(this);
|
483
|
+
|
484
|
+
this.mon(c, {
|
485
|
+
mousedown: this.onMouseDown,
|
486
|
+
click: this.onClick,
|
487
|
+
dblclick: this.onDblClick,
|
488
|
+
contextmenu: this.onContextMenu,
|
489
|
+
keydown: this.onKeyDown,
|
490
|
+
scope: this
|
491
|
+
});
|
492
|
+
|
493
|
+
this.relayEvents(c, ['mousedown','mouseup','mouseover','mouseout','keypress']);
|
494
|
+
|
495
|
+
this.getSelectionModel().init(this);
|
496
|
+
this.view.render();
|
497
|
+
},
|
498
|
+
|
499
|
+
// private
|
500
|
+
initEvents : function(){
|
501
|
+
Ext.grid.GridPanel.superclass.initEvents.call(this);
|
502
|
+
|
503
|
+
if(this.loadMask){
|
504
|
+
this.loadMask = new Ext.LoadMask(this.bwrap,
|
505
|
+
Ext.apply({store:this.store}, this.loadMask));
|
506
|
+
}
|
507
|
+
},
|
508
|
+
|
509
|
+
initStateEvents : function(){
|
510
|
+
Ext.grid.GridPanel.superclass.initStateEvents.call(this);
|
511
|
+
this.mon(this.colModel, 'hiddenchange', this.saveState, this, {delay: 100});
|
512
|
+
},
|
513
|
+
|
514
|
+
applyState : function(state){
|
515
|
+
var cm = this.colModel;
|
516
|
+
var cs = state.columns;
|
517
|
+
if(cs){
|
518
|
+
for(var i = 0, len = cs.length; i < len; i++){
|
519
|
+
var s = cs[i];
|
520
|
+
var c = cm.getColumnById(s.id);
|
521
|
+
if(c){
|
522
|
+
c.hidden = s.hidden;
|
523
|
+
c.width = s.width;
|
524
|
+
var oldIndex = cm.getIndexById(s.id);
|
525
|
+
if(oldIndex != i){
|
526
|
+
cm.moveColumn(oldIndex, i);
|
527
|
+
}
|
528
|
+
}
|
529
|
+
}
|
530
|
+
}
|
531
|
+
if(state.sort && this.store){
|
532
|
+
this.store[this.store.remoteSort ? 'setDefaultSort' : 'sort'](state.sort.field, state.sort.direction);
|
533
|
+
}
|
534
|
+
delete state.columns;
|
535
|
+
delete state.sort;
|
536
|
+
Ext.grid.GridPanel.superclass.applyState.call(this, state);
|
537
|
+
},
|
538
|
+
|
539
|
+
getState : function(){
|
540
|
+
var o = {columns: []};
|
541
|
+
for(var i = 0, c; (c = this.colModel.config[i]); i++){
|
542
|
+
o.columns[i] = {
|
543
|
+
id: c.id,
|
544
|
+
width: c.width
|
545
|
+
};
|
546
|
+
if(c.hidden){
|
547
|
+
o.columns[i].hidden = true;
|
548
|
+
}
|
549
|
+
}
|
550
|
+
if(this.store){
|
551
|
+
var ss = this.store.getSortState();
|
552
|
+
if(ss){
|
553
|
+
o.sort = ss;
|
554
|
+
}
|
555
|
+
}
|
556
|
+
return o;
|
557
|
+
},
|
558
|
+
|
559
|
+
// private
|
560
|
+
afterRender : function(){
|
561
|
+
Ext.grid.GridPanel.superclass.afterRender.call(this);
|
562
|
+
this.view.layout();
|
563
|
+
if(this.deferRowRender){
|
564
|
+
this.view.afterRender.defer(10, this.view);
|
565
|
+
}else{
|
566
|
+
this.view.afterRender();
|
567
|
+
}
|
568
|
+
this.viewReady = true;
|
569
|
+
},
|
570
|
+
|
571
|
+
/**
|
572
|
+
* <p>Reconfigures the grid to use a different Store and Column Model
|
573
|
+
* and fires the 'reconfigure' event. The View will be bound to the new
|
574
|
+
* objects and refreshed.</p>
|
575
|
+
* <p>Be aware that upon reconfiguring a GridPanel, certain existing settings <i>may</i> become
|
576
|
+
* invalidated. For example the configured {@link #autoExpandColumn} may no longer exist in the
|
577
|
+
* new ColumnModel. Also, an existing {@link Ext.PagingToolbar PagingToolbar} will still be bound
|
578
|
+
* to the old Store, and will need rebinding. Any {@link #plugins} might also need reconfiguring
|
579
|
+
* with the new data.</p>
|
580
|
+
* @param {Ext.data.Store} store The new {@link Ext.data.Store} object
|
581
|
+
* @param {Ext.grid.ColumnModel} colModel The new {@link Ext.grid.ColumnModel} object
|
582
|
+
*/
|
583
|
+
reconfigure : function(store, colModel){
|
584
|
+
if(this.loadMask){
|
585
|
+
this.loadMask.destroy();
|
586
|
+
this.loadMask = new Ext.LoadMask(this.bwrap,
|
587
|
+
Ext.apply({}, {store:store}, this.initialConfig.loadMask));
|
588
|
+
}
|
589
|
+
this.view.initData(store, colModel);
|
590
|
+
this.store = store;
|
591
|
+
this.colModel = colModel;
|
592
|
+
if(this.rendered){
|
593
|
+
this.view.refresh(true);
|
594
|
+
}
|
595
|
+
this.fireEvent('reconfigure', this, store, colModel);
|
596
|
+
},
|
597
|
+
|
598
|
+
// private
|
599
|
+
onKeyDown : function(e){
|
600
|
+
this.fireEvent('keydown', e);
|
601
|
+
},
|
602
|
+
|
603
|
+
// private
|
604
|
+
onDestroy : function(){
|
605
|
+
if(this.rendered){
|
606
|
+
var c = this.body;
|
607
|
+
c.removeAllListeners();
|
608
|
+
c.update('');
|
609
|
+
Ext.destroy(this.view, this.loadMask);
|
610
|
+
}else if(this.store && this.store.autoDestroy){
|
611
|
+
this.store.destroy();
|
612
|
+
}
|
613
|
+
Ext.destroy(this.colModel, this.selModel);
|
614
|
+
this.store = this.selModel = this.colModel = this.view = this.loadMask = null;
|
615
|
+
Ext.grid.GridPanel.superclass.onDestroy.call(this);
|
616
|
+
},
|
617
|
+
|
618
|
+
// private
|
619
|
+
processEvent : function(name, e){
|
620
|
+
this.fireEvent(name, e);
|
621
|
+
var t = e.getTarget();
|
622
|
+
var v = this.view;
|
623
|
+
var header = v.findHeaderIndex(t);
|
624
|
+
if(header !== false){
|
625
|
+
this.fireEvent('header' + name, this, header, e);
|
626
|
+
}else{
|
627
|
+
var row = v.findRowIndex(t);
|
628
|
+
var cell = v.findCellIndex(t);
|
629
|
+
if(row !== false){
|
630
|
+
this.fireEvent('row' + name, this, row, e);
|
631
|
+
if(cell !== false){
|
632
|
+
this.fireEvent('cell' + name, this, row, cell, e);
|
633
|
+
}
|
634
|
+
}
|
635
|
+
}
|
636
|
+
},
|
637
|
+
|
638
|
+
// private
|
639
|
+
onClick : function(e){
|
640
|
+
this.processEvent('click', e);
|
641
|
+
},
|
642
|
+
|
643
|
+
// private
|
644
|
+
onMouseDown : function(e){
|
645
|
+
this.processEvent('mousedown', e);
|
646
|
+
},
|
647
|
+
|
648
|
+
// private
|
649
|
+
onContextMenu : function(e, t){
|
650
|
+
this.processEvent('contextmenu', e);
|
651
|
+
},
|
652
|
+
|
653
|
+
// private
|
654
|
+
onDblClick : function(e){
|
655
|
+
this.processEvent('dblclick', e);
|
656
|
+
},
|
657
|
+
|
658
|
+
// private
|
659
|
+
walkCells : function(row, col, step, fn, scope){
|
660
|
+
var cm = this.colModel, clen = cm.getColumnCount();
|
661
|
+
var ds = this.store, rlen = ds.getCount(), first = true;
|
662
|
+
if(step < 0){
|
663
|
+
if(col < 0){
|
664
|
+
row--;
|
665
|
+
first = false;
|
666
|
+
}
|
667
|
+
while(row >= 0){
|
668
|
+
if(!first){
|
669
|
+
col = clen-1;
|
670
|
+
}
|
671
|
+
first = false;
|
672
|
+
while(col >= 0){
|
673
|
+
if(fn.call(scope || this, row, col, cm) === true){
|
674
|
+
return [row, col];
|
675
|
+
}
|
676
|
+
col--;
|
677
|
+
}
|
678
|
+
row--;
|
679
|
+
}
|
680
|
+
} else {
|
681
|
+
if(col >= clen){
|
682
|
+
row++;
|
683
|
+
first = false;
|
684
|
+
}
|
685
|
+
while(row < rlen){
|
686
|
+
if(!first){
|
687
|
+
col = 0;
|
688
|
+
}
|
689
|
+
first = false;
|
690
|
+
while(col < clen){
|
691
|
+
if(fn.call(scope || this, row, col, cm) === true){
|
692
|
+
return [row, col];
|
693
|
+
}
|
694
|
+
col++;
|
695
|
+
}
|
696
|
+
row++;
|
697
|
+
}
|
698
|
+
}
|
699
|
+
return null;
|
700
|
+
},
|
701
|
+
|
702
|
+
// private
|
703
|
+
onResize : function(){
|
704
|
+
Ext.grid.GridPanel.superclass.onResize.apply(this, arguments);
|
705
|
+
if(this.viewReady){
|
706
|
+
this.view.layout();
|
707
|
+
}
|
708
|
+
},
|
709
|
+
|
710
|
+
/**
|
711
|
+
* Returns the grid's underlying element.
|
712
|
+
* @return {Element} The element
|
713
|
+
*/
|
714
|
+
getGridEl : function(){
|
715
|
+
return this.body;
|
716
|
+
},
|
717
|
+
|
718
|
+
// private for compatibility, overridden by editor grid
|
719
|
+
stopEditing : Ext.emptyFn,
|
720
|
+
|
721
|
+
/**
|
722
|
+
* Returns the grid's selection model configured by the <code>{@link #selModel}</code>
|
723
|
+
* configuration option. If no selection model was configured, this will create
|
724
|
+
* and return a {@link Ext.grid.RowSelectionModel RowSelectionModel}.
|
725
|
+
* @return {SelectionModel}
|
726
|
+
*/
|
727
|
+
getSelectionModel : function(){
|
728
|
+
if(!this.selModel){
|
729
|
+
this.selModel = new Ext.grid.RowSelectionModel(
|
730
|
+
this.disableSelection ? {selectRow: Ext.emptyFn} : null);
|
731
|
+
}
|
732
|
+
return this.selModel;
|
733
|
+
},
|
734
|
+
|
735
|
+
/**
|
736
|
+
* Returns the grid's data store.
|
737
|
+
* @return {Ext.data.Store} The store
|
738
|
+
*/
|
739
|
+
getStore : function(){
|
740
|
+
return this.store;
|
741
|
+
},
|
742
|
+
|
743
|
+
/**
|
744
|
+
* Returns the grid's ColumnModel.
|
745
|
+
* @return {Ext.grid.ColumnModel} The column model
|
746
|
+
*/
|
747
|
+
getColumnModel : function(){
|
748
|
+
return this.colModel;
|
749
|
+
},
|
750
|
+
|
751
|
+
/**
|
752
|
+
* Returns the grid's GridView object.
|
753
|
+
* @return {Ext.grid.GridView} The grid view
|
754
|
+
*/
|
755
|
+
getView : function(){
|
756
|
+
if(!this.view){
|
757
|
+
this.view = new Ext.grid.GridView(this.viewConfig);
|
758
|
+
}
|
759
|
+
return this.view;
|
760
|
+
},
|
761
|
+
/**
|
762
|
+
* Called to get grid's drag proxy text, by default returns this.ddText.
|
763
|
+
* @return {String} The text
|
764
|
+
*/
|
765
|
+
getDragDropText : function(){
|
766
|
+
var count = this.selModel.getCount();
|
767
|
+
return String.format(this.ddText, count, count == 1 ? '' : 's');
|
768
|
+
}
|
769
|
+
|
770
|
+
/**
|
771
|
+
* @cfg {String/Number} activeItem
|
772
|
+
* @hide
|
773
|
+
*/
|
774
|
+
/**
|
775
|
+
* @cfg {Boolean} autoDestroy
|
776
|
+
* @hide
|
777
|
+
*/
|
778
|
+
/**
|
779
|
+
* @cfg {Object/String/Function} autoLoad
|
780
|
+
* @hide
|
781
|
+
*/
|
782
|
+
/**
|
783
|
+
* @cfg {Boolean} autoWidth
|
784
|
+
* @hide
|
785
|
+
*/
|
786
|
+
/**
|
787
|
+
* @cfg {Boolean/Number} bufferResize
|
788
|
+
* @hide
|
789
|
+
*/
|
790
|
+
/**
|
791
|
+
* @cfg {String} defaultType
|
792
|
+
* @hide
|
793
|
+
*/
|
794
|
+
/**
|
795
|
+
* @cfg {Object} defaults
|
796
|
+
* @hide
|
797
|
+
*/
|
798
|
+
/**
|
799
|
+
* @cfg {Boolean} hideBorders
|
800
|
+
* @hide
|
801
|
+
*/
|
802
|
+
/**
|
803
|
+
* @cfg {Mixed} items
|
804
|
+
* @hide
|
805
|
+
*/
|
806
|
+
/**
|
807
|
+
* @cfg {String} layout
|
808
|
+
* @hide
|
809
|
+
*/
|
810
|
+
/**
|
811
|
+
* @cfg {Object} layoutConfig
|
812
|
+
* @hide
|
813
|
+
*/
|
814
|
+
/**
|
815
|
+
* @cfg {Boolean} monitorResize
|
816
|
+
* @hide
|
817
|
+
*/
|
818
|
+
/**
|
819
|
+
* @property items
|
820
|
+
* @hide
|
821
|
+
*/
|
822
|
+
/**
|
823
|
+
* @method add
|
824
|
+
* @hide
|
825
|
+
*/
|
826
|
+
/**
|
827
|
+
* @method cascade
|
828
|
+
* @hide
|
829
|
+
*/
|
830
|
+
/**
|
831
|
+
* @method doLayout
|
832
|
+
* @hide
|
833
|
+
*/
|
834
|
+
/**
|
835
|
+
* @method find
|
836
|
+
* @hide
|
837
|
+
*/
|
838
|
+
/**
|
839
|
+
* @method findBy
|
840
|
+
* @hide
|
841
|
+
*/
|
842
|
+
/**
|
843
|
+
* @method findById
|
844
|
+
* @hide
|
845
|
+
*/
|
846
|
+
/**
|
847
|
+
* @method findByType
|
848
|
+
* @hide
|
849
|
+
*/
|
850
|
+
/**
|
851
|
+
* @method getComponent
|
852
|
+
* @hide
|
853
|
+
*/
|
854
|
+
/**
|
855
|
+
* @method getLayout
|
856
|
+
* @hide
|
857
|
+
*/
|
858
|
+
/**
|
859
|
+
* @method getUpdater
|
860
|
+
* @hide
|
861
|
+
*/
|
862
|
+
/**
|
863
|
+
* @method insert
|
864
|
+
* @hide
|
865
|
+
*/
|
866
|
+
/**
|
867
|
+
* @method load
|
868
|
+
* @hide
|
869
|
+
*/
|
870
|
+
/**
|
871
|
+
* @method remove
|
872
|
+
* @hide
|
873
|
+
*/
|
874
|
+
/**
|
875
|
+
* @event add
|
876
|
+
* @hide
|
877
|
+
*/
|
878
|
+
/**
|
879
|
+
* @event afterLayout
|
880
|
+
* @hide
|
881
|
+
*/
|
882
|
+
/**
|
883
|
+
* @event beforeadd
|
884
|
+
* @hide
|
885
|
+
*/
|
886
|
+
/**
|
887
|
+
* @event beforeremove
|
888
|
+
* @hide
|
889
|
+
*/
|
890
|
+
/**
|
891
|
+
* @event remove
|
892
|
+
* @hide
|
893
|
+
*/
|
894
|
+
|
895
|
+
|
896
|
+
|
897
|
+
/**
|
898
|
+
* @cfg {String} allowDomMove @hide
|
899
|
+
*/
|
900
|
+
/**
|
901
|
+
* @cfg {String} autoEl @hide
|
902
|
+
*/
|
903
|
+
/**
|
904
|
+
* @cfg {String} applyTo @hide
|
905
|
+
*/
|
906
|
+
/**
|
907
|
+
* @cfg {String} autoScroll @hide
|
908
|
+
*/
|
909
|
+
/**
|
910
|
+
* @cfg {String} bodyBorder @hide
|
911
|
+
*/
|
912
|
+
/**
|
913
|
+
* @cfg {String} bodyStyle @hide
|
914
|
+
*/
|
915
|
+
/**
|
916
|
+
* @cfg {String} contentEl @hide
|
917
|
+
*/
|
918
|
+
/**
|
919
|
+
* @cfg {String} disabledClass @hide
|
920
|
+
*/
|
921
|
+
/**
|
922
|
+
* @cfg {String} elements @hide
|
923
|
+
*/
|
924
|
+
/**
|
925
|
+
* @cfg {String} html @hide
|
926
|
+
*/
|
927
|
+
/**
|
928
|
+
* @cfg {Boolean} preventBodyReset
|
929
|
+
* @hide
|
930
|
+
*/
|
931
|
+
/**
|
932
|
+
* @property disabled
|
933
|
+
* @hide
|
934
|
+
*/
|
935
|
+
/**
|
936
|
+
* @method applyToMarkup
|
937
|
+
* @hide
|
938
|
+
*/
|
939
|
+
/**
|
940
|
+
* @method enable
|
941
|
+
* @hide
|
942
|
+
*/
|
943
|
+
/**
|
944
|
+
* @method disable
|
945
|
+
* @hide
|
946
|
+
*/
|
947
|
+
/**
|
948
|
+
* @method setDisabled
|
949
|
+
* @hide
|
950
|
+
*/
|
951
|
+
});
|
952
|
+
Ext.reg('grid', Ext.grid.GridPanel);
|