All Downloads are FREE. Search and download functionalities are using the official Maven repository.

xworker.com.ckeditor.filebrowser.ExtjsFileBrowser.dml Maven / Gradle / Ivy

^1640742924941
@
sname
ExtjsFileBrowser
slabel
ExtjsFileBrowser
scheckPermission
false
scheckLogin
false
sdescriptors
xworker.web.controls.SimpleControl,xworker.lang.MetaDescriptor3
sinheritDescription
false
sth_createIndex
false
sth_registMyChilds
false
sth_registDisabled
false
sth_mark
false
  @/@actions
  sname
  actions
  sdescriptors
  xworker.web.controls.SimpleControl/@actions
  sth_createIndex
  false
  sth_registMyChilds
  false
  sth_mark
  false
  sid
  actions
    @/@actions/@GroovyAction
    sname
    doAction
    sisSynchronized
    false
    sthrowException
    true
    suseOtherAction
    false
    svarScope
    Local
    sdisableGlobalContext
    false
    Scode
#$@text#$@
//判断是否登录了
def sessionName = self.doAction("getSessionName", actionContext);
if(sessionName != null && sessionName != ""){
    if(session.getAttribute(sessionName) == null){
        response.writer.println("Please login first");
        return "false";
    }

    session.setAttribute("__ckeditor_session__", session.getAttribute(sessionName));
}else{
    session.setAttribute("__ckeditor_session__", "nouser");
}

actionContext.getScope(0).put("rootPath", servlet.getServletContext().getRealPath("/"));

def result = world.getThing("xworker.com.ckeditor.filebrowser.ExtjsFileBrowser/@success");
result.doAction("doResult", actionContext);
//return "success";
#$@text#$@
    sinterpretationType
    Action
    screateLocalVarScope
    false
    ssaveReturn
    false
    sdebugLog
    false
    sdescriptors
    xworker.lang.actions.Actions/@GroovyAction
    sth_createIndex
    false
    sth_registMyChilds
    false
    sth_mark
    false
    sid
    GroovyAction
    @/@actions/@getSessionName
    sname
    getSessionName
    sattributeName
    sessionName
    sinterpretationType
    Self
    sattributeTemplate
    false
    schildsAttributeTemplate
    false
    svarScope
    Local
    sisSynchronized
    false
    sthrowException
    true
    suseOtherAction
    false
    screateLocalVarScope
    false
    ssaveReturn
    false
    sdisableGlobalContext
    false
    sdebugLog
    false
    sdescriptors
    xworker.lang.actions.ActionUtil/@GetString
    sinheritDescription
    false
    sth_createIndex
    false
    sth_registMyChilds
    false
    sth_registDisabled
    false
    sth_mark
    false
    sid
    getSessionName
  @/@fileBrowser
  sname
  fileBrowser
  sbelongToHtml
  true
  stitle
  文件浏览器
  sstyle
  default
  shasHead
  false
  shasBottom
  false
  SotherHeads
#$@text#$@




#$@text#$@
  sdescriptors
  xworker.web.controls.SimpleControl/@view
  sth_createIndex
  false
  sth_registMyChilds
  false
  sth_mark
  false
  sid
  fileBrowser
    @/@fileBrowser/@JavaScript
    sname
    JavaScript
    suseChildsCode
    false
    Scode
