text: ﻿$.NameSpace('$View.xd');
  $View.xd.PageManager = function (j) {
      var me = this, _fn = function () { };
      var owner;
      var args = { p: $DB };
      var coms = {};
      var views = [];
      function setDefault(j) { args = $.Util.initArgs(j, args); }
      function layout() {
          owner = args.p.adElm('', 'div').cn('wp hp');
          var comArgs = {
              'viewStruct': { head_h: 30, title: '文件列表', cn: 'bc_7', icon: 'icon-glyph-list'}
          }
          var struct = {
              p: owner,
              type: 'Tips',
              name: 'viewStruct',
              body: { type: 'FileBrowser', name: 'fileBrowser' }
          }
          coms = $.Util.initUI({ args: comArgs, struct: struct });
  
          //--**--Codeing here--**--//
      }
  
      loadFilesByDir (){
          $.Util.ajax({ 
              args: { m: 'SYS_CM_FILES', action: 'getDirFiles', dir: dir, fileType: args.fileType }, 
              onSuccess: function (obj) { _fn(obj); } 
          });
      }
  
      function newPage(obj) {
          var _eLi = obj.eLi, _fullName = _eLi.attr('fullName'), _txt = _eLi.attr('name');
          if (views[_fullName]) { coms.viewTab.setSelTab(_fullName); return; }
          var _pItem = coms.viewTab.addTabItem({ name: _fullName, text: _txt, ifClose: true }, true);
          var view = new $.UI.View({
              p: _pItem.Body,
              url: _fullName,
              onLoad: function (view, args) { }
          });
          views[_fullName] = view;
      }
      function bindEvent() {
          //--**--Codeing here--**--//
      }
      me.getArgs = function () { return args; }
      me.evt = function (key, fn) { me.set(key, fn); return me; }
      me.set = function (key, value) { args[key] = value; return me; }
      me.get = function (key) { return args[key]; }
      me.show = function () { owner.show(); return me; }
      me.hide = function () { owner.hide(); return me; }
      me.remove = function () { owner.r(); me = null; delete me; }
      me.init = function (j) { setDefault(j); layout(); return me; }
      if (arguments.length) { me.init(j); }
      return me;
  }