#$@text#$@
var CKEditorFuncNum = ${requestBean.CKEditorFuncNum};
var fileRootPath = '${rootPath?js_string}';
#$@text#$@
    sdescriptors
    xworker.html.base.container.childs/@JavaScript
    sth_createIndex
    false
    sth_registMyChilds
    false
    sth_mark
    false
    sid
    JavaScript
    @/@fileBrowser/@ExtJs
    sname
    ExtJs
    sdescriptors
    xworker.extjs.ExtHtmlWidgtes/@ExtJs
    sth_createIndex
    false
    sth_registMyChilds
    false
    sth_mark
    false
    sid
    ExtJs
      @/@fileBrowser/@ExtJs/@_viewPort_
      sname
      viewPort
      sdescriptors
      xworker.extjs.Items/@Viewport
      sth_createIndex
      false
      sth_registMyChilds
      false
      sth_mark
      false
      sid
      _viewPort_
        @/@fileBrowser/@ExtJs/@_viewPort_/@items
        sname
        items
        sdescriptors
        xworker.extjs.Ext.Container/@24354
        sth_createIndex
        false
        sth_registMyChilds
        false
        sth_mark
        false
        sid
        items
          @/@fileBrowser/@ExtJs/@_viewPort_/@items/@_mainPanel_
          sname
          Panel
          sdescriptors
          xworker.extjs.Items/@Panel
          sth_createIndex
          false
          sth_registMyChilds
          false
          sth_mark
          false
          sid
          _mainPanel_
            @/@fileBrowser/@ExtJs/@_viewPort_/@items/@_mainPanel_/@items
            sname
            items
            sdescriptors
            xworker.extjs.Ext.Container/@24354
            sth_createIndex
            false
            sth_registMyChilds
            false
            sth_mark
            false
            sid
            items
              @/@fileBrowser/@ExtJs/@_viewPort_/@items/@_mainPanel_/@items/@FileManager
              sname
              FileManager
              stitle
              '文件浏览'
              sidPrefix
              file
              sauthorityChecker
              xworker.orgweb.examples.FileBrowser/@fileBrowser/@ExtJs/@_viewPort_/@items/@_mainPanel_/@items/@FileManager
              sdescriptors
              xworker.web.app.view.extjs.tools.fileManager.FileManager
              sth_createIndex
              false
              sth_registMyChilds
              false
              sth_mark
              false
              sid
              FileManager
                @/@fileBrowser/@ExtJs/@_viewPort_/@items/@_mainPanel_/@items/@FileManager/@FileTreeModel
                sname
                FileTreeModel
                sdescriptors
                xworker.web.app.view.extjs.tools.fileManager.FileManager/@FileTreeModel
                sth_createIndex
                false
                sth_registMyChilds
                false
                sth_mark
                false
                sid
                FileTreeModel
                  @/@fileBrowser/@ExtJs/@_viewPort_/@items/@_mainPanel_/@items/@FileManager/@FileTreeModel/@actions
                  sname
                  actions
                  sdescriptors
                  xworker.dataObject.app.model.tree.TreeModel/@13208
                  sth_createIndex
                  false
                  sth_registMyChilds
                  false
                  sth_mark
                  false
                  sid
                  actions
                    @/@fileBrowser/@ExtJs/@_viewPort_/@items/@_mainPanel_/@items/@FileManager/@FileTreeModel/@actions/@getFilePath
                    sname
                    getFilePath
                    sisSynchronized
                    false
                    sthrowException
                    true
                    suseOtherAction
                    false
                    svarScope
                    Local
                    sdisableGlobalContext
                    false
                    scode
                    return servlet.getServletContext().getRealPath("/");
                    sinterpretationType
                    Action
                    screateLocalVarScope
                    false
                    ssaveReturn
                    false
                    sdescriptors
                    xworker.lang.actions.Actions/@GroovyAction
                    sth_createIndex
                    false
                    sth_registMyChilds
                    false
                    sth_mark
                    false
                    sid
                    getFilePath
                @/@fileBrowser/@ExtJs/@_viewPort_/@items/@_mainPanel_/@items/@FileManager/@actions
                sname
                actions
                sdescriptors
                xworker.dataObject.app.model.tree.TreeModel/@13208
                sth_createIndex
                false
                sth_registMyChilds
                false
                sth_mark
                false
                sid
                actions
                  @/@fileBrowser/@ExtJs/@_viewPort_/@items/@_mainPanel_/@items/@FileManager/@actions/@check
                  sname
                  check
                  sisSynchronized
                  false
                  sthrowException
                  true
                  suseOtherAction
                  false
                  svarScope
                  Local
                  sdisableGlobalContext
                  false
                  Scode
#$@text#$@
def ok = session.getAttribute("__ckeditor_session__") != null;
return ok;
#$@text#$@
                  sinterpretationType
                  Action
                  screateLocalVarScope
                  false
                  ssaveReturn
                  false
                  sdebugLog
                  false
                  sdescriptors
                  xworker.lang.actions.Actions/@GroovyAction
                  sth_createIndex
                  false
                  sth_registMyChilds
                  false
                  sth_mark
                  false
                  sid
                  check
            @/@fileBrowser/@ExtJs/@_viewPort_/@items/@_mainPanel_/@buttons
            sname
            buttons
            sdescriptors
            xworker.extjs.Ext.Panel/@25325
            sth_createIndex
            false
            sth_registMyChilds
            false
            sth_mark
            false
            sid
            buttons
              @/@fileBrowser/@ExtJs/@_viewPort_/@items/@_mainPanel_/@buttons/@_uploadImageButton_
              sname
              uploadImageButton
              sdescriptors
              xworker.extjs.Items/@Button
              sinheritDescription
              false
              sth_createIndex
              false
              sth_registMyChilds
              false
              sth_mark
              false
              sid
              _uploadImageButton_
                @/@fileBrowser/@ExtJs/@_viewPort_/@items/@_mainPanel_/@buttons/@_uploadImageButton_/@handler
                sname
                handler
                sdescriptors
                xworker.extjs.Ext.Button/@24224
                sinheritDescription
                false
                sth_createIndex
                false
                sth_registMyChilds
                false
                sth_mark
                false
                sid
                handler
              @/@fileBrowser/@ExtJs/@_viewPort_/@items/@_mainPanel_/@buttons/@_okButton_
              sname
              okButton
              sdescriptors
              xworker.extjs.Items/@Button
              sth_createIndex
              false
              sth_registMyChilds
              false
              sth_mark
              false
              sid
              _okButton_
                @/@fileBrowser/@ExtJs/@_viewPort_/@items/@_mainPanel_/@buttons/@_okButton_/@handler
                sname
                handler
                sdescriptors
                xworker.extjs.Ext.Button/@24224
                sth_createIndex
                false
                sth_registMyChilds
                false
                sth_mark
                false
                sid
                handler
                  @/@fileBrowser/@ExtJs/@_viewPort_/@items/@_mainPanel_/@buttons/@_okButton_/@handler/@GridSelectRows
                  sname
                  GridSelectRows
                  suseGridVar
                  false
                  sgridName
                  'file_fileListGridPanel'
                  sgridVarName
                  grid
                  sxworkerExists
                  false
                  sdataVarName
                  datas
                  sreturnOnNoRowSelected
                  true
                  salertOnNoRows
                  true
                  snoRowsAlertTitle
                  '提示'
                  snoRowsAlertMessage
                  '请先选择一条记录!'
                  sdescriptors
                  xworker.web.app.view.extjs.widgets.grid.DataObjectGridFunctions/@GridSelectRows
                  sth_createIndex
                  false
                  sth_registMyChilds
                  false
                  sth_mark
                  false
                  sid
                  GridSelectRows
                  @/@fileBrowser/@ExtJs/@_viewPort_/@items/@_mainPanel_/@buttons/@_okButton_/@handler/@Code
                  sname
                  Code
                  suseChildsCode
                  false
                  Scode
#$@text#$@
var filePath = datas[0].id;

filePath = filePath.substring(fileRootPath.length, filePath.length);
window.opener.CKEDITOR.tools.callFunction(CKEditorFuncNum,filePath);
window.close();
#$@text#$@
                  shaveTypeInCode
                  false
                  svarglobal
                  false
                  sdescriptors
                  xworker.html.base.scripts.JavaScript/@Code
                  sth_createIndex
                  false
                  sth_registMyChilds
                  false
                  sth_mark
                  false
                  sid
                  Code
              @/@fileBrowser/@ExtJs/@_viewPort_/@items/@_mainPanel_/@buttons/@_cancelButton_
              sname
              cancelButton
              sdescriptors
              xworker.extjs.Items/@Button
              sth_createIndex
              false
              sth_registMyChilds
              false
              sth_mark
              false
              sid
              _cancelButton_
                @/@fileBrowser/@ExtJs/@_viewPort_/@items/@_mainPanel_/@buttons/@_cancelButton_/@handler
                sname
                handler
                sdescriptors
                xworker.extjs.Ext.Button/@24224
                sth_createIndex
                false
                sth_registMyChilds
                false
                sth_mark
                false
                sid
                handler
      @/@fileBrowser/@ExtJs/@uploadImageWindow
      sname
      uploadImageWindow
      sdescriptors
      xworker.extjs.Items/@Window
      sinheritDescription
      false
      sth_createIndex
      false
      sth_registMyChilds
      false
      sth_mark
      false
      sid
      uploadImageWindow
        @/@fileBrowser/@ExtJs/@uploadImageWindow/@items
        sname
        items
        sdescriptors
        xworker.extjs.Ext.Container/@24354
        sinheritDescription
        false
        sth_createIndex
        false
        sth_registMyChilds
        false
        sth_mark
        false
        sid
        items
          @/@fileBrowser/@ExtJs/@uploadImageWindow/@items/@_fileManagerUploadImageFormPanel_
          sname
          uploadImage
          sdescriptors
          xworker.extjs.Items/@FormPanel
          sinheritDescription
          false
          sth_createIndex
          false
          sth_registMyChilds
          false
          sth_mark
          false
          sid
          _fileManagerUploadImageFormPanel_
            @/@fileBrowser/@ExtJs/@uploadImageWindow/@items/@_fileManagerUploadImageFormPanel_/@items
            sname
            items
            sdescriptors
            xworker.extjs.Ext.Container/@24354
            sinheritDescription
            false
            sth_createIndex
            false
            sth_registMyChilds
            false
            sth_mark
            false
            sid
            items
              @/@fileBrowser/@ExtJs/@uploadImageWindow/@items/@_fileManagerUploadImageFormPanel_/@items/@TextField
              sname
              'file'
              sdescriptors
              xworker.extjs.Items/@TextField
              sinheritDescription
              false
              sth_createIndex
              false
              sth_registMyChilds
              false
              sth_mark
              false
              sid
              TextField
            @/@fileBrowser/@ExtJs/@uploadImageWindow/@items/@_fileManagerUploadImageFormPanel_/@buttons
            sname
            buttons
            sdescriptors
            xworker.extjs.Ext.form.FormPanel/@24823
            sinheritDescription
            false
            sth_createIndex
            false
            sth_registMyChilds
            false
            sth_mark
            false
            sid
            buttons
              @/@fileBrowser/@ExtJs/@uploadImageWindow/@items/@_fileManagerUploadImageFormPanel_/@buttons/@Button
              sname
              uploadImageButton
              sdescriptors
              xworker.extjs.Items/@Button
              sinheritDescription
              false
              sth_createIndex
              false
              sth_registMyChilds
              false
              sth_mark
              false
              sid
              Button
                @/@fileBrowser/@ExtJs/@uploadImageWindow/@items/@_fileManagerUploadImageFormPanel_/@buttons/@Button/@handler
                sname
                handler
                sdescriptors
                xworker.extjs.Ext.Button/@24224
                sinheritDescription
                false
                sth_createIndex
                false
                sth_registMyChilds
                false
                sth_mark
                false
                sid
                handler
                  @/@fileBrowser/@ExtJs/@uploadImageWindow/@items/@_fileManagerUploadImageFormPanel_/@buttons/@Button/@handler/@FormSubmit
                  sname
                  FormSubmit
                  suseVar
                  false
                  sformId
                  'fileManagerUploadImageFormPanel'
                  sformVarName
                  form
                  surl
                  'do?sc=xworker.web.app.view.extjs.tools.fileManager.ShowFile&randomImage=true&command=uploadFile&checker=xworker.com.ckeditor.filebrowser.ExtjsFileBrowser/@fileBrowser/@ExtJs/@_viewPort_/@items/@_mainPanel_/@items/@FileManager'
                  swaitMsg
                  '正在加载,请稍后...'
                  ssuccessAlert
                  true
                  ssuccessFunction
                  Ext.getCmp('fileManagerUploadImageWindow').onFileUploadSuccess
                  seval
                  false
                  Sparams
#$@text#$@
{
}
#$@text#$@
                  sdescriptors
                  xworker.web.app.view.extjs.widgets.form.FormFunctions/@Submit
                  sinheritDescription
                  false
                  sth_createIndex
                  false
                  sth_registMyChilds
                  false
                  sth_mark
                  false
                  sid
                  FormSubmit
              @/@fileBrowser/@ExtJs/@uploadImageWindow/@items/@_fileManagerUploadImageFormPanel_/@buttons/@Button1
              sname
              closeWindowButton
              sdescriptors
              xworker.extjs.Items/@Button
              sinheritDescription
              false
              sth_createIndex
              false
              sth_registMyChilds
              false
              sth_mark
              false
              sid
              Button1
                @/@fileBrowser/@ExtJs/@uploadImageWindow/@items/@_fileManagerUploadImageFormPanel_/@buttons/@Button1/@handler
                sname
                handler
                sdescriptors
                xworker.extjs.Ext.Button/@24224
                sinheritDescription
                false
                sth_createIndex
                false
                sth_registMyChilds
                false
                sth_registDisabled
                false
                sth_mark
                false
                sid
                handler
                  @/@fileBrowser/@ExtJs/@uploadImageWindow/@items/@_fileManagerUploadImageFormPanel_/@buttons/@Button1/@handler/@HideWindow
                  sname
                  HideWindow
                  sdescriptors
                  xworker.extjs.functions.Window/@CloseWindow1
                  sinheritDescription
                  false
                  sth_createIndex
                  false
                  sth_registMyChilds
                  false
                  sth_registDisabled
                  false
                  sth_mark
                  false
                  sid
                  HideWindow
        @/@fileBrowser/@ExtJs/@uploadImageWindow/@onFileUploadSuccess
        sname
        onFileUploadSuccess
        sdescriptors
        xworker.extjs.ExtThing/@thing
        sinheritDescription
        false
        sth_createIndex
        false
        sth_registMyChilds
        false
        sth_mark
        false
        sid
        onFileUploadSuccess
  @/@success
  sname
  success
  stype
  form
  scontentType
  text/html;charset=UTF-8
  svalue
  xworker.com.ckeditor.filebrowser.ExtjsFileBrowser/@fileBrowser
  sdescriptors
  xworker.web.controls.SimpleControl/@result
  sth_createIndex
  false
  sth_registMyChilds
  false
  sth_mark
  false
  sid
  success
  @/@name
  sname
  name
  sshowLabel
  true
  sreadOnly
  false
  sinheritDescription
  false
  svalidateAllowBlank
  true
  LvalidateOnBlur
  true
  LallowDecimals
  true
  LallowNegative
  true
  snotXmlAttribute
  false
  sdescriptors
  xworker.lang.MetaDescriptor3/@attribute
  sth_createIndex
  false
  sth_registMyChilds
  false
  sth_registDisabled
  false
  sth_mark
  false
  sid
  name
  @/@label
  sname
  label
  sshowLabel
  true
  sreadOnly
  false
  sinheritDescription
  false
  svalidateAllowBlank
  true
  LvalidateOnBlur
  true
  LallowDecimals
  true
  LallowNegative
  true
  snotXmlAttribute
  false
  sdescriptors
  xworker.lang.MetaDescriptor3/@attribute
  sth_createIndex
  false
  sth_registMyChilds
  false
  sth_registDisabled
  false
  sth_mark
  false
  sid
  label
  @/@sessionName
  sname
  sessionName
  ssize
  50
  sshowLabel
  true
  sreadOnly
  false
  sinheritDescription
  false
  svalidateAllowBlank
  true
  LvalidateOnBlur
  true
  LallowDecimals
  true
  LallowNegative
  true
  snotXmlAttribute
  false
  sdescriptors
  xworker.lang.MetaDescriptor3/@attribute
  sth_createIndex
  false
  sth_registMyChilds
  false
  sth_registDisabled
  false
  sth_mark
  false
  sid
  sessionName
  @/@description
  sname
  description
  sinputtype
  html
  sshowLabel
  true
  sreadOnly
  false
  sinheritDescription
  false
  svalidateAllowBlank
  true
  LvalidateOnBlur
  true
  LallowDecimals
  true
  LallowNegative
  true
  snotXmlAttribute
  false
  sdescriptors
  xworker.lang.MetaDescriptor3/@attribute
  sth_createIndex
  false
  sth_registMyChilds
  false
  sth_registDisabled
  false
  sth_mark
  false
  sid
  description




© 2015 - 2024 Weber Informatics LLC | Privacy Policy