From 74deebfd5605445e21c351095f3779e7c62d1449 Mon Sep 17 00:00:00 2001 From: zhangkaitao Date: Fri, 14 Mar 2014 15:45:54 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AC=AC=E4=BA=8C=E5=8D=81=E4=B8=89=E7=AB=A0?= =?UTF-8?q?=20=E5=A4=9A=E9=A1=B9=E7=9B=AE=E9=9B=86=E4=B8=AD=E6=9D=83?= =?UTF-8?q?=E9=99=90=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pom.xml | 6 + shiro-example-chapter23-app1/pom.xml | 57 + .../app1/web/controller/HelloController.java | 45 + .../exception/DefaultExceptionHandler.java | 31 + .../resources/client/shiro-client.properties | 4 + .../src/main/resources/spring-mvc.xml | 33 + .../src/main/webapp/WEB-INF/web.xml | 57 + .../src/main/webapp/success.jsp | 38 + .../src/main/webapp/unauthorized.jsp | 11 + shiro-example-chapter23-app2/pom.xml | 57 + .../app2/web/controller/HelloController.java | 45 + .../exception/DefaultExceptionHandler.java | 31 + .../resources/client/shiro-client.properties | 4 + .../src/main/resources/spring-mvc.xml | 33 + .../src/main/webapp/WEB-INF/web.xml | 57 + .../src/main/webapp/success.jsp | 38 + .../src/main/webapp/unauthorized.jsp | 11 + shiro-example-chapter23-client/pom.xml | 22 + .../client/ClientAuthenticationFilter.java | 47 + .../shiro/chapter23/client/ClientRealm.java | 47 + .../chapter23/client/ClientSessionDAO.java | 50 + .../client/ClientShiroFilterFactoryBean.java | 44 + .../client/shiro-client-default.properties | 20 + .../client/spring-client-remote-service.xml | 16 + .../resources/client/spring-client-shiro.xml | 96 + .../main/resources/client/spring-client.xml | 14 + shiro-example-chapter23-core/pom.xml | 17 + .../chapter23/core/ClientSavedRequest.java | 75 + .../chapter23/remote/PermissionContext.java | 39 + .../remote/RemoteServiceInterface.java | 26 + shiro-example-chapter23-pom/pom.xml | 139 + shiro-example-chapter23-server/pom.xml | 65 + .../shiro/chapter23/Constants.java | 12 + .../RetryLimitHashedCredentialsMatcher.java | 46 + .../shiro/chapter23/dao/AppDao.java | 22 + .../shiro/chapter23/dao/AppDaoImpl.java | 87 + .../shiro/chapter23/dao/AuthorizationDao.java | 22 + .../chapter23/dao/AuthorizationDaoImpl.java | 88 + .../shiro/chapter23/dao/OrganizationDao.java | 24 + .../chapter23/dao/OrganizationDaoImpl.java | 95 + .../shiro/chapter23/dao/ResourceDao.java | 21 + .../shiro/chapter23/dao/ResourceDaoImpl.java | 83 + .../shiro/chapter23/dao/RoleDao.java | 20 + .../shiro/chapter23/dao/RoleDaoImpl.java | 78 + .../shiro/chapter23/dao/UserDao.java | 24 + .../shiro/chapter23/dao/UserDaoImpl.java | 88 + .../shiro/chapter23/entity/App.java | 84 + .../shiro/chapter23/entity/Authorization.java | 107 + .../shiro/chapter23/entity/Organization.java | 93 + .../shiro/chapter23/entity/Resource.java | 135 + .../shiro/chapter23/entity/Role.java | 126 + .../shiro/chapter23/entity/User.java | 113 + .../shiro/chapter23/realm/UserRealm.java | 91 + .../shiro/chapter23/remote/RemoteService.java | 50 + .../shiro/chapter23/service/AppService.java | 23 + .../chapter23/service/AppServiceImpl.java | 48 + .../service/AuthorizationService.java | 38 + .../service/AuthorizationServiceImpl.java | 120 + .../service/OrganizationService.java | 25 + .../service/OrganizationServiceImpl.java | 54 + .../chapter23/service/PasswordHelper.java | 50 + .../chapter23/service/ResourceService.java | 36 + .../service/ResourceServiceImpl.java | 96 + .../shiro/chapter23/service/RoleService.java | 36 + .../chapter23/service/RoleServiceImpl.java | 71 + .../shiro/chapter23/service/UserService.java | 45 + .../chapter23/service/UserServiceImpl.java | 78 + .../session/dao/MySqlSessionDAO.java | 51 + .../MySqlSessionValidationScheduler.java | 117 + .../chapter23/utils/SerializableUtils.java | 37 + .../web/bind/annotation/CurrentUser.java | 41 + .../CurrentUserMethodArgumentResolver.java | 34 + .../web/controller/AppController.java | 86 + .../controller/AuthorizationController.java | 101 + .../web/controller/IndexController.java | 43 + .../web/controller/LoginController.java | 35 + .../controller/OrganizationController.java | 111 + .../web/controller/ResourceController.java | 85 + .../web/controller/RoleController.java | 92 + .../web/controller/UserController.java | 108 + .../exception/DefaultExceptionHandler.java | 31 + .../web/shiro/filter/SysUserFilter.java | 29 + .../shiro/chapter23/web/taglib/Functions.java | 167 + .../zhangkaitao/shiro/spring/SpringUtils.java | 93 + .../main/resources/ehcache/ehcache-shiro.xml | 43 + .../src/main/resources/resources.properties | 24 + .../main/resources/spring-config-shiro.xml | 128 + .../src/main/resources/spring-config.xml | 87 + .../resources/spring-mvc-remote-service.xml | 17 + .../src/main/resources/spring-mvc-shiro.xml | 16 + .../src/main/resources/spring-mvc.xml | 57 + .../src/main/webapp/WEB-INF/jsp/app/edit.jsp | 36 + .../src/main/webapp/WEB-INF/jsp/app/list.jsp | 49 + .../webapp/WEB-INF/jsp/authorization/edit.jsp | 36 + .../webapp/WEB-INF/jsp/authorization/list.jsp | 49 + .../src/main/webapp/WEB-INF/jsp/index.jsp | 35 + .../src/main/webapp/WEB-INF/jsp/login.jsp | 19 + .../WEB-INF/jsp/organization/appendChild.jsp | 30 + .../webapp/WEB-INF/jsp/organization/index.jsp | 25 + .../WEB-INF/jsp/organization/maintain.jsp | 73 + .../webapp/WEB-INF/jsp/organization/move.jsp | 98 + .../WEB-INF/jsp/organization/success.jsp | 9 + .../webapp/WEB-INF/jsp/organization/tree.jsp | 40 + .../main/webapp/WEB-INF/jsp/resource/edit.jsp | 49 + .../main/webapp/WEB-INF/jsp/resource/list.jsp | 76 + .../src/main/webapp/WEB-INF/jsp/role/edit.jsp | 119 + .../src/main/webapp/WEB-INF/jsp/role/list.jsp | 49 + .../main/webapp/WEB-INF/jsp/unauthorized.jsp | 11 + .../WEB-INF/jsp/user/changePassword.jsp | 20 + .../src/main/webapp/WEB-INF/jsp/user/edit.jsp | 120 + .../src/main/webapp/WEB-INF/jsp/user/list.jsp | 52 + .../src/main/webapp/WEB-INF/jsp/welcome.jsp | 6 + .../JQuery zTree v3.5.15/api/API_cn.html | 103 + .../JQuery zTree v3.5.15/api/API_en.html | 102 + .../JQuery zTree v3.5.15/api/apiCss/api.js | 591 +++ .../api/apiCss/common.css | 219 ++ .../api/apiCss/common_ie6.css | 23 + .../api/apiCss/img/apiMenu.gif | Bin 0 -> 1736 bytes .../api/apiCss/img/apiMenu.png | Bin 0 -> 3954 bytes .../api/apiCss/img/background.jpg | Bin 0 -> 36520 bytes .../api/apiCss/img/chinese.png | Bin 0 -> 1556 bytes .../api/apiCss/img/close.png | Bin 0 -> 1908 bytes .../api/apiCss/img/contact-bg.png | Bin 0 -> 177 bytes .../api/apiCss/img/english.png | Bin 0 -> 1356 bytes .../api/apiCss/img/header-bg.png | Bin 0 -> 148 bytes .../api/apiCss/img/lightbulb.png | Bin 0 -> 27355 bytes .../api/apiCss/img/overlay_arrow.gif | Bin 0 -> 625 bytes .../api/apiCss/img/overlay_arrow.png | Bin 0 -> 830 bytes .../api/apiCss/img/overlay_bg.png | Bin 0 -> 109 bytes .../api/apiCss/img/overlay_close_IE6.gif | Bin 0 -> 441 bytes .../api/apiCss/img/zTreeStandard.gif | Bin 0 -> 6851 bytes .../api/apiCss/img/zTreeStandard.png | Bin 0 -> 12573 bytes .../api/apiCss/jquery-1.6.2.min.js | 18 + .../api/apiCss/jquery.ztree.core-3.5.js | 68 + .../api/apiCss/zTreeStyleForApi.css | 49 + .../api/cn/fn.zTree._z.html | 13 + .../api/cn/fn.zTree.destroy.html | 28 + .../api/cn/fn.zTree.getZTreeObj.html | 24 + .../api/cn/fn.zTree.init.html | 74 + .../api/cn/setting.async.autoParam.html | 39 + .../api/cn/setting.async.contentType.html | 29 + .../api/cn/setting.async.dataFilter.html | 45 + .../api/cn/setting.async.dataType.html | 29 + .../api/cn/setting.async.enable.html | 30 + .../api/cn/setting.async.otherParam.html | 40 + .../api/cn/setting.async.type.html | 30 + .../api/cn/setting.async.url.html | 50 + .../api/cn/setting.callback.beforeAsync.html | 35 + .../api/cn/setting.callback.beforeCheck.html | 34 + .../api/cn/setting.callback.beforeClick.html | 49 + .../cn/setting.callback.beforeCollapse.html | 34 + .../cn/setting.callback.beforeDblClick.html | 36 + .../api/cn/setting.callback.beforeDrag.html | 39 + .../cn/setting.callback.beforeDragOpen.html | 37 + .../api/cn/setting.callback.beforeDrop.html | 48 + .../cn/setting.callback.beforeEditName.html | 38 + .../api/cn/setting.callback.beforeExpand.html | 34 + .../cn/setting.callback.beforeMouseDown.html | 35 + .../cn/setting.callback.beforeMouseUp.html | 35 + .../api/cn/setting.callback.beforeRemove.html | 37 + .../api/cn/setting.callback.beforeRename.html | 46 + .../cn/setting.callback.beforeRightClick.html | 35 + .../api/cn/setting.callback.onAsyncError.html | 42 + .../cn/setting.callback.onAsyncSuccess.html | 38 + .../api/cn/setting.callback.onCheck.html | 34 + .../api/cn/setting.callback.onClick.html | 49 + .../api/cn/setting.callback.onCollapse.html | 34 + .../api/cn/setting.callback.onDblClick.html | 35 + .../api/cn/setting.callback.onDrag.html | 34 + .../api/cn/setting.callback.onDrop.html | 46 + .../api/cn/setting.callback.onExpand.html | 34 + .../api/cn/setting.callback.onMouseDown.html | 35 + .../api/cn/setting.callback.onMouseUp.html | 35 + .../cn/setting.callback.onNodeCreated.html | 35 + .../api/cn/setting.callback.onRemove.html | 34 + .../api/cn/setting.callback.onRename.html | 40 + .../api/cn/setting.callback.onRightClick.html | 36 + .../cn/setting.check.autoCheckTrigger.html | 28 + .../cn/setting.check.chkDisabledInherit.html | 28 + .../api/cn/setting.check.chkStyle.html | 48 + .../api/cn/setting.check.chkboxType.html | 31 + .../api/cn/setting.check.enable.html | 25 + .../api/cn/setting.check.nocheckInherit.html | 28 + .../api/cn/setting.check.radioType.html | 29 + .../api/cn/setting.data.keep.leaf.html | 28 + .../api/cn/setting.data.keep.parent.html | 28 + .../api/cn/setting.data.key.checked.html | 24 + .../api/cn/setting.data.key.children.html | 23 + .../api/cn/setting.data.key.name.html | 23 + .../api/cn/setting.data.key.title.html | 24 + .../api/cn/setting.data.key.url.html | 24 + .../cn/setting.data.simpleData.enable.html | 38 + .../api/cn/setting.data.simpleData.idKey.html | 32 + .../cn/setting.data.simpleData.pIdKey.html | 32 + .../cn/setting.data.simpleData.rootPId.html | 32 + .../setting.edit.drag.autoExpandTrigger.html | 28 + .../cn/setting.edit.drag.autoOpenTime.html | 25 + .../api/cn/setting.edit.drag.borderMax.html | 25 + .../api/cn/setting.edit.drag.borderMin.html | 25 + .../api/cn/setting.edit.drag.inner.html | 59 + .../api/cn/setting.edit.drag.isCopy.html | 32 + .../api/cn/setting.edit.drag.isMove.html | 32 + .../cn/setting.edit.drag.maxShowNodeNum.html | 25 + .../api/cn/setting.edit.drag.minMoveSize.html | 25 + .../api/cn/setting.edit.drag.next.html | 58 + .../api/cn/setting.edit.drag.prev.html | 58 + .../cn/setting.edit.editNameSelectAll.html | 27 + .../api/cn/setting.edit.enable.html | 38 + .../api/cn/setting.edit.removeTitle.html | 48 + .../api/cn/setting.edit.renameTitle.html | 48 + .../api/cn/setting.edit.showRemoveBtn.html | 49 + .../api/cn/setting.edit.showRenameBtn.html | 51 + .../api/cn/setting.treeId.html | 14 + .../api/cn/setting.treeObj.html | 14 + .../api/cn/setting.view.addDiyDom.html | 40 + .../api/cn/setting.view.addHoverDom.html | 45 + .../cn/setting.view.autoCancelSelected.html | 26 + .../api/cn/setting.view.dblClickExpand.html | 44 + .../api/cn/setting.view.expandSpeed.html | 31 + .../api/cn/setting.view.fontCss.html | 42 + .../api/cn/setting.view.nameIsHTML.html | 27 + .../api/cn/setting.view.removeHoverDom.html | 45 + .../api/cn/setting.view.selectedMulti.html | 27 + .../api/cn/setting.view.showIcon.html | 44 + .../api/cn/setting.view.showLine.html | 25 + .../api/cn/setting.view.showTitle.html | 46 + .../cn/setting.view.txtSelectedEnable.html | 25 + .../api/cn/treeNode.check_Child_State.html | 43 + .../api/cn/treeNode.check_Focus.html | 19 + .../api/cn/treeNode.checked.html | 32 + .../api/cn/treeNode.checkedOld.html | 25 + .../api/cn/treeNode.children.html | 35 + .../api/cn/treeNode.chkDisabled.html | 28 + .../api/cn/treeNode.click.html | 24 + .../api/cn/treeNode.diy.html | 15 + .../api/cn/treeNode.editNameFlag.html | 19 + .../api/cn/treeNode.getCheckStatus.html | 63 + .../api/cn/treeNode.getNextNode.html | 27 + .../api/cn/treeNode.getParentNode.html | 27 + .../api/cn/treeNode.getPreNode.html | 27 + .../api/cn/treeNode.halfCheck.html | 29 + .../api/cn/treeNode.icon.html | 33 + .../api/cn/treeNode.iconClose.html | 33 + .../api/cn/treeNode.iconOpen.html | 33 + .../api/cn/treeNode.iconSkin.html | 43 + .../api/cn/treeNode.isAjaxing.html | 26 + .../api/cn/treeNode.isFirstNode.html | 28 + .../api/cn/treeNode.isHidden.html | 27 + .../api/cn/treeNode.isHover.html | 19 + .../api/cn/treeNode.isLastNode.html | 28 + .../api/cn/treeNode.isParent.html | 28 + .../api/cn/treeNode.level.html | 25 + .../api/cn/treeNode.name.html | 25 + .../api/cn/treeNode.nocheck.html | 26 + .../api/cn/treeNode.open.html | 30 + .../api/cn/treeNode.parentTId.html | 27 + .../api/cn/treeNode.tId.html | 25 + .../api/cn/treeNode.target.html | 24 + .../api/cn/treeNode.url.html | 25 + .../api/cn/treeNode.zAsync.html | 28 + .../api/cn/zTreeObj.addNodes.html | 42 + .../api/cn/zTreeObj.cancelEditName.html | 30 + .../api/cn/zTreeObj.cancelSelectedNode.html | 35 + .../api/cn/zTreeObj.checkAllNodes.html | 29 + .../api/cn/zTreeObj.checkNode.html | 44 + .../api/cn/zTreeObj.copyNode.html | 44 + .../api/cn/zTreeObj.destroy.html | 25 + .../api/cn/zTreeObj.editName.html | 29 + .../api/cn/zTreeObj.expandAll.html | 30 + .../api/cn/zTreeObj.expandNode.html | 50 + .../cn/zTreeObj.getChangeCheckedNodes.html | 24 + .../api/cn/zTreeObj.getCheckedNodes.html | 28 + .../api/cn/zTreeObj.getNodeByParam.html | 32 + .../api/cn/zTreeObj.getNodeByTId.html | 27 + .../api/cn/zTreeObj.getNodeIndex.html | 30 + .../api/cn/zTreeObj.getNodes.html | 26 + .../api/cn/zTreeObj.getNodesByFilter.html | 43 + .../api/cn/zTreeObj.getNodesByParam.html | 31 + .../api/cn/zTreeObj.getNodesByParamFuzzy.html | 32 + .../api/cn/zTreeObj.getSelectedNodes.html | 23 + .../api/cn/zTreeObj.hideNode.html | 29 + .../api/cn/zTreeObj.hideNodes.html | 29 + .../api/cn/zTreeObj.moveNode.html | 46 + .../api/cn/zTreeObj.reAsyncChildNodes.html | 42 + .../api/cn/zTreeObj.refresh.html | 24 + .../api/cn/zTreeObj.removeChildNodes.html | 32 + .../api/cn/zTreeObj.removeNode.html | 34 + .../api/cn/zTreeObj.selectNode.html | 34 + .../api/cn/zTreeObj.setChkDisabled.html | 44 + .../api/cn/zTreeObj.setEditable.html | 27 + .../api/cn/zTreeObj.setting.html | 13 + .../api/cn/zTreeObj.showNode.html | 31 + .../api/cn/zTreeObj.showNodes.html | 29 + .../api/cn/zTreeObj.transformToArray.html | 25 + .../cn/zTreeObj.transformTozTreeNodes.html | 43 + .../api/cn/zTreeObj.updateNode.html | 37 + .../api/en/fn.zTree._z.html | 13 + .../api/en/fn.zTree.destroy.html | 28 + .../api/en/fn.zTree.getZTreeObj.html | 25 + .../api/en/fn.zTree.init.html | 75 + .../api/en/setting.async.autoParam.html | 39 + .../api/en/setting.async.contentType.html | 29 + .../api/en/setting.async.dataFilter.html | 45 + .../api/en/setting.async.dataType.html | 29 + .../api/en/setting.async.enable.html | 30 + .../api/en/setting.async.otherParam.html | 40 + .../api/en/setting.async.type.html | 30 + .../api/en/setting.async.url.html | 50 + .../api/en/setting.callback.beforeAsync.html | 35 + .../api/en/setting.callback.beforeCheck.html | 34 + .../api/en/setting.callback.beforeClick.html | 49 + .../en/setting.callback.beforeCollapse.html | 34 + .../en/setting.callback.beforeDblClick.html | 36 + .../api/en/setting.callback.beforeDrag.html | 39 + .../en/setting.callback.beforeDragOpen.html | 37 + .../api/en/setting.callback.beforeDrop.html | 50 + .../en/setting.callback.beforeEditName.html | 38 + .../api/en/setting.callback.beforeExpand.html | 34 + .../en/setting.callback.beforeMouseDown.html | 35 + .../en/setting.callback.beforeMouseUp.html | 35 + .../api/en/setting.callback.beforeRemove.html | 37 + .../api/en/setting.callback.beforeRename.html | 46 + .../en/setting.callback.beforeRightClick.html | 35 + .../api/en/setting.callback.onAsyncError.html | 42 + .../en/setting.callback.onAsyncSuccess.html | 38 + .../api/en/setting.callback.onCheck.html | 34 + .../api/en/setting.callback.onClick.html | 49 + .../api/en/setting.callback.onCollapse.html | 34 + .../api/en/setting.callback.onDblClick.html | 35 + .../api/en/setting.callback.onDrag.html | 34 + .../api/en/setting.callback.onDrop.html | 48 + .../api/en/setting.callback.onExpand.html | 34 + .../api/en/setting.callback.onMouseDown.html | 35 + .../api/en/setting.callback.onMouseUp.html | 35 + .../en/setting.callback.onNodeCreated.html | 35 + .../api/en/setting.callback.onRemove.html | 34 + .../api/en/setting.callback.onRename.html | 40 + .../api/en/setting.callback.onRightClick.html | 36 + .../en/setting.check.autoCheckTrigger.html | 29 + .../en/setting.check.chkDisabledInherit.html | 28 + .../api/en/setting.check.chkStyle.html | 48 + .../api/en/setting.check.chkboxType.html | 31 + .../api/en/setting.check.enable.html | 26 + .../api/en/setting.check.nocheckInherit.html | 28 + .../api/en/setting.check.radioType.html | 29 + .../api/en/setting.data.keep.leaf.html | 28 + .../api/en/setting.data.keep.parent.html | 28 + .../api/en/setting.data.key.checked.html | 24 + .../api/en/setting.data.key.children.html | 23 + .../api/en/setting.data.key.name.html | 23 + .../api/en/setting.data.key.title.html | 24 + .../api/en/setting.data.key.url.html | 24 + .../en/setting.data.simpleData.enable.html | 39 + .../api/en/setting.data.simpleData.idKey.html | 32 + .../en/setting.data.simpleData.pIdKey.html | 32 + .../en/setting.data.simpleData.rootPId.html | 32 + .../setting.edit.drag.autoExpandTrigger.html | 29 + .../en/setting.edit.drag.autoOpenTime.html | 25 + .../api/en/setting.edit.drag.borderMax.html | 25 + .../api/en/setting.edit.drag.borderMin.html | 25 + .../api/en/setting.edit.drag.inner.html | 60 + .../api/en/setting.edit.drag.isCopy.html | 32 + .../api/en/setting.edit.drag.isMove.html | 32 + .../en/setting.edit.drag.maxShowNodeNum.html | 25 + .../api/en/setting.edit.drag.minMoveSize.html | 25 + .../api/en/setting.edit.drag.next.html | 59 + .../api/en/setting.edit.drag.prev.html | 59 + .../en/setting.edit.editNameSelectAll.html | 27 + .../api/en/setting.edit.enable.html | 39 + .../api/en/setting.edit.removeTitle.html | 48 + .../api/en/setting.edit.renameTitle.html | 48 + .../api/en/setting.edit.showRemoveBtn.html | 50 + .../api/en/setting.edit.showRenameBtn.html | 52 + .../api/en/setting.treeId.html | 14 + .../api/en/setting.treeObj.html | 14 + .../api/en/setting.view.addDiyDom.html | 40 + .../api/en/setting.view.addHoverDom.html | 45 + .../en/setting.view.autoCancelSelected.html | 27 + .../api/en/setting.view.dblClickExpand.html | 45 + .../api/en/setting.view.expandSpeed.html | 31 + .../api/en/setting.view.fontCss.html | 42 + .../api/en/setting.view.nameIsHTML.html | 28 + .../api/en/setting.view.removeHoverDom.html | 45 + .../api/en/setting.view.selectedMulti.html | 28 + .../api/en/setting.view.showIcon.html | 45 + .../api/en/setting.view.showLine.html | 26 + .../api/en/setting.view.showTitle.html | 47 + .../en/setting.view.txtSelectedEnable.html | 26 + .../api/en/treeNode.check_Child_State.html | 43 + .../api/en/treeNode.check_Focus.html | 19 + .../api/en/treeNode.checked.html | 32 + .../api/en/treeNode.checkedOld.html | 25 + .../api/en/treeNode.children.html | 35 + .../api/en/treeNode.chkDisabled.html | 28 + .../api/en/treeNode.click.html | 24 + .../api/en/treeNode.diy.html | 15 + .../api/en/treeNode.editNameFlag.html | 19 + .../api/en/treeNode.getCheckStatus.html | 63 + .../api/en/treeNode.getNextNode.html | 27 + .../api/en/treeNode.getParentNode.html | 27 + .../api/en/treeNode.getPreNode.html | 27 + .../api/en/treeNode.halfCheck.html | 29 + .../api/en/treeNode.icon.html | 33 + .../api/en/treeNode.iconClose.html | 33 + .../api/en/treeNode.iconOpen.html | 33 + .../api/en/treeNode.iconSkin.html | 43 + .../api/en/treeNode.isAjaxing.html | 26 + .../api/en/treeNode.isFirstNode.html | 28 + .../api/en/treeNode.isHidden.html | 28 + .../api/en/treeNode.isHover.html | 19 + .../api/en/treeNode.isLastNode.html | 28 + .../api/en/treeNode.isParent.html | 28 + .../api/en/treeNode.level.html | 25 + .../api/en/treeNode.name.html | 25 + .../api/en/treeNode.nocheck.html | 26 + .../api/en/treeNode.open.html | 30 + .../api/en/treeNode.parentTId.html | 27 + .../api/en/treeNode.tId.html | 25 + .../api/en/treeNode.target.html | 24 + .../api/en/treeNode.url.html | 25 + .../api/en/treeNode.zAsync.html | 28 + .../api/en/zTreeObj.addNodes.html | 42 + .../api/en/zTreeObj.cancelEditName.html | 30 + .../api/en/zTreeObj.cancelSelectedNode.html | 35 + .../api/en/zTreeObj.checkAllNodes.html | 29 + .../api/en/zTreeObj.checkNode.html | 44 + .../api/en/zTreeObj.copyNode.html | 47 + .../api/en/zTreeObj.destroy.html | 25 + .../api/en/zTreeObj.editName.html | 29 + .../api/en/zTreeObj.expandAll.html | 30 + .../api/en/zTreeObj.expandNode.html | 50 + .../en/zTreeObj.getChangeCheckedNodes.html | 24 + .../api/en/zTreeObj.getCheckedNodes.html | 28 + .../api/en/zTreeObj.getNodeByParam.html | 32 + .../api/en/zTreeObj.getNodeByTId.html | 27 + .../api/en/zTreeObj.getNodeIndex.html | 30 + .../api/en/zTreeObj.getNodes.html | 26 + .../api/en/zTreeObj.getNodesByFilter.html | 43 + .../api/en/zTreeObj.getNodesByParam.html | 31 + .../api/en/zTreeObj.getNodesByParamFuzzy.html | 32 + .../api/en/zTreeObj.getSelectedNodes.html | 23 + .../api/en/zTreeObj.hideNode.html | 29 + .../api/en/zTreeObj.hideNodes.html | 29 + .../api/en/zTreeObj.moveNode.html | 49 + .../api/en/zTreeObj.reAsyncChildNodes.html | 42 + .../api/en/zTreeObj.refresh.html | 24 + .../api/en/zTreeObj.removeChildNodes.html | 32 + .../api/en/zTreeObj.removeNode.html | 34 + .../api/en/zTreeObj.selectNode.html | 34 + .../api/en/zTreeObj.setChkDisabled.html | 44 + .../api/en/zTreeObj.setEditable.html | 27 + .../api/en/zTreeObj.setting.html | 14 + .../api/en/zTreeObj.showNode.html | 31 + .../api/en/zTreeObj.showNodes.html | 29 + .../api/en/zTreeObj.transformToArray.html | 27 + .../en/zTreeObj.transformTozTreeNodes.html | 44 + .../api/en/zTreeObj.updateNode.html | 37 + .../static/JQuery zTree v3.5.15/css/demo.css | 33 + .../css/zTreeStyle/img/diy/1_close.png | Bin 0 -> 601 bytes .../css/zTreeStyle/img/diy/1_open.png | Bin 0 -> 580 bytes .../css/zTreeStyle/img/diy/2.png | Bin 0 -> 570 bytes .../css/zTreeStyle/img/diy/3.png | Bin 0 -> 762 bytes .../css/zTreeStyle/img/diy/4.png | Bin 0 -> 399 bytes .../css/zTreeStyle/img/diy/5.png | Bin 0 -> 710 bytes .../css/zTreeStyle/img/diy/6.png | Bin 0 -> 432 bytes .../css/zTreeStyle/img/diy/7.png | Bin 0 -> 534 bytes .../css/zTreeStyle/img/diy/8.png | Bin 0 -> 529 bytes .../css/zTreeStyle/img/diy/9.png | Bin 0 -> 467 bytes .../css/zTreeStyle/img/line_conn.gif | Bin 0 -> 45 bytes .../css/zTreeStyle/img/loading.gif | Bin 0 -> 381 bytes .../css/zTreeStyle/img/zTreeStandard.gif | Bin 0 -> 5564 bytes .../css/zTreeStyle/img/zTreeStandard.png | Bin 0 -> 11173 bytes .../css/zTreeStyle/zTreeStyle.css | 97 + .../demo/cn/asyncData/getNodes.php | 38 + .../demo/cn/asyncData/getNodesForBigData.php | 24 + .../demo/cn/bigdata/common.html | 190 + .../demo/cn/bigdata/diy_async.html | 157 + .../demo/cn/bigdata/page.html | 150 + .../demo/cn/core/async.html | 70 + .../demo/cn/core/async_fun.html | 144 + .../demo/cn/core/click.html | 107 + .../demo/cn/core/custom_font.html | 67 + .../demo/cn/core/custom_icon.html | 74 + .../demo/cn/core/custom_iconSkin.html | 84 + .../demo/cn/core/expand.html | 185 + .../demo/cn/core/noicon.html | 93 + .../demo/cn/core/noline.html | 88 + .../demo/cn/core/otherMouse.html | 132 + .../demo/cn/core/searchNodes.html | 173 + .../demo/cn/core/simpleData.html | 100 + .../demo/cn/core/standardData.html | 106 + .../demo/cn/core/update_fun.html | 143 + .../demo/cn/core/url.html | 63 + .../demo/cn/excheck/checkbox.html | 107 + .../demo/cn/excheck/checkbox_chkDisabled.html | 112 + .../demo/cn/excheck/checkbox_count.html | 126 + .../demo/cn/excheck/checkbox_fun.html | 172 + .../demo/cn/excheck/checkbox_halfCheck.html | 108 + .../demo/cn/excheck/checkbox_nocheck.html | 96 + .../demo/cn/excheck/radio.html | 97 + .../demo/cn/excheck/radio_chkDisabled.html | 101 + .../demo/cn/excheck/radio_fun.html | 151 + .../demo/cn/excheck/radio_halfCheck.html | 93 + .../demo/cn/excheck/radio_nocheck.html | 77 + .../demo/cn/exedit/async_edit.html | 120 + .../demo/cn/exedit/drag.html | 136 + .../demo/cn/exedit/drag_fun.html | 180 + .../demo/cn/exedit/drag_super.html | 210 + .../demo/cn/exedit/edit.html | 115 + .../demo/cn/exedit/edit_fun.html | 194 + .../demo/cn/exedit/edit_super.html | 183 + .../demo/cn/exedit/multiTree.html | 94 + .../demo/cn/exhide/checkbox.html | 161 + .../demo/cn/exhide/common.html | 126 + .../demo/cn/exhide/radio.html | 162 + .../JQuery zTree v3.5.15/demo/cn/index.html | 157 + .../demo/cn/super/asyncForAll.html | 191 + .../demo/cn/super/checkbox_radio.html | 116 + .../demo/cn/super/diydom.html | 177 + .../demo/cn/super/dragWithOther.html | 235 ++ .../demo/cn/super/left_menu.html | 152 + .../demo/cn/super/left_menuForOutLook.gif | Bin 0 -> 216 bytes .../demo/cn/super/left_menuForOutLook.html | 136 + .../demo/cn/super/left_menuForOutLook.png | Bin 0 -> 421 bytes .../demo/cn/super/oneclick.html | 87 + .../demo/cn/super/oneroot.html | 79 + .../demo/cn/super/rightClickMenu.html | 168 + .../demo/cn/super/select_menu.html | 124 + .../demo/cn/super/select_menu_checkbox.html | 126 + .../demo/cn/super/select_menu_radio.html | 127 + .../demo/cn/super/singlepath.html | 150 + .../demo/en/asyncData/getNodes.php | 38 + .../demo/en/asyncData/getNodesForBigData.php | 24 + .../demo/en/bigdata/common.html | 190 + .../demo/en/bigdata/diy_async.html | 157 + .../demo/en/bigdata/page.html | 150 + .../demo/en/core/async.html | 70 + .../demo/en/core/async_fun.html | 144 + .../demo/en/core/click.html | 107 + .../demo/en/core/custom_font.html | 67 + .../demo/en/core/custom_icon.html | 74 + .../demo/en/core/custom_iconSkin.html | 85 + .../demo/en/core/expand.html | 186 + .../demo/en/core/noicon.html | 93 + .../demo/en/core/noline.html | 88 + .../demo/en/core/otherMouse.html | 132 + .../demo/en/core/searchNodes.html | 173 + .../demo/en/core/simpleData.html | 100 + .../demo/en/core/standardData.html | 106 + .../demo/en/core/update_fun.html | 143 + .../demo/en/core/url.html | 63 + .../demo/en/excheck/checkbox.html | 107 + .../demo/en/excheck/checkbox_chkDisabled.html | 111 + .../demo/en/excheck/checkbox_count.html | 127 + .../demo/en/excheck/checkbox_fun.html | 172 + .../demo/en/excheck/checkbox_halfCheck.html | 108 + .../demo/en/excheck/checkbox_nocheck.html | 95 + .../demo/en/excheck/radio.html | 97 + .../demo/en/excheck/radio_chkDisabled.html | 101 + .../demo/en/excheck/radio_fun.html | 151 + .../demo/en/excheck/radio_halfCheck.html | 93 + .../demo/en/excheck/radio_nocheck.html | 77 + .../demo/en/exedit/async_edit.html | 120 + .../demo/en/exedit/drag.html | 136 + .../demo/en/exedit/drag_fun.html | 180 + .../demo/en/exedit/drag_super.html | 210 + .../demo/en/exedit/edit.html | 115 + .../demo/en/exedit/edit_fun.html | 194 + .../demo/en/exedit/edit_super.html | 183 + .../demo/en/exedit/multiTree.html | 94 + .../demo/en/exhide/checkbox.html | 161 + .../demo/en/exhide/common.html | 126 + .../demo/en/exhide/radio.html | 162 + .../JQuery zTree v3.5.15/demo/en/index.html | 157 + .../demo/en/super/asyncForAll.html | 192 + .../demo/en/super/checkbox_radio.html | 116 + .../demo/en/super/diydom.html | 177 + .../demo/en/super/dragWithOther.html | 234 ++ .../demo/en/super/left_menu.html | 152 + .../demo/en/super/left_menuForOutLook.gif | Bin 0 -> 216 bytes .../demo/en/super/left_menuForOutLook.html | 136 + .../demo/en/super/left_menuForOutLook.png | Bin 0 -> 421 bytes .../demo/en/super/oneclick.html | 87 + .../demo/en/super/oneroot.html | 79 + .../demo/en/super/rightClickMenu.html | 168 + .../demo/en/super/select_menu.html | 124 + .../demo/en/super/select_menu_checkbox.html | 126 + .../demo/en/super/select_menu_radio.html | 127 + .../demo/en/super/singlepath.html | 150 + .../js/jquery-1.4.4.min.js | 167 + .../js/jquery.ztree.all-3.5.js | 3487 +++++++++++++++++ .../js/jquery.ztree.all-3.5.min.js | 157 + .../js/jquery.ztree.core-3.5.js | 1677 ++++++++ .../js/jquery.ztree.core-3.5.min.js | 68 + .../js/jquery.ztree.excheck-3.5.js | 626 +++ .../js/jquery.ztree.excheck-3.5.min.js | 33 + .../js/jquery.ztree.exedit-3.5.js | 1183 ++++++ .../js/jquery.ztree.exedit-3.5.min.js | 52 + .../js/jquery.ztree.exhide-3.5.js | 363 ++ .../js/jquery.ztree.exhide-3.5.min.js | 22 + .../static/JQuery zTree v3.5.15/log v3.x.txt | 199 + .../main/webapp/WEB-INF/static/css/css.css | 27 + .../static/css/layout-default-latest.css | 224 ++ .../static/jquery-treetable/.gitignore | 3 + .../static/jquery-treetable/CHANGELOG.txt | 126 + .../static/jquery-treetable/GPL-LICENSE.txt | 278 ++ .../static/jquery-treetable/MIT-LICENSE.txt | 20 + .../WEB-INF/static/jquery-treetable/README.md | 20 + .../static/jquery-treetable/index.html | 948 +++++ .../javascripts/src/jquery.treetable.js | 620 +++ .../javascripts/test/jquery.treetable.test.js | 1555 ++++++++ .../stylesheets/jquery.treetable.css | 28 + .../jquery.treetable.theme.default.css | 83 + .../jquery-treetable/stylesheets/screen.css | 28 + .../WEB-INF/static/jquery-treetable/test.html | 28 + .../jquery-treetable/treetable.jquery.json | 39 + .../WEB-INF/static/js/jquery-1.11.0.min.js | 4 + .../static/js/jquery.layout-latest.min.js | 142 + .../webapp/WEB-INF/tld/zhang-functions.tld | 72 + .../src/main/webapp/WEB-INF/web.xml | 80 + .../src/sql/design.txt | 30 + .../src/sql/shiro-data.sql | 63 + .../src/sql/shiro-schema.sql | 84 + 623 files changed, 44993 insertions(+) create mode 100644 shiro-example-chapter23-app1/pom.xml create mode 100644 shiro-example-chapter23-app1/src/main/java/com/github/zhangkaitao/shiro/chapter23/app1/web/controller/HelloController.java create mode 100644 shiro-example-chapter23-app1/src/main/java/com/github/zhangkaitao/shiro/chapter23/app1/web/exception/DefaultExceptionHandler.java create mode 100644 shiro-example-chapter23-app1/src/main/resources/client/shiro-client.properties create mode 100644 shiro-example-chapter23-app1/src/main/resources/spring-mvc.xml create mode 100644 shiro-example-chapter23-app1/src/main/webapp/WEB-INF/web.xml create mode 100644 shiro-example-chapter23-app1/src/main/webapp/success.jsp create mode 100644 shiro-example-chapter23-app1/src/main/webapp/unauthorized.jsp create mode 100644 shiro-example-chapter23-app2/pom.xml create mode 100644 shiro-example-chapter23-app2/src/main/java/com/github/zhangkaitao/shiro/chapter23/app2/web/controller/HelloController.java create mode 100644 shiro-example-chapter23-app2/src/main/java/com/github/zhangkaitao/shiro/chapter23/app2/web/exception/DefaultExceptionHandler.java create mode 100644 shiro-example-chapter23-app2/src/main/resources/client/shiro-client.properties create mode 100644 shiro-example-chapter23-app2/src/main/resources/spring-mvc.xml create mode 100644 shiro-example-chapter23-app2/src/main/webapp/WEB-INF/web.xml create mode 100644 shiro-example-chapter23-app2/src/main/webapp/success.jsp create mode 100644 shiro-example-chapter23-app2/src/main/webapp/unauthorized.jsp create mode 100644 shiro-example-chapter23-client/pom.xml create mode 100644 shiro-example-chapter23-client/src/main/java/com/github/zhangkaitao/shiro/chapter23/client/ClientAuthenticationFilter.java create mode 100644 shiro-example-chapter23-client/src/main/java/com/github/zhangkaitao/shiro/chapter23/client/ClientRealm.java create mode 100644 shiro-example-chapter23-client/src/main/java/com/github/zhangkaitao/shiro/chapter23/client/ClientSessionDAO.java create mode 100644 shiro-example-chapter23-client/src/main/java/com/github/zhangkaitao/shiro/chapter23/client/ClientShiroFilterFactoryBean.java create mode 100644 shiro-example-chapter23-client/src/main/resources/client/shiro-client-default.properties create mode 100644 shiro-example-chapter23-client/src/main/resources/client/spring-client-remote-service.xml create mode 100644 shiro-example-chapter23-client/src/main/resources/client/spring-client-shiro.xml create mode 100644 shiro-example-chapter23-client/src/main/resources/client/spring-client.xml create mode 100644 shiro-example-chapter23-core/pom.xml create mode 100644 shiro-example-chapter23-core/src/main/java/com/github/zhangkaitao/shiro/chapter23/core/ClientSavedRequest.java create mode 100644 shiro-example-chapter23-core/src/main/java/com/github/zhangkaitao/shiro/chapter23/remote/PermissionContext.java create mode 100644 shiro-example-chapter23-core/src/main/java/com/github/zhangkaitao/shiro/chapter23/remote/RemoteServiceInterface.java create mode 100644 shiro-example-chapter23-pom/pom.xml create mode 100644 shiro-example-chapter23-server/pom.xml create mode 100644 shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/Constants.java create mode 100644 shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/credentials/RetryLimitHashedCredentialsMatcher.java create mode 100644 shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/dao/AppDao.java create mode 100644 shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/dao/AppDaoImpl.java create mode 100644 shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/dao/AuthorizationDao.java create mode 100644 shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/dao/AuthorizationDaoImpl.java create mode 100644 shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/dao/OrganizationDao.java create mode 100644 shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/dao/OrganizationDaoImpl.java create mode 100644 shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/dao/ResourceDao.java create mode 100644 shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/dao/ResourceDaoImpl.java create mode 100644 shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/dao/RoleDao.java create mode 100644 shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/dao/RoleDaoImpl.java create mode 100644 shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/dao/UserDao.java create mode 100644 shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/dao/UserDaoImpl.java create mode 100644 shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/entity/App.java create mode 100644 shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/entity/Authorization.java create mode 100644 shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/entity/Organization.java create mode 100644 shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/entity/Resource.java create mode 100644 shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/entity/Role.java create mode 100644 shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/entity/User.java create mode 100644 shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/realm/UserRealm.java create mode 100644 shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/remote/RemoteService.java create mode 100644 shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/service/AppService.java create mode 100644 shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/service/AppServiceImpl.java create mode 100644 shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/service/AuthorizationService.java create mode 100644 shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/service/AuthorizationServiceImpl.java create mode 100644 shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/service/OrganizationService.java create mode 100644 shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/service/OrganizationServiceImpl.java create mode 100644 shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/service/PasswordHelper.java create mode 100644 shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/service/ResourceService.java create mode 100644 shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/service/ResourceServiceImpl.java create mode 100644 shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/service/RoleService.java create mode 100644 shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/service/RoleServiceImpl.java create mode 100644 shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/service/UserService.java create mode 100644 shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/service/UserServiceImpl.java create mode 100644 shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/session/dao/MySqlSessionDAO.java create mode 100644 shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/session/scheduler/MySqlSessionValidationScheduler.java create mode 100644 shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/utils/SerializableUtils.java create mode 100644 shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/web/bind/annotation/CurrentUser.java create mode 100644 shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/web/bind/method/CurrentUserMethodArgumentResolver.java create mode 100644 shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/web/controller/AppController.java create mode 100644 shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/web/controller/AuthorizationController.java create mode 100644 shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/web/controller/IndexController.java create mode 100644 shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/web/controller/LoginController.java create mode 100644 shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/web/controller/OrganizationController.java create mode 100644 shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/web/controller/ResourceController.java create mode 100644 shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/web/controller/RoleController.java create mode 100644 shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/web/controller/UserController.java create mode 100644 shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/web/exception/DefaultExceptionHandler.java create mode 100644 shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/web/shiro/filter/SysUserFilter.java create mode 100644 shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/web/taglib/Functions.java create mode 100644 shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/spring/SpringUtils.java create mode 100644 shiro-example-chapter23-server/src/main/resources/ehcache/ehcache-shiro.xml create mode 100644 shiro-example-chapter23-server/src/main/resources/resources.properties create mode 100644 shiro-example-chapter23-server/src/main/resources/spring-config-shiro.xml create mode 100644 shiro-example-chapter23-server/src/main/resources/spring-config.xml create mode 100644 shiro-example-chapter23-server/src/main/resources/spring-mvc-remote-service.xml create mode 100644 shiro-example-chapter23-server/src/main/resources/spring-mvc-shiro.xml create mode 100644 shiro-example-chapter23-server/src/main/resources/spring-mvc.xml create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/jsp/app/edit.jsp create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/jsp/app/list.jsp create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/jsp/authorization/edit.jsp create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/jsp/authorization/list.jsp create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/jsp/index.jsp create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/jsp/login.jsp create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/jsp/organization/appendChild.jsp create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/jsp/organization/index.jsp create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/jsp/organization/maintain.jsp create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/jsp/organization/move.jsp create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/jsp/organization/success.jsp create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/jsp/organization/tree.jsp create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/jsp/resource/edit.jsp create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/jsp/resource/list.jsp create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/jsp/role/edit.jsp create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/jsp/role/list.jsp create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/jsp/unauthorized.jsp create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/jsp/user/changePassword.jsp create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/jsp/user/edit.jsp create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/jsp/user/list.jsp create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/jsp/welcome.jsp create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/API_cn.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/API_en.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/apiCss/api.js create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/apiCss/common.css create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/apiCss/common_ie6.css create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/apiCss/img/apiMenu.gif create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/apiCss/img/apiMenu.png create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/apiCss/img/background.jpg create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/apiCss/img/chinese.png create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/apiCss/img/close.png create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/apiCss/img/contact-bg.png create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/apiCss/img/english.png create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/apiCss/img/header-bg.png create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/apiCss/img/lightbulb.png create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/apiCss/img/overlay_arrow.gif create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/apiCss/img/overlay_arrow.png create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/apiCss/img/overlay_bg.png create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/apiCss/img/overlay_close_IE6.gif create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/apiCss/img/zTreeStandard.gif create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/apiCss/img/zTreeStandard.png create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/apiCss/jquery-1.6.2.min.js create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/apiCss/jquery.ztree.core-3.5.js create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/apiCss/zTreeStyleForApi.css create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/fn.zTree._z.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/fn.zTree.destroy.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/fn.zTree.getZTreeObj.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/fn.zTree.init.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.async.autoParam.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.async.contentType.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.async.dataFilter.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.async.dataType.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.async.enable.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.async.otherParam.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.async.type.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.async.url.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.callback.beforeAsync.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.callback.beforeCheck.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.callback.beforeClick.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.callback.beforeCollapse.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.callback.beforeDblClick.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.callback.beforeDrag.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.callback.beforeDragOpen.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.callback.beforeDrop.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.callback.beforeEditName.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.callback.beforeExpand.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.callback.beforeMouseDown.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.callback.beforeMouseUp.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.callback.beforeRemove.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.callback.beforeRename.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.callback.beforeRightClick.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.callback.onAsyncError.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.callback.onAsyncSuccess.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.callback.onCheck.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.callback.onClick.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.callback.onCollapse.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.callback.onDblClick.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.callback.onDrag.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.callback.onDrop.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.callback.onExpand.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.callback.onMouseDown.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.callback.onMouseUp.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.callback.onNodeCreated.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.callback.onRemove.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.callback.onRename.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.callback.onRightClick.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.check.autoCheckTrigger.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.check.chkDisabledInherit.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.check.chkStyle.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.check.chkboxType.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.check.enable.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.check.nocheckInherit.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.check.radioType.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.data.keep.leaf.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.data.keep.parent.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.data.key.checked.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.data.key.children.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.data.key.name.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.data.key.title.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.data.key.url.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.data.simpleData.enable.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.data.simpleData.idKey.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.data.simpleData.pIdKey.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.data.simpleData.rootPId.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.edit.drag.autoExpandTrigger.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.edit.drag.autoOpenTime.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.edit.drag.borderMax.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.edit.drag.borderMin.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.edit.drag.inner.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.edit.drag.isCopy.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.edit.drag.isMove.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.edit.drag.maxShowNodeNum.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.edit.drag.minMoveSize.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.edit.drag.next.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.edit.drag.prev.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.edit.editNameSelectAll.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.edit.enable.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.edit.removeTitle.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.edit.renameTitle.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.edit.showRemoveBtn.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.edit.showRenameBtn.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.treeId.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.treeObj.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.view.addDiyDom.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.view.addHoverDom.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.view.autoCancelSelected.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.view.dblClickExpand.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.view.expandSpeed.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.view.fontCss.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.view.nameIsHTML.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.view.removeHoverDom.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.view.selectedMulti.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.view.showIcon.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.view.showLine.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.view.showTitle.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.view.txtSelectedEnable.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/treeNode.check_Child_State.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/treeNode.check_Focus.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/treeNode.checked.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/treeNode.checkedOld.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/treeNode.children.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/treeNode.chkDisabled.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/treeNode.click.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/treeNode.diy.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/treeNode.editNameFlag.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/treeNode.getCheckStatus.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/treeNode.getNextNode.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/treeNode.getParentNode.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/treeNode.getPreNode.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/treeNode.halfCheck.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/treeNode.icon.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/treeNode.iconClose.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/treeNode.iconOpen.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/treeNode.iconSkin.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/treeNode.isAjaxing.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/treeNode.isFirstNode.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/treeNode.isHidden.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/treeNode.isHover.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/treeNode.isLastNode.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/treeNode.isParent.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/treeNode.level.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/treeNode.name.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/treeNode.nocheck.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/treeNode.open.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/treeNode.parentTId.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/treeNode.tId.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/treeNode.target.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/treeNode.url.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/treeNode.zAsync.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/zTreeObj.addNodes.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/zTreeObj.cancelEditName.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/zTreeObj.cancelSelectedNode.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/zTreeObj.checkAllNodes.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/zTreeObj.checkNode.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/zTreeObj.copyNode.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/zTreeObj.destroy.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/zTreeObj.editName.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/zTreeObj.expandAll.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/zTreeObj.expandNode.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/zTreeObj.getChangeCheckedNodes.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/zTreeObj.getCheckedNodes.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/zTreeObj.getNodeByParam.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/zTreeObj.getNodeByTId.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/zTreeObj.getNodeIndex.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/zTreeObj.getNodes.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/zTreeObj.getNodesByFilter.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/zTreeObj.getNodesByParam.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/zTreeObj.getNodesByParamFuzzy.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/zTreeObj.getSelectedNodes.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/zTreeObj.hideNode.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/zTreeObj.hideNodes.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/zTreeObj.moveNode.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/zTreeObj.reAsyncChildNodes.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/zTreeObj.refresh.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/zTreeObj.removeChildNodes.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/zTreeObj.removeNode.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/zTreeObj.selectNode.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/zTreeObj.setChkDisabled.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/zTreeObj.setEditable.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/zTreeObj.setting.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/zTreeObj.showNode.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/zTreeObj.showNodes.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/zTreeObj.transformToArray.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/zTreeObj.transformTozTreeNodes.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/zTreeObj.updateNode.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/fn.zTree._z.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/fn.zTree.destroy.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/fn.zTree.getZTreeObj.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/fn.zTree.init.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.async.autoParam.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.async.contentType.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.async.dataFilter.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.async.dataType.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.async.enable.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.async.otherParam.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.async.type.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.async.url.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.callback.beforeAsync.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.callback.beforeCheck.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.callback.beforeClick.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.callback.beforeCollapse.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.callback.beforeDblClick.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.callback.beforeDrag.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.callback.beforeDragOpen.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.callback.beforeDrop.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.callback.beforeEditName.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.callback.beforeExpand.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.callback.beforeMouseDown.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.callback.beforeMouseUp.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.callback.beforeRemove.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.callback.beforeRename.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.callback.beforeRightClick.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.callback.onAsyncError.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.callback.onAsyncSuccess.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.callback.onCheck.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.callback.onClick.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.callback.onCollapse.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.callback.onDblClick.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.callback.onDrag.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.callback.onDrop.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.callback.onExpand.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.callback.onMouseDown.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.callback.onMouseUp.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.callback.onNodeCreated.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.callback.onRemove.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.callback.onRename.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.callback.onRightClick.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.check.autoCheckTrigger.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.check.chkDisabledInherit.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.check.chkStyle.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.check.chkboxType.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.check.enable.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.check.nocheckInherit.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.check.radioType.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.data.keep.leaf.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.data.keep.parent.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.data.key.checked.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.data.key.children.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.data.key.name.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.data.key.title.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.data.key.url.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.data.simpleData.enable.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.data.simpleData.idKey.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.data.simpleData.pIdKey.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.data.simpleData.rootPId.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.edit.drag.autoExpandTrigger.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.edit.drag.autoOpenTime.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.edit.drag.borderMax.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.edit.drag.borderMin.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.edit.drag.inner.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.edit.drag.isCopy.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.edit.drag.isMove.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.edit.drag.maxShowNodeNum.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.edit.drag.minMoveSize.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.edit.drag.next.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.edit.drag.prev.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.edit.editNameSelectAll.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.edit.enable.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.edit.removeTitle.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.edit.renameTitle.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.edit.showRemoveBtn.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.edit.showRenameBtn.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.treeId.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.treeObj.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.view.addDiyDom.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.view.addHoverDom.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.view.autoCancelSelected.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.view.dblClickExpand.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.view.expandSpeed.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.view.fontCss.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.view.nameIsHTML.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.view.removeHoverDom.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.view.selectedMulti.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.view.showIcon.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.view.showLine.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.view.showTitle.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.view.txtSelectedEnable.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/treeNode.check_Child_State.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/treeNode.check_Focus.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/treeNode.checked.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/treeNode.checkedOld.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/treeNode.children.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/treeNode.chkDisabled.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/treeNode.click.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/treeNode.diy.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/treeNode.editNameFlag.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/treeNode.getCheckStatus.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/treeNode.getNextNode.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/treeNode.getParentNode.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/treeNode.getPreNode.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/treeNode.halfCheck.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/treeNode.icon.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/treeNode.iconClose.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/treeNode.iconOpen.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/treeNode.iconSkin.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/treeNode.isAjaxing.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/treeNode.isFirstNode.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/treeNode.isHidden.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/treeNode.isHover.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/treeNode.isLastNode.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/treeNode.isParent.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/treeNode.level.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/treeNode.name.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/treeNode.nocheck.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/treeNode.open.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/treeNode.parentTId.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/treeNode.tId.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/treeNode.target.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/treeNode.url.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/treeNode.zAsync.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/zTreeObj.addNodes.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/zTreeObj.cancelEditName.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/zTreeObj.cancelSelectedNode.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/zTreeObj.checkAllNodes.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/zTreeObj.checkNode.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/zTreeObj.copyNode.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/zTreeObj.destroy.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/zTreeObj.editName.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/zTreeObj.expandAll.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/zTreeObj.expandNode.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/zTreeObj.getChangeCheckedNodes.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/zTreeObj.getCheckedNodes.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/zTreeObj.getNodeByParam.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/zTreeObj.getNodeByTId.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/zTreeObj.getNodeIndex.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/zTreeObj.getNodes.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/zTreeObj.getNodesByFilter.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/zTreeObj.getNodesByParam.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/zTreeObj.getNodesByParamFuzzy.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/zTreeObj.getSelectedNodes.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/zTreeObj.hideNode.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/zTreeObj.hideNodes.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/zTreeObj.moveNode.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/zTreeObj.reAsyncChildNodes.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/zTreeObj.refresh.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/zTreeObj.removeChildNodes.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/zTreeObj.removeNode.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/zTreeObj.selectNode.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/zTreeObj.setChkDisabled.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/zTreeObj.setEditable.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/zTreeObj.setting.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/zTreeObj.showNode.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/zTreeObj.showNodes.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/zTreeObj.transformToArray.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/zTreeObj.transformTozTreeNodes.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/zTreeObj.updateNode.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/css/demo.css create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/css/zTreeStyle/img/diy/1_close.png create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/css/zTreeStyle/img/diy/1_open.png create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/css/zTreeStyle/img/diy/2.png create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/css/zTreeStyle/img/diy/3.png create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/css/zTreeStyle/img/diy/4.png create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/css/zTreeStyle/img/diy/5.png create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/css/zTreeStyle/img/diy/6.png create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/css/zTreeStyle/img/diy/7.png create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/css/zTreeStyle/img/diy/8.png create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/css/zTreeStyle/img/diy/9.png create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/css/zTreeStyle/img/line_conn.gif create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/css/zTreeStyle/img/loading.gif create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/css/zTreeStyle/img/zTreeStandard.gif create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/css/zTreeStyle/img/zTreeStandard.png create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/css/zTreeStyle/zTreeStyle.css create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/asyncData/getNodes.php create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/asyncData/getNodesForBigData.php create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/bigdata/common.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/bigdata/diy_async.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/bigdata/page.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/core/async.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/core/async_fun.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/core/click.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/core/custom_font.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/core/custom_icon.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/core/custom_iconSkin.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/core/expand.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/core/noicon.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/core/noline.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/core/otherMouse.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/core/searchNodes.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/core/simpleData.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/core/standardData.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/core/update_fun.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/core/url.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/excheck/checkbox.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/excheck/checkbox_chkDisabled.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/excheck/checkbox_count.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/excheck/checkbox_fun.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/excheck/checkbox_halfCheck.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/excheck/checkbox_nocheck.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/excheck/radio.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/excheck/radio_chkDisabled.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/excheck/radio_fun.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/excheck/radio_halfCheck.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/excheck/radio_nocheck.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/exedit/async_edit.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/exedit/drag.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/exedit/drag_fun.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/exedit/drag_super.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/exedit/edit.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/exedit/edit_fun.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/exedit/edit_super.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/exedit/multiTree.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/exhide/checkbox.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/exhide/common.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/exhide/radio.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/index.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/super/asyncForAll.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/super/checkbox_radio.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/super/diydom.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/super/dragWithOther.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/super/left_menu.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/super/left_menuForOutLook.gif create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/super/left_menuForOutLook.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/super/left_menuForOutLook.png create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/super/oneclick.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/super/oneroot.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/super/rightClickMenu.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/super/select_menu.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/super/select_menu_checkbox.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/super/select_menu_radio.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/super/singlepath.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/asyncData/getNodes.php create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/asyncData/getNodesForBigData.php create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/bigdata/common.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/bigdata/diy_async.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/bigdata/page.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/core/async.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/core/async_fun.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/core/click.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/core/custom_font.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/core/custom_icon.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/core/custom_iconSkin.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/core/expand.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/core/noicon.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/core/noline.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/core/otherMouse.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/core/searchNodes.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/core/simpleData.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/core/standardData.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/core/update_fun.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/core/url.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/excheck/checkbox.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/excheck/checkbox_chkDisabled.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/excheck/checkbox_count.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/excheck/checkbox_fun.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/excheck/checkbox_halfCheck.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/excheck/checkbox_nocheck.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/excheck/radio.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/excheck/radio_chkDisabled.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/excheck/radio_fun.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/excheck/radio_halfCheck.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/excheck/radio_nocheck.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/exedit/async_edit.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/exedit/drag.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/exedit/drag_fun.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/exedit/drag_super.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/exedit/edit.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/exedit/edit_fun.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/exedit/edit_super.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/exedit/multiTree.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/exhide/checkbox.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/exhide/common.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/exhide/radio.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/index.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/super/asyncForAll.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/super/checkbox_radio.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/super/diydom.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/super/dragWithOther.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/super/left_menu.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/super/left_menuForOutLook.gif create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/super/left_menuForOutLook.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/super/left_menuForOutLook.png create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/super/oneclick.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/super/oneroot.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/super/rightClickMenu.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/super/select_menu.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/super/select_menu_checkbox.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/super/select_menu_radio.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/super/singlepath.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/js/jquery-1.4.4.min.js create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/js/jquery.ztree.all-3.5.js create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/js/jquery.ztree.all-3.5.min.js create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/js/jquery.ztree.core-3.5.js create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/js/jquery.ztree.core-3.5.min.js create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/js/jquery.ztree.excheck-3.5.js create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/js/jquery.ztree.excheck-3.5.min.js create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/js/jquery.ztree.exedit-3.5.js create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/js/jquery.ztree.exedit-3.5.min.js create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/js/jquery.ztree.exhide-3.5.js create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/js/jquery.ztree.exhide-3.5.min.js create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/log v3.x.txt create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/css/css.css create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/css/layout-default-latest.css create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/jquery-treetable/.gitignore create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/jquery-treetable/CHANGELOG.txt create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/jquery-treetable/GPL-LICENSE.txt create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/jquery-treetable/MIT-LICENSE.txt create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/jquery-treetable/README.md create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/jquery-treetable/index.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/jquery-treetable/javascripts/src/jquery.treetable.js create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/jquery-treetable/javascripts/test/jquery.treetable.test.js create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/jquery-treetable/stylesheets/jquery.treetable.css create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/jquery-treetable/stylesheets/jquery.treetable.theme.default.css create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/jquery-treetable/stylesheets/screen.css create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/jquery-treetable/test.html create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/jquery-treetable/treetable.jquery.json create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/js/jquery-1.11.0.min.js create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/js/jquery.layout-latest.min.js create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/tld/zhang-functions.tld create mode 100644 shiro-example-chapter23-server/src/main/webapp/WEB-INF/web.xml create mode 100644 shiro-example-chapter23-server/src/sql/design.txt create mode 100644 shiro-example-chapter23-server/src/sql/shiro-data.sql create mode 100644 shiro-example-chapter23-server/src/sql/shiro-schema.sql diff --git a/pom.xml b/pom.xml index 45530349..7e88b919 100644 --- a/pom.xml +++ b/pom.xml @@ -32,6 +32,12 @@ shiro-example-chapter20 shiro-example-chapter21 shiro-example-chapter22 + shiro-example-chapter23-server + shiro-example-chapter23-core + shiro-example-chapter23-client + shiro-example-chapter23-pom + shiro-example-chapter23-app1 + shiro-example-chapter23-app2 diff --git a/shiro-example-chapter23-app1/pom.xml b/shiro-example-chapter23-app1/pom.xml new file mode 100644 index 00000000..bcd5be16 --- /dev/null +++ b/shiro-example-chapter23-app1/pom.xml @@ -0,0 +1,57 @@ + + + + shiro-example-chapter23-pom + com.github.zhangkaitao + 1.0-SNAPSHOT + + 4.0.0 + + shiro-example-chapter23-app1 + + + + com.github.zhangkaitao + shiro-example-chapter23-client + 1.0-SNAPSHOT + + + + + chapter23-app1 + + + org.mortbay.jetty + jetty-maven-plugin + 8.1.8.v20121106 + + + /${project.build.finalName} + + + + 9080 + 60000 + + + + + + + + org.apache.tomcat.maven + tomcat7-maven-plugin + 2.2 + + /${project.build.finalName} + 9080 + + + + + + + + \ No newline at end of file diff --git a/shiro-example-chapter23-app1/src/main/java/com/github/zhangkaitao/shiro/chapter23/app1/web/controller/HelloController.java b/shiro-example-chapter23-app1/src/main/java/com/github/zhangkaitao/shiro/chapter23/app1/web/controller/HelloController.java new file mode 100644 index 00000000..955b4524 --- /dev/null +++ b/shiro-example-chapter23-app1/src/main/java/com/github/zhangkaitao/shiro/chapter23/app1/web/controller/HelloController.java @@ -0,0 +1,45 @@ +package com.github.zhangkaitao.shiro.chapter23.app1.web.controller; + +import org.apache.shiro.SecurityUtils; +import org.apache.shiro.authz.annotation.RequiresRoles; +import org.springframework.stereotype.Controller; +import org.springframework.ui.Model; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestMethod; +import org.springframework.web.bind.annotation.RequestParam; + +/** + *

User: Zhang Kaitao + *

Date: 14-3-13 + *

Version: 1.0 + */ +@Controller +public class HelloController { + + @RequestMapping("/hello") + public String hello() { + return "success"; + } + + @RequestMapping(value = "/attr", method = RequestMethod.POST) + public String setAttr( + @RequestParam("key") String key, @RequestParam("value") String value) { + SecurityUtils.getSubject().getSession().setAttribute(key, value); + return "success"; + } + + + @RequestMapping(value = "/attr", method = RequestMethod.GET) + public String getAttr( + @RequestParam("key") String key, Model model) { + model.addAttribute("value", SecurityUtils.getSubject().getSession().getAttribute(key)); + return "success"; + } + + @RequestMapping("/role1") + @RequiresRoles("role1") + public String role1() { + return "success"; + } + +} diff --git a/shiro-example-chapter23-app1/src/main/java/com/github/zhangkaitao/shiro/chapter23/app1/web/exception/DefaultExceptionHandler.java b/shiro-example-chapter23-app1/src/main/java/com/github/zhangkaitao/shiro/chapter23/app1/web/exception/DefaultExceptionHandler.java new file mode 100644 index 00000000..0861787d --- /dev/null +++ b/shiro-example-chapter23-app1/src/main/java/com/github/zhangkaitao/shiro/chapter23/app1/web/exception/DefaultExceptionHandler.java @@ -0,0 +1,31 @@ +package com.github.zhangkaitao.shiro.chapter23.app1.web.exception; + +import org.apache.shiro.authz.UnauthorizedException; +import org.springframework.http.HttpStatus; +import org.springframework.web.bind.annotation.ControllerAdvice; +import org.springframework.web.bind.annotation.ExceptionHandler; +import org.springframework.web.bind.annotation.ResponseStatus; +import org.springframework.web.context.request.NativeWebRequest; +import org.springframework.web.servlet.ModelAndView; + +/** + *

User: Zhang Kaitao + *

Date: 14-2-12 + *

Version: 1.0 + */ +@ControllerAdvice +public class DefaultExceptionHandler { + /** + * 没有权限 异常 + *

+ * 后续根据不同的需求定制即可 + */ + @ExceptionHandler({UnauthorizedException.class}) + @ResponseStatus(HttpStatus.UNAUTHORIZED) + public ModelAndView processUnauthenticatedException(NativeWebRequest request, UnauthorizedException e) { + ModelAndView mv = new ModelAndView(); + mv.addObject("exception", e); + mv.setViewName("unauthorized"); + return mv; + } +} diff --git a/shiro-example-chapter23-app1/src/main/resources/client/shiro-client.properties b/shiro-example-chapter23-app1/src/main/resources/client/shiro-client.properties new file mode 100644 index 00000000..557b6ff7 --- /dev/null +++ b/shiro-example-chapter23-app1/src/main/resources/client/shiro-client.properties @@ -0,0 +1,4 @@ +client.app.key=645ba612-370a-43a8-a8e0-993e7a590cf0 +client.success.url=/hello +client.filter.chain.definitions=/hello=anon;/login=authc;/**=authc + diff --git a/shiro-example-chapter23-app1/src/main/resources/spring-mvc.xml b/shiro-example-chapter23-app1/src/main/resources/spring-mvc.xml new file mode 100644 index 00000000..020e1c1d --- /dev/null +++ b/shiro-example-chapter23-app1/src/main/resources/spring-mvc.xml @@ -0,0 +1,33 @@ + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/shiro-example-chapter23-app1/src/main/webapp/WEB-INF/web.xml b/shiro-example-chapter23-app1/src/main/webapp/WEB-INF/web.xml new file mode 100644 index 00000000..dc046b8f --- /dev/null +++ b/shiro-example-chapter23-app1/src/main/webapp/WEB-INF/web.xml @@ -0,0 +1,57 @@ + + + + + + contextConfigLocation + + classpath:client/spring-client.xml + + + + org.springframework.web.context.ContextLoaderListener + + + + + + + shiroFilter + org.springframework.web.filter.DelegatingFilterProxy + true + + targetFilterLifecycle + true + + + + + + + + shiroFilter + /* + + + + spring + org.springframework.web.servlet.DispatcherServlet + + contextConfigLocation + classpath:spring-mvc.xml + + 1 + true + + + spring + / + + + + diff --git a/shiro-example-chapter23-app1/src/main/webapp/success.jsp b/shiro-example-chapter23-app1/src/main/webapp/success.jsp new file mode 100644 index 00000000..88326cd8 --- /dev/null +++ b/shiro-example-chapter23-app1/src/main/webapp/success.jsp @@ -0,0 +1,38 @@ +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@taglib prefix="shiro" uri="http://shiro.apache.org/tags" %> + + + hello app1.
+ + + 点击登录 + + + + 欢迎登录
+ + 您拥有role1角色
+
+ + 您没有role1角色
+
+ + 您没有role2角色
+
+ +

设置会话属性

+
+ 键: + 值: + +
+

获取会话属性

+
+ 键: + 值: + +
+ + + + \ No newline at end of file diff --git a/shiro-example-chapter23-app1/src/main/webapp/unauthorized.jsp b/shiro-example-chapter23-app1/src/main/webapp/unauthorized.jsp new file mode 100644 index 00000000..c6758214 --- /dev/null +++ b/shiro-example-chapter23-app1/src/main/webapp/unauthorized.jsp @@ -0,0 +1,11 @@ +<%@ page contentType="text/html;charset=UTF-8" language="java" %> + + + 没有权限 + + + + +
您没有权限[${exception.message}]
+ + \ No newline at end of file diff --git a/shiro-example-chapter23-app2/pom.xml b/shiro-example-chapter23-app2/pom.xml new file mode 100644 index 00000000..a52c0a56 --- /dev/null +++ b/shiro-example-chapter23-app2/pom.xml @@ -0,0 +1,57 @@ + + + + shiro-example-chapter23-pom + com.github.zhangkaitao + 1.0-SNAPSHOT + + 4.0.0 + + shiro-example-chapter23-app2 + + + + com.github.zhangkaitao + shiro-example-chapter23-client + 1.0-SNAPSHOT + + + + + chapter23-app2 + + + org.mortbay.jetty + jetty-maven-plugin + 8.1.8.v20121106 + + + /${project.build.finalName} + + + + 10080 + 60000 + + + + + + + + org.apache.tomcat.maven + tomcat7-maven-plugin + 2.2 + + /${project.build.finalName} + 10080 + + + + + + + + \ No newline at end of file diff --git a/shiro-example-chapter23-app2/src/main/java/com/github/zhangkaitao/shiro/chapter23/app2/web/controller/HelloController.java b/shiro-example-chapter23-app2/src/main/java/com/github/zhangkaitao/shiro/chapter23/app2/web/controller/HelloController.java new file mode 100644 index 00000000..6b853bce --- /dev/null +++ b/shiro-example-chapter23-app2/src/main/java/com/github/zhangkaitao/shiro/chapter23/app2/web/controller/HelloController.java @@ -0,0 +1,45 @@ +package com.github.zhangkaitao.shiro.chapter23.app2.web.controller; + +import org.apache.shiro.SecurityUtils; +import org.apache.shiro.authz.annotation.RequiresRoles; +import org.springframework.stereotype.Controller; +import org.springframework.ui.Model; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestMethod; +import org.springframework.web.bind.annotation.RequestParam; + +/** + *

User: Zhang Kaitao + *

Date: 14-3-13 + *

Version: 1.0 + */ +@Controller +public class HelloController { + + @RequestMapping("/hello") + public String hello() { + return "success"; + } + + @RequestMapping(value = "/attr", method = RequestMethod.POST) + public String setAttr( + @RequestParam("key") String key, @RequestParam("value") String value) { + SecurityUtils.getSubject().getSession().setAttribute(key, value); + return "success"; + } + + + @RequestMapping(value = "/attr", method = RequestMethod.GET) + public String getAttr( + @RequestParam("key") String key, Model model) { + model.addAttribute("value", SecurityUtils.getSubject().getSession().getAttribute(key)); + return "success"; + } + + @RequestMapping("/role2") + @RequiresRoles("role2") + public String role2() { + return "success"; + } + +} diff --git a/shiro-example-chapter23-app2/src/main/java/com/github/zhangkaitao/shiro/chapter23/app2/web/exception/DefaultExceptionHandler.java b/shiro-example-chapter23-app2/src/main/java/com/github/zhangkaitao/shiro/chapter23/app2/web/exception/DefaultExceptionHandler.java new file mode 100644 index 00000000..569b4496 --- /dev/null +++ b/shiro-example-chapter23-app2/src/main/java/com/github/zhangkaitao/shiro/chapter23/app2/web/exception/DefaultExceptionHandler.java @@ -0,0 +1,31 @@ +package com.github.zhangkaitao.shiro.chapter23.app2.web.exception; + +import org.apache.shiro.authz.UnauthorizedException; +import org.springframework.http.HttpStatus; +import org.springframework.web.bind.annotation.ControllerAdvice; +import org.springframework.web.bind.annotation.ExceptionHandler; +import org.springframework.web.bind.annotation.ResponseStatus; +import org.springframework.web.context.request.NativeWebRequest; +import org.springframework.web.servlet.ModelAndView; + +/** + *

User: Zhang Kaitao + *

Date: 14-2-12 + *

Version: 1.0 + */ +@ControllerAdvice +public class DefaultExceptionHandler { + /** + * 没有权限 异常 + *

+ * 后续根据不同的需求定制即可 + */ + @ExceptionHandler({UnauthorizedException.class}) + @ResponseStatus(HttpStatus.UNAUTHORIZED) + public ModelAndView processUnauthenticatedException(NativeWebRequest request, UnauthorizedException e) { + ModelAndView mv = new ModelAndView(); + mv.addObject("exception", e); + mv.setViewName("unauthorized"); + return mv; + } +} diff --git a/shiro-example-chapter23-app2/src/main/resources/client/shiro-client.properties b/shiro-example-chapter23-app2/src/main/resources/client/shiro-client.properties new file mode 100644 index 00000000..8020f17a --- /dev/null +++ b/shiro-example-chapter23-app2/src/main/resources/client/shiro-client.properties @@ -0,0 +1,4 @@ +client.app.key=645ba613-370a-43a8-a8e0-993e7a590cf0 +client.success.url=/hello +client.filter.chain.definitions=/hello=anon;/login=authc;/**=authc + diff --git a/shiro-example-chapter23-app2/src/main/resources/spring-mvc.xml b/shiro-example-chapter23-app2/src/main/resources/spring-mvc.xml new file mode 100644 index 00000000..020e1c1d --- /dev/null +++ b/shiro-example-chapter23-app2/src/main/resources/spring-mvc.xml @@ -0,0 +1,33 @@ + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/shiro-example-chapter23-app2/src/main/webapp/WEB-INF/web.xml b/shiro-example-chapter23-app2/src/main/webapp/WEB-INF/web.xml new file mode 100644 index 00000000..dc046b8f --- /dev/null +++ b/shiro-example-chapter23-app2/src/main/webapp/WEB-INF/web.xml @@ -0,0 +1,57 @@ + + + + + + contextConfigLocation + + classpath:client/spring-client.xml + + + + org.springframework.web.context.ContextLoaderListener + + + + + + + shiroFilter + org.springframework.web.filter.DelegatingFilterProxy + true + + targetFilterLifecycle + true + + + + + + + + shiroFilter + /* + + + + spring + org.springframework.web.servlet.DispatcherServlet + + contextConfigLocation + classpath:spring-mvc.xml + + 1 + true + + + spring + / + + + + diff --git a/shiro-example-chapter23-app2/src/main/webapp/success.jsp b/shiro-example-chapter23-app2/src/main/webapp/success.jsp new file mode 100644 index 00000000..de8d2c5d --- /dev/null +++ b/shiro-example-chapter23-app2/src/main/webapp/success.jsp @@ -0,0 +1,38 @@ +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@taglib prefix="shiro" uri="http://shiro.apache.org/tags" %> + + + hello app1.
+ + + 点击登录 + + + + 欢迎登录
+ + 您拥有role2角色
+
+ + 您没有role2角色
+
+ + 您没有role1角色
+
+ +

设置会话属性

+
+ 键: + 值: + +
+

获取会话属性

+
+ 键: + 值: + +
+ + + + \ No newline at end of file diff --git a/shiro-example-chapter23-app2/src/main/webapp/unauthorized.jsp b/shiro-example-chapter23-app2/src/main/webapp/unauthorized.jsp new file mode 100644 index 00000000..c6758214 --- /dev/null +++ b/shiro-example-chapter23-app2/src/main/webapp/unauthorized.jsp @@ -0,0 +1,11 @@ +<%@ page contentType="text/html;charset=UTF-8" language="java" %> + + + 没有权限 + + + + +
您没有权限[${exception.message}]
+ + \ No newline at end of file diff --git a/shiro-example-chapter23-client/pom.xml b/shiro-example-chapter23-client/pom.xml new file mode 100644 index 00000000..9d0a79de --- /dev/null +++ b/shiro-example-chapter23-client/pom.xml @@ -0,0 +1,22 @@ + + + + shiro-example-chapter23-pom + com.github.zhangkaitao + 1.0-SNAPSHOT + + 4.0.0 + + shiro-example-chapter23-client + + + + com.github.zhangkaitao + shiro-example-chapter23-core + 1.0-SNAPSHOT + + + + \ No newline at end of file diff --git a/shiro-example-chapter23-client/src/main/java/com/github/zhangkaitao/shiro/chapter23/client/ClientAuthenticationFilter.java b/shiro-example-chapter23-client/src/main/java/com/github/zhangkaitao/shiro/chapter23/client/ClientAuthenticationFilter.java new file mode 100644 index 00000000..dc37f24f --- /dev/null +++ b/shiro-example-chapter23-client/src/main/java/com/github/zhangkaitao/shiro/chapter23/client/ClientAuthenticationFilter.java @@ -0,0 +1,47 @@ +package com.github.zhangkaitao.shiro.chapter23.client; + +import com.github.zhangkaitao.shiro.chapter23.core.ClientSavedRequest; +import org.apache.shiro.SecurityUtils; +import org.apache.shiro.session.Session; +import org.apache.shiro.subject.Subject; +import org.apache.shiro.web.filter.authc.AuthenticationFilter; +import org.apache.shiro.web.util.SavedRequest; +import org.apache.shiro.web.util.WebUtils; +import org.springframework.util.StringUtils; + +import javax.servlet.ServletRequest; +import javax.servlet.ServletResponse; +import javax.servlet.http.HttpServletRequest; + +/** + *

User: Zhang Kaitao + *

Date: 14-3-14 + *

Version: 1.0 + */ +public class ClientAuthenticationFilter extends AuthenticationFilter { + + @Override + protected boolean isAccessAllowed(ServletRequest request, ServletResponse response, Object mappedValue) { + Subject subject = getSubject(request, response); + return subject.isAuthenticated(); + } + + @Override + protected boolean onAccessDenied(ServletRequest request, ServletResponse response) throws Exception { + String successUrl = request.getParameter("backurl"); + if(StringUtils.isEmpty(successUrl)) { + successUrl = getSuccessUrl(); + } + saveRequest(request, successUrl); + redirectToLogin(request, response); + return false; + } + + protected void saveRequest(ServletRequest request, String successUrl) { + Subject subject = SecurityUtils.getSubject(); + Session session = subject.getSession(); + HttpServletRequest httpRequest = WebUtils.toHttp(request); + SavedRequest savedRequest = new ClientSavedRequest(httpRequest, successUrl); + session.setAttribute(WebUtils.SAVED_REQUEST_KEY, savedRequest); + } +} diff --git a/shiro-example-chapter23-client/src/main/java/com/github/zhangkaitao/shiro/chapter23/client/ClientRealm.java b/shiro-example-chapter23-client/src/main/java/com/github/zhangkaitao/shiro/chapter23/client/ClientRealm.java new file mode 100644 index 00000000..a6800a2b --- /dev/null +++ b/shiro-example-chapter23-client/src/main/java/com/github/zhangkaitao/shiro/chapter23/client/ClientRealm.java @@ -0,0 +1,47 @@ +package com.github.zhangkaitao.shiro.chapter23.client; + +import com.github.zhangkaitao.shiro.chapter23.remote.PermissionContext; +import com.github.zhangkaitao.shiro.chapter23.remote.RemoteServiceInterface; +import org.apache.shiro.authc.AuthenticationException; +import org.apache.shiro.authc.AuthenticationInfo; +import org.apache.shiro.authc.AuthenticationToken; +import org.apache.shiro.authz.AuthorizationInfo; +import org.apache.shiro.authz.SimpleAuthorizationInfo; +import org.apache.shiro.realm.AuthorizingRealm; +import org.apache.shiro.subject.PrincipalCollection; + +/** + *

User: Zhang Kaitao + *

Date: 14-3-13 + *

Version: 1.0 + */ +public class ClientRealm extends AuthorizingRealm { + + private RemoteServiceInterface remoteService; + private String appKey; + + public void setRemoteService(RemoteServiceInterface remoteService) { + this.remoteService = remoteService; + } + + public void setAppKey(String appKey) { + this.appKey = appKey; + } + + + @Override + protected AuthorizationInfo doGetAuthorizationInfo(PrincipalCollection principals) { + String username = (String) principals.getPrimaryPrincipal(); + SimpleAuthorizationInfo authorizationInfo = new SimpleAuthorizationInfo(); + PermissionContext context = remoteService.getPermissions(appKey, username); + authorizationInfo.setRoles(context.getRoles()); + authorizationInfo.setStringPermissions(context.getPermissions()); + return authorizationInfo; + } + + @Override + protected AuthenticationInfo doGetAuthenticationInfo(AuthenticationToken token) throws AuthenticationException { + //永远不会被调用 + return null; + } +} diff --git a/shiro-example-chapter23-client/src/main/java/com/github/zhangkaitao/shiro/chapter23/client/ClientSessionDAO.java b/shiro-example-chapter23-client/src/main/java/com/github/zhangkaitao/shiro/chapter23/client/ClientSessionDAO.java new file mode 100644 index 00000000..af726627 --- /dev/null +++ b/shiro-example-chapter23-client/src/main/java/com/github/zhangkaitao/shiro/chapter23/client/ClientSessionDAO.java @@ -0,0 +1,50 @@ +package com.github.zhangkaitao.shiro.chapter23.client; + +import com.github.zhangkaitao.shiro.chapter23.remote.RemoteServiceInterface; +import org.apache.shiro.session.Session; +import org.apache.shiro.session.mgt.eis.CachingSessionDAO; + +import java.io.Serializable; + +/** + *

User: Zhang Kaitao + *

Date: 14-3-13 + *

Version: 1.0 + */ +public class ClientSessionDAO extends CachingSessionDAO { + + private RemoteServiceInterface remoteService; + private String appKey; + + public void setRemoteService(RemoteServiceInterface remoteService) { + this.remoteService = remoteService; + } + + public void setAppKey(String appKey) { + this.appKey = appKey; + } + + + @Override + protected void doDelete(Session session) { + remoteService.deleteSession(appKey, session); + } + + @Override + protected void doUpdate(Session session) { + remoteService.updateSession(appKey, session); + } + + + @Override + protected Serializable doCreate(Session session) { + Serializable sessionId = remoteService.createSession(session); + assignSessionId(session, sessionId); + return sessionId; + } + + @Override + protected Session doReadSession(Serializable sessionId) { + return remoteService.getSession(appKey, sessionId); + } +} diff --git a/shiro-example-chapter23-client/src/main/java/com/github/zhangkaitao/shiro/chapter23/client/ClientShiroFilterFactoryBean.java b/shiro-example-chapter23-client/src/main/java/com/github/zhangkaitao/shiro/chapter23/client/ClientShiroFilterFactoryBean.java new file mode 100644 index 00000000..e21b2606 --- /dev/null +++ b/shiro-example-chapter23-client/src/main/java/com/github/zhangkaitao/shiro/chapter23/client/ClientShiroFilterFactoryBean.java @@ -0,0 +1,44 @@ +package com.github.zhangkaitao.shiro.chapter23.client; + +import org.apache.shiro.spring.web.ShiroFilterFactoryBean; +import org.springframework.context.ApplicationContext; +import org.springframework.context.ApplicationContextAware; +import org.springframework.util.StringUtils; + +import javax.servlet.Filter; + +/** + *

User: Zhang Kaitao + *

Date: 14-3-13 + *

Version: 1.0 + */ +public class ClientShiroFilterFactoryBean extends ShiroFilterFactoryBean implements ApplicationContextAware { + + private ApplicationContext applicationContext; + + public void setApplicationContext(ApplicationContext applicationContext) { + this.applicationContext = applicationContext; + } + + public void setFiltersStr(String filters) { + if(StringUtils.isEmpty(filters)) { + return; + } + String[] filterArray = filters.split(";"); + for(String filter : filterArray) { + String[] o = filter.split("="); + getFilters().put(o[0], (Filter)applicationContext.getBean(o[1])); + } + } + + public void setFilterChainDefinitionsStr(String filterChainDefinitions) { + if(StringUtils.isEmpty(filterChainDefinitions)) { + return; + } + String[] chainDefinitionsArray = filterChainDefinitions.split(";"); + for(String filter : chainDefinitionsArray) { + String[] o = filter.split("="); + getFilterChainDefinitionMap().put(o[0], o[1]); + } + } +} diff --git a/shiro-example-chapter23-client/src/main/resources/client/shiro-client-default.properties b/shiro-example-chapter23-client/src/main/resources/client/shiro-client-default.properties new file mode 100644 index 00000000..19a5033a --- /dev/null +++ b/shiro-example-chapter23-client/src/main/resources/client/shiro-client-default.properties @@ -0,0 +1,20 @@ +client.app.key= +#Զ̷URLַ +client.remote.service.url=http://localhost/chapter23-server/remoteService +#¼ַ +client.login.url=http://localhost/chapter23-server/login +client.success.url=/ +#δȨַ +client.unauthorized.url=http://localhost/chapter23-server/unauthorized +client.cookie.domain= +client.cookie.path=/ +#cookieеsession id +client.session.id=sid +#cookieеremember me +client.rememberMe.id=rememberMe +client.session.timeout=1800000 +# name=filter-ref;name=filter-ref +client.filters= +# ʽ url=filters;url=filters +client.filter.chain.definitions=/**=anon + diff --git a/shiro-example-chapter23-client/src/main/resources/client/spring-client-remote-service.xml b/shiro-example-chapter23-client/src/main/resources/client/spring-client-remote-service.xml new file mode 100644 index 00000000..836dc960 --- /dev/null +++ b/shiro-example-chapter23-client/src/main/resources/client/spring-client-remote-service.xml @@ -0,0 +1,16 @@ + + + + + + + + + \ No newline at end of file diff --git a/shiro-example-chapter23-client/src/main/resources/client/spring-client-shiro.xml b/shiro-example-chapter23-client/src/main/resources/client/spring-client-shiro.xml new file mode 100644 index 00000000..b1439e7f --- /dev/null +++ b/shiro-example-chapter23-client/src/main/resources/client/spring-client-shiro.xml @@ -0,0 +1,96 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/shiro-example-chapter23-client/src/main/resources/client/spring-client.xml b/shiro-example-chapter23-client/src/main/resources/client/spring-client.xml new file mode 100644 index 00000000..09d4d22b --- /dev/null +++ b/shiro-example-chapter23-client/src/main/resources/client/spring-client.xml @@ -0,0 +1,14 @@ + + + + + + + + + \ No newline at end of file diff --git a/shiro-example-chapter23-core/pom.xml b/shiro-example-chapter23-core/pom.xml new file mode 100644 index 00000000..abc4c1f1 --- /dev/null +++ b/shiro-example-chapter23-core/pom.xml @@ -0,0 +1,17 @@ + + + + + shiro-example-chapter23-pom + com.github.zhangkaitao + 1.0-SNAPSHOT + + 4.0.0 + com.github.zhangkaitao + shiro-example-chapter23-core + 1.0-SNAPSHOT + + + \ No newline at end of file diff --git a/shiro-example-chapter23-core/src/main/java/com/github/zhangkaitao/shiro/chapter23/core/ClientSavedRequest.java b/shiro-example-chapter23-core/src/main/java/com/github/zhangkaitao/shiro/chapter23/core/ClientSavedRequest.java new file mode 100644 index 00000000..fa9c23d9 --- /dev/null +++ b/shiro-example-chapter23-core/src/main/java/com/github/zhangkaitao/shiro/chapter23/core/ClientSavedRequest.java @@ -0,0 +1,75 @@ +package com.github.zhangkaitao.shiro.chapter23.core; + +import org.apache.shiro.web.util.SavedRequest; + +import javax.servlet.http.HttpServletRequest; + +/** + *

User: Zhang Kaitao + *

Date: 14-3-14 + *

Version: 1.0 + */ +public class ClientSavedRequest extends SavedRequest { + private String scheme; + private String domain; + private int port; + private String contextPath; + private String successUrl; + + public ClientSavedRequest(HttpServletRequest request, String successUrl) { + super(request); + this.scheme = request.getScheme(); + this.domain = request.getServerName(); + this.port = request.getServerPort(); + this.successUrl = successUrl; + this.contextPath = request.getContextPath(); + } + + public String getScheme() { + return scheme; + } + + public String getDomain() { + return domain; + } + + public int getPort() { + return port; + } + + public String getContextPath() { + return contextPath; + } + + public String getSuccessUrl() { + return successUrl; + } + + public String getRequestUrl() { + System.out.println(successUrl); + String requestURI = getRequestURI(); + if(successUrl != null) { + if(successUrl.toLowerCase().startsWith("http://") || successUrl.toLowerCase().startsWith("https://")) { + return successUrl; + } else if(!successUrl.startsWith(contextPath)) { + requestURI = contextPath + successUrl; + } else { + requestURI = successUrl; + } + } + + StringBuilder requestUrl = new StringBuilder(getScheme()); + requestUrl.append("://"); + requestUrl.append(getDomain()); + if("http".equalsIgnoreCase(getScheme()) && getPort() != 80) { + requestUrl.append(String.valueOf(port)); + } else if("https".equalsIgnoreCase(getScheme()) && getPort() != 443) { + requestUrl.append(String.valueOf(port)); + } + requestUrl.append(requestURI); + if (successUrl == null && getQueryString() != null) { + requestUrl.append("?").append(getQueryString()); + } + return requestUrl.toString(); + } +} diff --git a/shiro-example-chapter23-core/src/main/java/com/github/zhangkaitao/shiro/chapter23/remote/PermissionContext.java b/shiro-example-chapter23-core/src/main/java/com/github/zhangkaitao/shiro/chapter23/remote/PermissionContext.java new file mode 100644 index 00000000..9808eab5 --- /dev/null +++ b/shiro-example-chapter23-core/src/main/java/com/github/zhangkaitao/shiro/chapter23/remote/PermissionContext.java @@ -0,0 +1,39 @@ +package com.github.zhangkaitao.shiro.chapter23.remote; + +import java.io.Serializable; +import java.util.Set; + +/** + *

User: Zhang Kaitao + *

Date: 14-3-13 + *

Version: 1.0 + */ +public class PermissionContext implements Serializable { + private Set roles; + private Set permissions; + + public Set getRoles() { + return roles; + } + + public void setRoles(Set roles) { + this.roles = roles; + } + + public Set getPermissions() { + return permissions; + } + + public void setPermissions(Set permissions) { + this.permissions = permissions; + } + + + @Override + public String toString() { + return "PermissionContext{" + + ", roles=" + roles + + ", permissions=" + permissions + + '}'; + } +} diff --git a/shiro-example-chapter23-core/src/main/java/com/github/zhangkaitao/shiro/chapter23/remote/RemoteServiceInterface.java b/shiro-example-chapter23-core/src/main/java/com/github/zhangkaitao/shiro/chapter23/remote/RemoteServiceInterface.java new file mode 100644 index 00000000..b4a41c12 --- /dev/null +++ b/shiro-example-chapter23-core/src/main/java/com/github/zhangkaitao/shiro/chapter23/remote/RemoteServiceInterface.java @@ -0,0 +1,26 @@ +/** + * Copyright (c) 2005-2012 https://github.com/zhangkaitao + * + * Licensed under the Apache License, Version 2.0 (the "License"); + */ +package com.github.zhangkaitao.shiro.chapter23.remote; + +import org.apache.shiro.session.Session; + +import java.io.Serializable; + +/** + *

User: Zhang Kaitao + *

Date: 14-3-13 + *

Version: 1.0 + */ +public interface RemoteServiceInterface { + + public Session getSession(String appKey, Serializable sessionId); + public void updateSession(String appKey, Session session); + public void deleteSession(String appKey, Session session); + + public PermissionContext getPermissions(String appKey, String username); + + Serializable createSession(Session session); +} diff --git a/shiro-example-chapter23-pom/pom.xml b/shiro-example-chapter23-pom/pom.xml new file mode 100644 index 00000000..4f585b5d --- /dev/null +++ b/shiro-example-chapter23-pom/pom.xml @@ -0,0 +1,139 @@ + + + + 4.0.0 + com.github.zhangkaitao + shiro-example-chapter23-pom + 1.0-SNAPSHOT + pom + + + + + junit + junit + 4.9 + test + + + org.springframework + spring-test + 4.0.0.RELEASE + test + + + + commons-logging + commons-logging + 1.1.3 + + + commons-collections + commons-collections + 3.2.1 + + + + + org.apache.shiro + shiro-core + 1.2.2 + + + + org.apache.shiro + shiro-web + 1.2.2 + + + + org.apache.shiro + shiro-ehcache + 1.2.2 + + + + org.apache.shiro + shiro-quartz + 1.2.2 + + + + org.apache.shiro + shiro-spring + 1.2.2 + + + + + org.apache.shiro + shiro-core + 1.2.2 + + + + javax.servlet + javax.servlet-api + 3.0.1 + provided + + + javax.servlet.jsp + jsp-api + 2.2 + + + javax.servlet + jstl + 1.2 + + + + + + org.aspectj + aspectjrt + 1.7.4 + + + org.aspectj + aspectjweaver + 1.7.4 + + + + org.springframework + spring-context + 4.0.0.RELEASE + + + + org.springframework + spring-aop + 4.0.0.RELEASE + + + + + org.springframework + spring-jdbc + 4.0.0.RELEASE + + + + org.springframework + spring-web + 4.0.0.RELEASE + + + + org.springframework + spring-webmvc + 4.0.0.RELEASE + + + + + \ No newline at end of file diff --git a/shiro-example-chapter23-server/pom.xml b/shiro-example-chapter23-server/pom.xml new file mode 100644 index 00000000..152b3313 --- /dev/null +++ b/shiro-example-chapter23-server/pom.xml @@ -0,0 +1,65 @@ + + + + shiro-example-chapter23-pom + com.github.zhangkaitao + 1.0-SNAPSHOT + + 4.0.0 + + shiro-example-chapter23-server + + + + + + mysql + mysql-connector-java + 5.1.25 + + + com.alibaba + druid + 0.2.23 + + + + com.github.zhangkaitao + shiro-example-chapter23-core + 1.0-SNAPSHOT + + + + + + chapter23-server + + + org.mortbay.jetty + jetty-maven-plugin + 8.1.8.v20121106 + + + /${project.build.finalName} + + + + + + org.apache.tomcat.maven + tomcat7-maven-plugin + 2.2 + + /${project.build.finalName} + + + + + + + + + + \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/Constants.java b/shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/Constants.java new file mode 100644 index 00000000..bec84223 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/Constants.java @@ -0,0 +1,12 @@ +package com.github.zhangkaitao.shiro.chapter23; + +/** + *

User: Zhang Kaitao + *

Date: 14-2-15 + *

Version: 1.0 + */ +public class Constants { + public static final String CURRENT_USER = "user"; + + public static final String SERVER_APP_KEY = "645ba616-370a-43a8-a8e0-993e7a590cf0"; +} diff --git a/shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/credentials/RetryLimitHashedCredentialsMatcher.java b/shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/credentials/RetryLimitHashedCredentialsMatcher.java new file mode 100644 index 00000000..c609a937 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/credentials/RetryLimitHashedCredentialsMatcher.java @@ -0,0 +1,46 @@ +package com.github.zhangkaitao.shiro.chapter23.credentials; + +import org.apache.shiro.authc.AuthenticationInfo; +import org.apache.shiro.authc.AuthenticationToken; +import org.apache.shiro.authc.ExcessiveAttemptsException; +import org.apache.shiro.authc.credential.HashedCredentialsMatcher; +import org.apache.shiro.cache.Cache; +import org.apache.shiro.cache.CacheManager; + +import java.util.concurrent.atomic.AtomicInteger; + +/** + *

User: Zhang Kaitao + *

Date: 14-1-28 + *

Version: 1.0 + */ +public class RetryLimitHashedCredentialsMatcher extends HashedCredentialsMatcher { + + private Cache passwordRetryCache; + + public RetryLimitHashedCredentialsMatcher(CacheManager cacheManager) { + passwordRetryCache = cacheManager.getCache("passwordRetryCache"); + } + + @Override + public boolean doCredentialsMatch(AuthenticationToken token, AuthenticationInfo info) { + String username = (String)token.getPrincipal(); + //retry count + 1 + AtomicInteger retryCount = passwordRetryCache.get(username); + if(retryCount == null) { + retryCount = new AtomicInteger(0); + passwordRetryCache.put(username, retryCount); + } + if(retryCount.incrementAndGet() > 5) { + //if retry count > 5 throw + throw new ExcessiveAttemptsException(); + } + + boolean matches = super.doCredentialsMatch(token, info); + if(matches) { + //clear retry count + passwordRetryCache.remove(username); + } + return matches; + } +} diff --git a/shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/dao/AppDao.java b/shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/dao/AppDao.java new file mode 100644 index 00000000..c7a61205 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/dao/AppDao.java @@ -0,0 +1,22 @@ +package com.github.zhangkaitao.shiro.chapter23.dao; + +import com.github.zhangkaitao.shiro.chapter23.entity.App; + +import java.util.List; + +/** + *

User: Zhang Kaitao + *

Date: 14-1-28 + *

Version: 1.0 + */ +public interface AppDao { + + public App createApp(App app); + public App updateApp(App app); + public void deleteApp(Long appId); + + public App findOne(Long appId); + public List findAll(); + + Long findAppIdByAppKey(String appKey); +} diff --git a/shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/dao/AppDaoImpl.java b/shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/dao/AppDaoImpl.java new file mode 100644 index 00000000..d8a6608b --- /dev/null +++ b/shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/dao/AppDaoImpl.java @@ -0,0 +1,87 @@ +package com.github.zhangkaitao.shiro.chapter23.dao; + +import com.github.zhangkaitao.shiro.chapter23.entity.App; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.jdbc.core.BeanPropertyRowMapper; +import org.springframework.jdbc.core.JdbcTemplate; +import org.springframework.jdbc.core.PreparedStatementCreator; +import org.springframework.jdbc.support.GeneratedKeyHolder; +import org.springframework.stereotype.Repository; + +import java.sql.Connection; +import java.sql.PreparedStatement; +import java.sql.SQLException; +import java.util.List; + +/** + *

App: Zhang Kaitao + *

Date: 14-1-28 + *

Version: 1.0 + */ +@Repository +public class AppDaoImpl implements AppDao { + + @Autowired + private JdbcTemplate jdbcTemplate; + + public App createApp(final App app) { + final String sql = "insert into sys_app(name, app_key, app_secret, available) values(?,?,?,?)"; + + GeneratedKeyHolder keyHolder = new GeneratedKeyHolder(); + jdbcTemplate.update(new PreparedStatementCreator() { + @Override + public PreparedStatement createPreparedStatement(Connection connection) throws SQLException { + PreparedStatement psst = connection.prepareStatement(sql, new String[]{"id"}); + int count = 1; + psst.setString(count++, app.getName()); + psst.setString(count++, app.getAppKey()); + psst.setString(count++, app.getAppSecret()); + psst.setBoolean(count++, app.getAvailable()); + return psst; + } + }, keyHolder); + app.setId(keyHolder.getKey().longValue()); + return app; + } + + @Override + public App updateApp(App app) { + final String sql = "update sys_app set name=?, app_key=?, app_secret=?, available=? where id=?"; + jdbcTemplate.update( + sql, + app.getName(), app.getAppKey(), app.getAppSecret(), app.getAvailable(), app.getId()); + return app; + } + + public void deleteApp(Long appId) { + final String sql = "delete from sys_app where id=?"; + jdbcTemplate.update(sql, appId); + } + + + @Override + public App findOne(Long appId) { + final String sql = "select id, name, app_key, app_secret, available from sys_app where id=?"; + List appList = jdbcTemplate.query(sql, new BeanPropertyRowMapper(App.class), appId); + if(appList.size() == 0) { + return null; + } + return appList.get(0); + } + + @Override + public List findAll() { + final String sql = "select id, name, app_key, app_secret, available from sys_app"; + return jdbcTemplate.query(sql, new BeanPropertyRowMapper(App.class)); + } + + @Override + public Long findAppIdByAppKey(String appKey) { + final String sql = "select id from sys_app where app_key=?"; + List appIdList = jdbcTemplate.queryForList(sql, Long.class, appKey); + if(appIdList.size() == 0) { + return null; + } + return appIdList.get(0); + } +} diff --git a/shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/dao/AuthorizationDao.java b/shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/dao/AuthorizationDao.java new file mode 100644 index 00000000..9f3220ba --- /dev/null +++ b/shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/dao/AuthorizationDao.java @@ -0,0 +1,22 @@ +package com.github.zhangkaitao.shiro.chapter23.dao; + +import com.github.zhangkaitao.shiro.chapter23.entity.Authorization; + +import java.util.List; + +/** + *

User: Zhang Kaitao + *

Date: 14-1-28 + *

Version: 1.0 + */ +public interface AuthorizationDao { + + public Authorization createAuthorization(Authorization authorization); + public Authorization updateAuthorization(Authorization authorization); + public void deleteAuthorization(Long authorizationId); + + public Authorization findOne(Long authorizationId); + public List findAll(); + + public Authorization findByAppUser(Long appId, Long userId); +} diff --git a/shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/dao/AuthorizationDaoImpl.java b/shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/dao/AuthorizationDaoImpl.java new file mode 100644 index 00000000..e6dfe920 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/dao/AuthorizationDaoImpl.java @@ -0,0 +1,88 @@ +package com.github.zhangkaitao.shiro.chapter23.dao; + +import com.github.zhangkaitao.shiro.chapter23.entity.Authorization; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.jdbc.core.BeanPropertyRowMapper; +import org.springframework.jdbc.core.JdbcTemplate; +import org.springframework.jdbc.core.PreparedStatementCreator; +import org.springframework.jdbc.support.GeneratedKeyHolder; +import org.springframework.stereotype.Repository; + +import java.sql.Connection; +import java.sql.PreparedStatement; +import java.sql.SQLException; +import java.util.List; + +/** + *

Authorization: Zhang Kaitao + *

Date: 14-1-28 + *

Version: 1.0 + */ +@Repository +public class AuthorizationDaoImpl implements AuthorizationDao { + + @Autowired + private JdbcTemplate jdbcTemplate; + + public Authorization createAuthorization(final Authorization authorization) { + + final String sql = "insert into sys_user_app_roles(user_id, app_id, role_ids) values(?,?,?)"; + + GeneratedKeyHolder keyHolder = new GeneratedKeyHolder(); + jdbcTemplate.update(new PreparedStatementCreator() { + @Override + public PreparedStatement createPreparedStatement(Connection connection) throws SQLException { + PreparedStatement psst = connection.prepareStatement(sql, new String[]{"id"}); + int count = 1; + psst.setLong(count++, authorization.getUserId()); + psst.setLong(count++, authorization.getAppId()); + psst.setString(count++, authorization.getRoleIdsStr()); + return psst; + } + }, keyHolder); + authorization.setId(keyHolder.getKey().longValue()); + return authorization; + } + + @Override + public Authorization updateAuthorization(Authorization authorization) { + final String sql = "update sys_user_app_roles set user_id=?, app_id=?, role_ids=? where id=?"; + jdbcTemplate.update( + sql, + authorization.getUserId(), authorization.getAppId(), authorization.getRoleIdsStr(), authorization.getId()); + return authorization; + } + + public void deleteAuthorization(Long authorizationId) { + final String sql = "delete from sys_user_app_roles where id=?"; + jdbcTemplate.update(sql, authorizationId); + } + + + @Override + public Authorization findOne(Long authorizationId) { + final String sql = "select id, user_id, app_id, role_ids as roleIdsStr from sys_user_app_roles where id=?"; + List authorizationList = jdbcTemplate.query(sql, new BeanPropertyRowMapper(Authorization.class), authorizationId); + if(authorizationList.size() == 0) { + return null; + } + return authorizationList.get(0); + } + + @Override + public List findAll() { + final String sql = "select id, user_id, app_id, role_ids as roleIdsStr from sys_user_app_roles"; + return jdbcTemplate.query(sql, new BeanPropertyRowMapper(Authorization.class)); + } + + + @Override + public Authorization findByAppUser(Long appId, Long userId) { + final String sql = "select id, user_id, app_id, role_ids as roleIdsStr from sys_user_app_roles where app_id=? and user_id=?"; + List authorizationList = jdbcTemplate.query(sql, new BeanPropertyRowMapper(Authorization.class), appId, userId); + if(authorizationList.size() == 0) { + return null; + } + return authorizationList.get(0); + } +} diff --git a/shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/dao/OrganizationDao.java b/shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/dao/OrganizationDao.java new file mode 100644 index 00000000..bbb12a57 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/dao/OrganizationDao.java @@ -0,0 +1,24 @@ +package com.github.zhangkaitao.shiro.chapter23.dao; + +import com.github.zhangkaitao.shiro.chapter23.entity.Organization; + +import java.util.List; + +/** + *

Organization: Zhang Kaitao + *

Date: 14-1-28 + *

Version: 1.0 + */ +public interface OrganizationDao { + + public Organization createOrganization(Organization organization); + public Organization updateOrganization(Organization organization); + public void deleteOrganization(Long organizationId); + + Organization findOne(Long organizationId); + List findAll(); + + List findAllWithExclude(Organization excludeOraganization); + + void move(Organization source, Organization target); +} diff --git a/shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/dao/OrganizationDaoImpl.java b/shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/dao/OrganizationDaoImpl.java new file mode 100644 index 00000000..5eb73bf1 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/dao/OrganizationDaoImpl.java @@ -0,0 +1,95 @@ +package com.github.zhangkaitao.shiro.chapter23.dao; + +import com.github.zhangkaitao.shiro.chapter23.entity.Organization; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.jdbc.core.BeanPropertyRowMapper; +import org.springframework.jdbc.core.JdbcTemplate; +import org.springframework.jdbc.core.PreparedStatementCreator; +import org.springframework.jdbc.support.GeneratedKeyHolder; +import org.springframework.stereotype.Repository; + +import java.sql.Connection; +import java.sql.PreparedStatement; +import java.sql.SQLException; +import java.util.List; + +/** + *

Organization: Zhang Kaitao + *

Date: 14-1-28 + *

Version: 1.0 + */ +@Repository +public class OrganizationDaoImpl implements OrganizationDao { + + @Autowired + private JdbcTemplate jdbcTemplate; + + public Organization createOrganization(final Organization organization) { + final String sql = "insert into sys_organization( name, parent_id, parent_ids, available) values(?,?,?,?)"; + + GeneratedKeyHolder keyHolder = new GeneratedKeyHolder(); + jdbcTemplate.update(new PreparedStatementCreator() { + @Override + public PreparedStatement createPreparedStatement(Connection connection) throws SQLException { + PreparedStatement psst = connection.prepareStatement(sql, new String[]{"id"}); + int count = 1; + psst.setString(count++, organization.getName()); + psst.setLong(count++, organization.getParentId()); + psst.setString(count++, organization.getParentIds()); + psst.setBoolean(count++, organization.getAvailable()); + return psst; + } + }, keyHolder); + organization.setId(keyHolder.getKey().longValue()); + return organization; + } + + @Override + public Organization updateOrganization(Organization organization) { + final String sql = "update sys_organization set name=?, parent_id=?, parent_ids=?, available=? where id=?"; + jdbcTemplate.update( + sql, + organization.getName(), organization.getParentId(), organization.getParentIds(), organization.getAvailable(), organization.getId()); + return organization; + } + + public void deleteOrganization(Long organizationId) { + Organization organization = findOne(organizationId); + final String deleteSelfSql = "delete from sys_organization where id=?"; + jdbcTemplate.update(deleteSelfSql, organizationId); + final String deleteDescendantsSql = "delete from sys_organization where parent_ids like ?"; + jdbcTemplate.update(deleteDescendantsSql, organization.makeSelfAsParentIds() + "%"); + } + + + @Override + public Organization findOne(Long organizationId) { + final String sql = "select id, name, parent_id, parent_ids, available from sys_organization where id=?"; + List organizationList = jdbcTemplate.query(sql, new BeanPropertyRowMapper(Organization.class), organizationId); + if(organizationList.size() == 0) { + return null; + } + return organizationList.get(0); + } + + @Override + public List findAll() { + final String sql = "select id, name, parent_id, parent_ids, available from sys_organization"; + return jdbcTemplate.query(sql, new BeanPropertyRowMapper(Organization.class)); + } + + @Override + public List findAllWithExclude(Organization excludeOraganization) { + //TODO 改成not exists 利用索引 + final String sql = "select id, name, parent_id, parent_ids, available from sys_organization where id!=? and parent_ids not like ?"; + return jdbcTemplate.query(sql, new BeanPropertyRowMapper(Organization.class), excludeOraganization.getId(), excludeOraganization.makeSelfAsParentIds() + "%"); + } + + @Override + public void move(Organization source, Organization target) { + String moveSourceSql = "update sys_organization set parent_id=?,parent_ids=? where id=?"; + jdbcTemplate.update(moveSourceSql, target.getId(), target.getParentIds(), source.getId()); + String moveSourceDescendantsSql = "update sys_organization set parent_ids=concat(?, substring(parent_ids, length(?))) where parent_ids like ?"; + jdbcTemplate.update(moveSourceDescendantsSql, target.makeSelfAsParentIds(), source.makeSelfAsParentIds(), source.makeSelfAsParentIds() + "%"); + } +} diff --git a/shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/dao/ResourceDao.java b/shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/dao/ResourceDao.java new file mode 100644 index 00000000..1c55fca3 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/dao/ResourceDao.java @@ -0,0 +1,21 @@ +package com.github.zhangkaitao.shiro.chapter23.dao; + +import com.github.zhangkaitao.shiro.chapter23.entity.Resource; + +import java.util.List; + +/** + *

Resource: Zhang Kaitao + *

Date: 14-1-28 + *

Version: 1.0 + */ +public interface ResourceDao { + + public Resource createResource(Resource resource); + public Resource updateResource(Resource resource); + public void deleteResource(Long resourceId); + + Resource findOne(Long resourceId); + List findAll(); + +} diff --git a/shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/dao/ResourceDaoImpl.java b/shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/dao/ResourceDaoImpl.java new file mode 100644 index 00000000..1ec0a4c3 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/dao/ResourceDaoImpl.java @@ -0,0 +1,83 @@ +package com.github.zhangkaitao.shiro.chapter23.dao; + +import com.github.zhangkaitao.shiro.chapter23.entity.Resource; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.jdbc.core.BeanPropertyRowMapper; +import org.springframework.jdbc.core.JdbcTemplate; +import org.springframework.jdbc.core.PreparedStatementCreator; +import org.springframework.jdbc.support.GeneratedKeyHolder; +import org.springframework.stereotype.Repository; + +import java.sql.Connection; +import java.sql.PreparedStatement; +import java.sql.SQLException; +import java.util.List; + +/** + *

Resource: Zhang Kaitao + *

Date: 14-1-28 + *

Version: 1.0 + */ +@Repository +public class ResourceDaoImpl implements ResourceDao { + @Autowired + private JdbcTemplate jdbcTemplate; + + public Resource createResource(final Resource resource) { + final String sql = "insert into sys_resource(name, type, url, permission, parent_id, parent_ids, available) values(?,?,?,?,?,?,?)"; + + GeneratedKeyHolder keyHolder = new GeneratedKeyHolder(); + jdbcTemplate.update(new PreparedStatementCreator() { + @Override + public PreparedStatement createPreparedStatement(Connection connection) throws SQLException { + PreparedStatement psst = connection.prepareStatement(sql, new String[]{"id"}); + int count = 1; + psst.setString(count++, resource.getName()); + psst.setString(count++, resource.getType().name()); + psst.setString(count++, resource.getUrl()); + psst.setString(count++, resource.getPermission()); + psst.setLong(count++, resource.getParentId()); + psst.setString(count++, resource.getParentIds()); + psst.setBoolean(count++, resource.getAvailable()); + return psst; + } + }, keyHolder); + resource.setId(keyHolder.getKey().longValue()); + return resource; + } + + @Override + public Resource updateResource(Resource resource) { + final String sql = "update sys_resource set name=?, type=?, url=?, permission=?, parent_id=?, parent_ids=?, available=? where id=?"; + jdbcTemplate.update( + sql, + resource.getName(), resource.getType().name(), resource.getUrl(), resource.getPermission(), resource.getParentId(), resource.getParentIds(), resource.getAvailable(), resource.getId()); + return resource; + } + + public void deleteResource(Long resourceId) { + Resource resource = findOne(resourceId); + final String deleteSelfSql = "delete from sys_resource where id=?"; + jdbcTemplate.update(deleteSelfSql, resourceId); + final String deleteDescendantsSql = "delete from sys_resource where parent_ids like ?"; + jdbcTemplate.update(deleteDescendantsSql, resource.makeSelfAsParentIds() + "%"); + } + + + @Override + public Resource findOne(Long resourceId) { + final String sql = "select id, name, type, url, permission, parent_id, parent_ids, available from sys_resource where id=?"; + List resourceList = jdbcTemplate.query(sql, new BeanPropertyRowMapper(Resource.class), resourceId); + if(resourceList.size() == 0) { + return null; + } + return resourceList.get(0); + } + + @Override + public List findAll() { + final String sql = "select id, name, type, url, permission, parent_id, parent_ids, available from sys_resource order by concat(parent_ids, id) asc"; + return jdbcTemplate.query(sql, new BeanPropertyRowMapper(Resource.class)); + } + +} diff --git a/shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/dao/RoleDao.java b/shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/dao/RoleDao.java new file mode 100644 index 00000000..9beb5423 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/dao/RoleDao.java @@ -0,0 +1,20 @@ +package com.github.zhangkaitao.shiro.chapter23.dao; + +import com.github.zhangkaitao.shiro.chapter23.entity.Role; + +import java.util.List; + +/** + *

User: Zhang Kaitao + *

Date: 14-1-28 + *

Version: 1.0 + */ +public interface RoleDao { + + public Role createRole(Role role); + public Role updateRole(Role role); + public void deleteRole(Long roleId); + + public Role findOne(Long roleId); + public List findAll(); +} diff --git a/shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/dao/RoleDaoImpl.java b/shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/dao/RoleDaoImpl.java new file mode 100644 index 00000000..0ff8ee19 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/dao/RoleDaoImpl.java @@ -0,0 +1,78 @@ +package com.github.zhangkaitao.shiro.chapter23.dao; + +import com.github.zhangkaitao.shiro.chapter23.entity.Role; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.jdbc.core.BeanPropertyRowMapper; +import org.springframework.jdbc.core.JdbcTemplate; +import org.springframework.jdbc.core.PreparedStatementCreator; +import org.springframework.jdbc.support.GeneratedKeyHolder; +import org.springframework.stereotype.Repository; + +import java.sql.Connection; +import java.sql.PreparedStatement; +import java.sql.SQLException; +import java.util.List; + +/** + *

Role: Zhang Kaitao + *

Date: 14-1-28 + *

Version: 1.0 + */ +@Repository +public class RoleDaoImpl implements RoleDao { + + @Autowired + private JdbcTemplate jdbcTemplate; + + public Role createRole(final Role role) { + final String sql = "insert into sys_role(role, description, resource_ids, available) values(?,?,?,?)"; + + GeneratedKeyHolder keyHolder = new GeneratedKeyHolder(); + jdbcTemplate.update(new PreparedStatementCreator() { + @Override + public PreparedStatement createPreparedStatement(Connection connection) throws SQLException { + PreparedStatement psst = connection.prepareStatement(sql, new String[]{"id"}); + int count = 1; + psst.setString(count++, role.getRole()); + psst.setString(count++, role.getDescription()); + psst.setString(count++, role.getResourceIdsStr()); + psst.setBoolean(count++, role.getAvailable()); + return psst; + } + }, keyHolder); + role.setId(keyHolder.getKey().longValue()); + return role; + } + + @Override + public Role updateRole(Role role) { + final String sql = "update sys_role set role=?, description=?, resource_ids=?, available=? where id=?"; + jdbcTemplate.update( + sql, + role.getRole(), role.getDescription(), role.getResourceIdsStr(), role.getAvailable(), role.getId()); + return role; + } + + public void deleteRole(Long roleId) { + final String sql = "delete from sys_role where id=?"; + jdbcTemplate.update(sql, roleId); + } + + + @Override + public Role findOne(Long roleId) { + final String sql = "select id, role, description, resource_ids as resourceIdsStr, available from sys_role where id=?"; + List roleList = jdbcTemplate.query(sql, new BeanPropertyRowMapper(Role.class), roleId); + if(roleList.size() == 0) { + return null; + } + return roleList.get(0); + } + + @Override + public List findAll() { + final String sql = "select id, role, description, resource_ids as resourceIdsStr, available from sys_role"; + return jdbcTemplate.query(sql, new BeanPropertyRowMapper(Role.class)); + } + +} diff --git a/shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/dao/UserDao.java b/shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/dao/UserDao.java new file mode 100644 index 00000000..f977e29f --- /dev/null +++ b/shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/dao/UserDao.java @@ -0,0 +1,24 @@ +package com.github.zhangkaitao.shiro.chapter23.dao; + +import com.github.zhangkaitao.shiro.chapter23.entity.User; + +import java.util.List; + +/** + *

User: Zhang Kaitao + *

Date: 14-1-28 + *

Version: 1.0 + */ +public interface UserDao { + + public User createUser(User user); + public User updateUser(User user); + public void deleteUser(Long userId); + + User findOne(Long userId); + + List findAll(); + + User findByUsername(String username); + +} diff --git a/shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/dao/UserDaoImpl.java b/shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/dao/UserDaoImpl.java new file mode 100644 index 00000000..dbbcc4b9 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/dao/UserDaoImpl.java @@ -0,0 +1,88 @@ +package com.github.zhangkaitao.shiro.chapter23.dao; + +import com.github.zhangkaitao.shiro.chapter23.entity.User; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.jdbc.core.BeanPropertyRowMapper; +import org.springframework.jdbc.core.JdbcTemplate; +import org.springframework.jdbc.core.PreparedStatementCreator; +import org.springframework.jdbc.support.GeneratedKeyHolder; +import org.springframework.stereotype.Repository; + +import java.sql.Connection; +import java.sql.PreparedStatement; +import java.sql.SQLException; +import java.util.List; + +/** + *

User: Zhang Kaitao + *

Date: 14-1-28 + *

Version: 1.0 + */ +@Repository +public class UserDaoImpl implements UserDao { + + @Autowired + private JdbcTemplate jdbcTemplate; + + public User createUser(final User user) { + final String sql = "insert into sys_user(organization_id, username, password, salt, locked) values(?,?,?,?,?,?)"; + + GeneratedKeyHolder keyHolder = new GeneratedKeyHolder(); + jdbcTemplate.update(new PreparedStatementCreator() { + @Override + public PreparedStatement createPreparedStatement(Connection connection) throws SQLException { + PreparedStatement psst = connection.prepareStatement(sql, new String[]{"id"}); + int count = 1; + psst.setLong(count++, user.getOrganizationId()); + psst.setString(count++, user.getUsername()); + psst.setString(count++, user.getPassword()); + psst.setString(count++, user.getSalt()); + psst.setBoolean(count++, user.getLocked()); + return psst; + } + }, keyHolder); + + user.setId(keyHolder.getKey().longValue()); + return user; + } + + public User updateUser(User user) { + String sql = "update sys_user set organization_id=?,username=?, password=?, salt=?, locked=? where id=?"; + jdbcTemplate.update( + sql, + user.getOrganizationId(), user.getUsername(), user.getPassword(), user.getSalt(), user.getLocked(), user.getId()); + return user; + } + + public void deleteUser(Long userId) { + String sql = "delete from sys_user where id=?"; + jdbcTemplate.update(sql, userId); + } + + @Override + public User findOne(Long userId) { + String sql = "select id, organization_id, username, password, salt, locked from sys_user where id=?"; + List userList = jdbcTemplate.query(sql, new BeanPropertyRowMapper(User.class), userId); + if(userList.size() == 0) { + return null; + } + return userList.get(0); + } + + @Override + public List findAll() { + String sql = "select id, organization_id, username, password, salt, locked from sys_user"; + return jdbcTemplate.query(sql, new BeanPropertyRowMapper(User.class)); + } + + + @Override + public User findByUsername(String username) { + String sql = "select id, organization_id, username, password, salt, locked from sys_user where username=?"; + List userList = jdbcTemplate.query(sql, new BeanPropertyRowMapper(User.class), username); + if(userList.size() == 0) { + return null; + } + return userList.get(0); + } +} diff --git a/shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/entity/App.java b/shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/entity/App.java new file mode 100644 index 00000000..0b3b87fb --- /dev/null +++ b/shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/entity/App.java @@ -0,0 +1,84 @@ +package com.github.zhangkaitao.shiro.chapter23.entity; + +import java.io.Serializable; + +/** + *

User: Zhang Kaitao + *

Date: 14-3-13 + *

Version: 1.0 + */ +public class App implements Serializable { + private Long id; + private String name; + private String appKey; + private String appSecret; + private Boolean available = Boolean.FALSE; + + public Long getId() { + return id; + } + + public void setId(Long id) { + this.id = id; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getAppKey() { + return appKey; + } + + public void setAppKey(String appKey) { + this.appKey = appKey; + } + + public String getAppSecret() { + return appSecret; + } + + public void setAppSecret(String appSecret) { + this.appSecret = appSecret; + } + + public Boolean getAvailable() { + return available; + } + + public void setAvailable(Boolean available) { + this.available = available; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + + App app = (App) o; + + if (id != null ? !id.equals(app.id) : app.id != null) return false; + + return true; + } + + @Override + public int hashCode() { + return id != null ? id.hashCode() : 0; + } + + @Override + public String toString() { + return "App{" + + "id=" + id + + ", name='" + name + '\'' + + ", appKey='" + appKey + '\'' + + ", appSecret='" + appSecret + '\'' + + ", available=" + available + + '}'; + } +} diff --git a/shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/entity/Authorization.java b/shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/entity/Authorization.java new file mode 100644 index 00000000..b3358ca2 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/entity/Authorization.java @@ -0,0 +1,107 @@ +package com.github.zhangkaitao.shiro.chapter23.entity; + +import org.springframework.util.CollectionUtils; +import org.springframework.util.StringUtils; + +import java.io.Serializable; +import java.util.ArrayList; +import java.util.List; + +/** + *

User: Zhang Kaitao + *

Date: 14-3-13 + *

Version: 1.0 + */ +public class Authorization implements Serializable { + private Long id; + private Long userId; + private Long appId; + private List roleIds; + + public Long getId() { + return id; + } + + public void setId(Long id) { + this.id = id; + } + + public Long getUserId() { + return userId; + } + + public void setUserId(Long userId) { + this.userId = userId; + } + + public Long getAppId() { + return appId; + } + + public void setAppId(Long appId) { + this.appId = appId; + } + public List getRoleIds() { + if(roleIds == null) { + roleIds = new ArrayList(); + } + return roleIds; + } + + public void setRoleIds(List roleIds) { + this.roleIds = roleIds; + } + + + public String getRoleIdsStr() { + if(CollectionUtils.isEmpty(roleIds)) { + return ""; + } + StringBuilder s = new StringBuilder(); + for(Long roleId : roleIds) { + s.append(roleId); + s.append(","); + } + return s.toString(); + } + + public void setRoleIdsStr(String roleIdsStr) { + if(StringUtils.isEmpty(roleIdsStr)) { + return; + } + String[] roleIdStrs = roleIdsStr.split(","); + for(String roleIdStr : roleIdStrs) { + if(StringUtils.isEmpty(roleIdStr)) { + continue; + } + getRoleIds().add(Long.valueOf(roleIdStr)); + } + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + + Authorization that = (Authorization) o; + + if (id != null ? !id.equals(that.id) : that.id != null) return false; + + return true; + } + + @Override + public int hashCode() { + return id != null ? id.hashCode() : 0; + } + + @Override + public String toString() { + return "Authorization{" + + "id=" + id + + ", userId=" + userId + + ", appId=" + appId + + ", roleIds=" + roleIds + + '}'; + } +} diff --git a/shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/entity/Organization.java b/shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/entity/Organization.java new file mode 100644 index 00000000..dfcdea57 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/entity/Organization.java @@ -0,0 +1,93 @@ +package com.github.zhangkaitao.shiro.chapter23.entity; + +import java.io.Serializable; + +/** + *

User: Zhang Kaitao + *

Date: 14-1-28 + *

Version: 1.0 + */ +public class Organization implements Serializable { + private Long id; //编号 + private String name; //组织机构名称 + private Long parentId; //父编号 + private String parentIds; //父编号列表,如1/2/ + private Boolean available = Boolean.FALSE; + + + public Long getId() { + return id; + } + + public void setId(Long id) { + this.id = id; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public Long getParentId() { + return parentId; + } + + public void setParentId(Long parentId) { + this.parentId = parentId; + } + + public String getParentIds() { + return parentIds; + } + + public void setParentIds(String parentIds) { + this.parentIds = parentIds; + } + + public Boolean getAvailable() { + return available; + } + + public void setAvailable(Boolean available) { + this.available = available; + } + + public boolean isRootNode() { + return parentId == 0; + } + + public String makeSelfAsParentIds() { + return getParentIds() + getId() + "/"; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + + Organization that = (Organization) o; + + if (id != null ? !id.equals(that.id) : that.id != null) return false; + + return true; + } + + @Override + public int hashCode() { + return id != null ? id.hashCode() : 0; + } + + @Override + public String toString() { + return "Organization{" + + "id=" + id + + ", name='" + name + '\'' + + ", parentId=" + parentId + + ", parentIds='" + parentIds + '\'' + + ", available=" + available + + '}'; + } +} diff --git a/shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/entity/Resource.java b/shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/entity/Resource.java new file mode 100644 index 00000000..af7041f6 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/entity/Resource.java @@ -0,0 +1,135 @@ +package com.github.zhangkaitao.shiro.chapter23.entity; + +import java.io.Serializable; + +/** + *

User: Zhang Kaitao + *

Date: 14-1-28 + *

Version: 1.0 + */ +public class Resource implements Serializable { + private Long id; //编号 + private String name; //资源名称 + private ResourceType type = ResourceType.menu; //资源类型 + private String url; //资源路径 + private String permission; //权限字符串 + private Long parentId; //父编号 + private String parentIds; //父编号列表 + private Boolean available = Boolean.FALSE; + + public static enum ResourceType { + menu("菜单"), button("按钮"); + + private final String info; + private ResourceType(String info) { + this.info = info; + } + + public String getInfo() { + return info; + } + } + + + + public Long getId() { + return id; + } + + public void setId(Long id) { + this.id = id; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public ResourceType getType() { + return type; + } + + public void setType(ResourceType type) { + this.type = type; + } + + public String getUrl() { + return url; + } + + public void setUrl(String url) { + this.url = url; + } + + public String getPermission() { + return permission; + } + + public void setPermission(String permission) { + this.permission = permission; + } + + public Long getParentId() { + return parentId; + } + + public void setParentId(Long parentId) { + this.parentId = parentId; + } + + public String getParentIds() { + return parentIds; + } + + public void setParentIds(String parentIds) { + this.parentIds = parentIds; + } + + public Boolean getAvailable() { + return available; + } + + public void setAvailable(Boolean available) { + this.available = available; + } + + public boolean isRootNode() { + return parentId == 0; + } + + public String makeSelfAsParentIds() { + return getParentIds() + getId() + "/"; + } + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + + Resource resource = (Resource) o; + + if (id != null ? !id.equals(resource.id) : resource.id != null) return false; + + return true; + } + + @Override + public int hashCode() { + return id != null ? id.hashCode() : 0; + } + + @Override + public String toString() { + return "Resource{" + + "id=" + id + + ", name='" + name + '\'' + + ", type=" + type + + ", permission='" + permission + '\'' + + ", parentId=" + parentId + + ", parentIds='" + parentIds + '\'' + + ", available=" + available + + '}'; + } +} diff --git a/shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/entity/Role.java b/shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/entity/Role.java new file mode 100644 index 00000000..e8c8f2f4 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/entity/Role.java @@ -0,0 +1,126 @@ +package com.github.zhangkaitao.shiro.chapter23.entity; + +import org.springframework.util.CollectionUtils; +import org.springframework.util.StringUtils; + +import java.io.Serializable; +import java.util.ArrayList; +import java.util.List; + +/** + *

User: Zhang Kaitao + *

Date: 14-1-28 + *

Version: 1.0 + */ +public class Role implements Serializable { + private Long id; //编号 + private String role; //角色标识 程序中判断使用,如"admin" + private String description; //角色描述,UI界面显示使用 + private List resourceIds; //拥有的资源 + private Boolean available = Boolean.FALSE; //是否可用,如果不可用将不会添加给用户 + + public Role() { + } + + public Role(String role, String description, Boolean available) { + this.role = role; + this.description = description; + this.available = available; + } + + public Long getId() { + return id; + } + + public void setId(Long id) { + this.id = id; + } + + public String getRole() { + return role; + } + + public void setRole(String role) { + this.role = role; + } + + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public List getResourceIds() { + if(resourceIds == null) { + resourceIds = new ArrayList(); + } + return resourceIds; + } + + public void setResourceIds(List resourceIds) { + this.resourceIds = resourceIds; + } + + public String getResourceIdsStr() { + if(CollectionUtils.isEmpty(resourceIds)) { + return ""; + } + StringBuilder s = new StringBuilder(); + for(Long resourceId : resourceIds) { + s.append(resourceId); + s.append(","); + } + return s.toString(); + } + + public void setResourceIdsStr(String resourceIdsStr) { + if(StringUtils.isEmpty(resourceIdsStr)) { + return; + } + String[] resourceIdStrs = resourceIdsStr.split(","); + for(String resourceIdStr : resourceIdStrs) { + if(StringUtils.isEmpty(resourceIdStr)) { + continue; + } + getResourceIds().add(Long.valueOf(resourceIdStr)); + } + } + + public Boolean getAvailable() { + return available; + } + + public void setAvailable(Boolean available) { + this.available = available; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + + Role role = (Role) o; + + if (id != null ? !id.equals(role.id) : role.id != null) return false; + + return true; + } + + @Override + public int hashCode() { + return id != null ? id.hashCode() : 0; + } + + @Override + public String toString() { + return "Role{" + + "id=" + id + + ", role='" + role + '\'' + + ", description='" + description + '\'' + + ", resourceIds=" + resourceIds + + ", available=" + available + + '}'; + } +} diff --git a/shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/entity/User.java b/shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/entity/User.java new file mode 100644 index 00000000..8a6017e8 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/entity/User.java @@ -0,0 +1,113 @@ +package com.github.zhangkaitao.shiro.chapter23.entity; + +import org.springframework.util.CollectionUtils; +import org.springframework.util.StringUtils; + +import java.io.Serializable; +import java.util.ArrayList; +import java.util.List; + +/** + *

User: Zhang Kaitao + *

Date: 14-1-28 + *

Version: 1.0 + */ +public class User implements Serializable { + private Long id; //编号 + private Long organizationId; //所属公司 + private String username; //用户名 + private String password; //密码 + private String salt; //加密密码的盐 + private Boolean locked = Boolean.FALSE; + + public User() { + } + + public User(String username, String password) { + this.username = username; + this.password = password; + } + + public Long getId() { + return id; + } + + public void setId(Long id) { + this.id = id; + } + + public Long getOrganizationId() { + return organizationId; + } + + public void setOrganizationId(Long organizationId) { + this.organizationId = organizationId; + } + + public String getUsername() { + return username; + } + + public void setUsername(String username) { + this.username = username; + } + + public String getPassword() { + return password; + } + + public void setPassword(String password) { + this.password = password; + } + + public String getSalt() { + return salt; + } + + public void setSalt(String salt) { + this.salt = salt; + } + + public String getCredentialsSalt() { + return username + salt; + } + + + + public Boolean getLocked() { + return locked; + } + + public void setLocked(Boolean locked) { + this.locked = locked; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + + User user = (User) o; + + if (id != null ? !id.equals(user.id) : user.id != null) return false; + + return true; + } + + @Override + public int hashCode() { + return id != null ? id.hashCode() : 0; + } + + @Override + public String toString() { + return "User{" + + "id=" + id + + ", organizationId=" + organizationId + + ", username='" + username + '\'' + + ", password='" + password + '\'' + + ", salt='" + salt + '\'' + + ", locked=" + locked + + '}'; + } +} diff --git a/shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/realm/UserRealm.java b/shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/realm/UserRealm.java new file mode 100644 index 00000000..9c85b164 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/realm/UserRealm.java @@ -0,0 +1,91 @@ +package com.github.zhangkaitao.shiro.chapter23.realm; + +import com.github.zhangkaitao.shiro.chapter23.Constants; +import com.github.zhangkaitao.shiro.chapter23.entity.User; +import com.github.zhangkaitao.shiro.chapter23.service.AuthorizationService; +import com.github.zhangkaitao.shiro.chapter23.service.UserService; +import org.apache.shiro.authc.*; +import org.apache.shiro.authz.AuthorizationInfo; +import org.apache.shiro.authz.SimpleAuthorizationInfo; +import org.apache.shiro.realm.AuthorizingRealm; +import org.apache.shiro.subject.PrincipalCollection; +import org.apache.shiro.util.ByteSource; +import org.springframework.beans.factory.annotation.Autowired; + +/** + *

User: Zhang Kaitao + *

Date: 14-1-28 + *

Version: 1.0 + */ +public class UserRealm extends AuthorizingRealm { + + @Autowired + private UserService userService; + + @Autowired + private AuthorizationService authorizationService; + + @Override + protected AuthorizationInfo doGetAuthorizationInfo(PrincipalCollection principals) { + String username = (String)principals.getPrimaryPrincipal(); + + SimpleAuthorizationInfo authorizationInfo = new SimpleAuthorizationInfo(); + authorizationInfo.setRoles(authorizationService.findRoles(Constants.SERVER_APP_KEY, username)); + authorizationInfo.setStringPermissions(authorizationService.findPermissions(Constants.SERVER_APP_KEY, username)); + return authorizationInfo; + } + + @Override + protected AuthenticationInfo doGetAuthenticationInfo(AuthenticationToken token) throws AuthenticationException { + + String username = (String)token.getPrincipal(); + + User user = userService.findByUsername(username); + + if(user == null) { + throw new UnknownAccountException();//没找到帐号 + } + + if(Boolean.TRUE.equals(user.getLocked())) { + throw new LockedAccountException(); //帐号锁定 + } + + //交给AuthenticatingRealm使用CredentialsMatcher进行密码匹配,如果觉得人家的不好可以自定义实现 + SimpleAuthenticationInfo authenticationInfo = new SimpleAuthenticationInfo( + user.getUsername(), //用户名 + user.getPassword(), //密码 + ByteSource.Util.bytes(user.getCredentialsSalt()),//salt=username+salt + getName() //realm name + ); + return authenticationInfo; + } + + @Override + public void clearCachedAuthorizationInfo(PrincipalCollection principals) { + super.clearCachedAuthorizationInfo(principals); + } + + @Override + public void clearCachedAuthenticationInfo(PrincipalCollection principals) { + super.clearCachedAuthenticationInfo(principals); + } + + @Override + public void clearCache(PrincipalCollection principals) { + super.clearCache(principals); + } + + public void clearAllCachedAuthorizationInfo() { + getAuthorizationCache().clear(); + } + + public void clearAllCachedAuthenticationInfo() { + getAuthenticationCache().clear(); + } + + public void clearAllCache() { + clearAllCachedAuthenticationInfo(); + clearAllCachedAuthorizationInfo(); + } + +} diff --git a/shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/remote/RemoteService.java b/shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/remote/RemoteService.java new file mode 100644 index 00000000..a4799684 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/remote/RemoteService.java @@ -0,0 +1,50 @@ +package com.github.zhangkaitao.shiro.chapter23.remote; + +import com.github.zhangkaitao.shiro.chapter23.service.AuthorizationService; +import org.apache.shiro.session.Session; +import org.apache.shiro.session.mgt.eis.SessionDAO; +import org.springframework.beans.factory.annotation.Autowired; + +import java.io.Serializable; + +/** + *

User: Zhang Kaitao + *

Date: 14-3-13 + *

Version: 1.0 + */ +public class RemoteService implements RemoteServiceInterface { + + @Autowired + private AuthorizationService authorizationService; + + @Autowired + private SessionDAO sessionDAO; + + @Override + public Session getSession(String appKey, Serializable sessionId) { + return sessionDAO.readSession(sessionId); + } + + @Override + public Serializable createSession(Session session) { + return sessionDAO.create(session); + } + + @Override + public void updateSession(String appKey, Session session) { + sessionDAO.update(session); + } + + @Override + public void deleteSession(String appKey, Session session) { + sessionDAO.delete(session); + } + + @Override + public PermissionContext getPermissions(String appKey, String username) { + PermissionContext permissionContext = new PermissionContext(); + permissionContext.setRoles(authorizationService.findRoles(appKey, username)); + permissionContext.setPermissions(authorizationService.findPermissions(appKey, username)); + return permissionContext; + } +} diff --git a/shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/service/AppService.java b/shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/service/AppService.java new file mode 100644 index 00000000..d945b4a1 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/service/AppService.java @@ -0,0 +1,23 @@ +package com.github.zhangkaitao.shiro.chapter23.service; + +import com.github.zhangkaitao.shiro.chapter23.entity.App; + +import java.util.List; + +/** + *

User: Zhang Kaitao + *

Date: 14-1-28 + *

Version: 1.0 + */ +public interface AppService { + + + public App createApp(App app); + public App updateApp(App app); + public void deleteApp(Long appId); + + public App findOne(Long appId); + public List findAll(); + + public Long findAppIdByAppKey(String appKey); +} diff --git a/shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/service/AppServiceImpl.java b/shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/service/AppServiceImpl.java new file mode 100644 index 00000000..6ebd359f --- /dev/null +++ b/shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/service/AppServiceImpl.java @@ -0,0 +1,48 @@ +package com.github.zhangkaitao.shiro.chapter23.service; + +import com.github.zhangkaitao.shiro.chapter23.dao.AppDao; +import com.github.zhangkaitao.shiro.chapter23.entity.App; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; + +import java.util.List; + +/** + *

User: Zhang Kaitao + *

Date: 14-1-28 + *

Version: 1.0 + */ +@Service + +public class AppServiceImpl implements AppService { + + @Autowired + private AppDao appDao; + + public App createApp(App app) { + return appDao.createApp(app); + } + + public App updateApp(App app) { + return appDao.updateApp(app); + } + + public void deleteApp(Long appId) { + appDao.deleteApp(appId); + } + + @Override + public App findOne(Long appId) { + return appDao.findOne(appId); + } + + @Override + public List findAll() { + return appDao.findAll(); + } + + @Override + public Long findAppIdByAppKey(String appKey) { + return appDao.findAppIdByAppKey(appKey); + } +} diff --git a/shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/service/AuthorizationService.java b/shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/service/AuthorizationService.java new file mode 100644 index 00000000..edc51581 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/service/AuthorizationService.java @@ -0,0 +1,38 @@ +package com.github.zhangkaitao.shiro.chapter23.service; + +import com.github.zhangkaitao.shiro.chapter23.entity.Authorization; + +import java.util.List; +import java.util.Set; + +/** + *

User: Zhang Kaitao + *

Date: 14-1-28 + *

Version: 1.0 + */ +public interface AuthorizationService { + + + public Authorization createAuthorization(Authorization authorization); + public Authorization updateAuthorization(Authorization authorization); + public void deleteAuthorization(Long authorizationId); + + public Authorization findOne(Long authorizationId); + public List findAll(); + + /** + * 根据用户名查找其角色 + * @param username + * @return + */ + public Set findRoles(String appKey, String username); + + /** + * 根据用户名查找其权限 + * @param username + * @return + */ + public Set findPermissions(String appKey, String username); + + +} diff --git a/shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/service/AuthorizationServiceImpl.java b/shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/service/AuthorizationServiceImpl.java new file mode 100644 index 00000000..7ce6e332 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/service/AuthorizationServiceImpl.java @@ -0,0 +1,120 @@ +package com.github.zhangkaitao.shiro.chapter23.service; + +import com.github.zhangkaitao.shiro.chapter23.dao.AuthorizationDao; +import com.github.zhangkaitao.shiro.chapter23.entity.Authorization; +import com.github.zhangkaitao.shiro.chapter23.entity.User; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; + +import java.util.Collections; +import java.util.List; +import java.util.Set; + +/** + *

User: Zhang Kaitao + *

Date: 14-1-28 + *

Version: 1.0 + */ +@Service + +public class AuthorizationServiceImpl implements AuthorizationService { + + @Autowired + private AuthorizationDao authorizationDao; + @Autowired + private UserService userService; + @Autowired + private RoleService roleService; + @Autowired + private AppService appService; + + public Authorization createAuthorization(Authorization authorization) { + return merge(authorization); + } + + public Authorization updateAuthorization(Authorization authorization) { + return merge(authorization); + } + + public Authorization merge(Authorization authorization) { + Authorization dbAuthorization = authorizationDao.findByAppUser(authorization.getAppId(), authorization.getUserId()); + if(dbAuthorization == null) {//如果数据库中不存在相应记录 直接新增 + return authorizationDao.createAuthorization(authorization); + } + + if(dbAuthorization.equals(authorization)) {//如果是同一条记录直接更新即可 + return authorizationDao.updateAuthorization(authorization); + } + + for(Long roleId : authorization.getRoleIds()) {//否则合并 + if(!dbAuthorization.getRoleIds().contains(roleId)) { + dbAuthorization.getRoleIds().add(roleId); + } + } + + if(dbAuthorization.getRoleIds().isEmpty()) {//如果没有角色 直接删除记录即可 + authorizationDao.deleteAuthorization(dbAuthorization.getId()); + return dbAuthorization; + } + //否则更新 + return authorizationDao.updateAuthorization(dbAuthorization); + } + + public void deleteAuthorization(Long authorizationId) { + authorizationDao.deleteAuthorization(authorizationId); + } + + @Override + public Authorization findOne(Long authorizationId) { + return authorizationDao.findOne(authorizationId); + } + + @Override + public List findAll() { + return authorizationDao.findAll(); + } + + /** + * 根据用户名查找其角色 + * @param username + * @return + */ + public Set findRoles(String appKey, String username) { + User user = userService.findByUsername(username); + if(user == null) { + return Collections.EMPTY_SET; + } + Long appId = appService.findAppIdByAppKey(appKey); + if(appId == null) { + return Collections.EMPTY_SET; + } + Authorization authorization = authorizationDao.findByAppUser(appId, user.getId()); + if(authorization == null) { + return Collections.EMPTY_SET; + } + return roleService.findRoles(authorization.getRoleIds().toArray(new Long[0])); + } + + /** + * 根据用户名查找其权限 + * @param username + * @return + */ + public Set findPermissions(String appKey, String username) { + User user = userService.findByUsername(username); + if(user == null) { + return Collections.EMPTY_SET; + } + Long appId = appService.findAppIdByAppKey(appKey); + if(appId == null) { + return Collections.EMPTY_SET; + } + Authorization authorization = authorizationDao.findByAppUser(appId, user.getId()); + if(authorization == null) { + return Collections.EMPTY_SET; + } + return roleService.findPermissions(authorization.getRoleIds().toArray(new Long[0])); + } + + +} diff --git a/shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/service/OrganizationService.java b/shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/service/OrganizationService.java new file mode 100644 index 00000000..4fef3b09 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/service/OrganizationService.java @@ -0,0 +1,25 @@ +package com.github.zhangkaitao.shiro.chapter23.service; + +import com.github.zhangkaitao.shiro.chapter23.entity.Organization; + +import java.util.List; + +/** + *

User: Zhang Kaitao + *

Date: 14-1-28 + *

Version: 1.0 + */ +public interface OrganizationService { + + + public Organization createOrganization(Organization organization); + public Organization updateOrganization(Organization organization); + public void deleteOrganization(Long organizationId); + + Organization findOne(Long organizationId); + List findAll(); + + Object findAllWithExclude(Organization excludeOraganization); + + void move(Organization source, Organization target); +} diff --git a/shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/service/OrganizationServiceImpl.java b/shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/service/OrganizationServiceImpl.java new file mode 100644 index 00000000..b62c819e --- /dev/null +++ b/shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/service/OrganizationServiceImpl.java @@ -0,0 +1,54 @@ +package com.github.zhangkaitao.shiro.chapter23.service; + +import com.github.zhangkaitao.shiro.chapter23.dao.OrganizationDao; +import com.github.zhangkaitao.shiro.chapter23.entity.Organization; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; + +import java.util.List; + +/** + *

User: Zhang Kaitao + *

Date: 14-2-14 + *

Version: 1.0 + */ +@Service +public class OrganizationServiceImpl implements OrganizationService { + @Autowired + private OrganizationDao organizationDao; + + @Override + public Organization createOrganization(Organization organization) { + return organizationDao.createOrganization(organization); + } + + @Override + public Organization updateOrganization(Organization organization) { + return organizationDao.updateOrganization(organization); + } + + @Override + public void deleteOrganization(Long organizationId) { + organizationDao.deleteOrganization(organizationId); + } + + @Override + public Organization findOne(Long organizationId) { + return organizationDao.findOne(organizationId); + } + + @Override + public List findAll() { + return organizationDao.findAll(); + } + + @Override + public List findAllWithExclude(Organization excludeOraganization) { + return organizationDao.findAllWithExclude(excludeOraganization); + } + + @Override + public void move(Organization source, Organization target) { + organizationDao.move(source, target); + } +} diff --git a/shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/service/PasswordHelper.java b/shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/service/PasswordHelper.java new file mode 100644 index 00000000..4fb2864f --- /dev/null +++ b/shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/service/PasswordHelper.java @@ -0,0 +1,50 @@ +package com.github.zhangkaitao.shiro.chapter23.service; + +import com.github.zhangkaitao.shiro.chapter23.entity.User; +import org.apache.shiro.crypto.RandomNumberGenerator; +import org.apache.shiro.crypto.SecureRandomNumberGenerator; +import org.apache.shiro.crypto.hash.SimpleHash; +import org.apache.shiro.util.ByteSource; +import org.springframework.beans.factory.annotation.Value; +import org.springframework.stereotype.Service; + +/** + *

User: Zhang Kaitao + *

Date: 14-1-28 + *

Version: 1.0 + */ +@Service +public class PasswordHelper { + + private RandomNumberGenerator randomNumberGenerator = new SecureRandomNumberGenerator(); + + @Value("${password.algorithmName}") + private String algorithmName = "md5"; + @Value("${password.hashIterations}") + private int hashIterations = 2; + + public void setRandomNumberGenerator(RandomNumberGenerator randomNumberGenerator) { + this.randomNumberGenerator = randomNumberGenerator; + } + + public void setAlgorithmName(String algorithmName) { + this.algorithmName = algorithmName; + } + + public void setHashIterations(int hashIterations) { + this.hashIterations = hashIterations; + } + + public void encryptPassword(User user) { + + user.setSalt(randomNumberGenerator.nextBytes().toHex()); + + String newPassword = new SimpleHash( + algorithmName, + user.getPassword(), + ByteSource.Util.bytes(user.getCredentialsSalt()), + hashIterations).toHex(); + + user.setPassword(newPassword); + } +} diff --git a/shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/service/ResourceService.java b/shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/service/ResourceService.java new file mode 100644 index 00000000..7094289b --- /dev/null +++ b/shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/service/ResourceService.java @@ -0,0 +1,36 @@ +package com.github.zhangkaitao.shiro.chapter23.service; + +import com.github.zhangkaitao.shiro.chapter23.entity.Resource; + +import java.util.List; +import java.util.Set; + +/** + *

User: Zhang Kaitao + *

Date: 14-1-28 + *

Version: 1.0 + */ +public interface ResourceService { + + + public Resource createResource(Resource resource); + public Resource updateResource(Resource resource); + public void deleteResource(Long resourceId); + + Resource findOne(Long resourceId); + List findAll(); + + /** + * 得到资源对应的权限字符串 + * @param resourceIds + * @return + */ + Set findPermissions(Set resourceIds); + + /** + * 根据用户权限得到菜单 + * @param permissions + * @return + */ + List findMenus(Set permissions); +} diff --git a/shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/service/ResourceServiceImpl.java b/shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/service/ResourceServiceImpl.java new file mode 100644 index 00000000..e332a68a --- /dev/null +++ b/shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/service/ResourceServiceImpl.java @@ -0,0 +1,96 @@ +package com.github.zhangkaitao.shiro.chapter23.service; + +import com.github.zhangkaitao.shiro.chapter23.dao.ResourceDao; +import com.github.zhangkaitao.shiro.chapter23.entity.Resource; +import org.apache.shiro.authz.permission.WildcardPermission; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import org.springframework.util.StringUtils; + +import java.util.ArrayList; +import java.util.HashSet; +import java.util.List; +import java.util.Set; + +/** + *

User: Zhang Kaitao + *

Date: 14-2-14 + *

Version: 1.0 + */ +@Service + +public class ResourceServiceImpl implements ResourceService { + + @Autowired + private ResourceDao resourceDao; + + @Override + public Resource createResource(Resource resource) { + return resourceDao.createResource(resource); + } + + @Override + public Resource updateResource(Resource resource) { + return resourceDao.updateResource(resource); + } + + @Override + public void deleteResource(Long resourceId) { + resourceDao.deleteResource(resourceId); + } + + @Override + public Resource findOne(Long resourceId) { + return resourceDao.findOne(resourceId); + } + + @Override + public List findAll() { + return resourceDao.findAll(); + } + + @Override + public Set findPermissions(Set resourceIds) { + Set permissions = new HashSet(); + for(Long resourceId : resourceIds) { + Resource resource = findOne(resourceId); + if(resource != null && !StringUtils.isEmpty(resource.getPermission())) { + permissions.add(resource.getPermission()); + } + } + return permissions; + } + + @Override + public List findMenus(Set permissions) { + List allResources = findAll(); + List menus = new ArrayList(); + for(Resource resource : allResources) { + if(resource.isRootNode()) { + continue; + } + if(resource.getType() != Resource.ResourceType.menu) { + continue; + } + if(!hasPermission(permissions, resource)) { + continue; + } + menus.add(resource); + } + return menus; + } + + private boolean hasPermission(Set permissions, Resource resource) { + if(StringUtils.isEmpty(resource.getPermission())) { + return true; + } + for(String permission : permissions) { + WildcardPermission p1 = new WildcardPermission(permission); + WildcardPermission p2 = new WildcardPermission(resource.getPermission()); + if(p1.implies(p2) || p2.implies(p1)) { + return true; + } + } + return false; + } +} diff --git a/shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/service/RoleService.java b/shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/service/RoleService.java new file mode 100644 index 00000000..6251a04d --- /dev/null +++ b/shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/service/RoleService.java @@ -0,0 +1,36 @@ +package com.github.zhangkaitao.shiro.chapter23.service; + +import com.github.zhangkaitao.shiro.chapter23.entity.Role; + +import java.util.List; +import java.util.Set; + +/** + *

User: Zhang Kaitao + *

Date: 14-1-28 + *

Version: 1.0 + */ +public interface RoleService { + + + public Role createRole(Role role); + public Role updateRole(Role role); + public void deleteRole(Long roleId); + + public Role findOne(Long roleId); + public List findAll(); + + /** + * 根据角色编号得到角色标识符列表 + * @param roleIds + * @return + */ + Set findRoles(Long... roleIds); + + /** + * 根据角色编号得到权限字符串列表 + * @param roleIds + * @return + */ + Set findPermissions(Long[] roleIds); +} diff --git a/shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/service/RoleServiceImpl.java b/shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/service/RoleServiceImpl.java new file mode 100644 index 00000000..1b86a66f --- /dev/null +++ b/shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/service/RoleServiceImpl.java @@ -0,0 +1,71 @@ +package com.github.zhangkaitao.shiro.chapter23.service; + +import com.github.zhangkaitao.shiro.chapter23.dao.RoleDao; +import com.github.zhangkaitao.shiro.chapter23.entity.Role; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; + +import java.util.HashSet; +import java.util.List; +import java.util.Set; + +/** + *

User: Zhang Kaitao + *

Date: 14-1-28 + *

Version: 1.0 + */ +@Service + +public class RoleServiceImpl implements RoleService { + + @Autowired + private RoleDao roleDao; + @Autowired + private ResourceService resourceService; + + public Role createRole(Role role) { + return roleDao.createRole(role); + } + + public Role updateRole(Role role) { + return roleDao.updateRole(role); + } + + public void deleteRole(Long roleId) { + roleDao.deleteRole(roleId); + } + + @Override + public Role findOne(Long roleId) { + return roleDao.findOne(roleId); + } + + @Override + public List findAll() { + return roleDao.findAll(); + } + + @Override + public Set findRoles(Long... roleIds) { + Set roles = new HashSet(); + for(Long roleId : roleIds) { + Role role = findOne(roleId); + if(role != null) { + roles.add(role.getRole()); + } + } + return roles; + } + + @Override + public Set findPermissions(Long[] roleIds) { + Set resourceIds = new HashSet(); + for(Long roleId : roleIds) { + Role role = findOne(roleId); + if(role != null) { + resourceIds.addAll(role.getResourceIds()); + } + } + return resourceService.findPermissions(resourceIds); + } +} diff --git a/shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/service/UserService.java b/shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/service/UserService.java new file mode 100644 index 00000000..9fa04ddb --- /dev/null +++ b/shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/service/UserService.java @@ -0,0 +1,45 @@ +package com.github.zhangkaitao.shiro.chapter23.service; + +import com.github.zhangkaitao.shiro.chapter23.entity.User; + +import java.util.List; +import java.util.Set; + +/** + *

User: Zhang Kaitao + *

Date: 14-1-28 + *

Version: 1.0 + */ +public interface UserService { + + /** + * 创建用户 + * @param user + */ + public User createUser(User user); + + public User updateUser(User user); + + public void deleteUser(Long userId); + + /** + * 修改密码 + * @param userId + * @param newPassword + */ + public void changePassword(Long userId, String newPassword); + + + User findOne(Long userId); + + List findAll(); + + /** + * 根据用户名查找用户 + * @param username + * @return + */ + public User findByUsername(String username); + + +} diff --git a/shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/service/UserServiceImpl.java b/shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/service/UserServiceImpl.java new file mode 100644 index 00000000..3ee796b6 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/service/UserServiceImpl.java @@ -0,0 +1,78 @@ +package com.github.zhangkaitao.shiro.chapter23.service; + +import com.github.zhangkaitao.shiro.chapter23.dao.UserDao; +import com.github.zhangkaitao.shiro.chapter23.entity.User; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; + +import java.util.*; + +/** + *

User: Zhang Kaitao + *

Date: 14-1-28 + *

Version: 1.0 + */ +@Service + +public class UserServiceImpl implements UserService { + + @Autowired + private UserDao userDao; + @Autowired + private PasswordHelper passwordHelper; + @Autowired + private RoleService roleService; + + /** + * 创建用户 + * @param user + */ + public User createUser(User user) { + //加密密码 + passwordHelper.encryptPassword(user); + return userDao.createUser(user); + } + + @Override + public User updateUser(User user) { + return userDao.updateUser(user); + } + + @Override + public void deleteUser(Long userId) { + userDao.deleteUser(userId); + } + + /** + * 修改密码 + * @param userId + * @param newPassword + */ + public void changePassword(Long userId, String newPassword) { + User user =userDao.findOne(userId); + user.setPassword(newPassword); + passwordHelper.encryptPassword(user); + userDao.updateUser(user); + } + + @Override + public User findOne(Long userId) { + return userDao.findOne(userId); + } + + @Override + public List findAll() { + return userDao.findAll(); + } + + /** + * 根据用户名查找用户 + * @param username + * @return + */ + public User findByUsername(String username) { + return userDao.findByUsername(username); + } + + +} diff --git a/shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/session/dao/MySqlSessionDAO.java b/shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/session/dao/MySqlSessionDAO.java new file mode 100644 index 00000000..c946544c --- /dev/null +++ b/shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/session/dao/MySqlSessionDAO.java @@ -0,0 +1,51 @@ +package com.github.zhangkaitao.shiro.chapter23.session.dao; + +import com.github.zhangkaitao.shiro.chapter23.utils.SerializableUtils; +import org.apache.shiro.session.Session; +import org.apache.shiro.session.mgt.ValidatingSession; +import org.apache.shiro.session.mgt.eis.CachingSessionDAO; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.jdbc.core.JdbcTemplate; + +import java.io.Serializable; +import java.util.List; + +/** + *

User: Zhang Kaitao + *

Date: 14-2-8 + *

Version: 1.0 + */ +public class MySqlSessionDAO extends CachingSessionDAO { + + @Autowired + private JdbcTemplate jdbcTemplate; + + @Override + protected Serializable doCreate(Session session) { + Serializable sessionId = generateSessionId(session); + assignSessionId(session, sessionId); + String sql = "insert into sessions(id, session) values(?,?)"; + jdbcTemplate.update(sql, sessionId, SerializableUtils.serialize(session)); + return session.getId(); + } + @Override + protected void doUpdate(Session session) { + if(session instanceof ValidatingSession && !((ValidatingSession)session).isValid()) { + return; //如果会话过期/停止 没必要再更新了 + } + String sql = "update sessions set session=? where id=?"; + jdbcTemplate.update(sql, SerializableUtils.serialize(session), session.getId()); + } + @Override + protected void doDelete(Session session) { + String sql = "delete from sessions where id=?"; + jdbcTemplate.update(sql, session.getId()); + } + @Override + protected Session doReadSession(Serializable sessionId) { + String sql = "select session from sessions where id=?"; + List sessionStrList = jdbcTemplate.queryForList(sql, String.class, sessionId); + if(sessionStrList.size() == 0) return null; + return SerializableUtils.deserialize(sessionStrList.get(0)); + } +} diff --git a/shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/session/scheduler/MySqlSessionValidationScheduler.java b/shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/session/scheduler/MySqlSessionValidationScheduler.java new file mode 100644 index 00000000..26af7d07 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/session/scheduler/MySqlSessionValidationScheduler.java @@ -0,0 +1,117 @@ +package com.github.zhangkaitao.shiro.chapter23.session.scheduler; + +import com.github.zhangkaitao.shiro.chapter23.utils.SerializableUtils; +import org.apache.shiro.session.Session; +import org.apache.shiro.session.mgt.*; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.jdbc.core.JdbcTemplate; +import org.springframework.util.ReflectionUtils; + +import java.lang.reflect.Method; +import java.util.List; +import java.util.concurrent.Executors; +import java.util.concurrent.ScheduledExecutorService; +import java.util.concurrent.ThreadFactory; +import java.util.concurrent.TimeUnit; + +/** + *

User: Zhang Kaitao + *

Date: 14-2-9 + *

Version: 1.0 + */ +public class MySqlSessionValidationScheduler implements SessionValidationScheduler, Runnable { + + @Autowired + private JdbcTemplate jdbcTemplate; + + /** Private internal log instance. */ + private static final Logger log = LoggerFactory.getLogger(MySqlSessionValidationScheduler.class); + + ValidatingSessionManager sessionManager; + private ScheduledExecutorService service; + private long interval = DefaultSessionManager.DEFAULT_SESSION_VALIDATION_INTERVAL; + private boolean enabled = false; + + public MySqlSessionValidationScheduler() { + super(); + } + + public ValidatingSessionManager getSessionManager() { + return sessionManager; + } + + public void setSessionManager(ValidatingSessionManager sessionManager) { + this.sessionManager = sessionManager; + } + + public long getInterval() { + return interval; + } + + public void setInterval(long interval) { + this.interval = interval; + } + + public boolean isEnabled() { + return this.enabled; + } + + /** + * Creates a single thread {@link java.util.concurrent.ScheduledExecutorService} to validate sessions at fixed intervals + * and enables this scheduler. The executor is created as a daemon thread to allow JVM to shut down + */ + //TODO Implement an integration test to test for jvm exit as part of the standalone example + // (so we don't have to change the unit test execution model for the core module) + public void enableSessionValidation() { + if (this.interval > 0l) { + this.service = Executors.newSingleThreadScheduledExecutor(new ThreadFactory() { + public Thread newThread(Runnable r) { + Thread thread = new Thread(r); + thread.setDaemon(true); + return thread; + } + }); + this.service.scheduleAtFixedRate(this, interval, interval, TimeUnit.MILLISECONDS); + this.enabled = true; + } + } + + public void run() { + if (log.isDebugEnabled()) { + log.debug("Executing session validation..."); + } + long startTime = System.currentTimeMillis(); + + //分页获取会话并验证 + String sql = "select session from sessions limit ?,?"; + int start = 0; //起始记录 + int size = 20; //每页大小 + List sessionList = jdbcTemplate.queryForList(sql, String.class, start, size); + while(sessionList.size() > 0) { + for(String sessionStr : sessionList) { + try { + Session session = SerializableUtils.deserialize(sessionStr); + Method validateMethod = ReflectionUtils.findMethod(AbstractValidatingSessionManager.class, "validate", Session.class, SessionKey.class); + validateMethod.setAccessible(true); + ReflectionUtils.invokeMethod(validateMethod, sessionManager, session, new DefaultSessionKey(session.getId())); + } catch (Exception e) { + //ignore + } + } + start = start + size; + sessionList = jdbcTemplate.queryForList(sql, String.class, start, size); + } + + long stopTime = System.currentTimeMillis(); + if (log.isDebugEnabled()) { + log.debug("Session validation completed successfully in " + (stopTime - startTime) + " milliseconds."); + } + } + + public void disableSessionValidation() { + this.service.shutdownNow(); + this.enabled = false; + } +} diff --git a/shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/utils/SerializableUtils.java b/shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/utils/SerializableUtils.java new file mode 100644 index 00000000..99e43ba3 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/utils/SerializableUtils.java @@ -0,0 +1,37 @@ +package com.github.zhangkaitao.shiro.chapter23.utils; + +import org.apache.shiro.codec.Base64; +import org.apache.shiro.session.Session; + +import java.io.ByteArrayInputStream; +import java.io.ByteArrayOutputStream; +import java.io.ObjectInputStream; +import java.io.ObjectOutputStream; + +/** + *

User: Zhang Kaitao + *

Date: 14-2-8 + *

Version: 1.0 + */ +public class SerializableUtils { + + public static String serialize(Session session) { + try { + ByteArrayOutputStream bos = new ByteArrayOutputStream(); + ObjectOutputStream oos = new ObjectOutputStream(bos); + oos.writeObject(session); + return Base64.encodeToString(bos.toByteArray()); + } catch (Exception e) { + throw new RuntimeException("serialize session error", e); + } + } + public static Session deserialize(String sessionStr) { + try { + ByteArrayInputStream bis = new ByteArrayInputStream(Base64.decode(sessionStr)); + ObjectInputStream ois = new ObjectInputStream(bis); + return (Session)ois.readObject(); + } catch (Exception e) { + throw new RuntimeException("deserialize session error", e); + } + } +} diff --git a/shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/web/bind/annotation/CurrentUser.java b/shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/web/bind/annotation/CurrentUser.java new file mode 100644 index 00000000..394a752c --- /dev/null +++ b/shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/web/bind/annotation/CurrentUser.java @@ -0,0 +1,41 @@ +/* + * Copyright 2002-2007 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.github.zhangkaitao.shiro.chapter23.web.bind.annotation; + +import com.github.zhangkaitao.shiro.chapter23.Constants; + +import java.lang.annotation.*; + +/** + *

绑定当前登录的用户

+ *

不同于@ModelAttribute

+ * + * @author Zhang Kaitao + */ +@Target({ElementType.PARAMETER}) +@Retention(RetentionPolicy.RUNTIME) +@Documented +public @interface CurrentUser { + + /** + * 当前用户在request中的名字 + * + * @return + */ + String value() default Constants.CURRENT_USER; + +} diff --git a/shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/web/bind/method/CurrentUserMethodArgumentResolver.java b/shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/web/bind/method/CurrentUserMethodArgumentResolver.java new file mode 100644 index 00000000..614974bb --- /dev/null +++ b/shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/web/bind/method/CurrentUserMethodArgumentResolver.java @@ -0,0 +1,34 @@ +package com.github.zhangkaitao.shiro.chapter23.web.bind.method; + +import com.github.zhangkaitao.shiro.chapter23.web.bind.annotation.CurrentUser; +import org.springframework.core.MethodParameter; +import org.springframework.web.bind.support.WebDataBinderFactory; +import org.springframework.web.context.request.NativeWebRequest; +import org.springframework.web.method.support.HandlerMethodArgumentResolver; +import org.springframework.web.method.support.ModelAndViewContainer; + +/** + *

用于绑定@FormModel的方法参数解析器 + *

User: Zhang Kaitao + *

Date: 13-1-12 下午5:01 + *

Version: 1.0 + */ +public class CurrentUserMethodArgumentResolver implements HandlerMethodArgumentResolver { + + public CurrentUserMethodArgumentResolver() { + } + + @Override + public boolean supportsParameter(MethodParameter parameter) { + if (parameter.hasParameterAnnotation(CurrentUser.class)) { + return true; + } + return false; + } + + @Override + public Object resolveArgument(MethodParameter parameter, ModelAndViewContainer mavContainer, NativeWebRequest webRequest, WebDataBinderFactory binderFactory) throws Exception { + CurrentUser currentUserAnnotation = parameter.getParameterAnnotation(CurrentUser.class); + return webRequest.getAttribute(currentUserAnnotation.value(), NativeWebRequest.SCOPE_REQUEST); + } +} diff --git a/shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/web/controller/AppController.java b/shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/web/controller/AppController.java new file mode 100644 index 00000000..b6f6b755 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/web/controller/AppController.java @@ -0,0 +1,86 @@ +package com.github.zhangkaitao.shiro.chapter23.web.controller; + +import com.github.zhangkaitao.shiro.chapter23.entity.App; +import com.github.zhangkaitao.shiro.chapter23.service.AppService; +import org.apache.shiro.authz.annotation.RequiresPermissions; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Controller; +import org.springframework.ui.Model; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestMethod; +import org.springframework.web.servlet.mvc.support.RedirectAttributes; + +import java.util.UUID; + +/** + *

User: Zhang Kaitao + *

Date: 14-2-14 + *

Version: 1.0 + */ +@Controller +@RequestMapping("/app") +public class AppController { + + @Autowired + private AppService appService; + + @RequiresPermissions("app:view") + @RequestMapping(method = RequestMethod.GET) + public String list(Model model) { + model.addAttribute("appList", appService.findAll()); + return "app/list"; + } + + @RequiresPermissions("app:create") + @RequestMapping(value = "/create", method = RequestMethod.GET) + public String showCreateForm(Model model) { + App app = new App(); + app.setAppKey(UUID.randomUUID().toString()); + app.setAppSecret(UUID.randomUUID().toString()); + model.addAttribute("app", app); + model.addAttribute("op", "新增"); + return "app/edit"; + } + + @RequiresPermissions("app:create") + @RequestMapping(value = "/create", method = RequestMethod.POST) + public String create(App app, RedirectAttributes redirectAttributes) { + appService.createApp(app); + redirectAttributes.addFlashAttribute("msg", "新增成功"); + return "redirect:/app"; + } + + @RequiresPermissions("app:update") + @RequestMapping(value = "/{id}/update", method = RequestMethod.GET) + public String showUpdateForm(@PathVariable("id") Long id, Model model) { + model.addAttribute("app", appService.findOne(id)); + model.addAttribute("op", "修改"); + return "app/edit"; + } + + @RequiresPermissions("app:update") + @RequestMapping(value = "/{id}/update", method = RequestMethod.POST) + public String update(App app, RedirectAttributes redirectAttributes) { + appService.updateApp(app); + redirectAttributes.addFlashAttribute("msg", "修改成功"); + return "redirect:/app"; + } + + @RequiresPermissions("app:delete") + @RequestMapping(value = "/{id}/delete", method = RequestMethod.GET) + public String showDeleteForm(@PathVariable("id") Long id, Model model) { + model.addAttribute("app", appService.findOne(id)); + model.addAttribute("op", "删除"); + return "app/edit"; + } + + @RequiresPermissions("app:delete") + @RequestMapping(value = "/{id}/delete", method = RequestMethod.POST) + public String delete(@PathVariable("id") Long id, RedirectAttributes redirectAttributes) { + appService.deleteApp(id); + redirectAttributes.addFlashAttribute("msg", "删除成功"); + return "redirect:/app"; + } + +} diff --git a/shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/web/controller/AuthorizationController.java b/shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/web/controller/AuthorizationController.java new file mode 100644 index 00000000..d2ecca1f --- /dev/null +++ b/shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/web/controller/AuthorizationController.java @@ -0,0 +1,101 @@ +package com.github.zhangkaitao.shiro.chapter23.web.controller; + +import com.github.zhangkaitao.shiro.chapter23.entity.Authorization; +import com.github.zhangkaitao.shiro.chapter23.service.AppService; +import com.github.zhangkaitao.shiro.chapter23.service.AuthorizationService; +import com.github.zhangkaitao.shiro.chapter23.service.RoleService; +import com.github.zhangkaitao.shiro.chapter23.service.UserService; +import org.apache.shiro.authz.annotation.RequiresPermissions; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Controller; +import org.springframework.ui.Model; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestMethod; +import org.springframework.web.servlet.mvc.support.RedirectAttributes; + +/** + *

User: Zhang Kaitao + *

Date: 14-2-14 + *

Version: 1.0 + */ +@Controller +@RequestMapping("/authorization") +public class AuthorizationController { + + @Autowired + private AuthorizationService authorizationService; + @Autowired + private UserService userService; + @Autowired + private AppService appService; + @Autowired + private RoleService roleService; + + @RequiresPermissions("authorization:view") + @RequestMapping(method = RequestMethod.GET) + public String list(Model model) { + model.addAttribute("authorizationList", authorizationService.findAll()); + return "authorization/list"; + } + + @RequiresPermissions("authorization:create") + @RequestMapping(value = "/create", method = RequestMethod.GET) + public String showCreateForm(Model model) { + setCommonData(model); + Authorization authorization = new Authorization(); + model.addAttribute("authorization", authorization); + model.addAttribute("op", "新增"); + return "authorization/edit"; + } + + @RequiresPermissions("authorization:create") + @RequestMapping(value = "/create", method = RequestMethod.POST) + public String create(Authorization authorization, RedirectAttributes redirectAttributes) { + authorizationService.createAuthorization(authorization); + redirectAttributes.addFlashAttribute("msg", "新增成功"); + return "redirect:/authorization"; + } + + @RequiresPermissions("authorization:update") + @RequestMapping(value = "/{id}/update", method = RequestMethod.GET) + public String showUpdateForm(@PathVariable("id") Long id, Model model) { + setCommonData(model); + model.addAttribute("authorization", authorizationService.findOne(id)); + model.addAttribute("op", "修改"); + return "authorization/edit"; + } + + @RequiresPermissions("authorization:update") + @RequestMapping(value = "/{id}/update", method = RequestMethod.POST) + public String update(Authorization authorization, RedirectAttributes redirectAttributes) { + authorizationService.updateAuthorization(authorization); + redirectAttributes.addFlashAttribute("msg", "修改成功"); + return "redirect:/authorization"; + } + + @RequiresPermissions("authorization:delete") + @RequestMapping(value = "/{id}/delete", method = RequestMethod.GET) + public String showDeleteForm(@PathVariable("id") Long id, Model model) { + setCommonData(model); + model.addAttribute("authorization", authorizationService.findOne(id)); + model.addAttribute("op", "删除"); + return "authorization/edit"; + } + + @RequiresPermissions("authorization:delete") + @RequestMapping(value = "/{id}/delete", method = RequestMethod.POST) + public String delete(@PathVariable("id") Long id, RedirectAttributes redirectAttributes) { + authorizationService.deleteAuthorization(id); + redirectAttributes.addFlashAttribute("msg", "删除成功"); + return "redirect:/authorization"; + } + + private void setCommonData(Model model) { + model.addAttribute("userList", userService.findAll()); + model.addAttribute("roleList", roleService.findAll()); + model.addAttribute("appList", appService.findAll()); + } + + +} diff --git a/shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/web/controller/IndexController.java b/shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/web/controller/IndexController.java new file mode 100644 index 00000000..fbb9aa2f --- /dev/null +++ b/shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/web/controller/IndexController.java @@ -0,0 +1,43 @@ +package com.github.zhangkaitao.shiro.chapter23.web.controller; + +import com.github.zhangkaitao.shiro.chapter23.Constants; +import com.github.zhangkaitao.shiro.chapter23.entity.Resource; +import com.github.zhangkaitao.shiro.chapter23.service.AuthorizationService; +import com.github.zhangkaitao.shiro.chapter23.service.ResourceService; +import com.github.zhangkaitao.shiro.chapter23.web.bind.annotation.CurrentUser; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Controller; +import org.springframework.ui.Model; +import org.springframework.web.bind.annotation.RequestMapping; + +import java.util.List; +import java.util.Set; + +/** + *

User: Zhang Kaitao + *

Date: 14-2-14 + *

Version: 1.0 + */ +@Controller +public class IndexController { + + @Autowired + private ResourceService resourceService; + @Autowired + private AuthorizationService authorizationService; + + @RequestMapping("/") + public String index(@CurrentUser com.github.zhangkaitao.shiro.chapter23.entity.User loginUser, Model model) { + Set permissions = authorizationService.findPermissions(Constants.SERVER_APP_KEY, loginUser.getUsername()); + List menus = resourceService.findMenus(permissions); + model.addAttribute("menus", menus); + return "index"; + } + + @RequestMapping("/welcome") + public String welcome() { + return "welcome"; + } + + +} diff --git a/shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/web/controller/LoginController.java b/shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/web/controller/LoginController.java new file mode 100644 index 00000000..dfc163a3 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/web/controller/LoginController.java @@ -0,0 +1,35 @@ +package com.github.zhangkaitao.shiro.chapter23.web.controller; + +import org.apache.shiro.authc.IncorrectCredentialsException; +import org.apache.shiro.authc.UnknownAccountException; +import org.springframework.stereotype.Controller; +import org.springframework.ui.Model; +import org.springframework.web.bind.annotation.RequestMapping; + +import javax.servlet.http.HttpServletRequest; + +/** + *

User: Zhang Kaitao + *

Date: 14-2-15 + *

Version: 1.0 + */ +@Controller +public class LoginController { + + @RequestMapping(value = "/login" ) + public String showLoginForm(HttpServletRequest req, Model model) { + String exceptionClassName = (String)req.getAttribute("shiroLoginFailure"); + String error = null; + if(UnknownAccountException.class.getName().equals(exceptionClassName)) { + error = "用户名/密码错误"; + } else if(IncorrectCredentialsException.class.getName().equals(exceptionClassName)) { + error = "用户名/密码错误"; + } else if(exceptionClassName != null) { + error = "其他错误:" + exceptionClassName; + } + model.addAttribute("error", error); + return "login"; + } + + +} diff --git a/shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/web/controller/OrganizationController.java b/shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/web/controller/OrganizationController.java new file mode 100644 index 00000000..5df0a5c3 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/web/controller/OrganizationController.java @@ -0,0 +1,111 @@ +package com.github.zhangkaitao.shiro.chapter23.web.controller; + +import com.github.zhangkaitao.shiro.chapter23.entity.Organization; +import com.github.zhangkaitao.shiro.chapter23.service.OrganizationService; +import org.apache.shiro.authz.annotation.RequiresPermissions; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Controller; +import org.springframework.ui.Model; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestMethod; +import org.springframework.web.bind.annotation.RequestParam; +import org.springframework.web.servlet.mvc.support.RedirectAttributes; + +/** + *

User: Zhang Kaitao + *

Date: 14-2-14 + *

Version: 1.0 + */ +@Controller +@RequestMapping("/organization") +public class OrganizationController { + + @Autowired + private OrganizationService organizationService; + + @RequiresPermissions("organization:view") + @RequestMapping(method = RequestMethod.GET) + public String index(Model model) { + return "organization/index"; + } + + @RequiresPermissions("organization:view") + @RequestMapping(value = "/tree", method = RequestMethod.GET) + public String showTree(Model model) { + model.addAttribute("organizationList", organizationService.findAll()); + return "organization/tree"; + } + + @RequiresPermissions("organization:create") + @RequestMapping(value = "/{parentId}/appendChild", method = RequestMethod.GET) + public String showAppendChildForm(@PathVariable("parentId") Long parentId, Model model) { + Organization parent = organizationService.findOne(parentId); + model.addAttribute("parent", parent); + Organization child = new Organization(); + child.setParentId(parentId); + child.setParentIds(parent.makeSelfAsParentIds()); + model.addAttribute("child", child); + model.addAttribute("op", "新增"); + return "organization/appendChild"; + } + + @RequiresPermissions("organization:create") + @RequestMapping(value = "/{parentId}/appendChild", method = RequestMethod.POST) + public String create(Organization organization) { + organizationService.createOrganization(organization); + return "redirect:/organization/success"; + } + + @RequiresPermissions("organization:update") + @RequestMapping(value = "/{id}/maintain", method = RequestMethod.GET) + public String showMaintainForm(@PathVariable("id") Long id, Model model) { + model.addAttribute("organization", organizationService.findOne(id)); + return "organization/maintain"; + } + + @RequiresPermissions("organization:update") + @RequestMapping(value = "/{id}/update", method = RequestMethod.POST) + public String update(Organization organization, RedirectAttributes redirectAttributes) { + organizationService.updateOrganization(organization); + redirectAttributes.addFlashAttribute("msg", "修改成功"); + return "redirect:/organization/success"; + } + + @RequiresPermissions("organization:delete") + @RequestMapping(value = "/{id}/delete", method = RequestMethod.POST) + public String delete(@PathVariable("id") Long id, RedirectAttributes redirectAttributes) { + organizationService.deleteOrganization(id); + redirectAttributes.addFlashAttribute("msg", "删除成功"); + return "redirect:/organization/success"; + } + + + @RequiresPermissions("organization:update") + @RequestMapping(value = "/{sourceId}/move", method = RequestMethod.GET) + public String showMoveForm(@PathVariable("sourceId") Long sourceId, Model model) { + Organization source = organizationService.findOne(sourceId); + model.addAttribute("source", source); + model.addAttribute("targetList", organizationService.findAllWithExclude(source)); + return "organization/move"; + } + + @RequiresPermissions("organization:update") + @RequestMapping(value = "/{sourceId}/move", method = RequestMethod.POST) + public String move( + @PathVariable("sourceId") Long sourceId, + @RequestParam("targetId") Long targetId) { + Organization source = organizationService.findOne(sourceId); + Organization target = organizationService.findOne(targetId); + organizationService.move(source, target); + return "redirect:/organization/success"; + } + + @RequiresPermissions("organization:view") + @RequestMapping(value = "/success", method = RequestMethod.GET) + public String success() { + return "organization/success"; + } + + +} diff --git a/shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/web/controller/ResourceController.java b/shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/web/controller/ResourceController.java new file mode 100644 index 00000000..288484c2 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/web/controller/ResourceController.java @@ -0,0 +1,85 @@ +package com.github.zhangkaitao.shiro.chapter23.web.controller; + +import com.github.zhangkaitao.shiro.chapter23.entity.Resource; +import com.github.zhangkaitao.shiro.chapter23.service.ResourceService; +import org.apache.shiro.authz.annotation.RequiresPermissions; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Controller; +import org.springframework.ui.Model; +import org.springframework.web.bind.annotation.ModelAttribute; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestMethod; +import org.springframework.web.servlet.mvc.support.RedirectAttributes; + +/** + *

User: Zhang Kaitao + *

Date: 14-2-14 + *

Version: 1.0 + */ +@Controller +@RequestMapping("/resource") +public class ResourceController { + + @Autowired + private ResourceService resourceService; + + @ModelAttribute("types") + public Resource.ResourceType[] resourceTypes() { + return Resource.ResourceType.values(); + } + + @RequiresPermissions("resource:view") + @RequestMapping(method = RequestMethod.GET) + public String list(Model model) { + model.addAttribute("resourceList", resourceService.findAll()); + return "resource/list"; + } + + @RequiresPermissions("resource:create") + @RequestMapping(value = "/{parentId}/appendChild", method = RequestMethod.GET) + public String showAppendChildForm(@PathVariable("parentId") Long parentId, Model model) { + Resource parent = resourceService.findOne(parentId); + model.addAttribute("parent", parent); + Resource child = new Resource(); + child.setParentId(parentId); + child.setParentIds(parent.makeSelfAsParentIds()); + model.addAttribute("resource", child); + model.addAttribute("op", "新增子节点"); + return "resource/edit"; + } + + @RequiresPermissions("resource:create") + @RequestMapping(value = "/{parentId}/appendChild", method = RequestMethod.POST) + public String create(Resource resource, RedirectAttributes redirectAttributes) { + resourceService.createResource(resource); + redirectAttributes.addFlashAttribute("msg", "新增子节点成功"); + return "redirect:/resource"; + } + + @RequiresPermissions("resource:update") + @RequestMapping(value = "/{id}/update", method = RequestMethod.GET) + public String showUpdateForm(@PathVariable("id") Long id, Model model) { + model.addAttribute("resource", resourceService.findOne(id)); + model.addAttribute("op", "修改"); + return "resource/edit"; + } + + @RequiresPermissions("resource:update") + @RequestMapping(value = "/{id}/update", method = RequestMethod.POST) + public String update(Resource resource, RedirectAttributes redirectAttributes) { + resourceService.updateResource(resource); + redirectAttributes.addFlashAttribute("msg", "修改成功"); + return "redirect:/resource"; + } + + @RequiresPermissions("resource:delete") + @RequestMapping(value = "/{id}/delete", method = RequestMethod.GET) + public String delete(@PathVariable("id") Long id, RedirectAttributes redirectAttributes) { + resourceService.deleteResource(id); + redirectAttributes.addFlashAttribute("msg", "删除成功"); + return "redirect:/resource"; + } + + +} diff --git a/shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/web/controller/RoleController.java b/shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/web/controller/RoleController.java new file mode 100644 index 00000000..1eebc917 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/web/controller/RoleController.java @@ -0,0 +1,92 @@ +package com.github.zhangkaitao.shiro.chapter23.web.controller; + +import com.github.zhangkaitao.shiro.chapter23.entity.Role; +import com.github.zhangkaitao.shiro.chapter23.service.ResourceService; +import com.github.zhangkaitao.shiro.chapter23.service.RoleService; +import org.apache.shiro.authz.annotation.RequiresPermissions; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Controller; +import org.springframework.ui.Model; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestMethod; +import org.springframework.web.servlet.mvc.support.RedirectAttributes; + +/** + *

User: Zhang Kaitao + *

Date: 14-2-14 + *

Version: 1.0 + */ +@Controller +@RequestMapping("/role") +public class RoleController { + + @Autowired + private RoleService roleService; + + @Autowired + private ResourceService resourceService; + + @RequiresPermissions("role:view") + @RequestMapping(method = RequestMethod.GET) + public String list(Model model) { + model.addAttribute("roleList", roleService.findAll()); + return "role/list"; + } + + @RequiresPermissions("role:create") + @RequestMapping(value = "/create", method = RequestMethod.GET) + public String showCreateForm(Model model) { + setCommonData(model); + model.addAttribute("role", new Role()); + model.addAttribute("op", "新增"); + return "role/edit"; + } + + @RequiresPermissions("role:create") + @RequestMapping(value = "/create", method = RequestMethod.POST) + public String create(Role role, RedirectAttributes redirectAttributes) { + roleService.createRole(role); + redirectAttributes.addFlashAttribute("msg", "新增成功"); + return "redirect:/role"; + } + + @RequiresPermissions("role:update") + @RequestMapping(value = "/{id}/update", method = RequestMethod.GET) + public String showUpdateForm(@PathVariable("id") Long id, Model model) { + setCommonData(model); + model.addAttribute("role", roleService.findOne(id)); + model.addAttribute("op", "修改"); + return "role/edit"; + } + + @RequiresPermissions("role:update") + @RequestMapping(value = "/{id}/update", method = RequestMethod.POST) + public String update(Role role, RedirectAttributes redirectAttributes) { + roleService.updateRole(role); + redirectAttributes.addFlashAttribute("msg", "修改成功"); + return "redirect:/role"; + } + + @RequiresPermissions("role:delete") + @RequestMapping(value = "/{id}/delete", method = RequestMethod.GET) + public String showDeleteForm(@PathVariable("id") Long id, Model model) { + setCommonData(model); + model.addAttribute("role", roleService.findOne(id)); + model.addAttribute("op", "删除"); + return "role/edit"; + } + + @RequiresPermissions("role:delete") + @RequestMapping(value = "/{id}/delete", method = RequestMethod.POST) + public String delete(@PathVariable("id") Long id, RedirectAttributes redirectAttributes) { + roleService.deleteRole(id); + redirectAttributes.addFlashAttribute("msg", "删除成功"); + return "redirect:/role"; + } + + private void setCommonData(Model model) { + model.addAttribute("resourceList", resourceService.findAll()); + } + +} diff --git a/shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/web/controller/UserController.java b/shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/web/controller/UserController.java new file mode 100644 index 00000000..e15fffc6 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/web/controller/UserController.java @@ -0,0 +1,108 @@ +package com.github.zhangkaitao.shiro.chapter23.web.controller; + +import com.github.zhangkaitao.shiro.chapter23.entity.User; +import com.github.zhangkaitao.shiro.chapter23.service.OrganizationService; +import com.github.zhangkaitao.shiro.chapter23.service.RoleService; +import com.github.zhangkaitao.shiro.chapter23.service.UserService; +import org.apache.shiro.authz.annotation.RequiresPermissions; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Controller; +import org.springframework.ui.Model; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestMethod; +import org.springframework.web.servlet.mvc.support.RedirectAttributes; + +/** + *

User: Zhang Kaitao + *

Date: 14-2-14 + *

Version: 1.0 + */ +@Controller +@RequestMapping("/user") +public class UserController { + + @Autowired + private UserService userService; + @Autowired + private OrganizationService organizationService; + + @RequiresPermissions("user:view") + @RequestMapping(method = RequestMethod.GET) + public String list(Model model) { + model.addAttribute("userList", userService.findAll()); + return "user/list"; + } + + @RequiresPermissions("user:create") + @RequestMapping(value = "/create", method = RequestMethod.GET) + public String showCreateForm(Model model) { + setCommonData(model); + model.addAttribute("user", new User()); + model.addAttribute("op", "新增"); + return "user/edit"; + } + + @RequiresPermissions("user:create") + @RequestMapping(value = "/create", method = RequestMethod.POST) + public String create(User user, RedirectAttributes redirectAttributes) { + userService.createUser(user); + redirectAttributes.addFlashAttribute("msg", "新增成功"); + return "redirect:/user"; + } + + @RequiresPermissions("user:update") + @RequestMapping(value = "/{id}/update", method = RequestMethod.GET) + public String showUpdateForm(@PathVariable("id") Long id, Model model) { + setCommonData(model); + model.addAttribute("user", userService.findOne(id)); + model.addAttribute("op", "修改"); + return "user/edit"; + } + + @RequiresPermissions("user:update") + @RequestMapping(value = "/{id}/update", method = RequestMethod.POST) + public String update(User user, RedirectAttributes redirectAttributes) { + userService.updateUser(user); + redirectAttributes.addFlashAttribute("msg", "修改成功"); + return "redirect:/user"; + } + + @RequiresPermissions("user:delete") + @RequestMapping(value = "/{id}/delete", method = RequestMethod.GET) + public String showDeleteForm(@PathVariable("id") Long id, Model model) { + setCommonData(model); + model.addAttribute("user", userService.findOne(id)); + model.addAttribute("op", "删除"); + return "user/edit"; + } + + @RequiresPermissions("user:delete") + @RequestMapping(value = "/{id}/delete", method = RequestMethod.POST) + public String delete(@PathVariable("id") Long id, RedirectAttributes redirectAttributes) { + userService.deleteUser(id); + redirectAttributes.addFlashAttribute("msg", "删除成功"); + return "redirect:/user"; + } + + + @RequiresPermissions("user:update") + @RequestMapping(value = "/{id}/changePassword", method = RequestMethod.GET) + public String showChangePasswordForm(@PathVariable("id") Long id, Model model) { + model.addAttribute("user", userService.findOne(id)); + model.addAttribute("op", "修改密码"); + return "user/changePassword"; + } + + @RequiresPermissions("user:update") + @RequestMapping(value = "/{id}/changePassword", method = RequestMethod.POST) + public String changePassword(@PathVariable("id") Long id, String newPassword, RedirectAttributes redirectAttributes) { + userService.changePassword(id, newPassword); + redirectAttributes.addFlashAttribute("msg", "修改密码成功"); + return "redirect:/user"; + } + + private void setCommonData(Model model) { + model.addAttribute("organizationList", organizationService.findAll()); + } +} diff --git a/shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/web/exception/DefaultExceptionHandler.java b/shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/web/exception/DefaultExceptionHandler.java new file mode 100644 index 00000000..1d2e691a --- /dev/null +++ b/shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/web/exception/DefaultExceptionHandler.java @@ -0,0 +1,31 @@ +package com.github.zhangkaitao.shiro.chapter23.web.exception; + +import org.apache.shiro.authz.UnauthorizedException; +import org.springframework.http.HttpStatus; +import org.springframework.web.bind.annotation.ControllerAdvice; +import org.springframework.web.bind.annotation.ExceptionHandler; +import org.springframework.web.bind.annotation.ResponseStatus; +import org.springframework.web.context.request.NativeWebRequest; +import org.springframework.web.servlet.ModelAndView; + +/** + *

User: Zhang Kaitao + *

Date: 14-2-12 + *

Version: 1.0 + */ +@ControllerAdvice +public class DefaultExceptionHandler { + /** + * 没有权限 异常 + *

+ * 后续根据不同的需求定制即可 + */ + @ExceptionHandler({UnauthorizedException.class}) + @ResponseStatus(HttpStatus.UNAUTHORIZED) + public ModelAndView processUnauthenticatedException(NativeWebRequest request, UnauthorizedException e) { + ModelAndView mv = new ModelAndView(); + mv.addObject("exception", e); + mv.setViewName("unauthorized"); + return mv; + } +} diff --git a/shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/web/shiro/filter/SysUserFilter.java b/shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/web/shiro/filter/SysUserFilter.java new file mode 100644 index 00000000..e6519cb8 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/web/shiro/filter/SysUserFilter.java @@ -0,0 +1,29 @@ +package com.github.zhangkaitao.shiro.chapter23.web.shiro.filter; + +import com.github.zhangkaitao.shiro.chapter23.Constants; +import com.github.zhangkaitao.shiro.chapter23.service.UserService; +import org.apache.shiro.SecurityUtils; +import org.apache.shiro.web.filter.PathMatchingFilter; +import org.springframework.beans.factory.annotation.Autowired; + +import javax.servlet.ServletRequest; +import javax.servlet.ServletResponse; + +/** + *

User: Zhang Kaitao + *

Date: 14-2-15 + *

Version: 1.0 + */ +public class SysUserFilter extends PathMatchingFilter { + + @Autowired + private UserService userService; + + @Override + protected boolean onPreHandle(ServletRequest request, ServletResponse response, Object mappedValue) throws Exception { + + String username = (String)SecurityUtils.getSubject().getPrincipal(); + request.setAttribute(Constants.CURRENT_USER, userService.findByUsername(username)); + return true; + } +} diff --git a/shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/web/taglib/Functions.java b/shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/web/taglib/Functions.java new file mode 100644 index 00000000..1b776be7 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/chapter23/web/taglib/Functions.java @@ -0,0 +1,167 @@ +package com.github.zhangkaitao.shiro.chapter23.web.taglib; + +import com.github.zhangkaitao.shiro.chapter23.entity.*; +import com.github.zhangkaitao.shiro.chapter23.service.*; +import com.github.zhangkaitao.shiro.spring.SpringUtils; +import org.springframework.util.CollectionUtils; + +import java.util.Collection; + +/** + *

User: Zhang Kaitao + *

Date: 14-2-15 + *

Version: 1.0 + */ +public class Functions { + + public static boolean in(Iterable iterable, Object element) { + if(iterable == null) { + return false; + } + return CollectionUtils.contains(iterable.iterator(), element); + } + + public static String username(Long userId) { + User user = getUserService().findOne(userId); + if(user == null) { + return ""; + } + return user.getUsername(); + } + public static String appName(Long appId) { + App app = getAppService().findOne(appId); + if(app == null) { + return ""; + } + return app.getName(); + } + + public static String organizationName(Long organizationId) { + Organization organization = getOrganizationService().findOne(organizationId); + if(organization == null) { + return ""; + } + return organization.getName(); + } + + public static String organizationNames(Collection organizationIds) { + if(CollectionUtils.isEmpty(organizationIds)) { + return ""; + } + + StringBuilder s = new StringBuilder(); + for(Long organizationId : organizationIds) { + Organization organization = getOrganizationService().findOne(organizationId); + if(organization == null) { + return ""; + } + s.append(organization.getName()); + s.append(","); + } + + if(s.length() > 0) { + s.deleteCharAt(s.length() - 1); + } + + return s.toString(); + } + public static String roleName(Long roleId) { + Role role = getRoleService().findOne(roleId); + if(role == null) { + return ""; + } + return role.getDescription(); + } + + public static String roleNames(Collection roleIds) { + if(CollectionUtils.isEmpty(roleIds)) { + return ""; + } + + StringBuilder s = new StringBuilder(); + for(Long roleId : roleIds) { + Role role = getRoleService().findOne(roleId); + if(role == null) { + return ""; + } + s.append(role.getDescription()); + s.append(","); + } + + if(s.length() > 0) { + s.deleteCharAt(s.length() - 1); + } + + return s.toString(); + } + public static String resourceName(Long resourceId) { + Resource resource = getResourceService().findOne(resourceId); + if(resource == null) { + return ""; + } + return resource.getName(); + } + public static String resourceNames(Collection resourceIds) { + if(CollectionUtils.isEmpty(resourceIds)) { + return ""; + } + + StringBuilder s = new StringBuilder(); + for(Long resourceId : resourceIds) { + Resource resource = getResourceService().findOne(resourceId); + if(resource == null) { + return ""; + } + s.append(resource.getName()); + s.append(","); + } + + if(s.length() > 0) { + s.deleteCharAt(s.length() - 1); + } + + return s.toString(); + } + + private static OrganizationService organizationService; + private static RoleService roleService; + private static ResourceService resourceService; + private static UserService userService; + private static AppService appService; + + public static UserService getUserService() { + if(userService == null) { + userService = SpringUtils.getBean(UserService.class); + } + return userService; + } + + public static AppService getAppService() { + if(appService == null) { + appService = SpringUtils.getBean(AppService.class); + } + return appService; + } + + public static OrganizationService getOrganizationService() { + if(organizationService == null) { + organizationService = SpringUtils.getBean(OrganizationService.class); + } + return organizationService; + } + + public static RoleService getRoleService() { + if(roleService == null) { + roleService = SpringUtils.getBean(RoleService.class); + } + return roleService; + } + + public static ResourceService getResourceService() { + if(resourceService == null) { + resourceService = SpringUtils.getBean(ResourceService.class); + } + return resourceService; + } +} + diff --git a/shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/spring/SpringUtils.java b/shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/spring/SpringUtils.java new file mode 100644 index 00000000..4ea981fe --- /dev/null +++ b/shiro-example-chapter23-server/src/main/java/com/github/zhangkaitao/shiro/spring/SpringUtils.java @@ -0,0 +1,93 @@ +/** + * Copyright (c) 2005-2012 https://github.com/zhangkaitao + * + * Licensed under the Apache License, Version 2.0 (the "License"); + */ +package com.github.zhangkaitao.shiro.spring; + +import org.springframework.beans.BeansException; +import org.springframework.beans.factory.NoSuchBeanDefinitionException; +import org.springframework.beans.factory.config.BeanFactoryPostProcessor; +import org.springframework.beans.factory.config.ConfigurableListableBeanFactory; + +public final class SpringUtils implements BeanFactoryPostProcessor { + + private static ConfigurableListableBeanFactory beanFactory; // Spring应用上下文环境 + + @Override + public void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory) throws BeansException { + SpringUtils.beanFactory = beanFactory; + } + + /** + * 获取对象 + * + * @param name + * @return Object 一个以所给名字注册的bean的实例 + * @throws org.springframework.beans.BeansException + * + */ + @SuppressWarnings("unchecked") + public static T getBean(String name) throws BeansException { + return (T) beanFactory.getBean(name); + } + + /** + * 获取类型为requiredType的对象 + * + * @param clz + * @return + * @throws org.springframework.beans.BeansException + * + */ + public static T getBean(Class clz) throws BeansException { + @SuppressWarnings("unchecked") + T result = (T) beanFactory.getBean(clz); + return result; + } + + /** + * 如果BeanFactory包含一个与所给名称匹配的bean定义,则返回true + * + * @param name + * @return boolean + */ + public static boolean containsBean(String name) { + return beanFactory.containsBean(name); + } + + /** + * 判断以给定名字注册的bean定义是一个singleton还是一个prototype。 如果与给定名字相应的bean定义没有被找到,将会抛出一个异常(NoSuchBeanDefinitionException) + * + * @param name + * @return boolean + * @throws org.springframework.beans.factory.NoSuchBeanDefinitionException + * + */ + public static boolean isSingleton(String name) throws NoSuchBeanDefinitionException { + return beanFactory.isSingleton(name); + } + + /** + * @param name + * @return Class 注册对象的类型 + * @throws org.springframework.beans.factory.NoSuchBeanDefinitionException + * + */ + public static Class getType(String name) throws NoSuchBeanDefinitionException { + return beanFactory.getType(name); + } + + /** + * 如果给定的bean名字在bean定义中有别名,则返回这些别名 + * + * @param name + * @return + * @throws org.springframework.beans.factory.NoSuchBeanDefinitionException + * + */ + public static String[] getAliases(String name) throws NoSuchBeanDefinitionException { + return beanFactory.getAliases(name); + } + +} diff --git a/shiro-example-chapter23-server/src/main/resources/ehcache/ehcache-shiro.xml b/shiro-example-chapter23-server/src/main/resources/ehcache/ehcache-shiro.xml new file mode 100644 index 00000000..92d603a9 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/resources/ehcache/ehcache-shiro.xml @@ -0,0 +1,43 @@ + + + + + + + + + + + + + + + + + + + diff --git a/shiro-example-chapter23-server/src/main/resources/resources.properties b/shiro-example-chapter23-server/src/main/resources/resources.properties new file mode 100644 index 00000000..32d55c40 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/resources/resources.properties @@ -0,0 +1,24 @@ +#dataSource configure +connection.url=jdbc:mysql://localhost:3306/shiro3 +connection.username=root +connection.password= + +#druid datasource +#ο https://github.com/alibaba/druid/wiki/%E9%85%8D%E7%BD%AE_DruidDataSource%E5%8F%82%E8%80%83%E9%85%8D%E7%BD%AE +druid.initialSize=10 +druid.minIdle=10 +druid.maxActive=50 +druid.maxWait=60000 +druid.timeBetweenEvictionRunsMillis=60000 +druid.minEvictableIdleTimeMillis=300000 +druid.validationQuery=SELECT 'x' +druid.testWhileIdle=true +druid.testOnBorrow=false +druid.testOnReturn=false +druid.poolPreparedStatements=true +druid.maxPoolPreparedStatementPerConnectionSize=20 +druid.filters=wall,stat + +#shiro +password.algorithmName=md5 +password.hashIterations=2 \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/resources/spring-config-shiro.xml b/shiro-example-chapter23-server/src/main/resources/spring-config-shiro.xml new file mode 100644 index 00000000..b6f5977b --- /dev/null +++ b/shiro-example-chapter23-server/src/main/resources/spring-config-shiro.xml @@ -0,0 +1,128 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + /remoteService = anon + /login = authc + /logout = logout + /authenticated = authc + /** = user,sysUser + + + + + + + + \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/resources/spring-config.xml b/shiro-example-chapter23-server/src/main/resources/spring-config.xml new file mode 100644 index 00000000..bd148069 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/resources/spring-config.xml @@ -0,0 +1,87 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/resources/spring-mvc-remote-service.xml b/shiro-example-chapter23-server/src/main/resources/spring-mvc-remote-service.xml new file mode 100644 index 00000000..599baa37 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/resources/spring-mvc-remote-service.xml @@ -0,0 +1,17 @@ + + + + + + + + + + \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/resources/spring-mvc-shiro.xml b/shiro-example-chapter23-server/src/main/resources/spring-mvc-shiro.xml new file mode 100644 index 00000000..e28d8e1e --- /dev/null +++ b/shiro-example-chapter23-server/src/main/resources/spring-mvc-shiro.xml @@ -0,0 +1,16 @@ + + + + + + + + + \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/resources/spring-mvc.xml b/shiro-example-chapter23-server/src/main/resources/spring-mvc.xml new file mode 100644 index 00000000..24fdbddc --- /dev/null +++ b/shiro-example-chapter23-server/src/main/resources/spring-mvc.xml @@ -0,0 +1,57 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/jsp/app/edit.jsp b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/jsp/app/edit.jsp new file mode 100644 index 00000000..687ec980 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/jsp/app/edit.jsp @@ -0,0 +1,36 @@ +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@taglib prefix="form" uri="http://www.springframework.org/tags/form" %> +<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@taglib prefix="zhangfn" uri="http://github.com/zhangkaitao/tags/zhang-functions" %> + + + + + + + + + + + +

+ 应用名称: + +
+ +
+ 应用KEY: + +
+ +
+ 应用安全码: + +
+ + ${op} + + + + + \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/jsp/app/list.jsp b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/jsp/app/list.jsp new file mode 100644 index 00000000..a680de9a --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/jsp/app/list.jsp @@ -0,0 +1,49 @@ +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@taglib prefix="zhangfn" uri="http://github.com/zhangkaitao/tags/zhang-functions" %> +<%@taglib prefix="shiro" uri="http://shiro.apache.org/tags" %> + + + + + + + + +
${msg}
+
+ + + 应用新增
+
+ + + + + + + + + + + + + + + + + + + +
应用名称应用KEY应用安全码操作
${app.name}${app.appKey}${app.appSecret} + + 修改 + + + + 删除 + +
+ + + \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/jsp/authorization/edit.jsp b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/jsp/authorization/edit.jsp new file mode 100644 index 00000000..4f7fed2a --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/jsp/authorization/edit.jsp @@ -0,0 +1,36 @@ +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@taglib prefix="form" uri="http://www.springframework.org/tags/form" %> +<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@taglib prefix="zhangfn" uri="http://github.com/zhangkaitao/tags/zhang-functions" %> + + + + + + + + + + +
+ 应用: + +
+ +
+ 用户: + +
+ +
+ 角色列表: + + (按住shift键多选) +
+ + ${op} + +
+ + + \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/jsp/authorization/list.jsp b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/jsp/authorization/list.jsp new file mode 100644 index 00000000..fcfa2ca5 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/jsp/authorization/list.jsp @@ -0,0 +1,49 @@ +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@taglib prefix="zhangfn" uri="http://github.com/zhangkaitao/tags/zhang-functions" %> +<%@taglib prefix="shiro" uri="http://shiro.apache.org/tags" %> + + + + + + + + +
${msg}
+
+ + + 授权新增
+
+ + + + + + + + + + + + + + + + + + + +
应用用户角色列表操作
${zhangfn:appName(authorization.appId)}${zhangfn:username(authorization.userId)}${zhangfn:roleNames(authorization.roleIds)} + + 修改 + + + + 删除 + +
+ + + \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/jsp/index.jsp b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/jsp/index.jsp new file mode 100644 index 00000000..cc300e49 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/jsp/index.jsp @@ -0,0 +1,35 @@ +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags" %> + + + Shiro综合案例 + + + + + +
欢迎[]学习Shiro综合案例,退出
+
+ 获取源码:https://github.com/zhangkaitao/shiro-example +
+
+ 功能菜单
+ + ${m.name}
+
+
+ + + + + + + \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/jsp/login.jsp b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/jsp/login.jsp new file mode 100644 index 00000000..f2559b51 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/jsp/login.jsp @@ -0,0 +1,19 @@ +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@taglib prefix="shiro" uri="http://shiro.apache.org/tags" %> + + + 登录 + + + + +
${error}
+
+ 用户名:
+ 密码:
+ 自动登录:
+ +
+ + + \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/jsp/organization/appendChild.jsp b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/jsp/organization/appendChild.jsp new file mode 100644 index 00000000..b84ed937 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/jsp/organization/appendChild.jsp @@ -0,0 +1,30 @@ +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@taglib prefix="form" uri="http://www.springframework.org/tags/form" %> +<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> + + + + + + + + + + + + + +
+ + ${parent.name} +
+ +
+ 子节点名称: + +
+ + 新增子节点 +
+ + \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/jsp/organization/index.jsp b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/jsp/organization/index.jsp new file mode 100644 index 00000000..e49108a5 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/jsp/organization/index.jsp @@ -0,0 +1,25 @@ +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/jsp/organization/maintain.jsp b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/jsp/organization/maintain.jsp new file mode 100644 index 00000000..df124c82 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/jsp/organization/maintain.jsp @@ -0,0 +1,73 @@ +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@taglib prefix="form" uri="http://www.springframework.org/tags/form" %> +<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@taglib prefix="shiro" uri="http://shiro.apache.org/tags" %> + + + + + + + + + + + + + +
+ 名称: + +
+ + 修改 + + + + + 删除 + + + + + 添加子节点 + + + + + 移动节点 + + +
+ + + + + \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/jsp/organization/move.jsp b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/jsp/organization/move.jsp new file mode 100644 index 00000000..fa7511bf --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/jsp/organization/move.jsp @@ -0,0 +1,98 @@ +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@taglib prefix="form" uri="http://www.springframework.org/tags/form" %> +<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> + + + + + + + + + +
+
+ + ${source.name} +
+ +
+ + + + 选择 +
+ + +
+ + + + + + + + \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/jsp/organization/success.jsp b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/jsp/organization/success.jsp new file mode 100644 index 00000000..bdb3f013 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/jsp/organization/success.jsp @@ -0,0 +1,9 @@ +<%@ page contentType="text/html;charset=UTF-8" language="java" %> + + + + + + 操作成功,点击刷新树 + + \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/jsp/organization/tree.jsp b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/jsp/organization/tree.jsp new file mode 100644 index 00000000..962be698 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/jsp/organization/tree.jsp @@ -0,0 +1,40 @@ +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> + + + + + + + + + + + + + \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/jsp/resource/edit.jsp b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/jsp/resource/edit.jsp new file mode 100644 index 00000000..21ffe9c4 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/jsp/resource/edit.jsp @@ -0,0 +1,49 @@ +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@taglib prefix="form" uri="http://www.springframework.org/tags/form" %> +<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> + + + + + + + + + + + + + + +
+ + ${parent.name} +
+
+ +
+ 名称: + +
+
+ 类型: + +
+ +
+ URL路径: + +
+ + +
+ 权限字符串: + +
+ + ${op} + +
+ + + \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/jsp/resource/list.jsp b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/jsp/resource/list.jsp new file mode 100644 index 00000000..f816bc29 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/jsp/resource/list.jsp @@ -0,0 +1,76 @@ +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@taglib prefix="shiro" uri="http://shiro.apache.org/tags" %> + + + + + + + + + + + +
${msg}
+
+ + + + + + + + + + + + + + data-tt-parent-id='${resource.parentId}'> + + + + + + + + +
名称类型URL路径权限字符串操作
${resource.name}${resource.type.info}${resource.url}${resource.permission} + + + 添加子节点 + + + + + 修改 + + + + + 删除 + + +
+ + + + + + \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/jsp/role/edit.jsp b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/jsp/role/edit.jsp new file mode 100644 index 00000000..f55f967f --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/jsp/role/edit.jsp @@ -0,0 +1,119 @@ +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@taglib prefix="form" uri="http://www.springframework.org/tags/form" %> +<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@taglib prefix="zhangfn" uri="http://github.com/zhangkaitao/tags/zhang-functions" %> + + + + + + + + + + + + + + +
+ 角色名: + +
+ +
+ 角色描述: + +
+ + +
+ 拥有的资源列表: + + + 选择 +
+ + ${op} + +
+ + + + + + + + + + + \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/jsp/role/list.jsp b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/jsp/role/list.jsp new file mode 100644 index 00000000..77b5883e --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/jsp/role/list.jsp @@ -0,0 +1,49 @@ +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@taglib prefix="zhangfn" uri="http://github.com/zhangkaitao/tags/zhang-functions" %> +<%@taglib prefix="shiro" uri="http://shiro.apache.org/tags" %> + + + + + + + + +
${msg}
+
+ + + 角色新增
+
+ + + + + + + + + + + + + + + + + + + +
角色名称角色描述拥有的资源操作
${role.role}${role.description}${zhangfn:resourceNames(role.resourceIds)} + + 修改 + + + + 删除 + +
+ + + \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/jsp/unauthorized.jsp b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/jsp/unauthorized.jsp new file mode 100644 index 00000000..c6758214 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/jsp/unauthorized.jsp @@ -0,0 +1,11 @@ +<%@ page contentType="text/html;charset=UTF-8" language="java" %> + + + 没有权限 + + + + +
您没有权限[${exception.message}]
+ + \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/jsp/user/changePassword.jsp b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/jsp/user/changePassword.jsp new file mode 100644 index 00000000..744e15a6 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/jsp/user/changePassword.jsp @@ -0,0 +1,20 @@ +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@taglib prefix="form" uri="http://www.springframework.org/tags/form" %> +<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> + + + + + + + +
+
+ + +
+ +
+ + + \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/jsp/user/edit.jsp b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/jsp/user/edit.jsp new file mode 100644 index 00000000..47d01a01 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/jsp/user/edit.jsp @@ -0,0 +1,120 @@ +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@taglib prefix="form" uri="http://www.springframework.org/tags/form" %> +<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@taglib prefix="zhangfn" uri="http://github.com/zhangkaitao/tags/zhang-functions" %> + + + + + + + + + + + + + + + + + + + +
+ 用户名: + +
+ + +
+ 密码: + +
+
+ +
+ 所属组织: + + + 选择 +
+ + ${op} + +
+ + + + + + + + + + \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/jsp/user/list.jsp b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/jsp/user/list.jsp new file mode 100644 index 00000000..be3197ca --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/jsp/user/list.jsp @@ -0,0 +1,52 @@ +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@taglib prefix="zhangfn" uri="http://github.com/zhangkaitao/tags/zhang-functions" %> +<%@taglib prefix="shiro" uri="http://shiro.apache.org/tags" %> + + + + + + + + +
${msg}
+
+ + + 用户新增
+
+ + + + + + + + + + + + + + + + + + +
用户名所属组织操作
${user.username}${zhangfn:organizationName(user.organizationId)} + + 修改 + + + + 删除 + + + + 改密 + +
+ + + \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/jsp/welcome.jsp b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/jsp/welcome.jsp new file mode 100644 index 00000000..eafd8fef --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/jsp/welcome.jsp @@ -0,0 +1,6 @@ +<%@ page contentType="text/html;charset=UTF-8" language="java" %> + + +欢迎学习Shiro综合案例,更多案例请访问我的github + + \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/API_cn.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/API_cn.html new file mode 100644 index 00000000..60bd7d15 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/API_cn.html @@ -0,0 +1,103 @@ + + + + + API 文档 [zTree -- jQuery 树插件] + + + + + +
+ +
+
+
+ + +
+
+
+
  • setting 配置详解
+
    +
    +
    +
    • zTree 方法详解
    +
      +
      • treeNode 节点数据详解
      +
        +
        +
        +
        +
        +
        +
        + + +
        +
        +
        + + + +
        + +
        +
        +
        +
        + + + + + + \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/API_en.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/API_en.html new file mode 100644 index 00000000..69e05804 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/API_en.html @@ -0,0 +1,102 @@ + + + + + API Document [zTree -- jQuery tree plug-ins.] + + + + + +
        + +
        +
        +
        + + +
        +
        +
        +
        • setting details
        +
          +
          +
          +
          • zTree method details
          +
            +
            • treeNode data details
            +
              +
              +
              +
              +
              +
              +
              + + +
              +
              +
              + + + +
              + +
              +
              +
              +
              + + + + + + \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/apiCss/api.js b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/apiCss/api.js new file mode 100644 index 00000000..84fb59ef --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/apiCss/api.js @@ -0,0 +1,591 @@ +var apiContent = { + zTree_Setting: null, + zTree_Node: null, + zTree_Function: null, + overlayDiv : null, + overlayContent : null, + overlayDetailDiv : null, + overlayCloseBtn: null, + overlayArrow: null, + contentBoxDiv : null, + settingDiv : null, + functionDiv : null, + overlaySearch: null, + searchKey: null, + searchResultInput: null, + searchPrevBtn: null, + searchNextBtn: null, + apiCache: {}, + lastValue: "", + searchNodes: [], + searchNodesCur: 0, + + _init: function() { + this.overlayDiv = $("#overlayDiv"); + this.overlayContent = $("#overlayContent"); + this.overlayDetailDiv = $("#overlayDetailDiv"); + this.overlayCloseBtn = $("#overlayDivCloseBtn"); + this.overlayArrow = $("#overlayDivArrow"); + this.contentBoxDiv = $("#contentBox"); + this.settingDiv = $("#api_setting"); + this.functionDiv = $("#api_function"); + this.searchKey = $(".searchKey"); + this.overlaySearch = $(".overlaySearch"); + this.searchResultInput = $(".searchResult"); + this.searchPrevBtn = $(".searchPrev"); + this.searchNextBtn = $(".searchNext"); + var setting = { + view: { + fontCss: this.getFontCss, + showLine: false, + showIcon: this.showIcon, + showTitle: this.getTitle, + selectedMulti: false, + dblClickExpand: false + }, + data: { + key: { + title: "tt" + }, + simpleData: { + enable:true, + idKey: "id", + pIdKey: "pId", + rootPId: "" + } + }, + callback: { + onNodeCreated: this.onNodeCreated, + beforeClick: this.beforeClick + } + } + var setting_nodes =[ + {id:1, pId:0, t:"setting", name:"var setting = {", open:true}, + {id:11, pId:1, t:"treeId", name:"treeId : \"\",", iconSkin:"core", showAPI:true}, + {id:12, pId:1, t:"treeObj", name:"treeObj : null,", iconSkin:"core", showAPI:true}, + {id:121, pId:1, name:""}, + + {id:20, pId:1, t:"async", name:"async : {", open:true}, + {id:201, pId:20, t:"autoParam", name:"autoParam : [],", iconSkin:"core", showAPI:true}, + {id:208, pId:20, t:"contentType", name:"contentType : \"application...\",", iconSkin:"core", showAPI:true}, + {id:202, pId:20, t:"dataFilter", name:"dataFilter : null,", iconSkin:"core", showAPI:true}, + {id:203, pId:20, t:"dataType", name:"dataType : \"text\",", iconSkin:"core", showAPI:true}, + {id:204, pId:20, t:"enable", name:"enable : false,", iconSkin:"core", showAPI:true}, + {id:205, pId:20, t:"otherParam", name:"otherParam : [],", iconSkin:"core", showAPI:true}, + {id:206, pId:20, t:"type", name:"type : \"post\",", iconSkin:"core", showAPI:true}, + {id:207, pId:20, t:"url", name:"url : \"\"", iconSkin:"core", showAPI:true}, + {id:21, pId:1, name:"},"}, + {id:22, pId:1, name:""}, + + {id:30, pId:1, t:"callback", name:"callback : {", open:true}, + {id:3001, pId:30, t:"beforeAsync", name:"beforeAsync : null,", iconSkin:"core", showAPI:true}, + {id:3002, pId:30, t:"beforeCheck", name:"beforeCheck : null,", iconSkin:"check", showAPI:true}, + {id:3003, pId:30, t:"beforeClick", name:"beforeClick : null,", iconSkin:"core", showAPI:true}, + {id:3004, pId:30, t:"beforeCollapse", name:"beforeCollapse : null,", iconSkin:"core", showAPI:true}, + {id:3004, pId:30, t:"beforeDblClick", name:"beforeDblClick : null,", iconSkin:"core", showAPI:true}, + {id:3005, pId:30, t:"beforeDrag", name:"beforeDrag : null,", iconSkin:"edit", showAPI:true}, + {id:3006, pId:30, t:"beforeDragOpen", name:"beforeDragOpen : null,", iconSkin:"edit", showAPI:true}, + {id:3007, pId:30, t:"beforeDrop", name:"beforeDrop : null,", iconSkin:"edit", showAPI:true}, + {id:3029, pId:30, t:"beforeEditName", name:"beforeEditName : null,", iconSkin:"edit", showAPI:true}, + {id:3008, pId:30, t:"beforeExpand", name:"beforeExpand : null,", iconSkin:"core", showAPI:true}, + {id:3009, pId:30, t:"beforeMouseDown", name:"beforeMouseDown : null,", iconSkin:"core", showAPI:true}, + {id:3010, pId:30, t:"beforeMouseUp", name:"beforeMouseUp : null,", iconSkin:"core", showAPI:true}, + {id:3011, pId:30, t:"beforeRemove", name:"beforeRemove : null,", iconSkin:"edit", showAPI:true}, + {id:3012, pId:30, t:"beforeRename", name:"beforeRename : null,", iconSkin:"edit", showAPI:true}, + {id:3013, pId:30, t:"beforeRightClick", name:"beforeRightClick : null,", iconSkin:"core", showAPI:true}, + {id:3014, pId:30, name:""}, + {id:3015, pId:30, t:"onAsyncError", name:"onAsyncError : null,", iconSkin:"core", showAPI:true}, + {id:3016, pId:30, t:"onAsyncSuccess", name:"onAsyncSuccess : null,", iconSkin:"core", showAPI:true}, + {id:3017, pId:30, t:"onCheck", name:"onCheck : null,", iconSkin:"check", showAPI:true}, + {id:3018, pId:30, t:"onClick", name:"onClick : null,", iconSkin:"core", showAPI:true}, + {id:3019, pId:30, t:"onCollapse", name:"onCollapse : null,", iconSkin:"core", showAPI:true}, + {id:3019, pId:30, t:"onDblClick", name:"onDblClick : null,", iconSkin:"core", showAPI:true}, + {id:3020, pId:30, t:"onDrag", name:"onDrag : null,", iconSkin:"edit", showAPI:true}, + {id:3021, pId:30, t:"onDrop", name:"onDrop : null,", iconSkin:"edit", showAPI:true}, + {id:3022, pId:30, t:"onExpand", name:"onExpand : null,", iconSkin:"core", showAPI:true}, + {id:3023, pId:30, t:"onMouseDown", name:"onMouseDown : null,", iconSkin:"core", showAPI:true}, + {id:3024, pId:30, t:"onMouseUp", name:"onMouseUp : null,", iconSkin:"core", showAPI:true}, + {id:3025, pId:30, t:"onNodeCreated", name:"onNodeCreated : null,", iconSkin:"core", showAPI:true}, + {id:3026, pId:30, t:"onRemove", name:"onRemove : null,", iconSkin:"edit", showAPI:true}, + {id:3027, pId:30, t:"onRename", name:"onRename : null,", iconSkin:"edit", showAPI:true}, + {id:3028, pId:30, t:"onRightClick", name:"onRightClick : null", iconSkin:"core", showAPI:true}, + {id:31, pId:1, name:"},"}, + {id:32, pId:1, name:""}, + + {id:40, pId:1, t:"check", name:"check : {", open:true}, + {id:405, pId:40, t:"autoCheckTrigger", name:"autoCheckTrigger : false,", iconSkin:"check", showAPI:true}, + {id:401, pId:40, t:"chkboxType", name:"chkboxType : {\"Y\": \"ps\", \"N\": \"ps\"},", iconSkin:"check", showAPI:true}, + {id:402, pId:40, t:"chkStyle", name:"chkStyle : \"checkbox\",", iconSkin:"check", showAPI:true}, + {id:403, pId:40, t:"enable", name:"enable : false,", iconSkin:"check", showAPI:true}, + {id:406, pId:40, t:"nocheckInherit", name:"nocheckInherit : false", iconSkin:"check", showAPI:true}, + {id:407, pId:40, t:"chkDisabledInherit", name:"chkDisabledInherit : false", iconSkin:"check", showAPI:true}, + {id:404, pId:40, t:"radioType", name:"radioType : \"level\"", iconSkin:"check", showAPI:true}, + {id:41, pId:1, name:"},"}, + {id:42, pId:1, name:""}, + + {id:50, pId:1, t:"data", name:"data : {", open:true}, + {id:500, pId:50, t:"keep", name:"keep : {", open:true}, + {id:5001, pId:500, t:"leaf", name:"leaf : false,", iconSkin:"core", showAPI:true}, + {id:5002, pId:500, t:"parent", name:"parent : false", iconSkin:"core", showAPI:true}, + {id:501, pId:50, name:"},"}, + + {id:510, pId:50, t:"key", name:"key : {", open:true}, + {id:5101, pId:510, t:"checked", name:"checked : \"checked\",", iconSkin:"check", showAPI:true}, + {id:5102, pId:510, t:"children", name:"children : \"children\",", iconSkin:"core", showAPI:true}, + {id:5103, pId:510, t:"name", name:"name : \"name\",", iconSkin:"core", showAPI:true}, + {id:5104, pId:510, t:"title", name:"title : \"\"", iconSkin:"core", showAPI:true}, + {id:5105, pId:510, t:"url", name:"url : \"url\"", iconSkin:"core", showAPI:true}, + {id:511, pId:50, name:"},"}, + + {id:520, pId:50, t:"simpleData", name:"simpleData : {", open:true}, + {id:5201, pId:520, t:"enable", name:"enable : false,", iconSkin:"core", showAPI:true}, + {id:5202, pId:520, t:"idKey", name:"idKey : \"id\",", iconSkin:"core", showAPI:true}, + {id:5203, pId:520, t:"pIdKey", name:"pIdKey : \"pId\",", iconSkin:"core", showAPI:true}, + {id:5204, pId:520, t:"rootPId", name:"rootPId : null", iconSkin:"core", showAPI:true}, + {id:521, pId:50, name:"}"}, + {id:51, pId:1, name:"},"}, + {id:52, pId:1, name:""}, + + {id:60, pId:1, t:"edit", name:"edit : {", open:true}, + {id:601, pId:60, t:"drag", name:"drag : {", open:true}, + {id:60111, pId:601, t:"autoExpandTrigger", name:"autoExpandTrigger : true,", iconSkin:"edit", showAPI:true}, + {id:60101, pId:601, t:"isCopy", name:"isCopy : true,", iconSkin:"edit", showAPI:true}, + {id:60102, pId:601, t:"isMove", name:"isMove : true,", iconSkin:"edit", showAPI:true}, + {id:60103, pId:601, t:"prev", name:"prev : true,", iconSkin:"edit", showAPI:true}, + {id:60104, pId:601, t:"next", name:"next : true,", iconSkin:"edit", showAPI:true}, + {id:60105, pId:601, t:"inner", name:"inner : true,", iconSkin:"edit", showAPI:true}, + {id:60107, pId:601, t:"borderMax", name:"borderMax : 10,", iconSkin:"edit", showAPI:true}, + {id:60108, pId:601, t:"borderMin", name:"borderMin : -5,", iconSkin:"edit", showAPI:true}, + {id:60106, pId:601, t:"minMoveSize", name:"minMoveSize : 5,", iconSkin:"edit", showAPI:true}, + {id:60109, pId:601, t:"maxShowNodeNum", name:"maxShowNodeNum : 5,", iconSkin:"edit", showAPI:true}, + {id:60110, pId:601, t:"autoOpenTime", name:"autoOpenTime : 500", iconSkin:"edit", showAPI:true}, + {id:602, pId:60, name:"},"}, + {id:608, pId:60, t:"editNameSelectAll", name:"editNameSelectAll : false,", iconSkin:"edit", showAPI:true}, + {id:603, pId:60, t:"enable", name:"enable : false,", iconSkin:"edit", showAPI:true}, + {id:604, pId:60, t:"removeTitle", name:"removeTitle : \"remove\",", iconSkin:"edit", showAPI:true}, + {id:605, pId:60, t:"renameTitle", name:"renameTitle : \"rename\",", iconSkin:"edit", showAPI:true}, + {id:606, pId:60, t:"showRemoveBtn", name:"showRemoveBtn : true,", iconSkin:"edit", showAPI:true}, + {id:607, pId:60, t:"showRenameBtn", name:"showRenameBtn : true", iconSkin:"edit", showAPI:true}, + {id:61, pId:1, name:"},"}, + {id:62, pId:1, name:""}, + + {id:70, pId:1, t:"view", name:"view : {", open:true}, + {id:7001, pId:70, t:"addDiyDom", name:"addDiyDom : null,", iconSkin:"core", showAPI:true}, + {id:7002, pId:70, t:"addHoverDom", name:"addHoverDom : null,", iconSkin:"edit", showAPI:true}, + {id:7003, pId:70, t:"autoCancelSelected", name:"autoCancelSelected : true,", iconSkin:"core", showAPI:true}, + {id:7004, pId:70, t:"dblClickExpand", name:"dblClickExpand : true,", iconSkin:"core", showAPI:true}, + {id:7005, pId:70, t:"expandSpeed", name:"expandSpeed : \"fast\",", iconSkin:"core", showAPI:true}, + {id:7006, pId:70, t:"fontCss", name:"fontCss : {},", iconSkin:"core", showAPI:true}, + {id:7012, pId:70, t:"nameIsHTML", name:"nameIsHTML : false,", iconSkin:"core", showAPI:true}, + {id:7007, pId:70, t:"removeHoverDom", name:"removeHoverDom : null,", iconSkin:"edit", showAPI:true}, + {id:7008, pId:70, t:"selectedMulti", name:"selectedMulti : true,", iconSkin:"core", showAPI:true}, + {id:7009, pId:70, t:"showIcon", name:"showIcon : true,", iconSkin:"core", showAPI:true}, + {id:7010, pId:70, t:"showLine", name:"showLine : true,", iconSkin:"core", showAPI:true}, + {id:7011, pId:70, t:"showTitle", name:"showTitle : true,", iconSkin:"core", showAPI:true}, + {id:7012, pId:70, t:"txtSelectedEnable", name:"txtSelectedEnable : false", iconSkin:"core", showAPI:true}, + {id:71, pId:1, name:"}"}, + + {id:2, pId:0, name:"}"} + ]; + + var treenode_nodes =[ + {id:1, pId:0, t:"treeNode", name:"treeNode : {", open:true}, + {id:101, pId:1, t:"checked", name:"checked", iconSkin:"check", showAPI:true}, + {id:102, pId:1, t:"children", name:"children", iconSkin:"core", showAPI:true}, + {id:128, pId:1, t:"chkDisabled", name:"chkDisabled", iconSkin:"check", showAPI:true}, + {id:127, pId:1, t:"click", name:"click", iconSkin:"core", showAPI:true}, + {id:103, pId:1, t:"getCheckStatus", name:"getCheckStatus ()", iconSkin:"check", showAPI:true}, + {id:104, pId:1, t:"getNextNode", name:"getNextNode ()", iconSkin:"core", showAPI:true}, + {id:105, pId:1, t:"getParentNode", name:"getParentNode ()", iconSkin:"core", showAPI:true}, + {id:106, pId:1, t:"getPreNode", name:"getPreNode ()", iconSkin:"core", showAPI:true}, + {id:129, pId:1, t:"halfCheck", name:"halfCheck", iconSkin:"check", showAPI:true}, + {id:107, pId:1, t:"icon", name:"icon", iconSkin:"core", showAPI:true}, + {id:108, pId:1, t:"iconClose", name:"iconClose", iconSkin:"core", showAPI:true}, + {id:109, pId:1, t:"iconOpen", name:"iconOpen", iconSkin:"core", showAPI:true}, + {id:110, pId:1, t:"iconSkin", name:"iconSkin", iconSkin:"core", showAPI:true}, + {id:131, pId:1, t:"isHidden", name:"isHidden", iconSkin:"hide", showAPI:true}, + {id:111, pId:1, t:"isParent", name:"isParent", iconSkin:"core", showAPI:true}, + {id:132, pId:1, t:"name", name:"name", iconSkin:"core", showAPI:true}, + {id:112, pId:1, t:"nocheck", name:"nocheck", iconSkin:"check", showAPI:true}, + {id:113, pId:1, t:"open", name:"open", iconSkin:"core", showAPI:true}, + {id:133, pId:1, t:"target", name:"target", iconSkin:"core", showAPI:true}, + {id:134, pId:1, t:"url", name:"url", iconSkin:"core", showAPI:true}, + {id:114, pId:1, t:"diy", name:"*DIY*", iconSkin:"core", showAPI:true}, + {id:115, pId:1, name:""}, + {id:116, pId:1, t:"check_Child_State", name:"[check_Child_State]", iconSkin:"check", showAPI:true}, + {id:117, pId:1, t:"check_Focus", name:"[check_Focus]", iconSkin:"check", showAPI:true}, + {id:118, pId:1, t:"checkedOld", name:"[checkedOld]", iconSkin:"check", showAPI:true}, + {id:119, pId:1, t:"editNameFlag", name:"[editNameFlag]", iconSkin:"edit", showAPI:true}, + {id:120, pId:1, t:"isAjaxing", name:"[isAjaxing]", iconSkin:"core", showAPI:true}, + {id:121, pId:1, t:"isFirstNode", name:"[isFirstNode]", iconSkin:"core", showAPI:true}, + {id:122, pId:1, t:"isHover", name:"[isHover]", iconSkin:"edit", showAPI:true}, + {id:123, pId:1, t:"isLastNode", name:"[isLastNode]", iconSkin:"core", showAPI:true}, + {id:124, pId:1, t:"level", name:"[level]", iconSkin:"core", showAPI:true}, + {id:125, pId:1, t:"parentTId", name:"[parentTId]", iconSkin:"core", showAPI:true}, + {id:126, pId:1, t:"tId", name:"[tId]", iconSkin:"core", showAPI:true}, + {id:130, pId:1, t:"zAsync", name:"[zAsync]", iconSkin:"core", showAPI:true}, + {id:2, pId:0, name:"}"} + ]; + + var function_nodes =[ + {id:1, pId:0, t:"$.fn.zTree", name:"$.fn.zTree : {", open:true}, + {id:11, pId:1, t:"init", name:"init (obj, zSetting, zNodes)", iconSkin:"core", showAPI:true}, + {id:12, pId:1, t:"getZTreeObj", name:"getZTreeObj (treeId)", iconSkin:"core", showAPI:true}, + {id:14, pId:1, t:"destroy", name:"destroy (treeId)", iconSkin:"core", showAPI:true}, + {id:13, pId:1, t:"_z", name:"_z : {tools, view, event, data}", iconSkin:"core", showAPI:true}, + {id:2, pId:0, name:"}"}, + {id:3, pId:0, name:""}, + {id:4, pId:0, t:"zTreeObj", name:"zTreeObj : {", open:true}, + {id:401, pId:4, t:"setting", name:"setting", iconSkin:"core", showAPI:true}, + {id:402, pId:4, t:"addNodes", name:"addNodes (parentNode, newNodes, isSilent)", iconSkin:"core", showAPI:true}, + {id:403, pId:4, t:"cancelEditName", name:"cancelEditName (newName)", iconSkin:"edit", showAPI:true}, + {id:404, pId:4, t:"cancelSelectedNode", name:"cancelSelectedNode (node)", iconSkin:"core", showAPI:true}, + {id:405, pId:4, t:"checkAllNodes", name:"checkAllNodes (checked)", iconSkin:"check", showAPI:true}, + {id:406, pId:4, t:"checkNode", name:"checkNode (node, checked, checkTypeFlag, callbackFlag)", iconSkin:"check", showAPI:true}, + {id:407, pId:4, t:"copyNode", name:"copyNode (targetNode, node, moveType, isSilent)", iconSkin:"edit", showAPI:true}, + {id:436, pId:4, t:"destroy", name:"destroy ()", iconSkin:"core", showAPI:true}, + {id:408, pId:4, t:"editName", name:"editName (node)", iconSkin:"edit", showAPI:true}, + {id:409, pId:4, t:"expandAll", name:"expandAll (expandFlag)", iconSkin:"core", showAPI:true}, + {id:410, pId:4, t:"expandNode", name:"expandNode (node, expandFlag, sonSign, focus, callbackFlag)", iconSkin:"core", showAPI:true}, + {id:411, pId:4, t:"getChangeCheckedNodes", name:"getChangeCheckedNodes ()", iconSkin:"check", showAPI:true}, + {id:412, pId:4, t:"getCheckedNodes", name:"getCheckedNodes (checked)", iconSkin:"check", showAPI:true}, + {id:413, pId:4, t:"getNodeByParam", name:"getNodeByParam (key, value, parentNode)", iconSkin:"core", showAPI:true}, + {id:414, pId:4, t:"getNodeByTId", name:"getNodeByTId (tId)", iconSkin:"core", showAPI:true}, + {id:415, pId:4, t:"getNodeIndex", name:"getNodeIndex (node)", iconSkin:"core", showAPI:true}, + {id:416, pId:4, t:"getNodes", name:"getNodes ()", iconSkin:"core", showAPI:true}, + {id:431, pId:4, t:"getNodesByFilter", name:"getNodesByFilter (filter, isSingle, parentNode, invokeParam)", iconSkin:"core", showAPI:true}, + {id:417, pId:4, t:"getNodesByParam", name:"getNodesByParam (key, value, parentNode)", iconSkin:"core", showAPI:true}, + {id:418, pId:4, t:"getNodesByParamFuzzy", name:"getNodesByParamFuzzy (key, value, parentNode)", iconSkin:"core", showAPI:true}, + {id:419, pId:4, t:"getSelectedNodes", name:"getSelectedNodes ()", iconSkin:"core", showAPI:true}, + {id:432, pId:4, t:"hideNode", name:"hideNode (node)", iconSkin:"hide", showAPI:true}, + {id:433, pId:4, t:"hideNodes", name:"hideNodes (nodes)", iconSkin:"hide", showAPI:true}, + {id:420, pId:4, t:"moveNode", name:"moveNode (targetNode, node, moveType, isSilent)", iconSkin:"edit", showAPI:true}, + {id:421, pId:4, t:"reAsyncChildNodes", name:"reAsyncChildNodes (parentNode, reloadType, isSilent)", iconSkin:"core", showAPI:true}, + {id:422, pId:4, t:"refresh", name:"refresh ()", iconSkin:"core", showAPI:true}, + {id:423, pId:4, t:"removeChildNodes", name:"removeChildNodes (parentNode)", iconSkin:"core", showAPI:true}, + {id:424, pId:4, t:"removeNode", name:"removeNode (node, callbackFlag)", iconSkin:"core", showAPI:true}, + {id:425, pId:4, t:"selectNode", name:"selectNode (node, addFlag)", iconSkin:"core", showAPI:true}, + {id:430, pId:4, t:"setChkDisabled", name:"setChkDisabled (node, disabled, inheritParent, inheritChildren)", iconSkin:"check", showAPI:true}, + {id:426, pId:4, t:"setEditable", name:"setEditable (editable)", iconSkin:"edit", showAPI:true}, + {id:434, pId:4, t:"showNode", name:"showNode (node)", iconSkin:"hide", showAPI:true}, + {id:435, pId:4, t:"showNodes", name:"showNodes (nodes)", iconSkin:"hide", showAPI:true}, + {id:427, pId:4, t:"transformToArray", name:"transformToArray (nodes)", iconSkin:"core", showAPI:true}, + {id:428, pId:4, t:"transformTozTreeNodes", name:"transformTozTreeNodes (simpleNodes)", iconSkin:"core", showAPI:true}, + {id:429, pId:4, t:"updateNode", name:"updateNode (node, checkTypeFlag)", iconSkin:"core", showAPI:true}, + {id:5, pId:0, name:"}"} + ]; + + apiContent.zTree_Setting = $.fn.zTree.init($("#settingTree"), $.fn.zTree._z.tools.clone(setting), setting_nodes); + apiContent.zTree_Node = $.fn.zTree.init($("#treenodeTree"), $.fn.zTree._z.tools.clone(setting), treenode_nodes); + apiContent.zTree_Function = $.fn.zTree.init($("#functionTree"), $.fn.zTree._z.tools.clone(setting), function_nodes); + this.bindEvent(); + + }, + bindEvent: function() { + $(document).bind("keydown", this.listenKeyDown) + this.overlayCloseBtn.bind("click", apiContent.overlayClose); + this.searchResultInput.bind("click", function(e) { + $(this).prev().get(0).focus(); + this.blur(); + }).bind("focus", function(e) { + this.blur(); + }); + this.searchKey.bind("focus", this.focusKey) + .bind("blur", this.blurKey) + .bind("propertychange", this.searchNode) + .bind("input", this.searchNode); + this.searchPrevBtn.bind("click", this.searchPrev); + this.searchNextBtn.bind("click", this.searchNext); + }, + setSameKey: function(value) { + apiContent.searchKey.attr("value", value); + }, + focusKey: function(e) { + if (apiContent.searchKey.hasClass("empty")) { + apiContent.searchKey.removeClass("empty"); + } + }, + blurKey: function(e) { + apiContent.setSameKey(e.target.value); + if (e.target.value === "") { + apiContent.searchKey.addClass("empty"); + } + }, + listenKeyDown: function(e) { + if (e.keyCode=="13" && apiContent.overlayDiv.is(":hidden")) { + apiContent.openAPI(); + } else if (e.keyCode=="37") { + apiContent.searchPrev(); + } else if (e.keyCode=="13" || e.keyCode=="39") { + apiContent.searchNext(); + } + }, + openAPI: function() { + if (apiContent.searchNodes.length > 0) { + var setting_zTree = $.fn.zTree.getZTreeObj("settingTree"), + treenode_zTree = $.fn.zTree.getZTreeObj("treenodeTree"), + function_zTree = $.fn.zTree.getZTreeObj("functionTree"); + if (apiContent.searchNodesCur < 0 || apiContent.searchNodesCur > apiContent.searchNodes.length -1) { + apiContent.searchNodesCur = 0; + } + var node = apiContent.searchNodes[apiContent.searchNodesCur]; + + if (node.tId.indexOf("setting") > -1) { + setting_zTree.selectNode(node); + } else if (node.tId.indexOf("treenode") > -1) { + treenode_zTree.selectNode(node); + } else { + function_zTree.selectNode(node); + } + apiContent.beforeClick(node.tId.substring(0, node.tId.indexOf("_")), node, true); + apiContent.searchCur(); + } + }, + searchNode: function(e) { + var setting_zTree = $.fn.zTree.getZTreeObj("settingTree"), + treenode_zTree = $.fn.zTree.getZTreeObj("treenodeTree"), + function_zTree = $.fn.zTree.getZTreeObj("functionTree"); + if (apiContent.curKey == e.target.value) return; + apiContent.curKey = e.target.value; + var value = $.trim(apiContent.curKey); + apiContent.setSameKey(apiContent.curKey); + if (apiContent.searchKey.hasClass("empty")) { + value = ""; + apiContent.searchResultInput.removeClass("noResult").attr("value",""); + } + if (apiContent.lastValue === value) return; + + apiContent.updateNodes(false); + apiContent.lastValue = value; + if (value === "" || value.length < 2) { + apiContent.searchNodes = []; + apiContent.searchNodesCur = -1; + apiContent.searchCur(true); + return; + } + + var settingNodeList = setting_zTree.getNodesByFilter(apiContent.searchFilter); + var functionNodeList = function_zTree.getNodesByFilter(apiContent.searchFilter); + var treenodeNodeList = treenode_zTree.getNodesByFilter(apiContent.searchFilter); + apiContent.searchNodes = settingNodeList.concat(functionNodeList).concat(treenodeNodeList); + apiContent.searchNodesCur = -1; + apiContent.searchCur(); + apiContent.updateNodes(true); + }, + searchFilter: function(node) { + var value = $.trim(apiContent.searchKey.get(0).value).toLowerCase(); + return (node.showAPI && node.name.toLowerCase().indexOf(value) > -1); + }, + searchPrev: function(e) { + if (apiContent.searchPrevBtn.hasClass("disabled")) return; + apiContent.searchNodesCur--; + if (apiContent.searchNodesCur < 0 || apiContent.searchNodesCur > apiContent.searchNodes.length -1) { + apiContent.searchNodesCur = apiContent.searchNodes.length -1; + } + apiContent.openAPI(); + }, + searchNext: function(e) { + if (apiContent.searchNextBtn.hasClass("disabled")) return; + apiContent.searchNodesCur++; + apiContent.openAPI(); + }, + searchCur: function(init) { + var result = apiContent.searchNodes; + if (init) { + apiContent.searchResultInput.removeClass("noResult").attr("value",""); + } else if (result.length == 0) { + apiContent.searchResultInput.addClass("noResult").attr("value"," [ 0 / 0 ] "); + } else { + apiContent.searchResultInput.removeClass("noResult").attr("value"," [ " + (apiContent.searchNodesCur > -1 ? apiContent.searchNodesCur+1 : "?")+ " / " + result.length + " ] "); + } + if (result.length > 0) { + apiContent.searchPrevBtn.removeClass("disabled"); + apiContent.searchNextBtn.removeClass("disabled"); + } else { + apiContent.searchPrevBtn.addClass("disabled"); + apiContent.searchNextBtn.addClass("disabled"); + } + }, + updateNodes: function(highlight) { + var setting_zTree = $.fn.zTree.getZTreeObj("settingTree"), + treenode_zTree = $.fn.zTree.getZTreeObj("treenodeTree"), + function_zTree = $.fn.zTree.getZTreeObj("functionTree"), + node = null; + for( var i=0, l=apiContent.searchNodes.length; i 0) { + node.highlight = highlight; + if (node.tId.indexOf("setting") > -1) { + setting_zTree.updateNode(node); + } else if (node.tId.indexOf("treenode") > -1) { + treenode_zTree.updateNode(node); + } else { + function_zTree.updateNode(node); + } + } + } + }, + getFontCss: function(treeId, treeNode) { + return (!!treeNode.highlight) ? {color:"#A60000", "font-weight":"bold"} : {color:"#333", "font-weight":"normal"}; + }, + getTitle: function(treeId, node) { + var t = [], n = node; + while (n && !!n.t) { + t.push(n.t); + n = n.getParentNode(); + } + t = t.reverse(); + node.tt = t.join('.'); + return true; + }, + showIcon: function(treeId, node) { + return (!!node.iconSkin); + }, + onNodeCreated: function (e, treeId, node) { + var a = $("#" + node.tId + "_a"); + if (node.showAPI) { + a.attr("rel", "#overlayDiv"); + } else { + a.css({cursor: "default"}); + } + }, + beforeClick: function (treeId, node, noClear) { + if (!node.showAPI) return false; + var o = $("#" + node.tId + "_a"); + if (!!apiContent.apiCache[node.tId]) { + apiContent.tmpDiv.html(apiContent.apiCache[node.tId]); + apiContent.overlayShow(o, (apiContent.lastNode === node)); + } else { + apiContent.overlayAjax(treeId, node); + } + apiContent.lastNode = node; + if (node.tId.indexOf("settingTree")>-1) { + apiContent.settingDiv.removeClass("right").addClass("left"); + apiContent.functionDiv.removeClass("left").addClass("right"); + } else { + apiContent.settingDiv.removeClass("left").addClass("right"); + apiContent.functionDiv.removeClass("right").addClass("left"); + } + + if (!noClear) { + apiContent.clearSelectedNode(); + } + return true; + }, + clearSelectedNode: function() { + apiContent.zTree_Setting.cancelSelectedNode(); + apiContent.zTree_Node.cancelSelectedNode(); + apiContent.zTree_Function.cancelSelectedNode(); + }, + overlayAutoClose: function(e) { + var eId = e.target.id, eRel = e.target.getAttribute("rel"), eClass = e.target.className; + if (eId === "overlayDiv" || eId === "overlayDivArrow" || eClass.indexOf("searchPrev") > -1 || eClass.indexOf("searchNext") > -1 || !!eRel) return; + if (!$(e.target).parents("[rel]").length && !$(e.target).parents("#overlayDiv").length) { + apiContent.overlayClose(); + } + }, + overlayClose: function() { + var o = apiContent.overlayDiv; + o.stop(); + apiContent.clearSelectedNode(); + if (ie) { + o.hide(); + } else { + setTimeout(function() {o.fadeTo("fast", 0, function(){o.hide();})}, 200); + } + $(document).unbind("click", apiContent.overlayAutoClose); + }, + overlayShow: function(target, isSameNode) { + var w = $(window), o = apiContent.overlayDiv, a = apiContent.overlayArrow, + oc = apiContent.overlayContent, c = apiContent.contentBoxDiv, + t = target.offset().top - 30, + cMaxLeft = c.offset().left + c.outerWidth({margin:true}) - o.outerWidth({margin:true}) - 10, + l = Math.min(cMaxLeft, target.offset().left + target.width() + 40), + arrowT = target.offset().top + 16, + wMinTop = 100, footerHeight = 50, onlyFade = false, + wHeight = w.height(), wScrollTop=w.scrollTop(), wMaxTop = wHeight + wScrollTop - footerHeight; + if (!apiContent.overlayMaxTop) { + apiContent.overlayMaxTop = apiContent.contentBoxDiv.offset().top + apiContent.contentBoxDiv.height(); + } + o.stop(); + if (o.css("display") !== "block") { + o.css({top: t, left: l}); + a.css({top:arrowT - t}); + $(document).bind("click", apiContent.overlayAutoClose); + } + if (ie) { + onlyFade = true; + o.show(); + } else { + o.fadeTo("fast", 1); + } + + var h = apiContent.tmpDiv.outerHeight({margin:true}) + apiContent.overlaySearch.outerHeight(); + if ((t + h) > wMaxTop) { + t = wMaxTop - h; + } + if ((t + h) > apiContent.overlayMaxTop) { + t = apiContent.overlayMaxTop - h; + } + t = Math.max(t, wScrollTop, wMinTop); + if ((t + h) > ($("body").height()-footerHeight-20)) { + o.css("padding-bottom", footerHeight + "px"); + } else { + o.css("padding-bottom", "0"); + } + apiContent.overlayDetailDiv.empty(); + apiContent.overlayDetailDiv.append(apiContent.tmpDiv.children()); + if (!onlyFade) { + onlyFade = (isSameNode && t === parseInt(o.css("top").replace("px", ""))); + } + + a.removeClass("reverse"); + if ( (arrowT - t) > (h-55) ) { + a.addClass("reverse"); + arrowT -= 55; + } + + if (onlyFade) { + o.css({top: t, left: l}); + oc.css({height: h}); + a.css({top:arrowT - t}); + } else { + o.animate({top: t, left: l}, {duration: "normal",easing: "swing", complete:null}); + oc.animate({height: h}, {duration: "fast",easing: "swing", complete:null}); + a.animate({top:arrowT - t}, {duration: "normal",easing: "linear", complete:null}); + } + }, + overlayAjax: function(treeId, node) { + var o = $("#" + node.tId + "_a"); + if (node.isAjax) return; + node.isAjax = true; + $.ajax({ + type: "get", + url: "" + lang + "/" + node.tt.replace("$.", "") + ".html", + data: null, + dataType: "text", + success: function(msg) { + if (!apiContent.tmpDiv) { + var tmpDiv = $(document.createElement("div")); + tmpDiv.addClass("baby_overlay_tmp"); + $("body").append(tmpDiv) + apiContent.tmpDiv = $(document.createElement("div")); + apiContent.tmpDiv.addClass("details"); + tmpDiv.append(apiContent.tmpDiv); + + } else { + apiContent.tmpDiv.empty(); + } + apiContent.tmpDiv.html(msg); + apiContent.overlayShow(o, false); + apiContent.apiCache[node.tId] = msg; + node.isAjax = false; + }, + error: function(XMLHttpRequest, textStatus, errorThrown) { + alert(ajaxMsg) + if (apiContent.tmpDiv) apiContent.tmpDiv.empty(); + node.isAjax = false; + } + }); + } +} \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/apiCss/common.css b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/apiCss/common.css new file mode 100644 index 00000000..78f910c7 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/apiCss/common.css @@ -0,0 +1,219 @@ +/* Resets */ +html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, font, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td { + margin: 0;padding: 0;border: 0;outline: 0;font-weight: inherit;font-style: inherit;font-size: 100%;font-family: inherit;vertical-align: baseline;} +:focus {outline: 0;} +body {color: #2f332a;font: 15px/21px Arial, Helvetica, simsun, sans-serif;background: #528036 url(img/background.jpg) no-repeat fixed 0 0;} +p {padding-bottom: 20px;} +ol, ul {list-style: none;} +table {border-collapse: separate;border-spacing: 0;} +caption, th, td {text-align: left;font-weight: normal;} +strong {font-weight: bold;} +em {font-style: italic;} +hr {display: none;} +.font1 {color: white;background-color: #528036;} +.right {float: right;} +.left {float: left;} +.hide {display: none;} +.round {-moz-border-radius: 15px;-webkit-border-radius: 15px;-khtml-border-radius: 15px;border-radius: 15px;} +.clear {clear: both;} +.clearfix {display: block;} +.clearfix:after {content: ".";display: block;clear: both;visibility: hidden;line-height: 0;height: 0;} +html[xmlns] .clearfix {display: block;} +* html .clearfix {height: 1%;} + +/* Link Styles */ +a {color: #528036;} +a:link, a:visited {text-decoration: none;} +a:hover {color: #000;text-decoration: none;} +a:active {text-decoration: none;} + +/* Headings */ +h1, h2, h3, h4, h5, h6 {color: #2f332a;font-weight: bold;font-family: Helvetica, Arial, simsun, sans-serif;padding-bottom: 5px;} +h1 {font-size: 36px;line-height: 44px;} +h2 {font-size: 20px;line-height: 20px;} +h3 {font-size: 14px;line-height: 14px;} +h4 {font-size: 14px;font-weight: normal;line-height: 25px;} + +/* Wraps */ +.header_wrap {position: relative;min-width: 940px;padding: 100px 30px 0 30px;} +.content_wrap {position: relative;min-width: 940px;padding: 0 30px 50px 30px;} +.footer_wrap {bottom: 0;height: 47px;width: 100%;background-color: #1b1b1b;border-top: 1px solid #749e58;} + +/* Header */ +.header {position: relative;width: 940px;margin: 0 auto;height: 160px;border: 1px solid white;background: transparent url(img/header-bg.png) repeat-x 0 -50px;} +.header-text {padding: 40px 25px 15px 120px;font-size: 18px;line-height: 24px;color: #747d67;font-family: Helvetica, sans-serif;} +.header-text img {padding-bottom: 5px;} +.shortcuts {white-space: nowrap;text-align: right;position: absolute;top: -45px;right: 5px;} +.shortcuts.language {top: -85px;right:0px;} +.shortcuts li {display: inline;font-size: 18px;line-height: 28px;font-family: Helvetica, Arial, simsun, sans-serif;padding-bottom: 5px;margin-left: 30px;cursor: pointer;} +.shortcuts li button {cursor: pointer;} +.shortcuts li span {border-bottom: 1px dotted white;} +.shortcuts li span.selected {padding: 2px;background-color: #528036;} +.shortcuts li a {color: #fff;} +.ieSuggest {display:none;font-size: 12px;color: silver;position: absolute;left: 10px;top: 2px;} +.google_plus {position: absolute;right: 10px; top:10px;} +.light-bulb {position: absolute;left: -20px;bottom: -35px;width:116px;height:180px;background-image:url(img/lightbulb.png);background-repeat: no-repeat;} + +/* Content */ +.content {position: relative;width: 940px;margin: 0 auto;} +.nav_section {position: relative;height: 20px;font-family: "Myriad Pro", "Trebuchet MS", sans-serif;font-size: 15px;color: #253;padding: 20px 0;} +.nav_section ul {position: absolute;right: 10px;} +.nav_section ul li {display: inline;line-height: 20px;margin: 0 5px 0 20px;border-bottom: 1px dotted white;} +.nav_section ul li.noline {border-bottom: 0;} +.nav_section ul li a {color: #fff;} +.nav_section ul li a.selected {padding: 2px;background-color: #528036;} +.nav_section ul li.first {border: none;} +.content .title {margin: 50px 30px 20px 70px;} +.content li {margin-bottom: 5px;} +.contentBox {position: relative;overflow: hidden;border: 1px solid white;min-height: 200px;line-height: 25px;background: transparent url(img/contact-bg.png) repeat-x 0 0;} + +.zTreeInfo {display:none;width: 940px;position: absolute;} +.zTreeInfo p {padding-bottom: 50px;} +.zTreeInfo-left {float: left;width: 280px;height:300px;padding: 0 50px 60px 75px;background:url(img/zTreeIntroduction.jpg) no-repeat 30px 30px;} +.zTreeInfo-right {position: relative;float: right;width: 475px;padding: 0 50px 60px 0;} +.zTreeInfo-right li {font-size: 12px;list-style-type: disc;} + +.license {display:none;width: 940px;position: absolute;} + +.donateInfo {display:block;width: 940px;position: absolute;} + +.links {display:none;width: 940px;position: absolute;} +.links .content {float: left;width: 160px;height:200px;padding: 0 10px 10px 2px;text-align: center;} +.links .content.first {margin-left: 30px;} + +.contact {display:none;width: 940px;position: absolute;} +.contact .myhome { position: absolute; top:10px; left:620px; width:300px; height:266px; background: transparent url(img/myhome.gif) scroll no-repeat 0 0;} + +.siteTag {position: absolute;left: -16px;top: 109px;z-index: 10;width: 65px;height: 46px;padding:0;margin:0 10px 0 0; + vertical-align:middle;border:0 none;background: transparent url(img/siteTag.png) scroll no-repeat 0 0;} +.siteTag.tag_zTreeInfo {background-position: 0 0} +.siteTag.tag_license {background-position: 0 -46px} +.siteTag.tag_donate {background-position: 0 -92px} +.siteTag.tag_contact {background-position: 0 -138px} + +.apiContent {width: 940px;} +.apiContent .right {float: right;padding-right: 100px;} +.apiContent .left {float: left;padding-right: 20px;border-right: 1px dotted silver;} +.api_setting {position: relative;margin:20px 0 20px 20px;} +.api_function {position: relative;margin:20px 0 20px 30px;padding-right: 10px;} +.api_content_title {text-align: center;font-weight: bold;} + +.demoContent {width: 940px;} +.demoContent .right {float: right;padding: 20px;width: 600px;} +.demoContent .left {float: left;padding: 20px;} +.demoContent iframe {width:600px;min-height: 530px;} + +.faqContent {width: 940px;} +.faqContent .right {float: right;padding: 20px;width: 600px;} +.faqContent .left {float: left;padding: 20px;} +.faqContent iframe {width:600px;min-height: 300px;} + +.baby_overlay_tmp {position: absolute;top:0; left:-5000px;display:block;visibility: hidden;width:640px;font-size:11px;} +.baby_overlay_tmp .details {padding: 20px;} +.baby_overlay {display:none;position:absolute;z-index:99;left:0; top:0;width:640px;color:#fff;font-size:11px;} +.baby_overlay .content {width:100%; height:100px;overflow: hidden;background: transparent url(img/overlay_bg.png) scroll repeat 0 0;} +.baby_overlay .details {padding:0 20px 20px 20px;} +.baby_overlay .close {background-image:url(img/close.png);position:absolute; right:5px; top:5px;cursor:pointer;height:36px;width:36px;} +.baby_overlay_arrow {background-image:url(img/overlay_arrow.png);background-position:0 0;position:absolute;height:40px;width:40px;left: -40px;} +.baby_overlay_arrow.reverse {background-position:0 -40px;} + +/* Footer */ +.footer {position: relative;min-width: 1000px;font: 14px/24px arial, helvetica, sans-serif;} +.footer ul {position:absolute;left: 0px;border:1px solid #393939;background:#262626;padding:12px 0px;line-height: 18px;display: none;list-style: none;} +.footer ul li a {display:block;padding: 2px 15px;color: #9c9c9c;text-indent: 0;} +.footer ul li a:hover {text-decoration:none;color: #fff;} +.footer-logo {position:absolute;margin: 10px 0 0 30px;width:122px; height:24px;top:0; left:0;background: transparent url(img/footer-logo.png) no-repeat 0 0;} +.footer_mii {position: absolute;right: 558px;top: 8px;z-index: 10;padding: 4px 0;} +.footer_mii a {font-size:10px;color:#649140} +.footer_mii a:hover {color:#B6D76F} +.footer_siteMap {position: absolute;right: 358px;top: 8px;width: 155px;z-index: 10;padding: 4px 0;} +.footer_siteMap .footer_siteMap_header {width:155px;text-indent: -9999px;background: transparent url(img/footer_siteMap.gif) no-repeat 0 0;} +.footer_siteMap ul {top:-202px;width:180px;} +.footer_siteMap:hover ul {left: 0} +.footer_contact {position: absolute;right: 193px;top: 8px;width: 155px;z-index: 10;padding: 4px 0;} +.footer_contact .footer_contact_header {width:155px;text-indent: -9999px;background: transparent url(img/footer_contact.gif) no-repeat 0px 0px;} +.footer_contact ul {top:-113px;width:153px;} +.footer_contact:hover ul {left: 0} +.footer_download {position: absolute;right: 60px;top: 8px;width: 123px;z-index: 10;padding: 4px 0;} +.footer_download .footer_download_header {width:123px;text-indent: -9999px;background: transparent url(img/footer_download.png) no-repeat 0px 0px;} +.footer_download ul {top:-113px;width:140px;} +.footer_download:hover ul {left: 0} + +/* button icon */ +button {vertical-align:middle;border:0 none;background: transparent no-repeat 0 0 scroll;} + +.shortcuts button.ico {width:24px; height:24px;padding:0; margin:0 10px 0 0;background-image:url(img/menuIcon.png)} +.shortcuts button.home {background-position: 0 0} +.shortcuts button.demo {background-position: 0 -24px} +.shortcuts button.api {background-position: 0 -48px} +.shortcuts button.faq {background-position: 0 -72px} +.shortcuts button.donate {background-position: 0 -144px} +.shortcuts button.download {background-position: 0 -96px} +.shortcuts button.face {background-position: 0 -120px} +.shortcuts button.cn {width:48px; height:24px;padding:0; margin:0 10px 0 0;background-image:url(img/chinese.png)} +.shortcuts button.en {width:48px; height:24px;padding:0; margin:0 10px 0 0;background-image:url(img/english.png)} + +.content button.ico {width:24px; height:24px;padding:0; margin:0 10px 0 0;} + +.content button.ico16 {width:16px; height:16px;padding:0; margin:0 5px 0 0;background-image:url("img/apiMenu.png");} +button.z_core {margin-top: -4px;background-position:0 0;} +button.z_check {margin-top: -4px;background-position:0 -16px;} +button.z_edit {margin-top: -4px;background-position:0 -32px;} +button.z_hide {margin-top: -4px;background-position:0 -64px;} +button.z_search {margin-top: -4px;background-position:0 -48px;} +button.searchPrev {margin-top: -4px;background-position:-16px 0;cursor:pointer} +button.searchNext {margin-top: -4px;background-position:-16px -16px;cursor:pointer} +button.searchPrev.disabled {margin-top: -4px;background-position:-16px -32px;cursor:auto} +button.searchNext.disabled {margin-top: -4px;background-position:-16px -48px;cursor:auto} +input.search {margin:0;padding:2px 0; border:0;} +input.searchKey {width:150px;} +input.searchResult {margin-left:-3px;width:65px;text-align:right;background-color:white;color:#707070} +input.searchResult.noResult {background-color:#ff6666;color:black} +.baby_overlay div.overlaySearch {text-align:right;padding-right:50px;padding-top:12px;} + +/* api overlay*/ +.apiDetail .topLine {border-top: 1px dashed #376B29;margin-top: 5px;padding-top: 5px;} +.apiDetail .highlight_red {color:#A60000;} +.apiDetail .highlight_green {color:#A7F43D;} +.apiDetail h1, .apiDetail h2, .apiDetail h3, .apiDetail h4, .apiDetail h5, .apiDetail h6 {color: white;padding: 0;} +.apiDetail h2 {color: #A7F43D;margin: 5px auto;padding: 5px;font-size: 20px;} +.apiDetail h2 span {font-size: 14px;float: right;font-weight: normal;margin: 2px 20px 0 0;vertical-align: bottom;} +.apiDetail h2 span.path {float: left;margin: 2px 0 0 0;vertical-align: bottom;} +.apiDetail h3 {margin: 5px auto;padding: 5px;font-size: 14px;font-weight: normal;} +.apiDetail h3 span.h3_info {margin-left: 20px;font-size: 12px;} +.apiDetail h4 {margin: 0 auto;padding: 0 5px;font-size: 12px;font-weight: normal;line-height: 16px;} +.apiDetail .desc h4 {color: black;} +.apiDetail h4 b{width: 150px;display:inline-block;} +.apiDetail h4 span{width: 230px;display:inline-block;} + +.apiDetail pre, .apiDetail .desc {background: #E8FCD6;color: black;margin: 10px;padding: 10px;display: block;} +.apiDetail pre {word-wrap: break-word;} +.apiDetail p{margin-left: 5px;padding: 0;} +.apiDetail .longdesc {margin-top: 5px;} +.apiDetail .longdesc p{font-size: 12px;line-height:1.5;margin:3px 0;} +.apiDetail .longdesc b{font-size: 14px;} +.apiDetail table {border-collapse:collapse;} +.apiDetail table td {border:1px solid silver;text-align: center;vertical-align: middle;} +.apiDetail table thead td {font-weight: bold} + +.apiDetail button {width:16px; height:16px; vertical-align:middle; border:0 none; cursor: pointer; + background-color:transparent; background-repeat:no-repeat; background-attachment: scroll; + background-image:url("zTreeStyle/img/zTreeStandard.png");} + +.apiDetail button.chk {width:13px; height:13px; margin:0 3px 2px 0; cursor: auto} +.apiDetail button.chk.checkbox_false_full {background-position:0 0} +.apiDetail button.chk.checkbox_false_full_focus {background-position:0 -14px} +.apiDetail button.chk.checkbox_false_part {background-position:0 -28px} +.apiDetail button.chk.checkbox_false_part_focus {background-position:0 -42px} +.apiDetail button.chk.checkbox_true_full {background-position:-14px 0} +.apiDetail button.chk.checkbox_true_full_focus {background-position:-14px -14px} +.apiDetail button.chk.checkbox_true_part {background-position:-14px -28px} +.apiDetail button.chk.checkbox_true_part_focus {background-position:-14px -42px} +.apiDetail button.chk.radio_false_full {background-position:-28px 0} +.apiDetail button.chk.radio_false_full_focus {background-position:-28px -14px} +.apiDetail button.chk.radio_false_part {background-position:-28px -28px} +.apiDetail button.chk.radio_false_part_focus {background-position:-28px -42px} +.apiDetail button.chk.radio_true_full {background-position:-42px 0} +.apiDetail button.chk.radio_true_full_focus {background-position:-42px -14px} +.apiDetail button.chk.radio_true_part {background-position:-42px -28px} +.apiDetail button.chk.radio_true_part_focus {background-position:-42px -42px} \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/apiCss/common_ie6.css b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/apiCss/common_ie6.css new file mode 100644 index 00000000..aacaf59c --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/apiCss/common_ie6.css @@ -0,0 +1,23 @@ +* html{ +/* background-image:url(about:blank);*/ + background-attachment:fixed; +} +html pre {word-wrap: break-word} +.header {background-image: none;background-color: #F0F6E4;} + +.ieSuggest {display:block;} +.shortcuts button.cn {filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='apiCss/img/chinese.png');background-image: none;} +.shortcuts button.en {filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='apiCss/img/english.png');background-image: none;} + +.light-bulb {filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='apiCss/img/lightbulb.png');background-image: none;} +.contentBox {background-image: none;background-color: #F0F6E4;} +.zTreeInfo {background-image: none;background-color: #F0F6E4;} + +.content button.ico16 {*background-image:url("img/apiMenu.gif")} +.siteTag {background-image: none;} +.apiContent .right {float: right;padding-right: 50px;} + +div.baby_overlay {background-color: #3C6E31;background-image:none;color:#fff;} +div.baby_overlay .close {filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='apiCss/img/overlay_close_IE6.gif');background-image: none;} +.baby_overlay_arrow {background-image:url(img/overlay_arrow.gif);} +.apiDetail button {background-image:url("img/zTreeStandard.gif")} \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/apiCss/img/apiMenu.gif b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/apiCss/img/apiMenu.gif new file mode 100644 index 0000000000000000000000000000000000000000..066fc8e4d323888e61319185945c31dad3643ec5 GIT binary patch literal 1736 zcmV;(1~>UfNk%w1VITld0Oo%HsP~MC)ocCg%Q&6Y`TF|rmtyCLP58@DjphG`-2bGc zq>=G#`r$lAspt5~BD1rzuGZ}B!UXri8Pn6#Tevc!=Kq|Va^m9R|EYBLycB)iSXQ|7 z_PjZ%sj2kz^q=U2be^`mySwe}?U&pB=Ai<{#>Q&L{`98>?$iYJwGC;sNUg1{>$wB_ z-l>kb&xX$VX}9C_)|Bz-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0=29oEC_Gp&1XUw=Z%-TASKXyuIurc@B|V< z=zxSDW6-xC?z)@HdjdMt*XC@%|x06Mdx*FHnOJ21vjGs^JCd*;~mTu(Uj|X=@P7 z!F3KXhhT{fNf$Vb1~)i?I#A7OAY{xLV!#Iykbn;{Ae7Z&K!OO^U6eAYMh=L-vQ4D0n0tu{Egdx~*2t~xB815Lxs!f3fLx?~G zia1CyL|_Okn1a>nK!QNBpoot&kl&TS63XO~a3pUAuLy}-63LkWg2dF@TP6|?! eB%s35_LQaqe8GfYC;*&n_=h@44No8p1OPkbFgk7k literal 0 HcmV?d00001 diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/apiCss/img/apiMenu.png b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/apiCss/img/apiMenu.png new file mode 100644 index 0000000000000000000000000000000000000000..9acec5057306867f42393ce18d9166d13d152633 GIT binary patch literal 3954 zcmV-&4~_7NP)6iGxuRCwClS`Cm?)s;T)r~i9?7*L!a zTt-nR2(?3vC}?&^sS0j3Dn-gfjg?|a6dVMKs%$`G!q!^2h*YXbaKtghiEI2fWuamM zCK5InAZQI6#Q+^n(Mu7L8KK(cOorx+72SUj`R$YnrCd@{yX-W>EHlN&kQ^O$MbW= ztLlFQ0U@TJNUXLLeLr<^As#Ff7mZZ0(y|rsJS#X}=$LU`E7UYz15h)~ZcPofrcR$| zJ^R7_?Ure*bQCH7=uj(O+t4XAUfu$zn>ChOub=GS4?-CW&|@0rs%Ujhd()C-xB>$} zO2ghq9&#BMe`hPyTs;?#?|QC78cB(~z&}++ctn_4(=OCcYq4YrNCB{{FgcnJqG?2= zoZ&T=ZFV6Lu!YMhfb(Zz@3u{__>FTe?ftKBvp(V>UdL6%!hydux=xrmeW|5t_+14n zlab8xshxa6^y>~eWt3RHn0@wE~Kv_)%je&aopWg8X5sc2LUwMucD@S-etx^ zygf&LeK)rJfVI=A0^B@d#*`f#2A!34OplK+y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u*fCWINv0GK}WS?E}N`Tn=I3AY<{9enva1tcFHkks zUeGTFEAZgXr-(&P?EyJp&VwK*HusmQ!cH(Uz(O`q2C;0-W1HB!_Bnm)rBiW%a1Io=P zd(r*xX#gR3^S!MH5$h8C!82Del4^}aX8IMUEm<4yP4$>pGD%>WEPZ|kE4s1h1MC>24f<9QaTTp z7~l$^(JC?l6GJpMC1 z9vCATkaRy_#C?v@dIxIcXnSOUWdbNI0;}pSu&|C)^!TefWdUwNRVnb8?-v|`C25Sb zbb0AGa0x4L{{J@8NQ#pMaQ$+Yzb}vxs+oKTUnoar0r;c!y?uE4Kb69VAAmw0ptCQ4 zJLQz`ivG+>DV&Zhx;N&bAaNzh|ft9OAFnK|I%0ce5(tj=Hd)ek^F2&+K4 z2dIZ>Nm&Kz@fC>si8Wb79e`)^#QjIrY1@3W#O`IP0kI26oDBE^ML3GUjRSz=CHaGa F{|`9`0Ez$r literal 0 HcmV?d00001 diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/apiCss/img/chinese.png b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/apiCss/img/chinese.png new file mode 100644 index 0000000000000000000000000000000000000000..d3b57fc12cb718404a1116cf5f1e414bd10b2ce4 GIT binary patch literal 1556 zcmV+v2J88WP)FI31f|h1uY`iQsBig6kjtZyfhc|Fr{tUTOfw?;%9Vo>>VSM{r_1VHZKq_ZGrM zf?)(ZW^te*I9Qd6U^I<31NgJ3%7!nrU;lh0X4%}8ElX!SA#g@c`Y>cYjIV7w7mAyt zsSoO9&KP_c|BmcFllx}EbG#mbFnW6TI4|k9<03d9++EjJC1!yfuu->=kj+s#Ot>jq z7f49!b#|)?PpwO)UZamluzj@R+ZtZ;5U(pC3=zT!1sp7)#Q3_tv%ginJ*U(}w;KqZ z2qJ=^2*gQmMLd=8K4CXuhnHy0<21vVA~pi;K0+#?YNBS6`|aGL-@|xImr2Xn(8$(p zk!34|$H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WUI}| zm>+>RcrC2YMnJCN9bp2?V_oI6^q-W~MZ|ZhS2iT2Mmg_9g}X)pCnp~g7tgQ;ClyMn zCDj_{@G8w+u9P!)g!|aN*o?!By@x|f$t}tkyn{HCg))bJZd4K&C6>y#|4*_w@`o$X z#AHYxnY^N}cGmh;CI6bc5PKkD4PJmUd)9ZhC-^?~E8#8eIeNj>SRW~9{}5gk9=N3yFsnZMBylB1vbFGqYbM*j0t^6^0%#C5cunyD O0000m literal 0 HcmV?d00001 diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/apiCss/img/header-bg.png b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/apiCss/img/header-bg.png new file mode 100644 index 0000000000000000000000000000000000000000..a2baacf2a8a302de4575a88a04e98f98546f30a3 GIT binary patch literal 148 zcmeAS@N?(olHy`uVBq!ia0vp^j6kHr!3Jb81>C#}q$EpRBT9nv(@M${i&7aJQ}UBi z6+Ckj(^G>|6H_V+Po~-c6`6UuIEGZ*O8Upo;=|+M5dFwrQz)hDVvF}it6Q227j0`a uZ#d?)VsT%R-qEBVs&1WuOpXjJ5)8Zg+{AoBQ=S4%VDNPHb6Mw<&;$UeKrO}q literal 0 HcmV?d00001 diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/apiCss/img/lightbulb.png b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/apiCss/img/lightbulb.png new file mode 100644 index 0000000000000000000000000000000000000000..c99357a35221d96943f4bf05354611e4c398ac9a GIT binary patch literal 27355 zcmV(@K-RyBP)aH zKnAsJOX_ZQt9@6OudJ%9G|$|7kK6zM&$;j2_cE(m?F*Q!KAkV$yYHIwpa1{A-yZJ$ zN7+UA!*_Vikwji7u7@z~@%(HJVc=Vkb<;JpMU zO!`1XtDGL>rf)i?T5lJpPtGxIW-8;_<%y#mGwiEy9MRINR@Y>E5A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ZX|Rb0Av->zb{ zMxdKHu3oP)3k$#2As7o^5(;$|m+xe^n&*Q%aPwR7=c=R(i-7BSvJ57!MOsPoK|xK6cFA?S47; zocH1Fd474W*FHP?$kjx4OAqLliR33U5<9DAVUFNqtSMYwAmg4=t|9I$FzyNEI^xy`;~r6Ngm}s*3mg>Obf{-Ei;OD+R9rjs z`oI>%t;E1_OA6wm9dOJ8>S5auxKodaCOJ6RL$+EuU$|Pwl#>h`AM~zzhT8i<@8krI zkIEN4g&yRny!*1jV{`nnLDujSmHp0BF@lSvO0FMmM)gXg(!2kdN07*qo IM6N<$f-P!#uK)l5 literal 0 HcmV?d00001 diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/apiCss/img/overlay_bg.png b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/apiCss/img/overlay_bg.png new file mode 100644 index 0000000000000000000000000000000000000000..5f81ee69d530a8760630eccb3771f5f15091e9dd GIT binary patch literal 109 zcmeAS@N?(olHy`uVBq!ia0vp^j3CUx1|;Q0k8}bl$r9IylHmNblJdl&R0hYC{G?O` z&)mfH)S%SFl*+=BsWw1G{GKk3Ar-fhCU8Cd%_5M%z*NOp@bwaR8&HbD)78&qol`;+ E07Hcx5C8xG literal 0 HcmV?d00001 diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/apiCss/img/overlay_close_IE6.gif b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/apiCss/img/overlay_close_IE6.gif new file mode 100644 index 0000000000000000000000000000000000000000..42cb8d83498f922fb6005864738917cab2eeb66c GIT binary patch literal 441 zcmZ?wbhEHbRAEqIxT?+&-I`ZEt9$DDCE?B4MblbJXLMA}?wzo9@r1Ptr9uT{BV~7; zKKl0Khob3ir87DM>Qf4)Hp@pT+<*Qwx;6jXk8jP3rkZEFz5o1CAxe45`Xwp7l^O{K znGAZ{f|Ey^VUr^6Rj+h5i6@M@-0!}6jzq46i^nCP-(9%lg(x-XUS%5t0~SZXPBij zS9$(|4xg?i*-F`b71I{gElF0aTG+X`f-RY2_ZshYW%AkF*@w!v?%mFqt)L>D&3<;z z+I_s)Y~{??R!>(EQf91tz#};I=FxpzQcWuSa*wus`f={o_8(i`dX?PcNcpVqDPhcU bT7db*(nMz+0cEc_9vc@O?RIZsV6X-NX7Qsr literal 0 HcmV?d00001 diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/apiCss/img/zTreeStandard.gif b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/apiCss/img/zTreeStandard.gif new file mode 100644 index 0000000000000000000000000000000000000000..3f69a5b1d370c02c65395f6a91f46b94cfeae7d9 GIT binary patch literal 6851 zcmaJ>XH-*Lw>{|uP=XX`LWnd0A)$8@5}FhvqSC}rLN5_Ql@>tC1vFA5ieNyHDk4o3 z@P;M`h^R;t6$KHL60w7thxgrk-}mE`7uT;{p65f8~<-xuB*nE3Q*|kBkA^5$4_PpugZQa^mMX#kZ4$mm}C8x6*p1d7B@n>CC$D*y`n}@bPRr@7 zM=@(3SL^HQ78laSl%2aY5dOK9~b$Xp08SQH{38zn3*J=)WNJAX5zC_Xhg6CNV6Wiq_T8-tUdY;m~?|8aN$YJw2Q{S__NQ z(!_3mdi!xYM!I@NTKed}8)jQA+{f3*k!1O|*7nR4<4>p4j5IZ)qoXyVwKc-R{WNig zhK9dwXld==M(mG>4W)a=><^9D`;P?@HNrbQfJP4p3q}97=;;*}NjJr8d-}g2gwPxV z{QT(={~8aC(D*AT4eziJ%@|LbCQbvZ8U7dMcYOb_?Ct+MBP8TsbOhaz`hU*Jt_n@%x^(z54AZH9R1S z>SGxm7J~lk$czI1Lp?HbTbh8w8t9X72D%nHBnuo4XNV)|6A4&zlDWRVj-eqA^Ec7w zKSKVCsAFz!z8#{rj{e_73j+&tEY46%Pus%4kVwL4Zo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I@}7IYyBnD2AH-%N<`bUD_=c9^3gydr$8T40qZeP z*xYC_6Y9p^<3<^*uVu)#_Gol88JRp*6=*iQ+^jc@G_Y+}JJDvtgze_Qbe@BDQ$WgC zVLj6kBtWbPhP$%&xKiL1?yzIPPIIxe$41vJr`jD%`S-9T#ZhXSO_Dk#kYg0!lQ+zb zIdWeeO4$$fxDImz#FDTXbpMPPgX%-iCkn~HrSqCMcPZ=Uf;n3V{YKbMHh3p6q0RwQ zx+Zrv!t}|1+);EB65!qByqU<^!*Zqos#=q(8yJ;j;LM2u+8CUx4o!MKy%Plw0T2^= zPbvxIKALLDEtxrI`ZVt+2F`sPX#xndVd~6XcHBu<6bOR1T&ZrcES}-y(gbNwc#mgP zC_vEzK9MnaYsfS8F}O%05?RAko?v#bPFONWO+Ui>bHS>P!U1f{!P)7O>m$XS+u8U0 zFP(lK+64-u$%b*BzqqdHo(zT4>ZjC>Ekvs)@lbWQxG<@0V2Pf2NHEVC178 zZ2Da~=O_1eAGA>wH&I1m5rPzuk?k4j_hlFNRWeF@ARz@w$Zl zUJU?0|MY&(=itI*Na9&oq6S;(_)21FX?x;xBJ2kDj#KtsK4~r#GuNw>kqJK7jNx`c z8=tS_c7ct@JXZT5Xj+R68Y~F(#{r>nSOCERFz9!49&KG+Eucooj3^7jg$j)k(Bh!TLM8)V%ObO_B&{Iz}v^&BoY+bl|V;y_eKkO_%E@7K3taSD+hq`~DV(06O= g!&@KEmqKB*g+eT3(qY|h{T0>YvokM-0RYDT1MqRVDF6Tf literal 0 HcmV?d00001 diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/apiCss/img/zTreeStandard.png b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/apiCss/img/zTreeStandard.png new file mode 100644 index 0000000000000000000000000000000000000000..33c9e8441e33300cbf10b56b065a4b8fcc997841 GIT binary patch literal 12573 zcmaKTbzIZm+c$`SNC`-HOS4g9bc1wv52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(ch.contentWindow||ch.contentDocument).document,ci.write((c.compatMode==="CSS1Compat"?"":"")+""),ci.close();d=ci.createElement(a),ci.body.appendChild(d),e=f.css(d,"display"),b.removeChild(ch)}cg[a]=e}return cg[a]}function cr(a,b){var c={};f.each(cm.concat.apply([],cm.slice(0,b)),function(){c[this]=a});return c}function cq(){cn=b}function cp(){setTimeout(cq,0);return cn=f.now()}function cf(){try{return new a.ActiveXObject("Microsoft.XMLHTTP")}catch(b){}}function ce(){try{return new a.XMLHttpRequest}catch(b){}}function b$(a,c){a.dataFilter&&(c=a.dataFilter(c,a.dataType));var d=a.dataTypes,e={},g,h,i=d.length,j,k=d[0],l,m,n,o,p;for(g=1;g0){c!=="border"&&f.each(e,function(){c||(d-=parseFloat(f.css(a,"padding"+this))||0),c==="margin"?d+=parseFloat(f.css(a,c+this))||0:d-=parseFloat(f.css(a,"border"+this+"Width"))||0});return d+"px"}d=bx(a,b,b);if(d<0||d==null)d=a.style[b]||0;d=parseFloat(d)||0,c&&f.each(e,function(){d+=parseFloat(f.css(a,"padding"+this))||0,c!=="padding"&&(d+=parseFloat(f.css(a,"border"+this+"Width"))||0),c==="margin"&&(d+=parseFloat(f.css(a,c+this))||0)});return d+"px"}function bm(a,b){b.src?f.ajax({url:b.src,async:!1,dataType:"script"}):f.globalEval((b.text||b.textContent||b.innerHTML||"").replace(be,"/*$0*/")),b.parentNode&&b.parentNode.removeChild(b)}function bl(a){f.nodeName(a,"input")?bk(a):"getElementsByTagName"in a&&f.grep(a.getElementsByTagName("input"),bk)}function bk(a){if(a.type==="checkbox"||a.type==="radio")a.defaultChecked=a.checked}function bj(a){return"getElementsByTagName"in a?a.getElementsByTagName("*"):"querySelectorAll"in a?a.querySelectorAll("*"):[]}function bi(a,b){var c;if(b.nodeType===1){b.clearAttributes&&b.clearAttributes(),b.mergeAttributes&&b.mergeAttributes(a),c=b.nodeName.toLowerCase();if(c==="object")b.outerHTML=a.outerHTML;else if(c!=="input"||a.type!=="checkbox"&&a.type!=="radio"){if(c==="option")b.selected=a.defaultSelected;else if(c==="input"||c==="textarea")b.defaultValue=a.defaultValue}else a.checked&&(b.defaultChecked=b.checked=a.checked),b.value!==a.value&&(b.value=a.value);b.removeAttribute(f.expando)}}function bh(a,b){if(b.nodeType===1&&!!f.hasData(a)){var c=f.expando,d=f.data(a),e=f.data(b,d);if(d=d[c]){var g=d.events;e=e[c]=f.extend({},d);if(g){delete e.handle,e.events={};for(var h in g)for(var i=0,j=g[h].length;i=0===c})}function V(a){return!a||!a.parentNode||a.parentNode.nodeType===11}function N(a,b){return(a&&a!=="*"?a+".":"")+b.replace(z,"`").replace(A,"&")}function M(a){var b,c,d,e,g,h,i,j,k,l,m,n,o,p=[],q=[],r=f._data(this,"events");if(!(a.liveFired===this||!r||!r.live||a.target.disabled||a.button&&a.type==="click")){a.namespace&&(n=new RegExp("(^|\\.)"+a.namespace.split(".").join("\\.(?:.*\\.)?")+"(\\.|$)")),a.liveFired=this;var s=r.live.slice(0);for(i=0;ic)break;a.currentTarget=e.elem,a.data=e.handleObj.data,a.handleObj=e.handleObj,o=e.handleObj.origHandler.apply(e.elem,arguments);if(o===!1||a.isPropagationStopped()){c=e.level,o===!1&&(b=!1);if(a.isImmediatePropagationStopped())break}}return b}}function K(a,c,d){var e=f.extend({},d[0]);e.type=a,e.originalEvent={},e.liveFired=b,f.event.handle.call(c,e),e.isDefaultPrevented()&&d[0].preventDefault()}function E(){return!0}function D(){return!1}function m(a,c,d){var e=c+"defer",g=c+"queue",h=c+"mark",i=f.data(a,e,b,!0);i&&(d==="queue"||!f.data(a,g,b,!0))&&(d==="mark"||!f.data(a,h,b,!0))&&setTimeout(function(){!f.data(a,g,b,!0)&&!f.data(a,h,b,!0)&&(f.removeData(a,e,!0),i.resolve())},0)}function l(a){for(var b in a)if(b!=="toJSON")return!1;return!0}function k(a,c,d){if(d===b&&a.nodeType===1){var e="data-"+c.replace(j,"$1-$2").toLowerCase();d=a.getAttribute(e);if(typeof d=="string"){try{d=d==="true"?!0:d==="false"?!1:d==="null"?null:f.isNaN(d)?i.test(d)?f.parseJSON(d):d:parseFloat(d)}catch(g){}f.data(a,c,d)}else d=b}return d}var c=a.document,d=a.navigator,e=a.location,f=function(){function J(){if(!e.isReady){try{c.documentElement.doScroll("left")}catch(a){setTimeout(J,1);return}e.ready()}}var e=function(a,b){return new e.fn.init(a,b,h)},f=a.jQuery,g=a.$,h,i=/^(?:[^<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,j=/\S/,k=/^\s+/,l=/\s+$/,m=/\d/,n=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,o=/^[\],:{}\s]*$/,p=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,q=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,r=/(?:^|:|,)(?:\s*\[)+/g,s=/(webkit)[ \/]([\w.]+)/,t=/(opera)(?:.*version)?[ \/]([\w.]+)/,u=/(msie) ([\w.]+)/,v=/(mozilla)(?:.*? rv:([\w.]+))?/,w=/-([a-z])/ig,x=function(a,b){return b.toUpperCase()},y=d.userAgent,z,A,B,C=Object.prototype.toString,D=Object.prototype.hasOwnProperty,E=Array.prototype.push,F=Array.prototype.slice,G=String.prototype.trim,H=Array.prototype.indexOf,I={};e.fn=e.prototype={constructor:e,init:function(a,d,f){var g,h,j,k;if(!a)return this;if(a.nodeType){this.context=this[0]=a,this.length=1;return this}if(a==="body"&&!d&&c.body){this.context=c,this[0]=c.body,this.selector=a,this.length=1;return this}if(typeof a=="string"){a.charAt(0)!=="<"||a.charAt(a.length-1)!==">"||a.length<3?g=i.exec(a):g=[null,a,null];if(g&&(g[1]||!d)){if(g[1]){d=d instanceof e?d[0]:d,k=d?d.ownerDocument||d:c,j=n.exec(a),j?e.isPlainObject(d)?(a=[c.createElement(j[1])],e.fn.attr.call(a,d,!0)):a=[k.createElement(j[1])]:(j=e.buildFragment([g[1]],[k]),a=(j.cacheable?e.clone(j.fragment):j.fragment).childNodes);return e.merge(this,a)}h=c.getElementById(g[2]);if(h&&h.parentNode){if(h.id!==g[2])return f.find(a);this.length=1,this[0]=h}this.context=c,this.selector=a;return this}return!d||d.jquery?(d||f).find(a):this.constructor(d).find(a)}if(e.isFunction(a))return f.ready(a);a.selector!==b&&(this.selector=a.selector,this.context=a.context);return e.makeArray(a,this)},selector:"",jquery:"1.6.2",length:0,size:function(){return this.length},toArray:function(){return F.call(this,0)},get:function(a){return a==null?this.toArray():a<0?this[this.length+a]:this[a]},pushStack:function(a,b,c){var d=this.constructor();e.isArray(a)?E.apply(d,a):e.merge(d,a),d.prevObject=this,d.context=this.context,b==="find"?d.selector=this.selector+(this.selector?" ":"")+c:b&&(d.selector=this.selector+"."+b+"("+c+")");return d},each:function(a,b){return e.each(this,a,b)},ready:function(a){e.bindReady(),A.done(a);return this},eq:function(a){return a===-1?this.slice(a):this.slice(a,+a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(F.apply(this,arguments),"slice",F.call(arguments).join(","))},map:function(a){return this.pushStack(e.map(this,function(b,c){return a.call(b,c,b)}))},end:function(){return this.prevObject||this.constructor(null)},push:E,sort:[].sort,splice:[].splice},e.fn.init.prototype=e.fn,e.extend=e.fn.extend=function(){var a,c,d,f,g,h,i=arguments[0]||{},j=1,k=arguments.length,l=!1;typeof i=="boolean"&&(l=i,i=arguments[1]||{},j=2),typeof i!="object"&&!e.isFunction(i)&&(i={}),k===j&&(i=this,--j);for(;j0)return;A.resolveWith(c,[e]),e.fn.trigger&&e(c).trigger("ready").unbind("ready")}},bindReady:function(){if(!A){A=e._Deferred();if(c.readyState==="complete")return setTimeout(e.ready,1);if(c.addEventListener)c.addEventListener("DOMContentLoaded",B,!1),a.addEventListener("load",e.ready,!1);else if(c.attachEvent){c.attachEvent("onreadystatechange",B),a.attachEvent("onload",e.ready);var b=!1;try{b=a.frameElement==null}catch(d){}c.documentElement.doScroll&&b&&J()}}},isFunction:function(a){return e.type(a)==="function"},isArray:Array.isArray||function(a){return e.type(a)==="array"},isWindow:function(a){return a&&typeof a=="object"&&"setInterval"in a},isNaN:function(a){return a==null||!m.test(a)||isNaN(a)},type:function(a){return a==null?String(a):I[C.call(a)]||"object"},isPlainObject:function(a){if(!a||e.type(a)!=="object"||a.nodeType||e.isWindow(a))return!1;if(a.constructor&&!D.call(a,"constructor")&&!D.call(a.constructor.prototype,"isPrototypeOf"))return!1;var c;for(c in a);return c===b||D.call(a,c)},isEmptyObject:function(a){for(var b in a)return!1;return!0},error:function(a){throw a},parseJSON:function(b){if(typeof b!="string"||!b)return null;b=e.trim(b);if(a.JSON&&a.JSON.parse)return a.JSON.parse(b);if(o.test(b.replace(p,"@").replace(q,"]").replace(r,"")))return(new Function("return "+b))();e.error("Invalid JSON: "+b)},parseXML:function(b,c,d){a.DOMParser?(d=new DOMParser,c=d.parseFromString(b,"text/xml")):(c=new ActiveXObject("Microsoft.XMLDOM"),c.async="false",c.loadXML(b)),d=c.documentElement,(!d||!d.nodeName||d.nodeName==="parsererror")&&e.error("Invalid XML: "+b);return c},noop:function(){},globalEval:function(b){b&&j.test(b)&&(a.execScript||function(b){a.eval.call(a,b)})(b)},camelCase:function(a){return a.replace(w,x)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()===b.toUpperCase()},each:function(a,c,d){var f,g=0,h=a.length,i=h===b||e.isFunction(a);if(d){if(i){for(f in a)if(c.apply(a[f],d)===!1)break}else for(;g0&&a[0]&&a[j-1]||j===0||e.isArray(a));if(k)for(;i1?h.call(arguments,0):c,--e||g.resolveWith(g,h.call(b,0))}}var b=arguments,c=0,d=b.length,e=d,g=d<=1&&a&&f.isFunction(a.promise)?a:f.Deferred();if(d>1){for(;c
              a",d=a.getElementsByTagName("*"),e=a.getElementsByTagName("a")[0];if(!d||!d.length||!e)return{};g=c.createElement("select"),h=g.appendChild(c.createElement("option")),i=a.getElementsByTagName("input")[0],k={leadingWhitespace:a.firstChild.nodeType===3,tbody:!a.getElementsByTagName("tbody").length,htmlSerialize:!!a.getElementsByTagName("link").length,style:/top/.test(e.getAttribute("style")),hrefNormalized:e.getAttribute("href")==="/a",opacity:/^0.55$/.test(e.style.opacity),cssFloat:!!e.style.cssFloat,checkOn:i.value==="on",optSelected:h.selected,getSetAttribute:a.className!=="t",submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0},i.checked=!0,k.noCloneChecked=i.cloneNode(!0).checked,g.disabled=!0,k.optDisabled=!h.disabled;try{delete a.test}catch(v){k.deleteExpando=!1}!a.addEventListener&&a.attachEvent&&a.fireEvent&&(a.attachEvent("onclick",function(){k.noCloneEvent=!1}),a.cloneNode(!0).fireEvent("onclick")),i=c.createElement("input"),i.value="t",i.setAttribute("type","radio"),k.radioValue=i.value==="t",i.setAttribute("checked","checked"),a.appendChild(i),l=c.createDocumentFragment(),l.appendChild(a.firstChild),k.checkClone=l.cloneNode(!0).cloneNode(!0).lastChild.checked,a.innerHTML="",a.style.width=a.style.paddingLeft="1px",m=c.getElementsByTagName("body")[0],o=c.createElement(m?"div":"body"),p={visibility:"hidden",width:0,height:0,border:0,margin:0},m&&f.extend(p,{position:"absolute",left:-1e3,top:-1e3});for(t in p)o.style[t]=p[t];o.appendChild(a),n=m||b,n.insertBefore(o,n.firstChild),k.appendChecked=i.checked,k.boxModel=a.offsetWidth===2,"zoom"in a.style&&(a.style.display="inline",a.style.zoom=1,k.inlineBlockNeedsLayout=a.offsetWidth===2,a.style.display="",a.innerHTML="
              ",k.shrinkWrapBlocks=a.offsetWidth!==2),a.innerHTML="
              t
              ",q=a.getElementsByTagName("td"),u=q[0].offsetHeight===0,q[0].style.display="",q[1].style.display="none",k.reliableHiddenOffsets=u&&q[0].offsetHeight===0,a.innerHTML="",c.defaultView&&c.defaultView.getComputedStyle&&(j=c.createElement("div"),j.style.width="0",j.style.marginRight="0",a.appendChild(j),k.reliableMarginRight=(parseInt((c.defaultView.getComputedStyle(j,null)||{marginRight:0}).marginRight,10)||0)===0),o.innerHTML="",n.removeChild(o);if(a.attachEvent)for(t in{submit:1,change:1,focusin:1})s="on"+t,u=s in a,u||(a.setAttribute(s,"return;"),u=typeof a[s]=="function"),k[t+"Bubbles"]=u;o=l=g=h=m=j=a=i=null;return k}(),f.boxModel=f.support.boxModel;var i=/^(?:\{.*\}|\[.*\])$/,j=/([a-z])([A-Z])/g;f.extend({cache:{},uuid:0,expando:"jQuery"+(f.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(a){a=a.nodeType?f.cache[a[f.expando]]:a[f.expando];return!!a&&!l(a)},data:function(a,c,d,e){if(!!f.acceptData(a)){var g=f.expando,h=typeof c=="string",i,j=a.nodeType,k=j?f.cache:a,l=j?a[f.expando]:a[f.expando]&&f.expando;if((!l||e&&l&&!k[l][g])&&h&&d===b)return;l||(j?a[f.expando]=l=++f.uuid:l=f.expando),k[l]||(k[l]={},j||(k[l].toJSON=f.noop));if(typeof c=="object"||typeof c=="function")e?k[l][g]=f.extend(k[l][g],c):k[l]=f.extend(k[l],c);i=k[l],e&&(i[g]||(i[g]={}),i=i[g]),d!==b&&(i[f.camelCase(c)]=d);if(c==="events"&&!i[c])return i[g]&&i[g].events;return h?i[f.camelCase(c)]||i[c]:i}},removeData:function(b,c,d){if(!!f.acceptData(b)){var e=f.expando,g=b.nodeType,h=g?f.cache:b,i=g?b[f.expando]:f.expando;if(!h[i])return;if(c){var j=d?h[i][e]:h[i];if(j){delete j[c];if(!l(j))return}}if(d){delete h[i][e];if(!l(h[i]))return}var k=h[i][e];f.support.deleteExpando||h!=a?delete h[i]:h[i]=null,k?(h[i]={},g||(h[i].toJSON=f.noop),h[i][e]=k):g&&(f.support.deleteExpando?delete b[f.expando]:b.removeAttribute?b.removeAttribute(f.expando):b[f.expando]=null)}},_data:function(a,b,c){return f.data(a,b,c,!0)},acceptData:function(a){if(a.nodeName){var b=f.noData[a.nodeName.toLowerCase()];if(b)return b!==!0&&a.getAttribute("classid")===b}return!0}}),f.fn.extend({data:function(a,c){var d=null;if(typeof a=="undefined"){if(this.length){d=f.data(this[0]);if(this[0].nodeType===1){var e=this[0].attributes,g;for(var h=0,i=e.length;h-1)return!0;return!1},val:function(a){var c,d,e=this[0];if(!arguments.length){if(e){c=f.valHooks[e.nodeName.toLowerCase()]||f.valHooks[e.type];if(c&&"get"in c&&(d=c.get(e,"value"))!==b)return d;d=e.value;return typeof d=="string"?d.replace(p,""):d==null?"":d}return b}var g=f.isFunction(a);return this.each(function(d){var e=f(this),h;if(this.nodeType===1){g?h=a.call(this,d,e.val()):h=a,h==null?h="":typeof h=="number"?h+="":f.isArray(h)&&(h=f.map(h,function(a){return a==null?"":a+""})),c=f.valHooks[this.nodeName.toLowerCase()]||f.valHooks[this.type];if(!c||!("set"in c)||c.set(this,h,"value")===b)this.value=h}})}}),f.extend({valHooks:{option:{get:function(a){var b=a.attributes.value;return!b||b.specified?a.value:a.text}},select:{get:function(a){var b,c=a.selectedIndex,d=[],e=a.options,g=a.type==="select-one";if(c<0)return null;for(var h=g?c:0,i=g?c+1:e.length;h=0}),c.length||(a.selectedIndex=-1);return c}}},attrFn:{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0},attrFix:{tabindex:"tabIndex"},attr:function(a,c,d,e){var g=a.nodeType;if(!a||g===3||g===8||g===2)return b;if(e&&c in f.attrFn)return f(a)[c](d);if(!("getAttribute"in a))return f.prop(a,c,d);var h,i,j=g!==1||!f.isXMLDoc(a);j&&(c=f.attrFix[c]||c,i=f.attrHooks[c],i||(t.test(c)?i=w:v&&c!=="className"&&(f.nodeName(a,"form")||u.test(c))&&(i=v)));if(d!==b){if(d===null){f.removeAttr(a,c);return b}if(i&&"set"in i&&j&&(h=i.set(a,d,c))!==b)return h;a.setAttribute(c,""+d);return d}if(i&&"get"in i&&j&&(h=i.get(a,c))!==null)return h;h=a.getAttribute(c);return h===null?b:h},removeAttr:function(a,b){var c;a.nodeType===1&&(b=f.attrFix[b]||b,f.support.getSetAttribute?a.removeAttribute(b):(f.attr(a,b,""),a.removeAttributeNode(a.getAttributeNode(b))),t.test(b)&&(c=f.propFix[b]||b)in a&&(a[c]=!1))},attrHooks:{type:{set:function(a,b){if(q.test(a.nodeName)&&a.parentNode)f.error("type property can't be changed");else if(!f.support.radioValue&&b==="radio"&&f.nodeName(a,"input")){var c=a.value;a.setAttribute("type",b),c&&(a.value=c);return b}}},tabIndex:{get:function(a){var c=a.getAttributeNode("tabIndex");return c&&c.specified?parseInt(c.value,10):r.test(a.nodeName)||s.test(a.nodeName)&&a.href?0:b}},value:{get:function(a,b){if(v&&f.nodeName(a,"button"))return v.get(a,b);return b in a?a.value:null},set:function(a,b,c){if(v&&f.nodeName(a,"button"))return v.set(a,b,c);a.value=b}}},propFix:{tabindex:"tabIndex",readonly:"readOnly","for":"htmlFor","class":"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},prop:function(a,c,d){var e=a.nodeType;if(!a||e===3||e===8||e===2)return b;var g,h,i=e!==1||!f.isXMLDoc(a);i&&(c=f.propFix[c]||c,h=f.propHooks[c]);return d!==b?h&&"set"in h&&(g=h.set(a,d,c))!==b?g:a[c]=d:h&&"get"in h&&(g=h.get(a,c))!==b?g:a[c]},propHooks:{}}),w={get:function(a,c){return f.prop(a,c)?c.toLowerCase():b},set:function(a,b,c){var d;b===!1?f.removeAttr(a,c):(d=f.propFix[c]||c,d in a&&(a[d]=!0),a.setAttribute(c,c.toLowerCase()));return c}},f.support.getSetAttribute||(f.attrFix=f.propFix,v=f.attrHooks.name=f.attrHooks.title=f.valHooks.button={get:function(a,c){var d;d=a.getAttributeNode(c);return d&&d.nodeValue!==""?d.nodeValue:b},set:function(a,b,c){var d=a.getAttributeNode(c);if(d){d.nodeValue=b;return b}}},f.each(["width","height"],function(a,b){f.attrHooks[b]=f.extend(f.attrHooks[b],{set:function(a,c){if(c===""){a.setAttribute(b,"auto");return c}}})})),f.support.hrefNormalized||f.each(["href","src","width","height"],function(a,c){f.attrHooks[c]=f.extend(f.attrHooks[c],{get:function(a){var d=a.getAttribute(c,2);return d===null?b:d}})}),f.support.style||(f.attrHooks.style={get:function(a){return a.style.cssText.toLowerCase()||b},set:function(a,b){return a.style.cssText=""+b}}),f.support.optSelected||(f.propHooks.selected=f.extend(f.propHooks.selected,{get:function(a){var b=a.parentNode;b&&(b.selectedIndex,b.parentNode&&b.parentNode.selectedIndex)}})),f.support.checkOn||f.each(["radio","checkbox"],function(){f.valHooks[this]={get:function(a){return a.getAttribute("value")===null?"on":a.value}}}),f.each(["radio","checkbox"],function(){f.valHooks[this]=f.extend(f.valHooks[this],{set:function(a,b){if(f.isArray(b))return a.checked=f.inArray(f(a).val(),b)>=0}})});var x=/\.(.*)$/,y=/^(?:textarea|input|select)$/i,z=/\./g,A=/ /g,B=/[^\w\s.|`]/g,C=function(a){return a.replace(B,"\\$&")};f.event={add:function(a,c,d,e){if(a.nodeType!==3&&a.nodeType!==8){if(d===!1)d=D;else if(!d)return;var g,h;d.handler&&(g=d,d=g.handler),d.guid||(d.guid=f.guid++);var i=f._data(a);if(!i)return;var j=i.events,k=i.handle;j||(i.events=j={}),k||(i.handle=k=function(a){return typeof f!="undefined"&&(!a||f.event.triggered!==a.type)?f.event.handle.apply(k.elem,arguments):b}),k.elem=a,c=c.split(" ");var l,m=0,n;while(l=c[m++]){h=g?f.extend({},g):{handler:d,data:e},l.indexOf(".")>-1?(n=l.split("."),l=n.shift(),h.namespace=n.slice(0).sort().join(".")):(n=[],h.namespace=""),h.type=l,h.guid||(h.guid=d.guid);var o=j[l],p=f.event.special[l]||{};if(!o){o=j[l]=[];if(!p.setup||p.setup.call(a,e,n,k)===!1)a.addEventListener?a.addEventListener(l,k,!1):a.attachEvent&&a.attachEvent("on"+l,k)}p.add&&(p.add.call(a,h),h.handler.guid||(h.handler.guid=d.guid)),o.push(h),f.event.global[l]=!0}a=null}},global:{},remove:function(a,c,d,e){if(a.nodeType!==3&&a.nodeType!==8){d===!1&&(d=D);var g,h,i,j,k=0,l,m,n,o,p,q,r,s=f.hasData(a)&&f._data(a),t=s&&s.events;if(!s||!t)return;c&&c.type&&(d=c.handler,c=c.type);if(!c||typeof c=="string"&&c.charAt(0)==="."){c=c||"";for(h in t)f.event.remove(a,h+c);return}c=c.split(" ");while(h=c[k++]){r=h,q=null,l=h.indexOf(".")<0,m=[],l||(m=h.split("."),h=m.shift(),n=new RegExp("(^|\\.)"+f.map(m.slice(0).sort(),C).join("\\.(?:.*\\.)?")+"(\\.|$)")),p=t[h];if(!p)continue;if(!d){for(j=0;j=0&&(h=h.slice(0,-1),j=!0),h.indexOf(".")>=0&&(i=h.split("."),h=i. +shift(),i.sort());if(!!e&&!f.event.customEvent[h]||!!f.event.global[h]){c=typeof c=="object"?c[f.expando]?c:new f.Event(h,c):new f.Event(h),c.type=h,c.exclusive=j,c.namespace=i.join("."),c.namespace_re=new RegExp("(^|\\.)"+i.join("\\.(?:.*\\.)?")+"(\\.|$)");if(g||!e)c.preventDefault(),c.stopPropagation();if(!e){f.each(f.cache,function(){var a=f.expando,b=this[a];b&&b.events&&b.events[h]&&f.event.trigger(c,d,b.handle.elem)});return}if(e.nodeType===3||e.nodeType===8)return;c.result=b,c.target=e,d=d!=null?f.makeArray(d):[],d.unshift(c);var k=e,l=h.indexOf(":")<0?"on"+h:"";do{var m=f._data(k,"handle");c.currentTarget=k,m&&m.apply(k,d),l&&f.acceptData(k)&&k[l]&&k[l].apply(k,d)===!1&&(c.result=!1,c.preventDefault()),k=k.parentNode||k.ownerDocument||k===c.target.ownerDocument&&a}while(k&&!c.isPropagationStopped());if(!c.isDefaultPrevented()){var n,o=f.event.special[h]||{};if((!o._default||o._default.call(e.ownerDocument,c)===!1)&&(h!=="click"||!f.nodeName(e,"a"))&&f.acceptData(e)){try{l&&e[h]&&(n=e[l],n&&(e[l]=null),f.event.triggered=h,e[h]())}catch(p){}n&&(e[l]=n),f.event.triggered=b}}return c.result}},handle:function(c){c=f.event.fix(c||a.event);var d=((f._data(this,"events")||{})[c.type]||[]).slice(0),e=!c.exclusive&&!c.namespace,g=Array.prototype.slice.call(arguments,0);g[0]=c,c.currentTarget=this;for(var h=0,i=d.length;h-1?f.map(a.options,function(a){return a.selected}).join("-"):"":f.nodeName(a,"select")&&(c=a.selectedIndex);return c},J=function(c){var d=c.target,e,g;if(!!y.test(d.nodeName)&&!d.readOnly){e=f._data(d,"_change_data"),g=I(d),(c.type!=="focusout"||d.type!=="radio")&&f._data(d,"_change_data",g);if(e===b||g===e)return;if(e!=null||g)c.type="change",c.liveFired=b,f.event.trigger(c,arguments[1],d)}};f.event.special.change={filters:{focusout:J,beforedeactivate:J,click:function(a){var b=a.target,c=f.nodeName(b,"input")?b.type:"";(c==="radio"||c==="checkbox"||f.nodeName(b,"select"))&&J.call(this,a)},keydown:function(a){var b=a.target,c=f.nodeName(b,"input")?b.type:"";(a.keyCode===13&&!f.nodeName(b,"textarea")||a.keyCode===32&&(c==="checkbox"||c==="radio")||c==="select-multiple")&&J.call(this,a)},beforeactivate:function(a){var b=a.target;f._data(b,"_change_data",I(b))}},setup:function(a,b){if(this.type==="file")return!1;for(var c in H)f.event.add(this,c+".specialChange",H[c]);return y.test(this.nodeName)},teardown:function(a){f.event.remove(this,".specialChange");return y.test(this.nodeName)}},H=f.event.special.change.filters,H.focus=H.beforeactivate}f.support.focusinBubbles||f.each({focus:"focusin",blur:"focusout"},function(a,b){function e(a){var c=f.event.fix(a);c.type=b,c.originalEvent={},f.event.trigger(c,null,c.target),c.isDefaultPrevented()&&a.preventDefault()}var d=0;f.event.special[b]={setup:function(){d++===0&&c.addEventListener(a,e,!0)},teardown:function(){--d===0&&c.removeEventListener(a,e,!0)}}}),f.each(["bind","one"],function(a,c){f.fn[c]=function(a,d,e){var g;if(typeof a=="object"){for(var h in a)this[c](h,d,a[h],e);return this}if(arguments.length===2||d===!1)e=d,d=b;c==="one"?(g=function(a){f(this).unbind(a,g);return e.apply(this,arguments)},g.guid=e.guid||f.guid++):g=e;if(a==="unload"&&c!=="one")this.one(a,d,e);else for(var i=0,j=this.length;i0?this.bind(b,a,c):this.trigger(b)},f.attrFn&&(f.attrFn[b]=!0)}),function(){function u(a,b,c,d,e,f){for(var g=0,h=d.length;g0){j=i;break}}i=i[a]}d[g]=j}}}function t(a,b,c,d,e,f){for(var g=0,h=d.length;g+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,d=0,e=Object.prototype.toString,g=!1,h=!0,i=/\\/g,j=/\W/;[0,0].sort(function(){h=!1;return 0});var k=function(b,d,f,g){f=f||[],d=d||c;var h=d;if(d.nodeType!==1&&d.nodeType!==9)return[];if(!b||typeof b!="string")return f;var i,j,n,o,q,r,s,t,u=!0,w=k.isXML(d),x=[],y=b;do{a.exec(""),i=a.exec(y);if(i){y=i[3],x.push(i[1]);if(i[2]){o=i[3];break}}}while(i);if(x.length>1&&m.exec(b))if(x.length===2&&l.relative[x[0]])j=v(x[0]+x[1],d);else{j=l.relative[x[0]]?[d]:k(x.shift(),d);while(x.length)b=x.shift(),l.relative[b]&&(b+=x.shift()),j=v(b,j)}else{!g&&x.length>1&&d.nodeType===9&&!w&&l.match.ID.test(x[0])&&!l.match.ID.test(x[x.length-1])&&(q=k.find(x.shift(),d,w),d=q.expr?k.filter(q.expr,q.set)[0]:q.set[0]);if(d){q=g?{expr:x.pop(),set:p(g)}:k.find(x.pop(),x.length===1&&(x[0]==="~"||x[0]==="+")&&d.parentNode?d.parentNode:d,w),j=q.expr?k.filter(q.expr,q.set):q.set,x.length>0?n=p(j):u=!1;while(x.length)r=x.pop(),s=r,l.relative[r]?s=x.pop():r="",s==null&&(s=d),l.relative[r](n,s,w)}else n=x=[]}n||(n=j),n||k.error(r||b);if(e.call(n)==="[object Array]")if(!u)f.push.apply(f,n);else if(d&&d.nodeType===1)for(t=0;n[t]!=null;t++)n[t]&&(n[t]===!0||n[t].nodeType===1&&k.contains(d,n[t]))&&f.push(j[t]);else for(t=0;n[t]!=null;t++)n[t]&&n[t].nodeType===1&&f.push(j[t]);else p(n,f);o&&(k(o,h,f,g),k.uniqueSort(f));return f};k.uniqueSort=function(a){if(r){g=h,a.sort(r);if(g)for(var b=1;b0},k.find=function(a,b,c){var d;if(!a)return[];for(var e=0,f=l.order.length;e":function(a,b){var c,d=typeof b=="string",e=0,f=a.length;if(d&&!j.test(b)){b=b.toLowerCase();for(;e=0)?c||d.push(h):c&&(b[g]=!1));return!1},ID:function(a){return a[1].replace(i,"")},TAG:function(a,b){return a[1].replace(i,"").toLowerCase()},CHILD:function(a){if(a[1]==="nth"){a[2]||k.error(a[0]),a[2]=a[2].replace(/^\+|\s*/g,"");var b=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(a[2]==="even"&&"2n"||a[2]==="odd"&&"2n+1"||!/\D/.test(a[2])&&"0n+"+a[2]||a[2]);a[2]=b[1]+(b[2]||1)-0,a[3]=b[3]-0}else a[2]&&k.error(a[0]);a[0]=d++;return a},ATTR:function(a,b,c,d,e,f){var g=a[1]=a[1].replace(i,"");!f&&l.attrMap[g]&&(a[1]=l.attrMap[g]),a[4]=(a[4]||a[5]||"").replace(i,""),a[2]==="~="&&(a[4]=" "+a[4]+" ");return a},PSEUDO:function(b,c,d,e,f){if(b[1]==="not")if((a.exec(b[3])||"").length>1||/^\w/.test(b[3]))b[3]=k(b[3],null,null,c);else{var g=k.filter(b[3],c,d,!0^f);d||e.push.apply(e,g);return!1}else if(l.match.POS.test(b[0])||l.match.CHILD.test(b[0]))return!0;return b},POS:function(a){a.unshift(!0);return a}},filters:{enabled:function(a){return a.disabled===!1&&a.type!=="hidden"},disabled:function(a){return a.disabled===!0},checked:function(a){return a.checked===!0},selected:function(a){a.parentNode&&a.parentNode.selectedIndex;return a.selected===!0},parent:function(a){return!!a.firstChild},empty:function(a){return!a.firstChild},has:function(a,b,c){return!!k(c[3],a).length},header:function(a){return/h\d/i.test(a.nodeName)},text:function(a){var b=a.getAttribute("type"),c=a.type;return a.nodeName.toLowerCase()==="input"&&"text"===c&&(b===c||b===null)},radio:function(a){return a.nodeName.toLowerCase()==="input"&&"radio"===a.type},checkbox:function(a){return a.nodeName.toLowerCase()==="input"&&"checkbox"===a.type},file:function(a){return a.nodeName.toLowerCase()==="input"&&"file"===a.type},password:function(a){return a.nodeName.toLowerCase()==="input"&&"password"===a.type},submit:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"submit"===a.type},image:function(a){return a.nodeName.toLowerCase()==="input"&&"image"===a.type},reset:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"reset"===a.type},button:function(a){var b=a.nodeName.toLowerCase();return b==="input"&&"button"===a.type||b==="button"},input:function(a){return/input|select|textarea|button/i.test(a.nodeName)},focus:function(a){return a===a.ownerDocument.activeElement}},setFilters:{first:function(a,b){return b===0},last:function(a,b,c,d){return b===d.length-1},even:function(a,b){return b%2===0},odd:function(a,b){return b%2===1},lt:function(a,b,c){return bc[3]-0},nth:function(a,b,c){return c[3]-0===b},eq:function(a,b,c){return c[3]-0===b}},filter:{PSEUDO:function(a,b,c,d){var e=b[1],f=l.filters[e];if(f)return f(a,c,b,d);if(e==="contains")return(a.textContent||a.innerText||k.getText([a])||"").indexOf(b[3])>=0;if(e==="not"){var g=b[3];for(var h=0,i=g.length;h=0}},ID:function(a,b){return a.nodeType===1&&a.getAttribute("id")===b},TAG:function(a,b){return b==="*"&&a.nodeType===1||a.nodeName.toLowerCase()===b},CLASS:function(a,b){return(" "+(a.className||a.getAttribute("class"))+" ").indexOf(b)>-1},ATTR:function(a,b){var c=b[1],d=l.attrHandle[c]?l.attrHandle[c](a):a[c]!=null?a[c]:a.getAttribute(c),e=d+"",f=b[2],g=b[4];return d==null?f==="!=":f==="="?e===g:f==="*="?e.indexOf(g)>=0:f==="~="?(" "+e+" ").indexOf(g)>=0:g?f==="!="?e!==g:f==="^="?e.indexOf(g)===0:f==="$="?e.substr(e.length-g.length)===g:f==="|="?e===g||e.substr(0,g.length+1)===g+"-":!1:e&&d!==!1},POS:function(a,b,c,d){var e=b[2],f=l.setFilters[e];if(f)return f(a,c,b,d)}}},m=l.match.POS,n=function(a,b){return"\\"+(b-0+1)};for(var o in l.match)l.match[o]=new RegExp(l.match[o].source+/(?![^\[]*\])(?![^\(]*\))/.source),l.leftMatch[o]=new RegExp(/(^(?:.|\r|\n)*?)/.source+l.match[o].source.replace(/\\(\d+)/g,n));var p=function(a,b){a=Array.prototype.slice.call(a,0);if(b){b.push.apply(b,a);return b}return a};try{Array.prototype.slice.call(c.documentElement.childNodes,0)[0].nodeType}catch(q){p=function(a,b){var c=0,d=b||[];if(e.call(a)==="[object Array]")Array.prototype.push.apply(d,a);else if(typeof a.length=="number")for(var f=a.length;c",e.insertBefore(a,e.firstChild),c.getElementById(d)&&(l.find.ID=function(a,c,d){if(typeof c.getElementById!="undefined"&&!d){var e=c.getElementById(a[1]);return e?e.id===a[1]||typeof e.getAttributeNode!="undefined"&&e.getAttributeNode("id").nodeValue===a[1]?[e]:b:[]}},l.filter.ID=function(a,b){var c=typeof a.getAttributeNode!="undefined"&&a.getAttributeNode("id");return a.nodeType===1&&c&&c.nodeValue===b}),e.removeChild(a),e=a=null}(),function(){var a=c.createElement("div");a.appendChild(c.createComment("")),a.getElementsByTagName("*").length>0&&(l.find.TAG=function(a,b){var c=b.getElementsByTagName(a[1]);if(a[1]==="*"){var d=[];for(var e=0;c[e];e++)c[e].nodeType===1&&d.push(c[e]);c=d}return c}),a.innerHTML="",a.firstChild&&typeof a.firstChild.getAttribute!="undefined"&&a.firstChild.getAttribute("href")!=="#"&&(l.attrHandle.href=function(a){return a.getAttribute("href",2)}),a=null}(),c.querySelectorAll&&function(){var a=k,b=c.createElement("div"),d="__sizzle__";b.innerHTML="

              ";if(!b.querySelectorAll||b.querySelectorAll(".TEST").length!==0){k=function(b,e,f,g){e=e||c;if(!g&&!k.isXML(e)){var h=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(b);if(h&&(e.nodeType===1||e.nodeType===9)){if(h[1])return p(e.getElementsByTagName(b),f);if(h[2]&&l.find.CLASS&&e.getElementsByClassName)return p(e.getElementsByClassName(h[2]),f)}if(e.nodeType===9){if(b==="body"&&e.body)return p([e.body],f);if(h&&h[3]){var i=e.getElementById(h[3]);if(!i||!i.parentNode)return p([],f);if(i.id===h[3])return p([i],f)}try{return p(e.querySelectorAll(b),f)}catch(j){}}else if(e.nodeType===1&&e.nodeName.toLowerCase()!=="object"){var m=e,n=e.getAttribute("id"),o=n||d,q=e.parentNode,r=/^\s*[+~]/.test(b);n?o=o.replace(/'/g,"\\$&"):e.setAttribute("id",o),r&&q&&(e=e.parentNode);try{if(!r||q)return p(e.querySelectorAll("[id='"+o+"'] "+b),f)}catch(s){}finally{n||m.removeAttribute("id")}}}return a(b,e,f,g)};for(var e in a)k[e]=a[e];b=null}}(),function(){var a=c.documentElement,b=a.matchesSelector||a.mozMatchesSelector||a.webkitMatchesSelector||a.msMatchesSelector;if(b){var d=!b.call(c.createElement("div"),"div"),e=!1;try{b.call(c.documentElement,"[test!='']:sizzle")}catch(f){e=!0}k.matchesSelector=function(a,c){c=c.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!k.isXML(a))try{if(e||!l.match.PSEUDO.test(c)&&!/!=/.test(c)){var f=b.call(a,c);if(f||!d||a.document&&a.document.nodeType!==11)return f}}catch(g){}return k(c,null,null,[a]).length>0}}}(),function(){var a=c.createElement("div");a.innerHTML="
              ";if(!!a.getElementsByClassName&&a.getElementsByClassName("e").length!==0){a.lastChild.className="e";if(a.getElementsByClassName("e").length===1)return;l.order.splice(1,0,"CLASS"),l.find.CLASS=function(a,b,c){if(typeof b.getElementsByClassName!="undefined"&&!c)return b.getElementsByClassName(a[1])},a=null}}(),c.documentElement.contains?k.contains=function(a,b){return a!==b&&(a.contains?a.contains(b):!0)}:c.documentElement.compareDocumentPosition?k.contains=function(a,b){return!!(a.compareDocumentPosition(b)&16)}:k.contains=function(){return!1},k.isXML=function(a){var b=(a?a.ownerDocument||a:0).documentElement;return b?b.nodeName!=="HTML":!1};var v=function(a,b){var c,d=[],e="",f=b.nodeType?[b]:b;while(c=l.match.PSEUDO.exec(a))e+=c[0],a=a.replace(l.match.PSEUDO,"");a=l.relative[a]?a+"*":a;for(var g=0,h=f.length;g0)for(h=g;h0:this.filter(a).length>0)},closest:function(a,b){var c=[],d,e,g=this[0];if(f.isArray(a)){var h,i,j={},k=1;if(g&&a.length){for(d=0,e=a.length;d-1:f(g).is(h))&&c.push({selector:i,elem:g,level:k});g=g.parentNode,k++}}return c}var l=T.test(a)||typeof a!="string"?f(a,b||this.context):0;for(d=0,e=this.length;d-1:f.find.matchesSelector(g,a)){c.push(g);break}g=g.parentNode;if(!g||!g.ownerDocument||g===b||g.nodeType===11)break}}c=c.length>1?f.unique(c):c;return this.pushStack(c,"closest",a)},index:function(a){if(!a||typeof a=="string")return f.inArray(this[0],a?f(a):this.parent().children());return f.inArray(a.jquery?a[0]:a,this)},add:function(a,b){var c=typeof a=="string"?f(a,b):f.makeArray(a&&a.nodeType?[a]:a),d=f.merge(this.get(),c);return this.pushStack(V(c[0])||V(d[0])?d:f.unique(d))},andSelf:function(){return this.add(this.prevObject)}}),f.each({parent:function(a){var b=a.parentNode;return b&&b.nodeType!==11?b:null},parents:function(a){return f.dir(a,"parentNode")},parentsUntil:function(a,b,c){return f.dir(a,"parentNode",c)},next:function(a){return f.nth(a,2,"nextSibling")},prev:function(a){return f.nth(a,2,"previousSibling")},nextAll:function(a){return f.dir(a,"nextSibling")},prevAll:function(a){return f.dir(a,"previousSibling")},nextUntil:function(a,b,c){return f.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return f.dir(a,"previousSibling",c)},siblings:function(a){return f.sibling(a.parentNode.firstChild,a)},children:function(a){return f.sibling(a.firstChild)},contents:function(a){return f.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:f.makeArray(a.childNodes)}},function(a,b){f.fn[a]=function(c,d){var e=f.map(this,b,c),g=S.call(arguments);O.test(a)||(d=c),d&&typeof d=="string"&&(e=f.filter(d,e)),e=this.length>1&&!U[a]?f.unique(e):e,(this.length>1||Q.test(d))&&P.test(a)&&(e=e.reverse());return this.pushStack(e,a,g.join(","))}}),f.extend({filter:function(a,b,c){c&&(a=":not("+a+")");return b.length===1?f.find.matchesSelector(b[0],a)?[b[0]]:[]:f.find.matches(a,b)},dir:function(a,c,d){var e=[],g=a[c];while(g&&g.nodeType!==9&&(d===b||g.nodeType!==1||!f(g).is(d)))g.nodeType===1&&e.push(g),g=g[c];return e},nth:function(a,b,c,d){b=b||1;var e=0;for(;a;a=a[c])if(a.nodeType===1&&++e===b)break;return a},sibling:function(a,b){var c=[];for(;a;a=a.nextSibling)a.nodeType===1&&a!==b&&c.push(a);return c}});var X=/ jQuery\d+="(?:\d+|null)"/g,Y=/^\s+/,Z=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,$=/<([\w:]+)/,_=/",""],legend:[1,"
              ","
              "],thead:[1,"","
              "],tr:[2,"","
              "],td:[3,"","
              "],col:[2,"","
              "],area:[1,"",""],_default:[0,"",""]};bf.optgroup=bf.option,bf.tbody=bf.tfoot=bf.colgroup=bf.caption=bf.thead,bf.th=bf.td,f.support.htmlSerialize||(bf._default=[1,"div
              ","
              "]),f.fn.extend({text:function(a){if(f.isFunction(a))return this.each(function(b){var c=f(this);c.text(a.call(this,b,c.text()))});if(typeof a!="object"&&a!==b)return this.empty().append((this[0]&&this[0].ownerDocument||c).createTextNode(a));return f.text(this)},wrapAll:function(a){if(f.isFunction(a))return this.each(function(b){f(this).wrapAll(a.call(this,b))});if(this[0]){var b=f(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){var a=this;while(a.firstChild&&a.firstChild.nodeType===1)a=a.firstChild;return a}).append(this)}return this},wrapInner:function(a){if(f.isFunction(a))return this.each(function(b){f(this).wrapInner(a.call(this,b))});return this.each(function(){var b=f(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){return this.each(function(){f(this).wrapAll(a)})},unwrap:function(){return this.parent().each(function(){f.nodeName(this,"body")||f(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this)});if(arguments.length){var a=f(arguments[0]);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this.nextSibling)});if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,f(arguments[0]).toArray());return a}},remove:function(a,b){for(var c=0,d;(d=this[c])!=null;c++)if(!a||f.filter(a,[d]).length)!b&&d.nodeType===1&&(f.cleanData(d.getElementsByTagName("*")),f.cleanData([d])),d.parentNode&&d.parentNode.removeChild(d);return this},empty:function(){for(var a=0,b;(b=this[a])!=null;a++){b.nodeType===1&&f.cleanData(b.getElementsByTagName("*"));while(b.firstChild)b.removeChild(b.firstChild)}return this},clone:function(a,b){a=a==null?!1:a,b=b==null?a:b;return this.map(function(){return f.clone(this,a,b)})},html:function(a){if(a===b)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(X,""):null;if(typeof a=="string"&&!bb.test(a)&&(f.support.leadingWhitespace||!Y.test(a))&&!bf[($.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(Z,"<$1>");try{for(var c=0,d=this.length;c1&&l0?this.clone(!0):this).get();f(e[h])[b](j),d=d.concat(j +)}return this.pushStack(d,a,e.selector)}}),f.extend({clone:function(a,b,c){var d=a.cloneNode(!0),e,g,h;if((!f.support.noCloneEvent||!f.support.noCloneChecked)&&(a.nodeType===1||a.nodeType===11)&&!f.isXMLDoc(a)){bi(a,d),e=bj(a),g=bj(d);for(h=0;e[h];++h)bi(e[h],g[h])}if(b){bh(a,d);if(c){e=bj(a),g=bj(d);for(h=0;e[h];++h)bh(e[h],g[h])}}e=g=null;return d},clean:function(a,b,d,e){var g;b=b||c,typeof b.createElement=="undefined"&&(b=b.ownerDocument||b[0]&&b[0].ownerDocument||c);var h=[],i;for(var j=0,k;(k=a[j])!=null;j++){typeof k=="number"&&(k+="");if(!k)continue;if(typeof k=="string")if(!ba.test(k))k=b.createTextNode(k);else{k=k.replace(Z,"<$1>");var l=($.exec(k)||["",""])[1].toLowerCase(),m=bf[l]||bf._default,n=m[0],o=b.createElement("div");o.innerHTML=m[1]+k+m[2];while(n--)o=o.lastChild;if(!f.support.tbody){var p=_.test(k),q=l==="table"&&!p?o.firstChild&&o.firstChild.childNodes:m[1]===""&&!p?o.childNodes:[];for(i=q.length-1;i>=0;--i)f.nodeName(q[i],"tbody")&&!q[i].childNodes.length&&q[i].parentNode.removeChild(q[i])}!f.support.leadingWhitespace&&Y.test(k)&&o.insertBefore(b.createTextNode(Y.exec(k)[0]),o.firstChild),k=o.childNodes}var r;if(!f.support.appendChecked)if(k[0]&&typeof (r=k.length)=="number")for(i=0;i=0)return b+"px"}}}),f.support.opacity||(f.cssHooks.opacity={get:function(a,b){return bo.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?parseFloat(RegExp.$1)/100+"":b?"1":""},set:function(a,b){var c=a.style,d=a.currentStyle;c.zoom=1;var e=f.isNaN(b)?"":"alpha(opacity="+b*100+")",g=d&&d.filter||c.filter||"";c.filter=bn.test(g)?g.replace(bn,e):g+" "+e}}),f(function(){f.support.reliableMarginRight||(f.cssHooks.marginRight={get:function(a,b){var c;f.swap(a,{display:"inline-block"},function(){b?c=bx(a,"margin-right","marginRight"):c=a.style.marginRight});return c}})}),c.defaultView&&c.defaultView.getComputedStyle&&(by=function(a,c){var d,e,g;c=c.replace(bp,"-$1").toLowerCase();if(!(e=a.ownerDocument.defaultView))return b;if(g=e.getComputedStyle(a,null))d=g.getPropertyValue(c),d===""&&!f.contains(a.ownerDocument.documentElement,a)&&(d=f.style(a,c));return d}),c.documentElement.currentStyle&&(bz=function(a,b){var c,d=a.currentStyle&&a.currentStyle[b],e=a.runtimeStyle&&a.runtimeStyle[b],f=a.style;!bq.test(d)&&br.test(d)&&(c=f.left,e&&(a.runtimeStyle.left=a.currentStyle.left),f.left=b==="fontSize"?"1em":d||0,d=f.pixelLeft+"px",f.left=c,e&&(a.runtimeStyle.left=e));return d===""?"auto":d}),bx=by||bz,f.expr&&f.expr.filters&&(f.expr.filters.hidden=function(a){var b=a.offsetWidth,c=a.offsetHeight;return b===0&&c===0||!f.support.reliableHiddenOffsets&&(a.style.display||f.css(a,"display"))==="none"},f.expr.filters.visible=function(a){return!f.expr.filters.hidden(a)});var bB=/%20/g,bC=/\[\]$/,bD=/\r?\n/g,bE=/#.*$/,bF=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,bG=/^(?:color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,bH=/^(?:about|app|app\-storage|.+\-extension|file|widget):$/,bI=/^(?:GET|HEAD)$/,bJ=/^\/\//,bK=/\?/,bL=/)<[^<]*)*<\/script>/gi,bM=/^(?:select|textarea)/i,bN=/\s+/,bO=/([?&])_=[^&]*/,bP=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,bQ=f.fn.load,bR={},bS={},bT,bU;try{bT=e.href}catch(bV){bT=c.createElement("a"),bT.href="",bT=bT.href}bU=bP.exec(bT.toLowerCase())||[],f.fn.extend({load:function(a,c,d){if(typeof a!="string"&&bQ)return bQ.apply(this,arguments);if(!this.length)return this;var e=a.indexOf(" ");if(e>=0){var g=a.slice(e,a.length);a=a.slice(0,e)}var h="GET";c&&(f.isFunction(c)?(d=c,c=b):typeof c=="object"&&(c=f.param(c,f.ajaxSettings.traditional),h="POST"));var i=this;f.ajax({url:a,type:h,dataType:"html",data:c,complete:function(a,b,c){c=a.responseText,a.isResolved()&&(a.done(function(a){c=a}),i.html(g?f("
              ").append(c.replace(bL,"")).find(g):c)),d&&i.each(d,[c,b,a])}});return this},serialize:function(){return f.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?f.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||bM.test(this.nodeName)||bG.test(this.type))}).map(function(a,b){var c=f(this).val();return c==null?null:f.isArray(c)?f.map(c,function(a,c){return{name:b.name,value:a.replace(bD,"\r\n")}}):{name:b.name,value:c.replace(bD,"\r\n")}}).get()}}),f.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){f.fn[b]=function(a){return this.bind(b,a)}}),f.each(["get","post"],function(a,c){f[c]=function(a,d,e,g){f.isFunction(d)&&(g=g||e,e=d,d=b);return f.ajax({type:c,url:a,data:d,success:e,dataType:g})}}),f.extend({getScript:function(a,c){return f.get(a,b,c,"script")},getJSON:function(a,b,c){return f.get(a,b,c,"json")},ajaxSetup:function(a,b){b?f.extend(!0,a,f.ajaxSettings,b):(b=a,a=f.extend(!0,f.ajaxSettings,b));for(var c in{context:1,url:1})c in b?a[c]=b[c]:c in f.ajaxSettings&&(a[c]=f.ajaxSettings[c]);return a},ajaxSettings:{url:bT,isLocal:bH.test(bU[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":"*/*"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":a.String,"text html":!0,"text json":f.parseJSON,"text xml":f.parseXML}},ajaxPrefilter:bW(bR),ajaxTransport:bW(bS),ajax:function(a,c){function w(a,c,l,m){if(s!==2){s=2,q&&clearTimeout(q),p=b,n=m||"",v.readyState=a?4:0;var o,r,u,w=l?bZ(d,v,l):b,x,y;if(a>=200&&a<300||a===304){if(d.ifModified){if(x=v.getResponseHeader("Last-Modified"))f.lastModified[k]=x;if(y=v.getResponseHeader("Etag"))f.etag[k]=y}if(a===304)c="notmodified",o=!0;else try{r=b$(d,w),c="success",o=!0}catch(z){c="parsererror",u=z}}else{u=c;if(!c||a)c="error",a<0&&(a=0)}v.status=a,v.statusText=c,o?h.resolveWith(e,[r,c,v]):h.rejectWith(e,[v,c,u]),v.statusCode(j),j=b,t&&g.trigger("ajax"+(o?"Success":"Error"),[v,d,o?r:u]),i.resolveWith(e,[v,c]),t&&(g.trigger("ajaxComplete",[v,d]),--f.active||f.event.trigger("ajaxStop"))}}typeof a=="object"&&(c=a,a=b),c=c||{};var d=f.ajaxSetup({},c),e=d.context||d,g=e!==d&&(e.nodeType||e instanceof f)?f(e):f.event,h=f.Deferred(),i=f._Deferred(),j=d.statusCode||{},k,l={},m={},n,o,p,q,r,s=0,t,u,v={readyState:0,setRequestHeader:function(a,b){if(!s){var c=a.toLowerCase();a=m[c]=m[c]||a,l[a]=b}return this},getAllResponseHeaders:function(){return s===2?n:null},getResponseHeader:function(a){var c;if(s===2){if(!o){o={};while(c=bF.exec(n))o[c[1].toLowerCase()]=c[2]}c=o[a.toLowerCase()]}return c===b?null:c},overrideMimeType:function(a){s||(d.mimeType=a);return this},abort:function(a){a=a||"abort",p&&p.abort(a),w(0,a);return this}};h.promise(v),v.success=v.done,v.error=v.fail,v.complete=i.done,v.statusCode=function(a){if(a){var b;if(s<2)for(b in a)j[b]=[j[b],a[b]];else b=a[v.status],v.then(b,b)}return this},d.url=((a||d.url)+"").replace(bE,"").replace(bJ,bU[1]+"//"),d.dataTypes=f.trim(d.dataType||"*").toLowerCase().split(bN),d.crossDomain==null&&(r=bP.exec(d.url.toLowerCase()),d.crossDomain=!(!r||r[1]==bU[1]&&r[2]==bU[2]&&(r[3]||(r[1]==="http:"?80:443))==(bU[3]||(bU[1]==="http:"?80:443)))),d.data&&d.processData&&typeof d.data!="string"&&(d.data=f.param(d.data,d.traditional)),bX(bR,d,c,v);if(s===2)return!1;t=d.global,d.type=d.type.toUpperCase(),d.hasContent=!bI.test(d.type),t&&f.active++===0&&f.event.trigger("ajaxStart");if(!d.hasContent){d.data&&(d.url+=(bK.test(d.url)?"&":"?")+d.data),k=d.url;if(d.cache===!1){var x=f.now(),y=d.url.replace(bO,"$1_="+x);d.url=y+(y===d.url?(bK.test(d.url)?"&":"?")+"_="+x:"")}}(d.data&&d.hasContent&&d.contentType!==!1||c.contentType)&&v.setRequestHeader("Content-Type",d.contentType),d.ifModified&&(k=k||d.url,f.lastModified[k]&&v.setRequestHeader("If-Modified-Since",f.lastModified[k]),f.etag[k]&&v.setRequestHeader("If-None-Match",f.etag[k])),v.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+(d.dataTypes[0]!=="*"?", */*; q=0.01":""):d.accepts["*"]);for(u in d.headers)v.setRequestHeader(u,d.headers[u]);if(d.beforeSend&&(d.beforeSend.call(e,v,d)===!1||s===2)){v.abort();return!1}for(u in{success:1,error:1,complete:1})v[u](d[u]);p=bX(bS,d,c,v);if(!p)w(-1,"No Transport");else{v.readyState=1,t&&g.trigger("ajaxSend",[v,d]),d.async&&d.timeout>0&&(q=setTimeout(function(){v.abort("timeout")},d.timeout));try{s=1,p.send(l,w)}catch(z){status<2?w(-1,z):f.error(z)}}return v},param:function(a,c){var d=[],e=function(a,b){b=f.isFunction(b)?b():b,d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};c===b&&(c=f.ajaxSettings.traditional);if(f.isArray(a)||a.jquery&&!f.isPlainObject(a))f.each(a,function(){e(this.name,this.value)});else for(var g in a)bY(g,a[g],c,e);return d.join("&").replace(bB,"+")}}),f.extend({active:0,lastModified:{},etag:{}});var b_=f.now(),ca=/(\=)\?(&|$)|\?\?/i;f.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return f.expando+"_"+b_++}}),f.ajaxPrefilter("json jsonp",function(b,c,d){var e=b.contentType==="application/x-www-form-urlencoded"&&typeof b.data=="string";if(b.dataTypes[0]==="jsonp"||b.jsonp!==!1&&(ca.test(b.url)||e&&ca.test(b.data))){var g,h=b.jsonpCallback=f.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,i=a[h],j=b.url,k=b.data,l="$1"+h+"$2";b.jsonp!==!1&&(j=j.replace(ca,l),b.url===j&&(e&&(k=k.replace(ca,l)),b.data===k&&(j+=(/\?/.test(j)?"&":"?")+b.jsonp+"="+h))),b.url=j,b.data=k,a[h]=function(a){g=[a]},d.always(function(){a[h]=i,g&&f.isFunction(i)&&a[h](g[0])}),b.converters["script json"]=function(){g||f.error(h+" was not called");return g[0]},b.dataTypes[0]="json";return"script"}}),f.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(a){f.globalEval(a);return a}}}),f.ajaxPrefilter("script",function(a){a.cache===b&&(a.cache=!1),a.crossDomain&&(a.type="GET",a.global=!1)}),f.ajaxTransport("script",function(a){if(a.crossDomain){var d,e=c.head||c.getElementsByTagName("head")[0]||c.documentElement;return{send:function(f,g){d=c.createElement("script"),d.async="async",a.scriptCharset&&(d.charset=a.scriptCharset),d.src=a.url,d.onload=d.onreadystatechange=function(a,c){if(c||!d.readyState||/loaded|complete/.test(d.readyState))d.onload=d.onreadystatechange=null,e&&d.parentNode&&e.removeChild(d),d=b,c||g(200,"success")},e.insertBefore(d,e.firstChild)},abort:function(){d&&d.onload(0,1)}}}});var cb=a.ActiveXObject?function(){for(var a in cd)cd[a](0,1)}:!1,cc=0,cd;f.ajaxSettings.xhr=a.ActiveXObject?function(){return!this.isLocal&&ce()||cf()}:ce,function(a){f.extend(f.support,{ajax:!!a,cors:!!a&&"withCredentials"in a})}(f.ajaxSettings.xhr()),f.support.ajax&&f.ajaxTransport(function(c){if(!c.crossDomain||f.support.cors){var d;return{send:function(e,g){var h=c.xhr(),i,j;c.username?h.open(c.type,c.url,c.async,c.username,c.password):h.open(c.type,c.url,c.async);if(c.xhrFields)for(j in c.xhrFields)h[j]=c.xhrFields[j];c.mimeType&&h.overrideMimeType&&h.overrideMimeType(c.mimeType),!c.crossDomain&&!e["X-Requested-With"]&&(e["X-Requested-With"]="XMLHttpRequest");try{for(j in e)h.setRequestHeader(j,e[j])}catch(k){}h.send(c.hasContent&&c.data||null),d=function(a,e){var j,k,l,m,n;try{if(d&&(e||h.readyState===4)){d=b,i&&(h.onreadystatechange=f.noop,cb&&delete cd[i]);if(e)h.readyState!==4&&h.abort();else{j=h.status,l=h.getAllResponseHeaders(),m={},n=h.responseXML,n&&n.documentElement&&(m.xml=n),m.text=h.responseText;try{k=h.statusText}catch(o){k=""}!j&&c.isLocal&&!c.crossDomain?j=m.text?200:404:j===1223&&(j=204)}}}catch(p){e||g(-1,p)}m&&g(j,k,m,l)},!c.async||h.readyState===4?d():(i=++cc,cb&&(cd||(cd={},f(a).unload(cb)),cd[i]=d),h.onreadystatechange=d)},abort:function(){d&&d(0,1)}}}});var cg={},ch,ci,cj=/^(?:toggle|show|hide)$/,ck=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,cl,cm=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]],cn,co=a.webkitRequestAnimationFrame||a.mozRequestAnimationFrame||a.oRequestAnimationFrame;f.fn.extend({show:function(a,b,c){var d,e;if(a||a===0)return this.animate(cr("show",3),a,b,c);for(var g=0,h=this.length;g=e.duration+this.startTime){this.now=this.end,this.pos=this.state=1,this.update(),e.animatedProperties[this.prop]=!0;for(g in e.animatedProperties)e.animatedProperties[g]!==!0&&(c=!1);if(c){e.overflow!=null&&!f.support.shrinkWrapBlocks&&f.each(["","X","Y"],function(a,b){d.style["overflow"+b]=e.overflow[a]}),e.hide&&f(d).hide();if(e.hide||e.show)for(var i in e.animatedProperties)f.style(d,i,e.orig[i]);e.complete.call(d)}return!1}e.duration==Infinity?this.now=b:(h=b-this.startTime,this.state=h/e.duration,this.pos=f.easing[e.animatedProperties[this.prop]](this.state,h,0,1,e.duration),this.now=this.start+(this.end-this.start)*this.pos),this.update();return!0}},f.extend(f.fx,{tick:function(){for(var a=f.timers,b=0;b
              ";f.extend(b.style,{position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"}),b.innerHTML=j,a.insertBefore(b,a.firstChild),d=b.firstChild,e=d.firstChild,h=d.nextSibling.firstChild.firstChild,this.doesNotAddBorder=e.offsetTop!==5,this.doesAddBorderForTableAndCells=h.offsetTop===5,e.style.position="fixed",e.style.top="20px",this.supportsFixedPosition=e.offsetTop===20||e.offsetTop===15,e.style.position=e.style.top="",d.style.overflow="hidden",d.style.position="relative",this.subtractsBorderForOverflowNotVisible=e.offsetTop===-5,this.doesNotIncludeMarginInBodyOffset=a.offsetTop!==i,a.removeChild(b),f.offset.initialize=f.noop},bodyOffset:function(a){var b=a.offsetTop,c=a.offsetLeft;f.offset.initialize(),f.offset.doesNotIncludeMarginInBodyOffset&&(b+=parseFloat(f.css(a,"marginTop"))||0,c+=parseFloat(f.css(a,"marginLeft"))||0);return{top:b,left:c}},setOffset:function(a,b,c){var d=f.css(a,"position");d==="static"&&(a.style.position="relative");var e=f(a),g=e.offset(),h=f.css(a,"top"),i=f.css(a,"left"),j=(d==="absolute"||d==="fixed")&&f.inArray("auto",[h,i])>-1,k={},l={},m,n;j?(l=e.position(),m=l.top,n=l.left):(m=parseFloat(h)||0,n=parseFloat(i)||0),f.isFunction(b)&&(b=b.call(a,c,g)),b.top!=null&&(k.top=b.top-g.top+m),b.left!=null&&(k.left=b.left-g.left+n),"using"in b?b.using.call(a,k):e.css(k)}},f.fn.extend({position:function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),c=this.offset(),d=cu.test(b[0].nodeName)?{top:0,left:0}:b.offset();c.top-=parseFloat(f.css(a,"marginTop"))||0,c.left-=parseFloat(f.css(a,"marginLeft"))||0,d.top+=parseFloat(f.css(b[0],"borderTopWidth"))||0,d.left+=parseFloat(f.css(b[0],"borderLeftWidth"))||0;return{top:c.top-d.top,left:c.left-d.left}},offsetParent:function(){return this.map(function(){var a=this.offsetParent||c.body;while(a&&!cu.test(a.nodeName)&&f.css(a,"position")==="static")a=a.offsetParent;return a})}}),f.each(["Left","Top"],function(a,c){var d="scroll"+c;f.fn[d]=function(c){var e,g;if(c===b){e=this[0];if(!e)return null;g=cv(e);return g?"pageXOffset"in g?g[a?"pageYOffset":"pageXOffset"]:f.support.boxModel&&g.document.documentElement[d]||g.document.body[d]:e[d]}return this.each(function(){g=cv(this),g?g.scrollTo(a?f(g).scrollLeft():c,a?c:f(g).scrollTop()):this[d]=c})}}),f.each(["Height","Width"],function(a,c){var d=c.toLowerCase();f.fn["inner"+c]=function(){var a=this[0];return a&&a.style?parseFloat(f.css(a,d,"padding")):null},f.fn["outer"+c]=function(a){var b=this[0];return b&&b.style?parseFloat(f.css(b,d,a?"margin":"border")):null},f.fn[d]=function(a){var e=this[0];if(!e)return a==null?null:this;if(f.isFunction(a))return this.each(function(b){var c=f(this);c[d](a.call(this,b,c[d]()))});if(f.isWindow(e)){var g=e.document.documentElement["client"+c];return e.document.compatMode==="CSS1Compat"&&g||e.document.body["client"+c]||g}if(e.nodeType===9)return Math.max(e.documentElement["client"+c],e.body["scroll"+c],e.documentElement["scroll"+c],e.body["offset"+c],e.documentElement["offset"+c]);if(a===b){var h=f.css(e,d),i=parseFloat(h);return f.isNaN(i)?h:i}return this.css(d,typeof a=="string"?a:a+"px")}}),a.jQuery=a.$=f})(window); \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/apiCss/jquery.ztree.core-3.5.js b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/apiCss/jquery.ztree.core-3.5.js new file mode 100644 index 00000000..42ab8b44 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/apiCss/jquery.ztree.core-3.5.js @@ -0,0 +1,68 @@ +/* + * JQuery zTree core v3.5.15 + * http://zTree.me/ + * + * Copyright (c) 2010 Hunter.z + * + * Licensed same as jquery - MIT License + * http://www.opensource.org/licenses/mit-license.php + * + * email: hunter.z@263.net + * Date: 2013-10-15 + */ +(function(p){var G,H,I,J,K,L,r={},u={},v={},M={treeId:"",treeObj:null,view:{addDiyDom:null,autoCancelSelected:!0,dblClickExpand:!0,expandSpeed:"fast",fontCss:{},nameIsHTML:!1,selectedMulti:!0,showIcon:!0,showLine:!0,showTitle:!0,txtSelectedEnable:!1},data:{key:{children:"children",name:"name",title:"",url:"url"},simpleData:{enable:!1,idKey:"id",pIdKey:"pId",rootPId:null},keep:{parent:!1,leaf:!1}},async:{enable:!1,contentType:"application/x-www-form-urlencoded",type:"post",dataType:"text",url:"",autoParam:[], +otherParam:[],dataFilter:null},callback:{beforeAsync:null,beforeClick:null,beforeDblClick:null,beforeRightClick:null,beforeMouseDown:null,beforeMouseUp:null,beforeExpand:null,beforeCollapse:null,beforeRemove:null,onAsyncError:null,onAsyncSuccess:null,onNodeCreated:null,onClick:null,onDblClick:null,onRightClick:null,onMouseDown:null,onMouseUp:null,onExpand:null,onCollapse:null,onRemove:null}},w=[function(b){var a=b.treeObj,c=e.event;a.bind(c.NODECREATED,function(a,c,g){j.apply(b.callback.onNodeCreated, +[a,c,g])});a.bind(c.CLICK,function(a,c,g,l,h){j.apply(b.callback.onClick,[c,g,l,h])});a.bind(c.EXPAND,function(a,c,g){j.apply(b.callback.onExpand,[a,c,g])});a.bind(c.COLLAPSE,function(a,c,g){j.apply(b.callback.onCollapse,[a,c,g])});a.bind(c.ASYNC_SUCCESS,function(a,c,g,l){j.apply(b.callback.onAsyncSuccess,[a,c,g,l])});a.bind(c.ASYNC_ERROR,function(a,c,g,l,h,e){j.apply(b.callback.onAsyncError,[a,c,g,l,h,e])})}],x=[function(b){var a=e.event;b.treeObj.unbind(a.NODECREATED).unbind(a.CLICK).unbind(a.EXPAND).unbind(a.COLLAPSE).unbind(a.ASYNC_SUCCESS).unbind(a.ASYNC_ERROR)}], +y=[function(b){var a=h.getCache(b);a||(a={},h.setCache(b,a));a.nodes=[];a.doms=[]}],z=[function(b,a,c,d,f,g){if(c){var l=h.getRoot(b),e=b.data.key.children;c.level=a;c.tId=b.treeId+"_"+ ++l.zId;c.parentTId=d?d.tId:null;c.open=typeof c.open=="string"?j.eqs(c.open,"true"):!!c.open;c[e]&&c[e].length>0?(c.isParent=!0,c.zAsync=!0):(c.isParent=typeof c.isParent=="string"?j.eqs(c.isParent,"true"):!!c.isParent,c.open=c.isParent&&!b.async.enable?c.open:!1,c.zAsync=!c.isParent);c.isFirstNode=f;c.isLastNode= +g;c.getParentNode=function(){return h.getNodeCache(b,c.parentTId)};c.getPreNode=function(){return h.getPreNode(b,c)};c.getNextNode=function(){return h.getNextNode(b,c)};c.isAjaxing=!1;h.fixPIdKeyValue(b,c)}}],s=[function(b){var a=b.target,c=h.getSetting(b.data.treeId),d="",f=null,g="",l="",i=null,n=null,k=null;if(j.eqs(b.type,"mousedown"))l="mousedown";else if(j.eqs(b.type,"mouseup"))l="mouseup";else if(j.eqs(b.type,"contextmenu"))l="contextmenu";else if(j.eqs(b.type,"click"))if(j.eqs(a.tagName,"span")&& +a.getAttribute("treeNode"+e.id.SWITCH)!==null)d=j.getNodeMainDom(a).id,g="switchNode";else{if(k=j.getMDom(c,a,[{tagName:"a",attrName:"treeNode"+e.id.A}]))d=j.getNodeMainDom(k).id,g="clickNode"}else if(j.eqs(b.type,"dblclick")&&(l="dblclick",k=j.getMDom(c,a,[{tagName:"a",attrName:"treeNode"+e.id.A}])))d=j.getNodeMainDom(k).id,g="switchNode";if(l.length>0&&d.length==0&&(k=j.getMDom(c,a,[{tagName:"a",attrName:"treeNode"+e.id.A}])))d=j.getNodeMainDom(k).id;if(d.length>0)switch(f=h.getNodeCache(c,d),g){case "switchNode":f.isParent? +j.eqs(b.type,"click")||j.eqs(b.type,"dblclick")&&j.apply(c.view.dblClickExpand,[c.treeId,f],c.view.dblClickExpand)?i=G:g="":g="";break;case "clickNode":i=H}switch(l){case "mousedown":n=I;break;case "mouseup":n=J;break;case "dblclick":n=K;break;case "contextmenu":n=L}return{stop:!1,node:f,nodeEventType:g,nodeEventCallback:i,treeEventType:l,treeEventCallback:n}}],A=[function(b){var a=h.getRoot(b);a||(a={},h.setRoot(b,a));a[b.data.key.children]=[];a.expandTriggerFlag=!1;a.curSelectedList=[];a.noSelection= +!0;a.createdNodes=[];a.zId=0;a._ver=(new Date).getTime()}],B=[],C=[],D=[],E=[],F=[],h={addNodeCache:function(b,a){h.getCache(b).nodes[h.getNodeCacheId(a.tId)]=a},getNodeCacheId:function(b){return b.substring(b.lastIndexOf("_")+1)},addAfterA:function(b){C.push(b)},addBeforeA:function(b){B.push(b)},addInnerAfterA:function(b){E.push(b)},addInnerBeforeA:function(b){D.push(b)},addInitBind:function(b){w.push(b)},addInitUnBind:function(b){x.push(b)},addInitCache:function(b){y.push(b)},addInitNode:function(b){z.push(b)}, +addInitProxy:function(b,a){a?s.splice(0,0,b):s.push(b)},addInitRoot:function(b){A.push(b)},addNodesData:function(b,a,c){var d=b.data.key.children;a[d]||(a[d]=[]);if(a[d].length>0)a[d][a[d].length-1].isLastNode=!1,i.setNodeLineIcos(b,a[d][a[d].length-1]);a.isParent=!0;a[d]=a[d].concat(c)},addSelectedNode:function(b,a){var c=h.getRoot(b);h.isSelectedNode(b,a)||c.curSelectedList.push(a)},addCreatedNode:function(b,a){(b.callback.onNodeCreated||b.view.addDiyDom)&&h.getRoot(b).createdNodes.push(a)},addZTreeTools:function(b){F.push(b)}, +exSetting:function(b){p.extend(!0,M,b)},fixPIdKeyValue:function(b,a){b.data.simpleData.enable&&(a[b.data.simpleData.pIdKey]=a.parentTId?a.getParentNode()[b.data.simpleData.idKey]:b.data.simpleData.rootPId)},getAfterA:function(b,a,c){for(var d=0,f=C.length;d-1&&g.push(a[l]),g=g.concat(h.getNodesByParamFuzzy(b,a[l][f],c,d));return g},getNodesByFilter:function(b,a,c,d,f){if(!a)return d?null:[];for(var g=b.data.key.children,e=d?null:[],i=0,n=a.length;i0)},clone:function(b){if(b===null)return null;var a=j.isArray(b)?[]:{},c;for(c in b)a[c]=b[c]instanceof Date?new Date(b[c].getTime()):typeof b[c]==="object"?arguments.callee(b[c]):b[c];return a},eqs:function(b,a){return b.toLowerCase()===a.toLowerCase()},isArray:function(b){return Object.prototype.toString.apply(b)==="[object Array]"},$:function(b,a, +c){a&&typeof a!="string"&&(c=a,a="");return typeof b=="string"?p(b,c?c.treeObj.get(0).ownerDocument:null):p("#"+b.tId+a,c?c.treeObj:null)},getMDom:function(b,a,c){if(!a)return null;for(;a&&a.id!==b.treeId;){for(var d=0,f=c.length;a.tagName&&d0},uCanDo:function(){return!0}},i={addNodes:function(b,a,c,d){if(!b.data.keep.leaf||!a||a.isParent)if(j.isArray(c)||(c=[c]),b.data.simpleData.enable&&(c=h.transformTozTreeFormat(b,c)),a){var f=k(a,e.id.SWITCH,b),g=k(a,e.id.ICON,b),l=k(a,e.id.UL,b);if(!a.open)i.replaceSwitchClass(a,f,e.folder.CLOSE),i.replaceIcoClass(a,g,e.folder.CLOSE),a.open=!1,l.css({display:"none"});h.addNodesData(b,a,c);i.createNodes(b,a.level+1,c,a);d||i.expandCollapseParentNode(b,a,!0)}else h.addNodesData(b,h.getRoot(b), +c),i.createNodes(b,0,c,null)},appendNodes:function(b,a,c,d,f,g){if(!c)return[];for(var e=[],j=b.data.key.children,k=0,m=c.length;k0&&(t=i.appendNodes(b,a+1,o[j],o,f,g&&o.open));g&&(i.makeDOMNodeMainBefore(e,b,o),i.makeDOMNodeLine(e,b,o),h.getBeforeA(b,o,e),i.makeDOMNodeNameBefore(e,b,o),h.getInnerBeforeA(b,o,e),i.makeDOMNodeIcon(e,b,o),h.getInnerAfterA(b, +o,e),i.makeDOMNodeNameAfter(e,b,o),h.getAfterA(b,o,e),o.isParent&&o.open&&i.makeUlHtml(b,o,e,t.join("")),i.makeDOMNodeMainAfter(e,b,o),h.addCreatedNode(b,o))}return e},appendParentULDom:function(b,a){var c=[],d=k(a,b);!d.get(0)&&a.parentTId&&(i.appendParentULDom(b,a.getParentNode()),d=k(a,b));var f=k(a,e.id.UL,b);f.get(0)&&f.remove();f=i.appendNodes(b,a.level+1,a[b.data.key.children],a,!1,!0);i.makeUlHtml(b,a,c,f.join(""));d.append(c.join(""))},asyncNode:function(b,a,c,d){var f,g;if(a&&!a.isParent)return j.apply(d), +!1;else if(a&&a.isAjaxing)return!1;else if(j.apply(b.callback.beforeAsync,[b.treeId,a],!0)==!1)return j.apply(d),!1;if(a)a.isAjaxing=!0,k(a,e.id.ICON,b).attr({style:"","class":e.className.BUTTON+" "+e.className.ICO_LOADING});var l={};for(f=0,g=b.async.autoParam.length;a&&f1&&(n=q[1],q=q[0]);l[n]=a[q]}if(j.isArray(b.async.otherParam))for(f=0,g=b.async.otherParam.length;f=0;d--)if(!a||a===c[d])if(k(c[d],e.id.A,b).removeClass(e.node.CURSELECTED),a){h.removeSelectedNode(b,a);break}if(!a)h.getRoot(b).curSelectedList=[]},createNodeCallback:function(b){if(b.callback.onNodeCreated||b.view.addDiyDom)for(var a= +h.getRoot(b);a.createdNodes.length>0;){var c=a.createdNodes.shift();j.apply(b.view.addDiyDom,[b.treeId,c]);b.callback.onNodeCreated&&b.treeObj.trigger(e.event.NODECREATED,[b.treeId,c])}},createNodes:function(b,a,c,d){if(c&&c.length!=0){var f=h.getRoot(b),g=b.data.key.children,g=!d||d.open||!!k(d[g][0],b).get(0);f.createdNodes=[];a=i.appendNodes(b,a,c,d,!0,g);d?(d=k(d,e.id.UL,b),d.get(0)&&d.append(a.join(""))):b.treeObj.append(a.join(""));i.createNodeCallback(b)}},destroy:function(b){b&&(h.initCache(b), +h.initRoot(b),m.unbindTree(b),m.unbindEvent(b),b.treeObj.empty())},expandCollapseNode:function(b,a,c,d,f){var g=h.getRoot(b),l=b.data.key.children;if(a){if(g.expandTriggerFlag){var q=f,f=function(){q&&q();a.open?b.treeObj.trigger(e.event.EXPAND,[b.treeId,a]):b.treeObj.trigger(e.event.COLLAPSE,[b.treeId,a])};g.expandTriggerFlag=!1}if(!a.open&&a.isParent&&(!k(a,e.id.UL,b).get(0)||a[l]&&a[l].length>0&&!k(a[l][0],b).get(0)))i.appendParentULDom(b,a),i.createNodeCallback(b);if(a.open==c)j.apply(f,[]);else{var c= +k(a,e.id.UL,b),g=k(a,e.id.SWITCH,b),n=k(a,e.id.ICON,b);a.isParent?(a.open=!a.open,a.iconOpen&&a.iconClose&&n.attr("style",i.makeNodeIcoStyle(b,a)),a.open?(i.replaceSwitchClass(a,g,e.folder.OPEN),i.replaceIcoClass(a,n,e.folder.OPEN),d==!1||b.view.expandSpeed==""?(c.show(),j.apply(f,[])):a[l]&&a[l].length>0?c.slideDown(b.view.expandSpeed,f):(c.show(),j.apply(f,[]))):(i.replaceSwitchClass(a,g,e.folder.CLOSE),i.replaceIcoClass(a,n,e.folder.CLOSE),d==!1||b.view.expandSpeed==""||!(a[l]&&a[l].length>0)? +(c.hide(),j.apply(f,[])):c.slideUp(b.view.expandSpeed,f))):j.apply(f,[])}}else j.apply(f,[])},expandCollapseParentNode:function(b,a,c,d,f){a&&(a.parentTId?(i.expandCollapseNode(b,a,c,d),a.parentTId&&i.expandCollapseParentNode(b,a.getParentNode(),c,d,f)):i.expandCollapseNode(b,a,c,d,f))},expandCollapseSonNode:function(b,a,c,d,f){var g=h.getRoot(b),e=b.data.key.children,g=a?a[e]:g[e],e=a?!1:d,j=h.getRoot(b).expandTriggerFlag;h.getRoot(b).expandTriggerFlag=!1;if(g)for(var k=0,m=g.length;k/g,">");b.push("",d,"")},makeDOMNodeLine:function(b,a,c){b.push("")},makeDOMNodeMainAfter:function(b){b.push("")},makeDOMNodeMainBefore:function(b,a,c){b.push("
            • ")},makeDOMNodeNameAfter:function(b){b.push("")},makeDOMNodeNameBefore:function(b,a,c){var d=h.getNodeTitle(a,c),f=i.makeNodeUrl(a,c),g=i.makeNodeFontCss(a,c),l=[],k;for(k in g)l.push(k,":",g[k],";");b.push("0?"href='"+f+"'":""," target='",i.makeNodeTarget(c),"' style='",l.join(""),"'");j.apply(a.view.showTitle,[a.treeId,c],a.view.showTitle)&&d&&b.push("title='",d.replace(/'/g,"'").replace(//g,">"),"'");b.push(">")},makeNodeFontCss:function(b,a){var c=j.apply(b.view.fontCss,[b.treeId,a],b.view.fontCss);return c&&typeof c!="function"?c:{}},makeNodeIcoClass:function(b, +a){var c=["ico"];a.isAjaxing||(c[0]=(a.iconSkin?a.iconSkin+"_":"")+c[0],a.isParent?c.push(a.open?e.folder.OPEN:e.folder.CLOSE):c.push(e.folder.DOCU));return e.className.BUTTON+" "+c.join("_")},makeNodeIcoStyle:function(b,a){var c=[];if(!a.isAjaxing){var d=a.isParent&&a.iconOpen&&a.iconClose?a.open?a.iconOpen:a.iconClose:a.icon;d&&c.push("background:url(",d,") 0 0 no-repeat;");(b.view.showIcon==!1||!j.apply(b.view.showIcon,[b.treeId,a],!0))&&c.push("width:0px;height:0px;")}return c.join("")},makeNodeLineClass:function(b, +a){var c=[];b.view.showLine?a.level==0&&a.isFirstNode&&a.isLastNode?c.push(e.line.ROOT):a.level==0&&a.isFirstNode?c.push(e.line.ROOTS):a.isLastNode?c.push(e.line.BOTTOM):c.push(e.line.CENTER):c.push(e.line.NOLINE);a.isParent?c.push(a.open?e.folder.OPEN:e.folder.CLOSE):c.push(e.folder.DOCU);return i.makeNodeLineClassEx(a)+c.join("_")},makeNodeLineClassEx:function(b){return e.className.BUTTON+" "+e.className.LEVEL+b.level+" "+e.className.SWITCH+" "},makeNodeTarget:function(b){return b.target||"_blank"}, +makeNodeUrl:function(b,a){var c=b.data.key.url;return a[c]?a[c]:null},makeUlHtml:function(b,a,c,d){c.push("
                ");c.push(d);c.push("
              ")},makeUlLineClass:function(b,a){return b.view.showLine&&!a.isLastNode?e.line.LINE:""},removeChildNodes:function(b,a){if(a){var c=b.data.key.children,d=a[c];if(d){for(var f=0,g=d.length;f0)a[c][0].isFirstNode=!0},setLastNode:function(b,a){var c=b.data.key.children,d=a[c].length;if(d>0)a[c][d-1].isLastNode=!0},removeNode:function(b,a){var c=h.getRoot(b),d=b.data.key.children,f=a.parentTId?a.getParentNode(): +c;a.isFirstNode=!1;a.isLastNode=!1;a.getPreNode=function(){return null};a.getNextNode=function(){return null};if(h.getNodeCache(b,a.tId)){k(a,b).remove();h.removeNodeCache(b,a);h.removeSelectedNode(b,a);for(var g=0,l=f[d].length;g0){var n=f[d][g-1],g=k(n,e.id.UL,b),l=k(n,e.id.SWITCH,b);j=k(n,e.id.ICON,b);f==c?f[d].length==1?i.replaceSwitchClass(n,l,e.line.ROOT):(c=k(f[d][0],e.id.SWITCH,b),i.replaceSwitchClass(f[d][0],c,e.line.ROOTS),i.replaceSwitchClass(n,l,e.line.BOTTOM)):i.replaceSwitchClass(n,l,e.line.BOTTOM);g.removeClass(e.line.LINE)}}},replaceIcoClass:function(b,a,c){if(a&&!b.isAjaxing&&(b=a.attr("class"),b!=void 0)){b=b.split("_");switch(c){case e.folder.OPEN:case e.folder.CLOSE:case e.folder.DOCU:b[b.length- +1]=c}a.attr("class",b.join("_"))}},replaceSwitchClass:function(b,a,c){if(a){var d=a.attr("class");if(d!=void 0){d=d.split("_");switch(c){case e.line.ROOT:case e.line.ROOTS:case e.line.CENTER:case e.line.BOTTOM:case e.line.NOLINE:d[0]=i.makeNodeLineClassEx(b)+c;break;case e.folder.OPEN:case e.folder.CLOSE:case e.folder.DOCU:d[1]=c}a.attr("class",d.join("_"));c!==e.folder.DOCU?a.removeAttr("disabled"):a.attr("disabled","disabled")}}},selectNode:function(b,a,c){c||i.cancelPreSelectedNode(b);k(a,e.id.A, +b).addClass(e.node.CURSELECTED);h.addSelectedNode(b,a)},setNodeFontCss:function(b,a){var c=k(a,e.id.A,b),d=i.makeNodeFontCss(b,a);d&&c.css(d)},setNodeLineIcos:function(b,a){if(a){var c=k(a,e.id.SWITCH,b),d=k(a,e.id.UL,b),f=k(a,e.id.ICON,b),g=i.makeUlLineClass(b,a);g.length==0?d.removeClass(e.line.LINE):d.addClass(g);c.attr("class",i.makeNodeLineClass(b,a));a.isParent?c.removeAttr("disabled"):c.attr("disabled","disabled");f.removeAttr("style");f.attr("style",i.makeNodeIcoStyle(b,a));f.attr("class", +i.makeNodeIcoClass(b,a))}},setNodeName:function(b,a){var c=h.getNodeTitle(b,a),d=k(a,e.id.SPAN,b);d.empty();b.view.nameIsHTML?d.html(h.getNodeName(b,a)):d.text(h.getNodeName(b,a));j.apply(b.view.showTitle,[b.treeId,a],b.view.showTitle)&&k(a,e.id.A,b).attr("title",!c?"":c)},setNodeTarget:function(b,a){k(a,e.id.A,b).attr("target",i.makeNodeTarget(a))},setNodeUrl:function(b,a){var c=k(a,e.id.A,b),d=i.makeNodeUrl(b,a);d==null||d.length==0?c.removeAttr("href"):c.attr("href",d)},switchNode:function(b,a){a.open|| +!j.canAsync(b,a)?i.expandCollapseNode(b,a,!a.open):b.async.enable?i.asyncNode(b,a)||i.expandCollapseNode(b,a,!a.open):a&&i.expandCollapseNode(b,a,!a.open)}};p.fn.zTree={consts:{className:{BUTTON:"button",LEVEL:"level",ICO_LOADING:"ico_loading",SWITCH:"switch"},event:{NODECREATED:"ztree_nodeCreated",CLICK:"ztree_click",EXPAND:"ztree_expand",COLLAPSE:"ztree_collapse",ASYNC_SUCCESS:"ztree_async_success",ASYNC_ERROR:"ztree_async_error"},id:{A:"_a",ICON:"_ico",SPAN:"_span",SWITCH:"_switch",UL:"_ul"},line:{ROOT:"root", +ROOTS:"roots",CENTER:"center",BOTTOM:"bottom",NOLINE:"noline",LINE:"line"},folder:{OPEN:"open",CLOSE:"close",DOCU:"docu"},node:{CURSELECTED:"curSelectedNode"}},_z:{tools:j,view:i,event:m,data:h},getZTreeObj:function(b){return(b=h.getZTreeTools(b))?b:null},destroy:function(b){if(b&&b.length>0)i.destroy(h.getSetting(b));else for(var a in r)i.destroy(r[a])},init:function(b,a,c){var d=j.clone(M);p.extend(!0,d,a);d.treeId=b.attr("id");d.treeObj=b;d.treeObj.empty();r[d.treeId]=d;if(typeof document.body.style.maxHeight=== +"undefined")d.view.expandSpeed="";h.initRoot(d);b=h.getRoot(d);a=d.data.key.children;c=c?j.clone(j.isArray(c)?c:[c]):[];b[a]=d.data.simpleData.enable?h.transformTozTreeFormat(d,c):c;h.initCache(d);m.unbindTree(d);m.bindTree(d);m.unbindEvent(d);m.bindEvent(d);c={setting:d,addNodes:function(a,b,c){function e(){i.addNodes(d,a,h,c==!0)}if(!b)return null;a||(a=null);if(a&&!a.isParent&&d.data.keep.leaf)return null;var h=j.clone(j.isArray(b)?b:[b]);j.canAsync(d,a)?i.asyncNode(d,a,c,e):e();return h},cancelSelectedNode:function(a){i.cancelPreSelectedNode(d, +a)},destroy:function(){i.destroy(d)},expandAll:function(a){a=!!a;i.expandCollapseSonNode(d,null,a,!0);return a},expandNode:function(a,b,c,e,n){if(!a||!a.isParent)return null;b!==!0&&b!==!1&&(b=!a.open);if((n=!!n)&&b&&j.apply(d.callback.beforeExpand,[d.treeId,a],!0)==!1)return null;else if(n&&!b&&j.apply(d.callback.beforeCollapse,[d.treeId,a],!0)==!1)return null;b&&a.parentTId&&i.expandCollapseParentNode(d,a.getParentNode(),b,!1);if(b===a.open&&!c)return null;h.getRoot(d).expandTriggerFlag=n;if(!j.canAsync(d, +a)&&c)i.expandCollapseSonNode(d,a,b,!0,function(){if(e!==!1)try{k(a,d).focus().blur()}catch(b){}});else if(a.open=!b,i.switchNode(this.setting,a),e!==!1)try{k(a,d).focus().blur()}catch(m){}return b},getNodes:function(){return h.getNodes(d)},getNodeByParam:function(a,b,c){return!a?null:h.getNodeByParam(d,c?c[d.data.key.children]:h.getNodes(d),a,b)},getNodeByTId:function(a){return h.getNodeCache(d,a)},getNodesByParam:function(a,b,c){return!a?null:h.getNodesByParam(d,c?c[d.data.key.children]:h.getNodes(d), +a,b)},getNodesByParamFuzzy:function(a,b,c){return!a?null:h.getNodesByParamFuzzy(d,c?c[d.data.key.children]:h.getNodes(d),a,b)},getNodesByFilter:function(a,b,c,e){b=!!b;return!a||typeof a!="function"?b?null:[]:h.getNodesByFilter(d,c?c[d.data.key.children]:h.getNodes(d),a,b,e)},getNodeIndex:function(a){if(!a)return null;for(var b=d.data.key.children,c=a.parentTId?a.getParentNode():h.getRoot(d),e=0,i=c[b].length;e0?i.createNodes(d, +0,b[a]):d.async.enable&&d.async.url&&d.async.url!==""&&i.asyncNode(d);return c}};var N=p.fn.zTree,k=j.$,e=N.consts})(jQuery); diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/apiCss/zTreeStyleForApi.css b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/apiCss/zTreeStyleForApi.css new file mode 100644 index 00000000..bb4717bc --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/apiCss/zTreeStyleForApi.css @@ -0,0 +1,49 @@ +/*------------------------------------- +zTree Style + +version: 3.0 +author: Hunter.z +email: hunter.z@263.net +website: http://code.google.com/p/jquerytree/ + +-------------------------------------*/ + +.ztree * {padding:0; margin:0; font-size:12px; font-family: Verdana, Arial, Helvetica, AppleGothic, sans-serif} +.ztree {margin:0; padding:5px; color:#333} +.ztree li{padding:0; margin:0; list-style:none; line-height:14px; text-align:left; white-space:nowrap} +.ztree li ul{ margin:0; padding:0 0 0 18px} +.ztree li ul.line{ background:url(./img/line_conn.gif) 0 0 repeat-y;} + +.ztree li a {padding:1px 3px 0 0; margin:0; cursor:pointer; color:#333; height:17px; text-decoration:none; vertical-align:top; display: inline-block} +.ztree li a:hover {text-decoration:none} +.ztree li a.curSelectedNode {padding-top:0px; background-color:#FFE6B0; color:black; height:16px; border:1px #FFB951 solid;} +.ztree li a.curSelectedNode_Edit {padding-top:0px; background-color:#FFE6B0; color:black; height:16px; border:1px #FFB951 solid; opacity:0.8; filter:alpha(opacity=80)} +.ztree li a.tmpTargetNode_inner {padding-top:0px; background-color:#316AC5; color:white; height:16px; border:1px #316AC5 solid; opacity:0.8; filter:alpha(opacity=80)} +.ztree li a.tmpTargetNode_prev {} +.ztree li a.tmpTargetNode_next {} +.ztree li a input.rename {height:14px; width:80px; padding:0; margin:0; + font-size:12px; border:1px #7EC4CC solid; *border:0px} +.ztree li span {line-height:16px; margin-right: 2px} +.ztree li span.button {line-height:0; margin:0;width:16px; height:16px; display: inline-block; vertical-align:middle; + border:0 none; cursor: pointer; + background-color:transparent; background-repeat:no-repeat; background-attachment: scroll; + background-image:url("./img/zTreeStandard.png"); *background-image:url("./img/zTreeStandard.gif")} + +.ztree li span.button.switch {width:1px; height:18px; visibility: hidden} + +.zTreeDragUL {margin:0; padding:0; position:absolute; background-color:#cfcfcf; border:1px #00B83F dotted; opacity:0.8; filter:alpha(opacity=80)} +.zTreeMask {z-index:10000; background-color:#cfcfcf; opacity:0.0; filter:alpha(opacity=0); position:absolute} + +/* level 等级样式*/ +/*.ztree li button.level0 { + display:none; +} +.ztree li ul.level0 { + padding:0; + background:none; +}*/ + +.ztree li span.button.core_ico_docu{margin-right:2px; background-position:-126px 0; vertical-align:top; *vertical-align:middle} +.ztree li span.button.check_ico_docu{margin-right:2px; background-position:-126px -16px; vertical-align:top; *vertical-align:middle} +.ztree li span.button.edit_ico_docu{margin-right:2px; background-position:-126px -32px; vertical-align:top; *vertical-align:middle} +.ztree li span.button.hide_ico_docu{margin-right:2px; background-position:-160px 0; vertical-align:top; *vertical-align:middle} diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/fn.zTree._z.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/fn.zTree._z.html new file mode 100644 index 00000000..7af3e40d --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/fn.zTree._z.html @@ -0,0 +1,13 @@ +
              +
              +

              JSON$.fn.zTree._z

              +

              概述[ 依赖 jquery.ztree.core 核心 js ]

              +
              +

              +
              +

              zTree v3.x 内部的全部方法都可以通过 $.fn.zTree._z 进行调用,开放出来是为了更便于大家开发制作自己的 zTree 插件。

              +

              如无特殊需求请勿使用此对象,以及修改此对象内部的各个函数。

              +
              +
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/fn.zTree.destroy.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/fn.zTree.destroy.html new file mode 100644 index 00000000..71058076 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/fn.zTree.destroy.html @@ -0,0 +1,28 @@ +
              +
              +

              Function(treeId)$.fn.zTree.destroy

              +

              概述[ 依赖 jquery.ztree.core 核心 js ]

              +
              +

              +
              +

              从 zTree v3.4 开始提供销毁 zTree 的方法。

              +

              1、用此方法可以销毁指定 treeId 的 zTree,也可以销毁当前页面全部的 zTree。

              +

              2、销毁指定 treeId 的 zTree 也可以使用 zTreeObj.destroy() 方法。

              +

              3、重新使用已经被销毁的树,必须要使用 init 方法进行初始化。

              +
              +
              +

              Function 参数说明

              +
              +

              treeIdString

              +

              zTree 的 DOM 容器的 id

              +

              省略 treeId,表示销毁当前页面全部的 zTree

              +

              返回值

              +

              目前无任何返回值

              +
              +

              function 举例

              +

              1. 销毁 id 为 "treeDemo" 的 zTree

              +
              $.fn.zTree.destroy("treeDemo");
              +

              2. 销毁全部 的 zTree

              +
              $.fn.zTree.destroy();
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/fn.zTree.getZTreeObj.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/fn.zTree.getZTreeObj.html new file mode 100644 index 00000000..b1d1db40 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/fn.zTree.getZTreeObj.html @@ -0,0 +1,24 @@ +
              +
              +

              Function(treeId)$.fn.zTree.getZTreeObj

              +

              概述[ 依赖 jquery.ztree.core 核心 js ]

              +
              +

              +
              +

              zTree v3.x 专门提供的根据 treeId 获取 zTree 对象的方法。

              +

              必须在初始化 zTree 以后才可以使用此方法。

              +

              有了这个方法,用户不再需要自己设定全局变量来保存 zTree 初始化后得到的对象了,而且在所有回调函数中全都会返回 treeId 属性,用户可以随时使用此方法获取需要进行操作的 zTree 对象

              +
              +
              +

              Function 参数说明

              +
              +

              treeIdString

              +

              zTree 的 DOM 容器的 id

              +

              返回值JSON

              +

              zTree 对象,提供操作 zTree 的各种方法,对于通过 js 操作 zTree 来说必须通过此对象

              +
              +

              function 举例

              +

              1. 获取 id 为 tree 的 zTree 对象

              +
              var treeObj = $.fn.zTree.getZTreeObj("tree");
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/fn.zTree.init.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/fn.zTree.init.html new file mode 100644 index 00000000..8db6d2c7 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/fn.zTree.init.html @@ -0,0 +1,74 @@ +
              +
              +

              Function(obj, zSetting, zNodes)$.fn.zTree.init

              +

              概述[ 依赖 jquery.ztree.core 核心 js ]

              +
              +

              +
              +

              zTree 初始化方法,创建 zTree 必须使用此方法

              +

              1、页面需要进行 W3C 申明,例如:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">。

              +

              2、需要首先加载 jquery-1.4.2.js 或其他更高版本的 jQuery 。

              +

              3、需要加载 jquery-ztree.core-3.0.js,如果需要用到 编辑功能 或 checkbox / radio 还需要分别加载 jquery-ztree.exedit-3.0.js 和 jquery-ztree.excheck-3.0.js 。

              +

              4、需要加载 zTreeStyle.css 以及 zTreeStyle 目录下的 img 文件。

              +

              5、如果需要使用自定义图标请参考相应的Demo。

              +

              6、请注意设置 zTree 的容器样式 class="ztree",其中 "ztree" 这个 className,可以根据需要随意修改,别忘了修改 css 中对应名字就是了,对于容器如果需要增加其他特殊样式,可根据自己的需要进行修改。

              +
              +
              +

              Function 参数说明

              +
              +

              objjQuery Object

              +

              用于展现 zTree 的 DOM 容器

              +

              zSettingJSON

              +

              zTree 的配置数据,具体请参考 “setting 配置详解”中的各个属性详细说明

              +

              zNodesArray(JSON) / JSON

              +

              zTree 的节点数据,具体请参考 “treeNode 节点数据详解”中的各个属性详细说明

              +

              1、v3.x 支持单独添加一个节点,即如果只新增一个节点,不用必须包在数组中

              +

              2、如果需要异步加载根节点,可以设置为 null 或 [ ]

              +

              3、使用简单数据模式,请参考 setting.data.simpleData 内的属性说明

              +

              返回值JSON

              +

              zTree 对象,提供操作 zTree 的各种方法,对于通过 js 操作 zTree 来说必须通过此对象

              +

              如果不需要自行设定全局变量保存,可以利用 $.fn.zTree.getZTreeObj 方法随时获取

              +
              +

              setting & function 举例

              +

              1. 简单创建 zTree 演示

              +
              <!DOCTYPE html>
              +<HTML>
              + <HEAD>
              +  <TITLE> ZTREE DEMO </TITLE>
              +  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
              +  <link rel="stylesheet" href="zTreeStyle/zTreeStyle.css" type="text/css">
              +  <script type="text/javascript" src="jquery-1.4.2.js"></script>
              +  <script type="text/javascript" src="jquery.ztree.core-3.5.js"></script>
              +<!--
              +  <script type="text/javascript" src="jquery.ztree.excheck-3.5.js"></script>
              +  <script type="text/javascript" src="jquery.ztree.exedit-3.5.js"></script>
              +-->
              +  <SCRIPT type="text/javascript" >
              +	var zTreeObj,
              +	setting = {
              +		view: {
              +			selectedMulti: false
              +		}
              +	},
              +	zTreeNodes = [
              +		{"name":"网站导航", open:true, children: [
              +			{ "name":"google", "url":"http://g.cn", "target":"_blank"},
              +			{ "name":"baidu", "url":"http://baidu.com", "target":"_blank"},
              +			{ "name":"sina", "url":"http://www.sina.com.cn", "target":"_blank"}
              +			]
              +		}
              +	];
              +
              +	$(document).ready(function(){
              +		zTreeObj = $.fn.zTree.init($("#tree"), setting, zTreeNodes);
              +
              +	});
              +  </SCRIPT>
              + </HEAD>
              +
              +<BODY>
              +<ul id="tree" class="ztree" style="width:230px; overflow:auto;"></ul>
              + </BODY>
              +</HTML>
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.async.autoParam.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.async.autoParam.html new file mode 100644 index 00000000..cf0f4d27 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.async.autoParam.html @@ -0,0 +1,39 @@ +
              +
              +

              Array(String)setting.async.autoParam

              +

              概述[ 依赖 jquery.ztree.core 核心 js ]

              +
              +

              +
              +

              异步加载时需要自动提交父节点属性的参数。[setting.async.enable = true 时生效]

              +

              默认值:[ ]

              +
              +
              +

              Array(String) 格式说明

              +
              +

              1、将需要作为参数提交的属性名称,制作成 Array 即可,例如:["id", "name"]

              +

              2、可以设置提交时的参数名称,例如 server 只接受 zId : ["id=zId"]

              +
              +

              setting 举例

              +

              1. 设置 id 属性为自动提交的参数

              +
              var setting = {
              +	async: {
              +		enable: true,
              +		url: "http://host/getNode.php",
              +		autoParam: ["id"]
              +	}
              +};
              +假设 异步加载 父节点(node = {id:1, name:"test"}) 的子节点时,将提交参数 id=1
              +......
              +

              2. 设置 id 属性作为 zId 成为自动提交的参数

              +
              var setting = {
              +	async: {
              +		enable: true,
              +		url: "http://host/getNode.php",
              +		autoParam: ["id=zId"]
              +	}
              +};
              +假设 对父节点 node = {id:1, name:"test"},进行异步加载时,将提交参数 zId=1
              +......
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.async.contentType.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.async.contentType.html new file mode 100644 index 00000000..db0c92fe --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.async.contentType.html @@ -0,0 +1,29 @@ +
              +
              +

              Stringsetting.async.contentType

              +

              概述[ 依赖 jquery.ztree.core 核心 js ]

              +
              +

              +
              +

              Ajax 提交参数的数据类型。[setting.async.enable = true 时生效]

              +

              默认值:"application/x-www-form-urlencoded"

              +
              +
              +

              String 格式说明

              +
              +

              contentType = "application/x-www-form-urlencoded" 可以满足绝大部分请求,按照标准的 Form 格式提交参数

              +

              contentType = "application/json" 可以满足 .Net 的编程需要,按照 JSON 格式提交参数

              +
              +

              setting 举例

              +

              1. 设置 Ajax 提交参数的数据类型为 JSON 格式

              +
              var setting = {
              +	async: {
              +		enable: true,
              +		contentType: "application/json",
              +		url: "http://host/getNode.php",
              +		autoParam: ["id", "name"]
              +	}
              +};
              +......
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.async.dataFilter.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.async.dataFilter.html new file mode 100644 index 00000000..f174bf0f --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.async.dataFilter.html @@ -0,0 +1,45 @@ +
              +
              +

              Function(treeId, parentNode, responseData)setting.async.dataFilter

              +

              概述[ 依赖 jquery.ztree.core 核心 js ]

              +
              +

              +
              +

              用于对 Ajax 返回数据进行预处理的函数。[setting.async.enable = true 时生效]

              +

              默认值:null

              +
              +
              +

              Function 参数说明

              +
              +

              treeIdString

              +

              对应 zTree 的 treeId,便于用户操控

              +

              parentNodeJSON

              +

              进行异步加载的父节点 JSON 数据对象

              +

              对根进行异步加载时,parentNode = null

              +

              responseDataArray(JSON) / JSON / String

              +

              异步加载获取到的数据转换后的 Array(JSON) / JSON / String 数据对象

              +

              v3.4开始 支持 XML 数据格式的 String

              +

              返回值Array(JSON) / JSON

              +

              返回值是 zTree 支持的JSON 数据结构即可。

              +

              v3.x 支持单个 JSON 节点数据进行加载

              +
              +

              setting & function 举例

              +

              1. 修改异步获取到的节点name属性

              +
              function ajaxDataFilter(treeId, parentNode, responseData) {
              +    if (responseData) {
              +      for(var i =0; i < responseData.length; i++) {
              +        responseData[i].name += "_filter";
              +      }
              +    }
              +    return responseData;
              +};
              +var setting = {
              +	async: {
              +		enable: true,
              +		url: "http://host/getNode.php",
              +		dataFilter: ajaxDataFilter
              +	}
              +};
              +......
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.async.dataType.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.async.dataType.html new file mode 100644 index 00000000..6d639b70 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.async.dataType.html @@ -0,0 +1,29 @@ +
              +
              +

              Stringsetting.async.dataType

              +

              概述[ 依赖 jquery.ztree.core 核心 js ]

              +
              +

              +
              +

              Ajax 获取的数据类型。[setting.async.enable = true 时生效]

              +

              默认值:"text"

              +
              +
              +

              String 格式说明

              +
              +

              dataType = "text" 可以满足绝大部分请求

              +

              其余 dataType 类型请参考 jQuery ajax 中的 dataType 参数

              +
              +

              setting 举例

              +

              1. 设置 Ajax 获取的数据类型为 纯文本

              +
              var setting = {
              +	async: {
              +		enable: true,
              +		dataType: "text",
              +		url: "http://host/getNode.php",
              +		autoParam: ["id", "name"]
              +	}
              +};
              +......
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.async.enable.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.async.enable.html new file mode 100644 index 00000000..9079ae10 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.async.enable.html @@ -0,0 +1,30 @@ +
              +
              +

              Booleansetting.async.enable

              +

              概述[ 依赖 jquery.ztree.core 核心 js ]

              +
              +

              +
              +

              设置 zTree 是否开启异步加载模式

              +

              默认值:false

              +
              +
              +

              Boolean 格式说明

              +
              +

              true 表示 开启 异步加载模式

              +

              false 表示 关闭 异步加载模式

              +

              如果设置为 true,请务必设置 setting.async 内的其它参数。

              +

              如果需要根节点也异步加载,初始化时 treeNodes 参数设置为 null 即可。

              +
              +

              setting 举例

              +

              1. 需要开启异步加载模式

              +
              var setting = {
              +	async: {
              +		enable: true,
              +		url: "http://host/getNode.php",
              +		autoParam: ["id", "name"]
              +	}
              +};
              +......
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.async.otherParam.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.async.otherParam.html new file mode 100644 index 00000000..981715f1 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.async.otherParam.html @@ -0,0 +1,40 @@ +
              +
              +

              Array(String) / JSONsetting.async.otherParam

              +

              概述[ 依赖 jquery.ztree.core 核心 js ]

              +
              +

              +
              +

              Ajax 请求提交的静态参数键值对。[setting.async.enable = true 时生效]

              +

              默认值:[ ]

              +
              +
              +

              Array(String) 格式说明

              +
              +

              可以为空[ ],如果有 key,则必须存在 value。 例如:[key, value]

              +
              +

              JSON 格式说明

              +
              +

              直接用 JSON 格式制作键值对,例如:{ key1:value1, key2:value2 }

              +
              +

              setting 举例

              +

              1. 设置 Array(String) 格式的参数

              +
              var setting = {
              +	async: {
              +		enable: true,
              +		url: "http://host/getNode.php",
              +		otherParam: ["id", "1", "name", "test"]
              +	}
              +};
              +进行异步加载时,将提交参数 id=1&name=test
              +

              2. 设置 JSON 格式的参数

              +
              var setting = {
              +	async: {
              +		enable: true,
              +		url: "http://host/getNode.php",
              +		otherParam: { "id":"1", "name":"test"}
              +	}
              +};
              +进行异步加载时,将提交参数 id=1&name=test
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.async.type.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.async.type.html new file mode 100644 index 00000000..20d9a6b8 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.async.type.html @@ -0,0 +1,30 @@ +
              +
              +

              Stringsetting.async.type

              +

              概述[ 依赖 jquery.ztree.core 核心 js ]

              +
              +

              +
              +

              Ajax 的 http 请求模式。[setting.async.enable = true 时生效]

              +

              默认值:"post"

              +
              +
              +

              String 格式说明

              +
              +

              type = "post" 表示异步加载采用 post 方法请求

              +

              type = "get" 表示异步加载采用 get 方法请求

              +

              对应于 jQuery ajax 中的 type 参数

              +
              +

              setting 举例

              +

              1. 设置使用 get 方式请求数据

              +
              var setting = {
              +	async: {
              +		enable: true,
              +		type: "get",
              +		url: "http://host/getNode.php",
              +		autoParam: ["id", "name"]
              +	}
              +};
              +......
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.async.url.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.async.url.html new file mode 100644 index 00000000..a5209afa --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.async.url.html @@ -0,0 +1,50 @@ +
              +
              +

              String / Function(treeId, treeNode)setting.async.url

              +

              概述[ 依赖 jquery.ztree.core 核心 js ]

              +
              +

              +
              +

              Ajax 获取数据的 URL 地址。[setting.async.enable = true 时生效]

              +

              默认值:""

              +
              +
              +

              String 格式说明

              +
              +

              设置固定的异步加载 url 字符串,请注意地址的路径,确保页面能正常加载

              +

              url 内也可以带参数,这些参数就只能是通过 get 方式提交了,并且请注意进行转码

              +
              +

              Function 参数说明

              +
              +

              treeIdString

              +

              对应 zTree 的 treeId,便于用户操控

              +

              treeNodeJSON

              +

              需要异步加载子节点的的父节点 JSON 数据对象

              +

              针对根进行异步加载时,treeNode = null

              +

              返回值String

              +

              返回值同 String 格式的数据

              +
              +

              setting & function 举例

              +

              1. 设置异步获取节点的 URL 为 nodes.php

              +
              var setting = {
              +	async: {
              +		enable: true,
              +		url: "nodes.php",
              +		autoParam: ["id", "name"]
              +	}
              +};
              +......
              +

              2. 设置异步获取节点的 URL 为 function 动态获取

              +
              function getAsyncUrl(treeId, treeNode) {
              +    return treeNode.isParent ? "nodes1.php" : "nodes2.php";
              +};
              +var setting = {
              +	async: {
              +		enable: true,
              +		url: getAsyncUrl,
              +		autoParam: ["id", "name"]
              +	}
              +};
              +......
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.callback.beforeAsync.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.callback.beforeAsync.html new file mode 100644 index 00000000..70ba0fc4 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.callback.beforeAsync.html @@ -0,0 +1,35 @@ +
              +
              +

              Function(treeId, treeNode)setting.callback.beforeAsync

              +

              概述[ 依赖 jquery.ztree.core 核心 js ]

              +
              +

              +
              +

              用于捕获异步加载之前的事件回调函数,zTree 根据返回值确定是否允许进行异步加载

              +

              默认值:null

              +
              +
              +

              Function 参数说明

              +
              +

              treeIdString

              +

              对应 zTree 的 treeId,便于用户操控

              +

              treeNodeJSON

              +

              进行异步加载的父节点 JSON 数据对象

              +

              针对根进行异步加载时,treeNode = null

              +

              返回值Boolean

              +

              返回值是 true / false

              +

              如果返回 false,zTree 将不进行异步加载,也无法触发 onAsyncSuccess / onAsyncError 事件回调函数

              +
              +

              setting & function 举例

              +

              1. 禁止 id 为 1 的父节点进行异步加载操作

              +
              function zTreeBeforeAsync(treeId, treeNode) {
              +    return (treeNode.id !== 1);
              +};
              +var setting = {
              +	callback: {
              +		beforeAsync: zTreeBeforeAsync
              +	}
              +};
              +......
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.callback.beforeCheck.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.callback.beforeCheck.html new file mode 100644 index 00000000..a0e1f42f --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.callback.beforeCheck.html @@ -0,0 +1,34 @@ +
              +
              +

              Function(treeId, treeNode)setting.callback.beforeCheck

              +

              概述[ 依赖 jquery.ztree.excheck 扩展 js ]

              +
              +

              +
              +

              用于捕获 勾选 或 取消勾选 之前的事件回调函数,并且根据返回值确定是否允许 勾选 或 取消勾选

              +

              默认值:null

              +
              +
              +

              Function 参数说明

              +
              +

              treeIdString

              +

              对应 zTree 的 treeId,便于用户操控

              +

              treeNodeJSON

              +

              进行 勾选 或 取消勾选 的节点 JSON 数据对象

              +

              返回值Boolean

              +

              返回值是 true / false

              +

              如果返回 false,将不会改变勾选状态,并且无法触发 onCheck 事件回调函数

              +
              +

              setting & function 举例

              +

              1. 禁止所有勾选操作,保持初始化的勾选状态

              +
              function zTreeBeforeCheck(treeId, treeNode) {
              +    return false;
              +};
              +var setting = {
              +	callback: {
              +		beforeCheck: zTreeBeforeCheck
              +	}
              +};
              +......
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.callback.beforeClick.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.callback.beforeClick.html new file mode 100644 index 00000000..6d6e7482 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.callback.beforeClick.html @@ -0,0 +1,49 @@ +
              +
              +

              Function(treeId, treeNode, clickFlag)setting.callback.beforeClick

              +

              概述[ 依赖 jquery.ztree.core 核心 js ]

              +
              +

              +
              +

              用于捕获单击节点之前的事件回调函数,并且根据返回值确定是否允许单击操作

              +

              默认值:null

              +
              +
              +

              Function 参数说明

              +
              +

              treeIdString

              +

              对应 zTree 的 treeId,便于用户操控

              +

              treeNodeJSON

              +

              被单击的节点 JSON 数据对象

              +

              clickFlagNumber

              +

              节点被点击后的选中操作类型,详细看下表

              + + + + + + + + + + + + +
              clickFlagselectedMultiautoCancelSelected
              &&
              event.ctrlKey
              isSelected选中操作
              1truefalsefalse普通选中
              1truefalsetrue普通选中
              2truetruefalse追加选中
              0truetruetrue取消选中
              1falsefalsefalse普通选中
              1falsefalsetrue普通选中
              1falsetruefalse普通选中
              0falsetruetrue取消选中
              +

              返回值Boolean

              +

              返回值是 true / false

              +

              如果返回 false,zTree 将不会选中节点,也无法触发 onClick 事件回调函数

              +
              +

              setting & function 举例

              +

              1. 禁止节点被选中

              +
              function zTreeBeforeClick(treeId, treeNode, clickFlag) {
              +    return (treeNode.id !== 1);
              +};
              +var setting = {
              +	callback: {
              +		beforeClick: zTreeBeforeClick
              +	}
              +};
              +......
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.callback.beforeCollapse.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.callback.beforeCollapse.html new file mode 100644 index 00000000..d778e9c8 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.callback.beforeCollapse.html @@ -0,0 +1,34 @@ +
              +
              +

              Function(treeId, treeNode)setting.callback.beforeCollapse

              +

              概述[ 依赖 jquery.ztree.core 核心 js ]

              +
              +

              +
              +

              用于捕获父节点折叠之前的事件回调函数,并且根据返回值确定是否允许折叠操作

              +

              默认值:null

              +
              +
              +

              Function 参数说明

              +
              +

              treeIdString

              +

              对应 zTree 的 treeId,便于用户操控

              +

              treeNodeJSON

              +

              要折叠的父节点 JSON 数据对象

              +

              返回值Boolean

              +

              返回值是 true / false

              +

              如果返回 false,zTree 将不会折叠节点,也无法触发 onCollapse 事件回调函数

              +
              +

              setting & function 举例

              +

              1. 禁止所有已展开的父节点折叠

              +
              function zTreeBeforeCollapse(treeId, treeNode) {
              +    return false;
              +};
              +var setting = {
              +	callback: {
              +		beforeCollapse: zTreeBeforeCollapse
              +	}
              +};
              +......
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.callback.beforeDblClick.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.callback.beforeDblClick.html new file mode 100644 index 00000000..ed7e4dc2 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.callback.beforeDblClick.html @@ -0,0 +1,36 @@ +
              +
              +

              Function(treeId, treeNode)setting.callback.beforeDblClick

              +

              概述[ 依赖 jquery.ztree.core 核心 js ]

              +
              +

              +
              +

              用于捕获 zTree 上鼠标双击之前的事件回调函数,并且根据返回值确定触发 onDblClick 事件回调函数

              +

              默认值:null

              +
              +
              +

              Function 参数说明

              +
              +

              treeIdString

              +

              对应 zTree 的 treeId,便于用户操控

              +

              treeNodeJSON

              +

              鼠标双击时所在节点的 JSON 数据对象

              +

              如果不在节点上,则返回 null

              +

              返回值Boolean

              +

              返回值是 true / false

              +

              如果返回 false,将仅仅无法触发 onDblClick 事件回调函数,对其他操作无任何影响

              +

              此事件回调函数对双击节点展开功能无任何影响,如果需要设置请参考 setting.view.dblClickExpand 属性

              +
              +

              setting & function 举例

              +

              1. 禁止 onDblClick 事件

              +
              function zTreeBeforeDblClick(treeId, treeNode) {
              +    return false;
              +};
              +var setting = {
              +	callback: {
              +		beforeDblClick: zTreeBeforeDblClick
              +	}
              +};
              +......
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.callback.beforeDrag.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.callback.beforeDrag.html new file mode 100644 index 00000000..1e783a3c --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.callback.beforeDrag.html @@ -0,0 +1,39 @@ +
              +
              +

              Function(treeId, treeNodes)setting.callback.beforeDrag

              +

              概述[ 依赖 jquery.ztree.exedit 扩展 js ]

              +
              +

              +
              +

              用于捕获节点被拖拽之前的事件回调函数,并且根据返回值确定是否允许开启拖拽操作

              +

              默认值:null

              +
              +
              +

              Function 参数说明

              +
              +

              treeIdString

              +

              被拖拽的节点 treeNodes 所在 zTree 的 treeId,便于用户操控

              +

              treeNodesArray(JSON)

              +

              要被拖拽的节点 JSON 数据集合

              +

              v3.x 允许多个同级节点同时被拖拽,因此将此参数修改为 Array(JSON)

              +

              如果拖拽时多个被选择的节点不是同级关系,则只能拖拽鼠标当前所在位置的节点

              +

              返回值Boolean

              +

              返回值是 true / false

              +

              如果返回 false,zTree 将终止拖拽,也无法触发 onDrag / beforeDrop / onDrop 事件回调函数

              +
              +

              setting & function 举例

              +

              1. 禁止全部拖拽操作

              +
              function zTreeBeforeDrag(treeId, treeNodes) {
              +    return false;
              +};
              +var setting = {
              +	edit: {
              +		enable: true
              +	},
              +	callback: {
              +		beforeDrag: zTreeBeforeDrag
              +	}
              +};
              +......
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.callback.beforeDragOpen.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.callback.beforeDragOpen.html new file mode 100644 index 00000000..ceab2d34 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.callback.beforeDragOpen.html @@ -0,0 +1,37 @@ +
              +
              +

              Function(treeId, treeNode)setting.callback.beforeDragOpen

              +

              概述[ 依赖 jquery.ztree.exedit 扩展 js ]

              +
              +

              +
              +

              用于捕获拖拽节点移动到折叠状态的父节点后,即将自动展开该父节点之前的事件回调函数,并且根据返回值确定是否允许自动展开操作

              +

              默认值:null

              +
              +
              +

              Function 参数说明

              +
              +

              treeIdString

              +

              需要被展开的父节点 treeNode 所在 zTree 的 treeId,便于用户操控

              +

              treeNodeJSON

              +

              要被自动展开的父节点 JSON 数据对象

              +

              返回值Boolean

              +

              返回值是 true / false

              +

              如果返回 false,zTree 将无法进行自动展开操作

              +
              +

              setting & function 举例

              +

              1. 禁止全部拖拽时的自动展开操作

              +
              function zTreeBeforeDragOpen(treeId, treeNode) {
              +    return false;
              +};
              +var setting = {
              +	edit: {
              +		enable: true
              +	},
              +	callback: {
              +		beforeDragOpen: zTreeBeforeDragOpen
              +	}
              +};
              +......
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.callback.beforeDrop.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.callback.beforeDrop.html new file mode 100644 index 00000000..41237434 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.callback.beforeDrop.html @@ -0,0 +1,48 @@ +
              +
              +

              Function(treeId, treeNodes, targetNode, moveType, isCopy)setting.callback.beforeDrop

              +

              概述[ 依赖 jquery.ztree.exedit 扩展 js ]

              +
              +

              +
              +

              用于捕获节点拖拽操作结束之前的事件回调函数,并且根据返回值确定是否允许此拖拽操作

              +

              默认值:null

              +

              如未拖拽到有效位置,则不触发此回调函数,直接将节点恢复原位置

              +
              +
              +

              Function 参数说明

              +
              +

              treeIdString

              +

              目标节点 targetNode 所在 zTree 的 treeId,便于用户操控

              +

              treeNodesArray(JSON)

              +

              被拖拽的节点 JSON 数据集合

              +

              无论拖拽操作为 复制 还是 移动,treeNodes 都是当前被拖拽节点的数据集合。

              +

              targetNodeJSON

              +

              treeNodes 被拖拽放开的目标节点 JSON 数据对象。

              +

              如果拖拽成为根节点,则 targetNode = null

              +

              moveTypeString

              +

              指定移动到目标节点的相对位置

              +

              "inner":成为子节点,"prev":成为同级前一个节点,"next":成为同级后一个节点

              +

              isCopyBoolean

              +

              拖拽节点操作是 复制 或 移动

              +

              true:复制;false:移动

              +

              返回值Boolean

              +

              返回值是 true / false

              +

              如果返回 false,zTree 将恢复被拖拽的节点,也无法触发 onDrop 事件回调函数

              +
              +

              setting & function 举例

              +

              1. 禁止将节点拖拽成为根节点

              +
              function zTreeBeforeDrop(treeId, treeNodes, targetNode, moveType) {
              +    return !(targetNode == null || (moveType != "inner" && !targetNode.parentTId));
              +};
              +var setting = {
              +	edit: {
              +		enable: true
              +	},
              +	callback: {
              +		beforeDrop: zTreeBeforeDrop
              +	}
              +};
              +......
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.callback.beforeEditName.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.callback.beforeEditName.html new file mode 100644 index 00000000..9df3ca2c --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.callback.beforeEditName.html @@ -0,0 +1,38 @@ +
              +
              +

              Function(treeId, treeNode)setting.callback.beforeEditName

              +

              概述[ 依赖 jquery.ztree.exedit 扩展 js ]

              +
              +

              +
              +

              用于捕获节点编辑按钮的 click 事件,并且根据返回值确定是否允许进入名称编辑状态

              +

              此事件回调函数最主要是用于捕获编辑按钮的点击事件,然后触发自定义的编辑界面操作。

              +

              默认值:null

              +
              +
              +

              Function 参数说明

              +
              +

              treeIdString

              +

              对应 zTree 的 treeId,便于用户操控

              +

              treeNodeJSON

              +

              将要进入编辑名称状态的节点 JSON 数据对象

              +

              返回值Boolean

              +

              返回值是 true / false

              +

              如果返回 false,节点将无法进入 zTree 默认的编辑名称状态

              +
              +

              setting & function 举例

              +

              1. 禁止修改父节点的名称

              +
              function zTreeBeforeEditName(treeId, treeNode) {
              +	return !treeNode.isParent;
              +}
              +var setting = {
              +	edit: {
              +		enable: true
              +	},
              +	callback: {
              +		beforeEditName: zTreeBeforeEditName
              +	}
              +};
              +......
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.callback.beforeExpand.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.callback.beforeExpand.html new file mode 100644 index 00000000..350972b7 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.callback.beforeExpand.html @@ -0,0 +1,34 @@ +
              +
              +

              Function(treeId, treeNode)setting.callback.beforeExpand

              +

              概述[ 依赖 jquery.ztree.core 核心 js ]

              +
              +

              +
              +

              用于捕获父节点展开之前的事件回调函数,并且根据返回值确定是否允许展开操作

              +

              默认值:null

              +
              +
              +

              Function 参数说明

              +
              +

              treeIdString

              +

              对应 zTree 的 treeId,便于用户操控

              +

              treeNodeJSON

              +

              要展开的父节点 JSON 数据对象

              +

              返回值Boolean

              +

              返回值是 true / false

              +

              如果返回 false,zTree 将不会展开节点,也无法触发 onExpand 事件回调函数

              +
              +

              setting & function 举例

              +

              1. 禁止所有已折叠的父节点展开

              +
              function zTreeBeforeExpand(treeId, treeNode) {
              +    return false;
              +};
              +var setting = {
              +	callback: {
              +		beforeExpand: zTreeBeforeExpand
              +	}
              +};
              +......
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.callback.beforeMouseDown.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.callback.beforeMouseDown.html new file mode 100644 index 00000000..2c3f28d8 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.callback.beforeMouseDown.html @@ -0,0 +1,35 @@ +
              +
              +

              Function(treeId, treeNode)setting.callback.beforeMouseDown

              +

              概述[ 依赖 jquery.ztree.core 核心 js ]

              +
              +

              +
              +

              用于捕获 zTree 上鼠标按键按下之前的事件回调函数,并且根据返回值确定触发 onMouseDown 事件回调函数

              +

              默认值:null

              +
              +
              +

              Function 参数说明

              +
              +

              treeIdString

              +

              对应 zTree 的 treeId,便于用户操控

              +

              treeNodeJSON

              +

              鼠标按键按下时所在节点的 JSON 数据对象

              +

              如果不在节点上,则返回 null

              +

              返回值Boolean

              +

              返回值是 true / false

              +

              如果返回 false,将仅仅无法触发 onMouseDown 事件回调函数,对其他操作无任何影响

              +
              +

              setting & function 举例

              +

              1. 禁止 onMouseDown 事件

              +
              function zTreeBeforeMouseDown(treeId, treeNode) {
              +    return false;
              +};
              +var setting = {
              +	callback: {
              +		beforeMouseDown: zTreeBeforeMouseDown
              +	}
              +};
              +......
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.callback.beforeMouseUp.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.callback.beforeMouseUp.html new file mode 100644 index 00000000..f0b01b97 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.callback.beforeMouseUp.html @@ -0,0 +1,35 @@ +
              +
              +

              Function(treeId, treeNode)setting.callback.beforeMouseUp

              +

              概述[ 依赖 jquery.ztree.core 核心 js ]

              +
              +

              +
              +

              用于捕获 zTree 上鼠标按键松开之前的事件回调函数,并且根据返回值确定触发 onMouseUp 事件回调函数

              +

              默认值:null

              +
              +
              +

              Function 参数说明

              +
              +

              treeIdString

              +

              对应 zTree 的 treeId,便于用户操控

              +

              treeNodeJSON

              +

              鼠标按键松开时所在节点的 JSON 数据对象

              +

              如果不在节点上,则返回 null

              +

              返回值Boolean

              +

              返回值是 true / false

              +

              如果返回 false,将仅仅无法触发 onMouseUp 事件回调函数,对其他操作无任何影响

              +
              +

              setting & function 举例

              +

              1. 禁止 onMouseUp 事件

              +
              function zTreeBeforeMouseUp(treeId, treeNode) {
              +    return false;
              +};
              +var setting = {
              +	callback: {
              +		beforeMouseUp: zTreeBeforeMouseUp
              +	}
              +};
              +......
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.callback.beforeRemove.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.callback.beforeRemove.html new file mode 100644 index 00000000..0edb3fd0 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.callback.beforeRemove.html @@ -0,0 +1,37 @@ +
              +
              +

              Function(treeId, treeNode)setting.callback.beforeRemove

              +

              概述[ 依赖 jquery.ztree.exedit 扩展 js ]

              +
              +

              +
              +

              用于捕获节点被删除之前的事件回调函数,并且根据返回值确定是否允许删除操作

              +

              默认值:null

              +
              +
              +

              Function 参数说明

              +
              +

              treeIdString

              +

              对应 zTree 的 treeId,便于用户操控

              +

              treeNodeJSON

              +

              将要删除的节点 JSON 数据对象

              +

              返回值Boolean

              +

              返回值是 true / false

              +

              如果返回 false,zTree 将不删除节点,也无法触发 onRemove 事件回调函数

              +
              +

              setting & function 举例

              +

              1. 禁止全部删除操作

              +
              function zTreeBeforeRemove(treeId, treeNode) {
              +	return false;
              +}
              +var setting = {
              +	edit: {
              +		enable: true
              +	},
              +	callback: {
              +		beforeRemove: zTreeBeforeRemove
              +	}
              +};
              +......
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.callback.beforeRename.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.callback.beforeRename.html new file mode 100644 index 00000000..07099619 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.callback.beforeRename.html @@ -0,0 +1,46 @@ +
              +
              +

              Function(treeId, treeNode, newName, isCancel)setting.callback.beforeRename

              +

              概述[ 依赖 jquery.ztree.exedit 扩展 js ]

              +
              +

              +
              +

              用于捕获节点编辑名称结束(Input 失去焦点 或 按下 Enter 键)之后,更新节点名称数据之前的事件回调函数,并且根据返回值确定是否允许更改名称的操作

              +

              节点进入编辑名称状态后,按 ESC 键可以放弃当前修改,恢复原名称,取消编辑名称状态

              +

              从 v3.5.13 开始,取消编辑状态也会触发此回调,根据 isCancel 参数判断

              +

              默认值:null

              +
              +
              +

              Function 参数说明

              +
              +

              treeIdString

              +

              对应 zTree 的 treeId,便于用户操控

              +

              treeNodeJSON

              +

              将要更改名称的节点 JSON 数据对象

              +

              newNameString

              +

              修改后的新名称

              +

              isCancelBoolean

              +

              是否取消操作 (v3.5.13+)

              +

              isCancel = true 表示取消编辑操作(按下 ESC 或 使用 cancelEditName 方法)

              +

              isCancel = false 表示确认修改操作

              +

              返回值Boolean

              +

              返回值是 true / false

              +

              如果返回 false,zTree 将保持名称编辑状态,无法触发 onRename 事件回调函数,并且会导致屏蔽其它事件,直到修改名称使得 beforeRename 返回 true

              +

              如果返回 false,不会让 input 输入框获取焦点,避免由于警告信息而导致反复触发 beforeRename。 请在关闭提示警告信息后,利用 editName 方法让 input 重新获取焦点。

              +
              +

              setting & function 举例

              +

              1. 禁止修改的名称的长度小于 5

              +
              function zTreeBeforeRename(treeId, treeNode, newName, isCancel) {
              +	return newName.length > 5;
              +}
              +var setting = {
              +	edit: {
              +		enable: true
              +	},
              +	callback: {
              +		beforeRename: zTreeBeforeRename
              +	}
              +};
              +......
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.callback.beforeRightClick.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.callback.beforeRightClick.html new file mode 100644 index 00000000..1a5bdaa3 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.callback.beforeRightClick.html @@ -0,0 +1,35 @@ +
              +
              +

              Function(treeId, treeNode)setting.callback.beforeRightClick

              +

              概述[ 依赖 jquery.ztree.core 核心 js ]

              +
              +

              +
              +

              用于捕获 zTree 上鼠标右键点击之前的事件回调函数,并且根据返回值确定触发 onRightClick 事件回调函数

              +

              默认值:null

              +
              +
              +

              Function 参数说明

              +
              +

              treeIdString

              +

              对应 zTree 的 treeId,便于用户操控

              +

              treeNodeJSON

              +

              鼠标右键点击时所在节点的 JSON 数据对象

              +

              如果不在节点上,则返回 null

              +

              返回值Boolean

              +

              返回值是 true / false

              +

              如果返回 false,将仅仅无法触发 onRightClick 事件回调函数,对其他操作无任何影响

              +
              +

              setting & function 举例

              +

              1. 禁止 onRightClick 事件

              +
              function zTreeBeforeRightClick(treeId, treeNode) {
              +    return false;
              +};
              +var setting = {
              +	callback: {
              +		beforeRightClick: zTreeBeforeRightClick
              +	}
              +};
              +......
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.callback.onAsyncError.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.callback.onAsyncError.html new file mode 100644 index 00000000..c469e113 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.callback.onAsyncError.html @@ -0,0 +1,42 @@ +
              +
              +

              setting.callback.onAsyncError

              +

              Function(event, treeId, treeNode, XMLHttpRequest, textStatus, errorThrown) 

              +

              概述[ 依赖 jquery.ztree.core 核心 js ]

              +
              +

              +
              +

              用于捕获异步加载出现异常错误的事件回调函数

              +

              如果设置了 setting.callback.beforeAsync 方法,且返回 false,将无法触发 onAsyncSuccess / onAsyncError 事件回调函数。

              +

              默认值:null

              +
              +
              +

              Function 参数说明

              +
              +

              eventjs event 对象

              +

              标准的 js event 对象

              +

              treeIdString

              +

              对应 zTree 的 treeId,便于用户操控

              +

              treeNodeJSON

              +

              进行异步加载的父节点 JSON 数据对象

              +

              针对根进行异步加载时,treeNode = null

              +

              XMLHttpRequestString

              +

              标准 XMLHttpRequest 对象,请参考 JQuery API 文档。

              +

              textStatusString

              +

              请求状态:success,error,请参考 JQuery API 文档。

              +

              errorThrownString

              +

              errorThrown 只有当异常发生时才会被传递,请参考 JQuery API 文档。

              +
              +

              setting & function 举例

              +

              1. 异步加载出现异常后,弹出错误信息

              +
              function zTreeOnAsyncError(event, treeId, treeNode, XMLHttpRequest, textStatus, errorThrown) {
              +    alert(XMLHttpRequest);
              +};
              +var setting = {
              +	callback: {
              +		onAsyncError: zTreeOnAsyncError
              +	}
              +};
              +......
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.callback.onAsyncSuccess.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.callback.onAsyncSuccess.html new file mode 100644 index 00000000..081e9d73 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.callback.onAsyncSuccess.html @@ -0,0 +1,38 @@ +
              +
              +

              Function(event, treeId, treeNode, msg)setting.callback.onAsyncSuccess

              +

              概述[ 依赖 jquery.ztree.core 核心 js ]

              +
              +

              +
              +

              用于捕获异步加载正常结束的事件回调函数

              +

              如果设置了 setting.callback.beforeAsync 方法,且返回 false,将无法触发 onAsyncSuccess / onAsyncError 事件回调函数。

              +

              默认值:null

              +
              +
              +

              Function 参数说明

              +
              +

              eventjs event 对象

              +

              标准的 js event 对象

              +

              treeIdString

              +

              对应 zTree 的 treeId,便于用户操控

              +

              treeNodeJSON

              +

              进行异步加载的父节点 JSON 数据对象

              +

              针对根进行异步加载时,treeNode = null

              +

              msgString / Object

              +

              异步获取的节点数据字符串,主要便于用户调试使用。

              +

              实际数据类型会受 setting.async.dataType 的设置影响,请参考 JQuery API 文档。

              +
              +

              setting & function 举例

              +

              1. 异步加载成功后,弹出提示信息

              +
              function zTreeOnAsyncSuccess(event, treeId, treeNode, msg) {
              +    alert(msg);
              +};
              +var setting = {
              +	callback: {
              +		onAsyncSuccess: zTreeOnAsyncSuccess
              +	}
              +};
              +......
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.callback.onCheck.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.callback.onCheck.html new file mode 100644 index 00000000..113eee97 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.callback.onCheck.html @@ -0,0 +1,34 @@ +
              +
              +

              Function(event, treeId, treeNode)setting.callback.onCheck

              +

              概述[ 依赖 jquery.ztree.excheck 扩展 js ]

              +
              +

              +
              +

              用于捕获 checkbox / radio 被勾选 或 取消勾选的事件回调函数

              +

              如果设置了 setting.callback.beforeCheck 方法,且返回 false,将无法触发 onCheck 事件回调函数。

              +

              默认值:null

              +
              +
              +

              Function 参数说明

              +
              +

              eventjs event 对象

              +

              标准的 js event 对象

              +

              treeIdString

              +

              对应 zTree 的 treeId,便于用户操控

              +

              treeNodeJSON

              +

              被勾选 或 取消勾选的节点 JSON 数据对象

              +
              +

              setting & function 举例

              +

              1. 每次点击 checkbox 或 radio 后, 弹出该节点的 tId、name 以及当前勾选状态的信息

              +
              function zTreeOnCheck(event, treeId, treeNode) {
              +    alert(treeNode.tId + ", " + treeNode.name + "," + treeNode.checked);
              +};
              +var setting = {
              +	callback: {
              +		onCheck: zTreeOnCheck
              +	}
              +};
              +......
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.callback.onClick.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.callback.onClick.html new file mode 100644 index 00000000..19d29489 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.callback.onClick.html @@ -0,0 +1,49 @@ +
              +
              +

              Function(event, treeId, treeNode, clickFlag)setting.callback.onClick

              +

              概述[ 依赖 jquery.ztree.core 核心 js ]

              +
              +

              +
              +

              用于捕获节点被点击的事件回调函数

              +

              如果设置了 setting.callback.beforeClick 方法,且返回 false,将无法触发 onClick 事件回调函数。

              +

              默认值:null

              +
              +
              +

              Function 参数说明

              +
              +

              eventjs event 对象

              +

              标准的 js event 对象

              +

              treeIdString

              +

              对应 zTree 的 treeId,便于用户操控

              +

              treeNodeJSON

              +

              被点击的节点 JSON 数据对象

              +

              clickFlagNumber

              +

              节点被点击后的选中操作类型,详细看下表

              + + + + + + + + + + + + +
              clickFlagselectedMultiautoCancelSelected
              &&
              event.ctrlKey
              isSelected选中操作
              1truefalsefalse普通选中
              1truefalsetrue普通选中
              2truetruefalse追加选中
              0truetruetrue取消选中
              1falsefalsefalse普通选中
              1falsefalsetrue普通选中
              1falsetruefalse普通选中
              0falsetruetrue取消选中
              +
              +

              setting & function 举例

              +

              1. 每次点击节点后, 弹出该节点的 tId、name 的信息

              +
              function zTreeOnClick(event, treeId, treeNode) {
              +    alert(treeNode.tId + ", " + treeNode.name);
              +};
              +var setting = {
              +	callback: {
              +		onClick: zTreeOnClick
              +	}
              +};
              +......
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.callback.onCollapse.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.callback.onCollapse.html new file mode 100644 index 00000000..1c816c20 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.callback.onCollapse.html @@ -0,0 +1,34 @@ +
              +
              +

              Function(event, treeId, treeNode)setting.callback.onCollapse

              +

              概述[ 依赖 jquery.ztree.core 核心 js ]

              +
              +

              +
              +

              用于捕获节点被折叠的事件回调函数

              +

              如果设置了 setting.callback.beforeCollapse 方法,且返回 false,将无法触发 onCollapse 事件回调函数。

              +

              默认值:null

              +
              +
              +

              Function 参数说明

              +
              +

              eventjs event 对象

              +

              标准的 js event 对象

              +

              treeIdString

              +

              对应 zTree 的 treeId,便于用户操控

              +

              treeNodeJSON

              +

              被折叠的节点 JSON 数据对象

              +
              +

              setting & function 举例

              +

              1. 每次折叠节点后, 弹出该节点的 tId、name 的信息

              +
              function zTreeOnCollapse(event, treeId, treeNode) {
              +    alert(treeNode.tId + ", " + treeNode.name);
              +};
              +var setting = {
              +	callback: {
              +		onCollapse: zTreeOnCollapse
              +	}
              +};
              +......
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.callback.onDblClick.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.callback.onDblClick.html new file mode 100644 index 00000000..deb8e626 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.callback.onDblClick.html @@ -0,0 +1,35 @@ +
              +
              +

              Function(event, treeId, treeNode)setting.callback.onDblClick

              +

              概述[ 依赖 jquery.ztree.core 核心 js ]

              +
              +

              +
              +

              用于捕获 zTree 上鼠标双击之后的事件回调函数

              +

              如果设置了 setting.callback.beforeDblClick 方法,且返回 false,将无法触发 onDblClick 事件回调函数。

              +

              默认值:null

              +
              +
              +

              Function 参数说明

              +
              +

              eventjs event 对象

              +

              标准的 js event 对象

              +

              treeIdString

              +

              对应 zTree 的 treeId,便于用户操控

              +

              treeNodeJSON

              +

              鼠标双击时所在节点的 JSON 数据对象

              +

              如果不在节点上,则返回 null

              +
              +

              setting & function 举例

              +

              1. 每次鼠标双击后, 弹出鼠标所在节点的 tId、name 的信息

              +
              function zTreeOnDblClick(event, treeId, treeNode) {
              +    alert(treeNode ? treeNode.tId + ", " + treeNode.name : "isRoot");
              +};
              +var setting = {
              +	callback: {
              +		onDblClick: zTreeOnDblClick
              +	}
              +};
              +......
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.callback.onDrag.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.callback.onDrag.html new file mode 100644 index 00000000..f7e05979 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.callback.onDrag.html @@ -0,0 +1,34 @@ +
              +
              +

              Function(event, treeId, treeNodes)setting.callback.onDrag

              +

              概述[ 依赖 jquery.ztree.exedit 扩展 js ]

              +
              +

              +
              +

              用于捕获节点被拖拽的事件回调函数

              +

              如果设置了 setting.callback.beforeDrag 方法,且返回 false,将无法触发 onDrag 事件回调函数。

              +

              默认值:null

              +
              +
              +

              Function 参数说明

              +
              +

              eventjs event 对象

              +

              标准的 js event 对象

              +

              treeIdString

              +

              被拖拽的节点 treeNodes 所在 zTree 的 treeId,便于用户操控

              +

              treeNodesArray(JSON)

              +

              要被拖拽的节点 JSON 数据集合

              +
              +

              setting & function 举例

              +

              1. 每次开始进行拖拽节点后, 弹出被拖拽节点的个数信息

              +
              function zTreeOnDrag(event, treeId, treeNodes) {
              +    alert(treeNodes.length);
              +};
              +var setting = {
              +	callback: {
              +		onDrag: zTreeOnDrag
              +	}
              +};
              +......
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.callback.onDrop.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.callback.onDrop.html new file mode 100644 index 00000000..c6773a88 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.callback.onDrop.html @@ -0,0 +1,46 @@ +
              +
              +

              Function(event, treeId, treeNodes, targetNode, moveType, isCopy)setting.callback.onDrop

              +

              概述[ 依赖 jquery.ztree.exedit 扩展 js ]

              +
              +

              +
              +

              用于捕获节点拖拽操作结束的事件回调函数

              +

              如果设置了 setting.callback.beforeDrop 方法,且返回 false,将无法触发 onDrop 事件回调函数。

              +

              默认值:null

              +
              +
              +

              Function 参数说明

              +
              +

              eventjs event 对象

              +

              标准的 js event 对象

              +

              treeIdString

              +

              目标节点 targetNode 所在 zTree 的 treeId,便于用户操控

              +

              treeNodesArray(JSON)

              +

              被拖拽的节点 JSON 数据集合

              +

              如果拖拽操作为 移动,treeNodes 是当前被拖拽节点的数据集合。

              +

              如果拖拽操作为 复制,treeNodes 是复制后 clone 得到的新节点数据。

              +

              targetNodeJSON

              +

              成为 treeNodes 拖拽结束的目标节点 JSON 数据对象。

              +

              如果拖拽成为根节点,则 targetNode = null

              +

              moveTypeString

              +

              指定移动到目标节点的相对位置

              +

              "inner":成为子节点,"prev":成为同级前一个节点,"next":成为同级后一个节点

              +

              如果 moveType = null,表明拖拽无效

              +

              isCopyBoolean

              +

              拖拽节点操作是 复制 或 移动

              +

              true:复制;false:移动

              +
              +

              setting & function 举例

              +

              1. 每次拖拽操作结束后, 弹出该被拖拽节点的个数以及目标节点的 tId、name 的信息

              +
              function zTreeOnDrop(event, treeId, treeNodes, targetNode, moveType) {
              +    alert(treeNodes.length + "," + (targetNode ? (targetNode.tId + ", " + targetNode.name) : "isRoot" ));
              +};
              +var setting = {
              +	callback: {
              +		onDrop: zTreeOnDrop
              +	}
              +};
              +......
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.callback.onExpand.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.callback.onExpand.html new file mode 100644 index 00000000..791c5f6f --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.callback.onExpand.html @@ -0,0 +1,34 @@ +
              +
              +

              Function(event, treeId, treeNode)setting.callback.onExpand

              +

              概述[ 依赖 jquery.ztree.core 核心 js ]

              +
              +

              +
              +

              用于捕获节点被展开的事件回调函数

              +

              如果设置了 setting.callback.beforeExpand 方法,且返回 false,将无法触发 onExpand 事件回调函数。

              +

              默认值:null

              +
              +
              +

              Function 参数说明

              +
              +

              eventjs event 对象

              +

              标准的 js event 对象

              +

              treeIdString

              +

              对应 zTree 的 treeId,便于用户操控

              +

              treeNodeJSON

              +

              被展开的节点 JSON 数据对象

              +
              +

              setting & function 举例

              +

              1. 每次展开节点后, 弹出该节点的 tId、name 的信息

              +
              function zTreeOnExpand(event, treeId, treeNode) {
              +    alert(treeNode.tId + ", " + treeNode.name);
              +};
              +var setting = {
              +	callback: {
              +		onExpand: zTreeOnExpand
              +	}
              +};
              +......
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.callback.onMouseDown.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.callback.onMouseDown.html new file mode 100644 index 00000000..bc9d0ea7 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.callback.onMouseDown.html @@ -0,0 +1,35 @@ +
              +
              +

              Function(event, treeId, treeNode)setting.callback.onMouseDown

              +

              概述[ 依赖 jquery.ztree.core 核心 js ]

              +
              +

              +
              +

              用于捕获 zTree 上鼠标按键按下后的事件回调函数

              +

              如果设置了 setting.callback.beforeMouseDown 方法,且返回 false,将无法触发 onMouseDown 事件回调函数。

              +

              默认值:null

              +
              +
              +

              Function 参数说明

              +
              +

              eventjs event 对象

              +

              标准的 js event 对象

              +

              treeIdString

              +

              对应 zTree 的 treeId,便于用户操控

              +

              treeNodeJSON

              +

              鼠标按键按下时所在节点的 JSON 数据对象

              +

              如果不在节点上,则返回 null

              +
              +

              setting & function 举例

              +

              1. 每次鼠标按键按下后, 弹出鼠标所在节点的 tId、name 的信息

              +
              function zTreeOnMouseDown(event, treeId, treeNode) {
              +    alert(treeNode ? treeNode.tId + ", " + treeNode.name : "isRoot");
              +};
              +var setting = {
              +	callback: {
              +		onMouseDown: zTreeOnMouseDown
              +	}
              +};
              +......
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.callback.onMouseUp.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.callback.onMouseUp.html new file mode 100644 index 00000000..a969fef9 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.callback.onMouseUp.html @@ -0,0 +1,35 @@ +
              +
              +

              Function(event, treeId, treeNode)setting.callback.onMouseUp

              +

              概述[ 依赖 jquery.ztree.core 核心 js ]

              +
              +

              +
              +

              用于捕获 zTree 上鼠标按键松开后的事件回调函数

              +

              如果设置了 setting.callback.beforeMouseUp 方法,且返回 false,将无法触发 onMouseUp 事件回调函数。

              +

              默认值:null

              +
              +
              +

              Function 参数说明

              +
              +

              eventjs event 对象

              +

              标准的 js event 对象

              +

              treeIdString

              +

              对应 zTree 的 treeId,便于用户操控

              +

              treeNodeJSON

              +

              鼠标按键松开时所在节点的 JSON 数据对象

              +

              如果不在节点上,则返回 null

              +
              +

              setting & function 举例

              +

              1. 每次鼠标按键松开后, 弹出鼠标所在节点的 tId、name 的信息

              +
              function zTreeOnMouseUp(event, treeId, treeNode) {
              +    alert(treeNode ? treeNode.tId + ", " + treeNode.name : "isRoot");
              +};
              +var setting = {
              +	callback: {
              +		onMouseUp: zTreeOnMouseUp
              +	}
              +};
              +......
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.callback.onNodeCreated.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.callback.onNodeCreated.html new file mode 100644 index 00000000..2ebaee63 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.callback.onNodeCreated.html @@ -0,0 +1,35 @@ +
              +
              +

              Function(event, treeId, treeNode)setting.callback.onNodeCreated

              +

              概述[ 依赖 jquery.ztree.core 核心 js ]

              +
              +

              +
              +

              用于捕获节点生成 DOM 后的事件回调函数

              +

              v3.x 采用了延迟加载技术,因此对于父节点未展开的子节点来说,初始化后是不会触发此回调函数,直到其父节点被展开

              +

              大数据量的节点加载请注意:不设置 onNodeCreated,可以提升一部分初始化性能

              +

              默认值:null

              +
              +
              +

              Function 参数说明

              +
              +

              eventjs event 对象

              +

              标准的 js event 对象

              +

              treeIdString

              +

              对应 zTree 的 treeId,便于用户操控

              +

              treeNodeJSON

              +

              生成 DOM 完毕的节点的 JSON 数据对象

              +
              +

              setting & function 举例

              +

              1. 创建节点 DOM 后, 弹出该节点的 tId、name 的信息

              +
              function zTreeOnNodeCreated(event, treeId, treeNode) {
              +    alert(treeNode.tId + ", " + treeNode.name);
              +};
              +var setting = {
              +	callback: {
              +		onNodeCreated: zTreeOnNodeCreated
              +	}
              +};
              +......
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.callback.onRemove.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.callback.onRemove.html new file mode 100644 index 00000000..e7e625d9 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.callback.onRemove.html @@ -0,0 +1,34 @@ +
              +
              +

              Function(event, treeId, treeNode)setting.callback.onRemove

              +

              概述[ 依赖 jquery.ztree.exedit 扩展 js ]

              +
              +

              +
              +

              用于捕获删除节点之后的事件回调函数。

              +

              如果用户设置了 beforeRemove 回调函数,并返回 false,将无法触发 onRemove 事件回调函数。

              +

              默认值:null

              +
              +
              +

              Function 参数说明

              +
              +

              eventjs event 对象

              +

              标准的 js event 对象

              +

              treeIdString

              +

              对应 zTree 的 treeId,便于用户操控

              +

              treeNodeJSON

              +

              将要删除的节点 JSON 数据对象

              +
              +

              setting & function 举例

              +

              1. 删除节点时,弹出被删除的节点的 tId 以及 name 信息

              +
              function zTreeOnRemove(event, treeId, treeNode) {
              +	alert(treeNode.tId + ", " + treeNode.name);
              +}
              +var setting = {
              +	callback: {
              +		onRemove: zTreeOnRemove
              +	}
              +};
              +......
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.callback.onRename.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.callback.onRename.html new file mode 100644 index 00000000..f225463f --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.callback.onRename.html @@ -0,0 +1,40 @@ +
              +
              +

              Function(event, treeId, treeNode, isCancel)setting.callback.onRename

              +

              概述[ 依赖 jquery.ztree.exedit 扩展 js ]

              +
              +

              +
              +

              用于捕获节点编辑名称结束之后的事件回调函数。

              +

              1、节点进入编辑名称状态,并且修改节点名称后触发此回调函数。如果用户设置了 beforeRename 回调函数,并返回 false,将无法触发 onRename 事件回调函数。

              +

              2、如果通过直接修改 treeNode 的数据,并且利用 updateNode 方法更新,是不会触发此回调函数的。

              +

              3、从 v3.5.13 开始,取消编辑状态也会触发此回调,根据 isCancel 参数判断

              +

              默认值:null

              +
              +
              +

              Function 参数说明

              +
              +

              eventjs event 对象

              +

              标准的 js event 对象

              +

              treeIdString

              +

              对应 zTree 的 treeId,便于用户操控

              +

              treeNodeJSON

              +

              被修改名称的节点 JSON 数据对象

              +

              isCancelBoolean

              +

              是否取消操作 (v3.5.13+)

              +

              isCancel = true 表示取消编辑操作(按下 ESC 或 使用 cancelEditName 方法)

              +

              isCancel = false 表示确认修改操作

              +
              +

              setting & function 举例

              +

              1. 修改名称后,弹出被修改名称的节点的 tId 以及 name 信息

              +
              function zTreeOnRename(event, treeId, treeNode, isCancel) {
              +	alert(treeNode.tId + ", " + treeNode.name);
              +}
              +var setting = {
              +	callback: {
              +		onRename: zTreeOnRename
              +	}
              +};
              +......
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.callback.onRightClick.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.callback.onRightClick.html new file mode 100644 index 00000000..d51c68d1 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.callback.onRightClick.html @@ -0,0 +1,36 @@ +
              +
              +

              Function(event, treeId, treeNode)setting.callback.onRightClick

              +

              概述[ 依赖 jquery.ztree.core 核心 js ]

              +
              +

              +
              +

              用于捕获 zTree 上鼠标右键点击之后的事件回调函数

              +

              1、如果设置了 setting.callback.beforeRightClick 方法,且返回 false,将无法触发 onRightClick 事件回调函数。

              +

              2、只要将 function 的引用赋给 onRightClick 属性,则右键点击 zTree 时,将屏蔽浏览器的右键菜单。

              +

              默认值:null

              +
              +
              +

              Function 参数说明

              +
              +

              eventjs event 对象

              +

              标准的 js event 对象

              +

              treeIdString

              +

              对应 zTree 的 treeId,便于用户操控

              +

              treeNodeJSON

              +

              鼠标右键点击时所在节点的 JSON 数据对象

              +

              如果不在节点上,则返回 null

              +
              +

              setting & function 举例

              +

              1. 每次鼠标右键点击后, 弹出鼠标所在节点的 tId、name 的信息

              +
              function zTreeOnRightClick(event, treeId, treeNode) {
              +    alert(treeNode ? treeNode.tId + ", " + treeNode.name : "isRoot");
              +};
              +var setting = {
              +	callback: {
              +		onRightClick: zTreeOnRightClick
              +	}
              +};
              +......
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.check.autoCheckTrigger.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.check.autoCheckTrigger.html new file mode 100644 index 00000000..d1efd770 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.check.autoCheckTrigger.html @@ -0,0 +1,28 @@ +
              +
              +

              Booleansetting.check.autoCheckTrigger

              +

              概述[ 依赖 jquery.ztree.excheck 扩展 js ]

              +
              +

              +
              +

              设置自动关联勾选时是否触发 beforeCheck / onCheck 事件回调函数。[setting.check.enable = true 且 setting.check.chkStyle = "checkbox" 时生效]

              +

              1、如果设置 setting.check.chkboxType = { "Y": "", "N": "" },将不会有任何自动关联勾选的操作。

              +

              2、如果开启触发,对于节点较多的树将会影响性能,因为所有被联动勾选的操作都会触发事件回调函数,请根据需要决定是否使用此功能。

              +

              默认值: false

              +
              +
              +

              Boolean 格式说明

              +
              +

              true / false 分别表示 触发 / 不触发 事件回调函数

              +
              +

              setting 举例

              +

              1. 需要触发自动关联勾选操作

              +
              var setting = {
              +	check: {
              +		enable: true,
              +		autoCheckTrigger: true
              +	}
              +};
              +......
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.check.chkDisabledInherit.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.check.chkDisabledInherit.html new file mode 100644 index 00000000..8af1c2c6 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.check.chkDisabledInherit.html @@ -0,0 +1,28 @@ +
              +
              +

              Booleansetting.check.chkDisabledInherit

              +

              概述[ 依赖 jquery.ztree.excheck 扩展 js ]

              +
              +

              +
              +

              当父节点设置 chkDisabled = true 时,设置子节点是否自动继承 chkDisabled = true 。[setting.check.enable = true 时生效]

              +

              1、只使用于初始化节点时,便于批量操作。 对于已存在的节点请利用 setChkDisabled 方法单个节点设置。

              +

              默认值: false

              +
              +
              +

              Boolean 格式说明

              +
              +

              true 表示 新加入子节点时,自动继承父节点 chkDisabled = true 的属性。

              +

              false 表示 新加入子节点时,不继承父节点 chkDisabled 的属性。

              +
              +

              setting 举例

              +

              1. 需要子节点自动继承 chkDisabled = true

              +
              var setting = {
              +	check: {
              +		enable: true,
              +		chkDisabledInherit: true
              +	}
              +};
              +......
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.check.chkStyle.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.check.chkStyle.html new file mode 100644 index 00000000..9706c134 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.check.chkStyle.html @@ -0,0 +1,48 @@ +
              +
              +

              Stringsetting.check.chkStyle

              +

              概述[ 依赖 jquery.ztree.excheck 扩展 js ]

              +
              +

              +
              +

              勾选框类型(checkbox 或 radio)[setting.check.enable = true 时生效]

              +

              默认值:"checkbox"

              +
              +
              +

              String 格式说明

              +
              +

              chkStyle = "checkbox" 时,显示 checkbox 选择框,setting.check.chkboxType 属性有效。 +
              chkStyle = "radio" 时,显示 radio 选择框, setting.check.radioType 属性有效。

              +

              请注意大小写,不要改变

              +
              +

              checkbox 状态说明

              +
              +

              +
              +

              未勾选;如果是父节点,则无子节点被勾选。鼠标移到该节点上显示为:

              +

              未勾选;(只有父节点存在此状态)存在被勾选的子节点。鼠标移到该节点上显示为:

              +

              被勾选;如果是父节点,则全部子节点都被勾选。鼠标移到该节点上显示为:

              +

              被勾选;(只有父节点存在此状态)且部分或无子节点被勾选。鼠标移到该节点上显示为:

              +
              +
              +

              radio 状态说明

              +
              +

              +
              +

              未勾选;如果是父节点,则没有子节点被勾选。鼠标移到该节点上显示为:

              +

              未勾选;(只有父节点存在此状态)且存在被勾选的子节点。鼠标移到该节点上显示为:

              +

              被勾选;如果是父节点,则没有子节点被勾选。鼠标移到该节点上显示为:

              +

              被勾选;(只有父节点存在此状态)且存在被勾选的子节点。鼠标移到该节点上显示为:

              +
              +
              +

              setting 举例

              +

              1. 设置选择框为 radio

              +
              var setting = {
              +	check: {
              +		enable: true,
              +		chkStyle: "radio"
              +	}
              +};
              +......
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.check.chkboxType.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.check.chkboxType.html new file mode 100644 index 00000000..da06b6ca --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.check.chkboxType.html @@ -0,0 +1,31 @@ +
              +
              +

              JSONsetting.check.chkboxType

              +

              概述[ 依赖 jquery.ztree.excheck 扩展 js ]

              +
              +

              +
              +

              勾选 checkbox 对于父子节点的关联关系。[setting.check.enable = true 且 setting.check.chkStyle = "checkbox" 时生效]

              +

              默认值:{ "Y": "ps", "N": "ps" }

              +
              +
              +

              JSON 格式说明

              +
              +

              Y 属性定义 checkbox 被勾选后的情况; +
              N 属性定义 checkbox 取消勾选后的情况; +
              "p" 表示操作会影响父级节点; +
              "s" 表示操作会影响子级节点。

              +

              请注意大小写,不要改变

              +
              +

              setting 举例

              +

              1. checkbox 勾选操作,只影响父级节点;取消勾选操作,只影响子级节点

              +
              var setting = {
              +	check: {
              +		enable: true,
              +		chkStyle: "checkbox",
              +		chkboxType: { "Y": "p", "N": "s" }
              +	}
              +};
              +......
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.check.enable.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.check.enable.html new file mode 100644 index 00000000..8b1387e3 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.check.enable.html @@ -0,0 +1,25 @@ +
              +
              +

              Booleansetting.check.enable

              +

              概述[ 依赖 jquery.ztree.excheck 扩展 js ]

              +
              +

              +
              +

              设置 zTree 的节点上是否显示 checkbox / radio

              +

              默认值: false

              +
              +
              +

              Boolean 格式说明

              +
              +

              true / false 分别表示 显示 / 不显示 复选框或单选框

              +
              +

              setting 举例

              +

              1. 需要显示 checkbox

              +
              var setting = {
              +	check: {
              +		enable: true
              +	}
              +};
              +......
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.check.nocheckInherit.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.check.nocheckInherit.html new file mode 100644 index 00000000..caf99028 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.check.nocheckInherit.html @@ -0,0 +1,28 @@ +
              +
              +

              Booleansetting.check.nocheckInherit

              +

              概述[ 依赖 jquery.ztree.excheck 扩展 js ]

              +
              +

              +
              +

              当父节点设置 nocheck = true 时,设置子节点是否自动继承 nocheck = true 。[setting.check.enable = true 时生效]

              +

              1、只使用于初始化节点时,便于批量操作。 对于已存在的节点请利用 updateNode 方法单个节点设置。

              +

              默认值: false

              +
              +
              +

              Boolean 格式说明

              +
              +

              true 表示 新加入子节点时,自动继承父节点 nocheck = true 的属性。

              +

              false 表示 新加入子节点时,不继承父节点 nocheck 的属性。

              +
              +

              setting 举例

              +

              1. 需要子节点自动继承 nocheck = true

              +
              var setting = {
              +	check: {
              +		enable: true,
              +		nocheckInherit: true
              +	}
              +};
              +......
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.check.radioType.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.check.radioType.html new file mode 100644 index 00000000..19f84cad --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.check.radioType.html @@ -0,0 +1,29 @@ +
              +
              +

              Stringsetting.check.radioType

              +

              概述[ 依赖 jquery.ztree.excheck 扩展 js ]

              +
              +

              +
              +

              radio 的分组范围。[setting.check.enable = true 且 setting.check.chkStyle = "radio" 时生效]

              +

              默认值:"level"

              +
              +
              +

              String 格式说明

              +
              +

              radioType = "level" 时,在每一级节点范围内当做一个分组。 +
              radioType = "all" 时,在整棵树范围内当做一个分组。

              +

              请注意大小写,不要改变

              +
              +

              setting 举例

              +

              1. 设置 radio 的判别规则为整棵树内

              +
              var setting = {
              +	check: {
              +		enable: true,
              +		chkStyle: "radio",
              +		radioType: "all"
              +	}
              +};
              +......
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.data.keep.leaf.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.data.keep.leaf.html new file mode 100644 index 00000000..af3a7211 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.data.keep.leaf.html @@ -0,0 +1,28 @@ +
              +
              +

              Booleansetting.data.keep.leaf

              +

              概述[ 依赖 jquery.ztree.core 核心 js ]

              +
              +

              +
              +

              zTree 的节点叶子节点属性锁,是否始终保持 isParent = false

              +

              默认值:false

              +
              +
              +

              Boolean 格式说明

              +
              +

              true / false 分别表示 锁定 / 不锁定 叶子节点属性

              +

              如果设置为 true,则所有 isParent = false 的节点,都无法添加子节点。

              +
              +

              setting 举例

              +

              1. 需要锁定叶子节点状态

              +
              var setting = {
              +	data: {
              +		keep: {
              +			leaf: true
              +		}
              +	}
              +};
              +......
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.data.keep.parent.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.data.keep.parent.html new file mode 100644 index 00000000..c4975df2 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.data.keep.parent.html @@ -0,0 +1,28 @@ +
              +
              +

              Booleansetting.data.keep.parent

              +

              概述[ 依赖 jquery.ztree.core 核心 js ]

              +
              +

              +
              +

              zTree 的节点父节点属性锁,是否始终保持 isParent = true

              +

              默认值:false

              +
              +
              +

              Boolean 格式说明

              +
              +

              true / false 分别表示 锁定 / 不锁定 父节点属性

              +

              如果设置为 true,则所有 isParent = true 的节点,即使该节点的子节点被全部删除或移走,依旧保持父节点状态。

              +
              +

              setting 举例

              +

              1. 需要锁定父节点状态

              +
              var setting = {
              +	data: {
              +		keep: {
              +			parent: true
              +		}
              +	}
              +};
              +......
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.data.key.checked.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.data.key.checked.html new file mode 100644 index 00000000..ac9fdc1d --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.data.key.checked.html @@ -0,0 +1,24 @@ +
              +
              +

              Stringsetting.data.key.checked

              +

              概述[ 依赖 jquery.ztree.excheck 扩展 js ]

              +
              +

              +
              +

              zTree 节点数据中保存 check 状态的属性名称。

              +

              默认值:"checked"

              +

              请勿与 zTree 节点数据的其他参数冲突,例如:checkedOld

              +
              +
              +

              setting 举例

              +

              1. 设置 zTree 显示节点时,将 treeNode 的 isChecked 属性当做节点名称

              +
              var setting = {
              +	data: {
              +		key: {
              +			checked: "isChecked"
              +		}
              +	}
              +};
              +......
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.data.key.children.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.data.key.children.html new file mode 100644 index 00000000..66a49a7e --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.data.key.children.html @@ -0,0 +1,23 @@ +
              +
              +

              Stringsetting.data.key.children

              +

              概述[ 依赖 jquery.ztree.core 核心 js ]

              +
              +

              +
              +

              zTree 节点数据中保存子节点数据的属性名称。

              +

              默认值:"children"

              +
              +
              +

              setting 举例

              +

              1. 设置 zTree 显示节点时,将 treeNode 的 nodes 属性当做节点名称

              +
              var setting = {
              +	data: {
              +		key: {
              +			children: "nodes"
              +		}
              +	}
              +};
              +......
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.data.key.name.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.data.key.name.html new file mode 100644 index 00000000..c25d250a --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.data.key.name.html @@ -0,0 +1,23 @@ +
              +
              +

              Stringsetting.data.key.name

              +

              概述[ 依赖 jquery.ztree.core 核心 js ]

              +
              +

              +
              +

              zTree 节点数据保存节点名称的属性名称。

              +

              默认值:"name"

              +
              +
              +

              setting 举例

              +

              1. 设置 zTree 显示节点时,将 treeNode 的 ename 属性当做节点名称

              +
              var setting = {
              +	data: {
              +		key: {
              +			name: "ename"
              +		}
              +	}
              +};
              +......
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.data.key.title.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.data.key.title.html new file mode 100644 index 00000000..43e68554 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.data.key.title.html @@ -0,0 +1,24 @@ +
              +
              +

              Stringsetting.data.key.title

              +

              概述[ 依赖 jquery.ztree.core 核心 js ]

              +
              +

              +
              +

              zTree 节点数据保存节点提示信息的属性名称。[setting.view.showTitle = true 时生效]

              +

              如果设置为 "" ,则自动与 setting.data.key.name 保持一致,避免用户反复设置

              +

              默认值:""

              +
              +
              +

              setting 举例

              +

              1. 设置 zTree 显示节点时,将 treeNode 的 fullName 属性当做节点名称

              +
              var setting = {
              +	data: {
              +		key: {
              +			title: "fullName"
              +		}
              +	}
              +};
              +......
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.data.key.url.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.data.key.url.html new file mode 100644 index 00000000..e534d985 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.data.key.url.html @@ -0,0 +1,24 @@ +
              +
              +

              Stringsetting.data.key.url

              +

              概述[ 依赖 jquery.ztree.core 核心 js ]

              +
              +

              +
              +

              zTree 节点数据保存节点链接的目标 URL 的属性名称。

              +

              特殊用途:当后台数据只能生成 url 属性,又不想实现点击节点跳转的功能时,可以直接修改此属性为其他不存在的属性名称

              +

              默认值:"url"

              +
              +
              +

              setting 举例

              +

              1. 设置 zTree 显示节点时,将 treeNode 的 xUrl 属性当做节点链接的目标 URL

              +
              var setting = {
              +	data: {
              +		key: {
              +			url: "xUrl"
              +		}
              +	}
              +};
              +......
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.data.simpleData.enable.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.data.simpleData.enable.html new file mode 100644 index 00000000..65bd4071 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.data.simpleData.enable.html @@ -0,0 +1,38 @@ +
              +
              +

              Booleansetting.data.simpleData.enable

              +

              概述[ 依赖 jquery.ztree.core 核心 js ]

              +
              +

              +
              +

              确定 zTree 初始化时的节点数据、异步加载时的节点数据、或 addNodes 方法中输入的 newNodes 数据是否采用简单数据模式 (Array)

              +

              不需要用户再把数据库中取出的 List 强行转换为复杂的 JSON 嵌套格式

              +

              默认值:false

              +
              +
              +

              Boolean 格式说明

              +
              +

              true / false 分别表示 使用 / 不使用 简单数据模式

              +

              如果设置为 true,请务必设置 setting.data.simpleData 内的其他参数: idKey / pIdKey / rootPId,并且让数据满足父子关系。

              +
              +

              setting 举例

              +

              1. 使用简单 Array 格式的数据

              +
              var setting = {
              +	data: {
              +		simpleData: {
              +			enable: true,
              +			idKey: "id",
              +			pIdKey: "pId",
              +			rootPId: 0,
              +		}
              +	}
              +};
              +var treeNodes = [
              +    {"id":1, "pId":0, "name":"test1"},
              +    {"id":11, "pId":1, "name":"test11"},
              +    {"id":12, "pId":1, "name":"test12"},
              +    {"id":111, "pId":11, "name":"test111"}
              +];
              +......
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.data.simpleData.idKey.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.data.simpleData.idKey.html new file mode 100644 index 00000000..81129e93 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.data.simpleData.idKey.html @@ -0,0 +1,32 @@ +
              +
              +

              Stringsetting.data.simpleData.idKey

              +

              概述[ 依赖 jquery.ztree.core 核心 js ]

              +
              +

              +
              +

              节点数据中保存唯一标识的属性名称。[setting.data.simpleData.enable = true 时生效]

              +

              默认值:"id"

              +
              +
              +

              setting 举例

              +

              1. 使用简单 Array 格式的数据

              +
              var setting = {
              +	data: {
              +		simpleData: {
              +			enable: true,
              +			idKey: "id",
              +			pIdKey: "pId",
              +			rootPId: 0,
              +		}
              +	}
              +};
              +var treeNodes = [
              +    {"id":1, "pId":0, "name":"test1"},
              +    {"id":11, "pId":1, "name":"test11"},
              +    {"id":12, "pId":1, "name":"test12"},
              +    {"id":111, "pId":11, "name":"test111"}
              +];
              +......
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.data.simpleData.pIdKey.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.data.simpleData.pIdKey.html new file mode 100644 index 00000000..d434bc31 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.data.simpleData.pIdKey.html @@ -0,0 +1,32 @@ +
              +
              +

              Stringsetting.data.simpleData.pIdKey

              +

              概述[ 依赖 jquery.ztree.core 核心 js ]

              +
              +

              +
              +

              节点数据中保存其父节点唯一标识的属性名称。[setting.data.simpleData.enable = true 时生效]

              +

              默认值:"pId"

              +
              +
              +

              setting 举例

              +

              1. 使用简单 Array 格式的数据

              +
              var setting = {
              +	data: {
              +		simpleData: {
              +			enable: true,
              +			idKey: "id",
              +			pIdKey: "pId",
              +			rootPId: 0
              +		}
              +	}
              +};
              +var treeNodes = [
              +    {"id":1, "pId":0, "name":"test1"},
              +    {"id":11, "pId":1, "name":"test11"},
              +    {"id":12, "pId":1, "name":"test12"},
              +    {"id":111, "pId":11, "name":"test111"}
              +];
              +......
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.data.simpleData.rootPId.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.data.simpleData.rootPId.html new file mode 100644 index 00000000..8cff82d4 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.data.simpleData.rootPId.html @@ -0,0 +1,32 @@ +
              +
              +

              String / Numbersetting.data.simpleData.rootPId

              +

              概述[ 依赖 jquery.ztree.core 核心 js ]

              +
              +

              +
              +

              用于修正根节点父节点数据,即 pIdKey 指定的属性值。[setting.data.simpleData.enable = true 时生效]

              +

              默认值:null

              +
              +
              +

              setting 举例

              +

              1. 使用简单 Array 格式的数据

              +
              var setting = {
              +	data: {
              +		simpleData: {
              +			enable: true,
              +			idKey: "id",
              +			pIdKey: "pId",
              +			rootPId: 0
              +		}
              +	}
              +};
              +var treeNodes = [
              +    {"id":1, "pId":0, "name":"test1"},
              +    {"id":11, "pId":1, "name":"test11"},
              +    {"id":12, "pId":1, "name":"test12"},
              +    {"id":111, "pId":11, "name":"test111"}
              +];
              +......
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.edit.drag.autoExpandTrigger.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.edit.drag.autoExpandTrigger.html new file mode 100644 index 00000000..126b8a85 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.edit.drag.autoExpandTrigger.html @@ -0,0 +1,28 @@ +
              +
              +

              Booleansetting.edit.drag.autoExpandTrigger

              +

              概述[ 依赖 jquery.ztree.exedit 扩展 js ]

              +
              +

              +
              +

              拖拽时父节点自动展开是否触发 onExpand 事件回调函数。[setting.edit.enable = true 时生效]

              +

              默认值:false

              +
              +
              +

              Boolean 格式说明

              +
              +

              true / false 分别表示 触发 / 不触发 onExpand 事件回调函数。

              +
              +

              setting 举例

              +

              1. 设置拖拽时父节点自动展开触发 onExpand 事件回调函数

              +
              var setting = {
              +	edit: {
              +		enable: true,
              +		drag: {
              +			autoExpandTrigger: true
              +		}
              +	}
              +};
              +......
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.edit.drag.autoOpenTime.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.edit.drag.autoOpenTime.html new file mode 100644 index 00000000..df783392 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.edit.drag.autoOpenTime.html @@ -0,0 +1,25 @@ +
              +
              +

              Numbersetting.edit.drag.autoOpenTime

              +

              概述[ 依赖 jquery.ztree.exedit 扩展 js ]

              +
              +

              +
              +

              拖拽时父节点自动展开的延时间隔。 (单位:ms)[setting.edit.enable = true 时生效]

              +

              默认值:500

              +

              请根据自己的需求适当调整此值

              +
              +
              +

              setting 举例

              +

              1. 设置拖拽到父节点上立刻自动展开

              +
              var setting = {
              +	edit: {
              +		enable: true,
              +		drag: {
              +			autoOpenTime: 0
              +		}
              +	}
              +};
              +......
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.edit.drag.borderMax.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.edit.drag.borderMax.html new file mode 100644 index 00000000..1d4dd681 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.edit.drag.borderMax.html @@ -0,0 +1,25 @@ +
              +
              +

              Numbersetting.edit.drag.borderMax

              +

              概述[ 依赖 jquery.ztree.exedit 扩展 js ]

              +
              +

              +
              +

              拖拽节点成为根节点时的 Tree 内边界范围 (单位:px)。[setting.edit.enable = true 时生效]

              +

              默认值:10

              +

              请根据自己的需求适当调整此值

              +
              +
              +

              setting 举例

              +

              1. 更改拖拽操作节点成为根节点时的 Tree 内边界范围为20px

              +
              var setting = {
              +	edit: {
              +		enable: true,
              +		drag: {
              +			borderMax: 20
              +		}
              +	}
              +};
              +......
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.edit.drag.borderMin.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.edit.drag.borderMin.html new file mode 100644 index 00000000..463eb2b7 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.edit.drag.borderMin.html @@ -0,0 +1,25 @@ +
              +
              +

              Numbersetting.edit.drag.borderMin

              +

              概述[ 依赖 jquery.ztree.exedit 扩展 js ]

              +
              +

              +
              +

              拖拽节点成为根节点时的 Tree 外边界范围 (单位:px)。[setting.edit.enable = true 时生效]

              +

              默认值:-5

              +

              请根据自己的需求适当调整此值

              +
              +
              +

              setting 举例

              +

              1. 更改拖拽操作节点成为根节点时的 Tree 外边界范围为10px

              +
              var setting = {
              +	edit: {
              +		enable: true,
              +		drag: {
              +			borderMin: -10
              +		}
              +	}
              +};
              +......
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.edit.drag.inner.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.edit.drag.inner.html new file mode 100644 index 00000000..06679e1a --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.edit.drag.inner.html @@ -0,0 +1,59 @@ +
              +
              +

              Boolean / Function(treeId, treeNodes, targetNode)setting.edit.drag.inner

              +

              概述[ 依赖 jquery.ztree.exedit 扩展 js ]

              +
              +

              +
              +

              拖拽到目标节点时,设置是否允许成为目标节点的子节点。[setting.edit.enable = true 时生效]

              +

              拖拽目标是 根 的时候,不触发 prev 和 next,只会触发 inner

              +

              此功能主要作用是对拖拽进行适当限制(辅助箭头),需要结合 prev、next 一起使用,才能实现完整功能。

              +

              默认值:true

              +
              +
              +

              Boolean 格式说明

              +
              +

              true / false 分别表示 允许 / 不允许 成为目标节点的子节点

              +
              +

              Function 参数说明

              +
              +

              treeIdString

              +

              对应 zTree 的 treeId,便于用户操控(多棵树拖拽时,是目标节点所在树的 treeId)

              +

              treeNodesArray(JSON)

              +

              被拖拽的节点 JSON 数据集合

              +

              targetNodeJSON

              +

              拖拽时的目标节点 JSON 数据对象

              +

              如果拖拽的节点要成为根节点,则 targetNode = null

              +

              返回值Boolean

              +

              返回值同 Boolean 格式的数据

              +
              +

              setting & function 举例

              +

              1. 禁止拖拽成为目标节点的子节点

              +
              var setting = {
              +	edit: {
              +		enable: true,
              +		drag: {
              +			prev: true,
              +			next: true,
              +			inner: false
              +		}
              +	}
              +};
              +......
              +

              2. 禁止拖拽成为根节点的子节点

              +
              function canInner(treeId, nodes, targetNode) {
              +	return !(targetNode && targetNode.level === 0);
              +}
              +var setting = {
              +	edit: {
              +		enable: true,
              +		drag: {
              +			prev: true,
              +			next: true,
              +			inner: canInner
              +		}
              +	}
              +};
              +......
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.edit.drag.isCopy.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.edit.drag.isCopy.html new file mode 100644 index 00000000..f77ead44 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.edit.drag.isCopy.html @@ -0,0 +1,32 @@ +
              +
              +

              Booleansetting.edit.drag.isCopy

              +

              概述[ 依赖 jquery.ztree.exedit 扩展 js ]

              +
              +

              +
              +

              拖拽时, 设置是否允许复制节点。[setting.edit.enable = true 时生效]

              +

              默认值:true

              +
              +
              +

              规则说明

              +
              +

              1、isCopy = true; isMove = true 时,拖拽节点按下 Ctrl 键表示 copy; 否则为 move

              +

              2、isCopy = true; isMove = false 时,所有拖拽操作都是 copy

              +

              3、isCopy = false; isMove = true 时,所有拖拽操作都是 move

              +

              4、isCopy = false; isMove = false 时,禁止拖拽操作

              +
              +

              setting 举例

              +

              1. 设置所有拖拽操作都是 copy

              +
              var setting = {
              +	edit: {
              +		enable: true,
              +		drag: {
              +			isCopy: true,
              +			isMove: false
              +		}
              +	}
              +};
              +......
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.edit.drag.isMove.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.edit.drag.isMove.html new file mode 100644 index 00000000..d8602861 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.edit.drag.isMove.html @@ -0,0 +1,32 @@ +
              +
              +

              Booleansetting.edit.drag.isMove

              +

              概述[ 依赖 jquery.ztree.exedit 扩展 js ]

              +
              +

              +
              +

              拖拽时, 设置是否允许移动节点。[setting.edit.enable = true 时生效]

              +

              默认值:true

              +
              +
              +

              规则说明

              +
              +

              1、isCopy = true; isMove = true 时,拖拽节点按下 Ctrl 键表示 copy; 否则为 move

              +

              2、isCopy = true; isMove = false 时,所有拖拽操作都是 copy

              +

              3、isCopy = false; isMove = true 时,所有拖拽操作都是 move

              +

              4、isCopy = false; isMove = false 时,禁止拖拽操作

              +
              +

              setting 举例

              +

              1. 设置所有拖拽操作都是 move

              +
              var setting = {
              +	edit: {
              +		enable: true,
              +		drag: {
              +			isCopy: false,
              +			isMove: true
              +		}
              +	}
              +};
              +......
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.edit.drag.maxShowNodeNum.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.edit.drag.maxShowNodeNum.html new file mode 100644 index 00000000..3e7a3d26 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.edit.drag.maxShowNodeNum.html @@ -0,0 +1,25 @@ +
              +
              +

              Numbersetting.edit.drag.maxShowNodeNum

              +

              概述[ 依赖 jquery.ztree.exedit 扩展 js ]

              +
              +

              +
              +

              拖拽多个兄弟节点时,浮动图层中显示的最大节点数。 多余的节点用...代替。[setting.edit.enable = true 时生效]

              +

              默认值:5

              +

              请根据自己的需求适当调整此值

              +
              +
              +

              setting 举例

              +

              1. 设置拖拽时最多可显示10个节点

              +
              var setting = {
              +	edit: {
              +		enable: true,
              +		drag: {
              +			maxShowNodeNum: 10
              +		}
              +	}
              +};
              +......
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.edit.drag.minMoveSize.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.edit.drag.minMoveSize.html new file mode 100644 index 00000000..904be414 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.edit.drag.minMoveSize.html @@ -0,0 +1,25 @@ +
              +
              +

              Numbersetting.edit.drag.minMoveSize

              +

              概述[ 依赖 jquery.ztree.exedit 扩展 js ]

              +
              +

              +
              +

              判定是否拖拽操作的最小位移值 (单位:px)。[setting.edit.enable = true 时生效]

              +

              根据自己的需求可适当调整此值,如果太小容易导致点击鼠标时误操作进行拖拽

              +

              默认值:5

              +
              +
              +

              setting 举例

              +

              1. 更改拖拽操作启动位移值为10px

              +
              var setting = {
              +	edit: {
              +		enable: true,
              +		drag: {
              +			minMoveSize: 10
              +		}
              +	}
              +};
              +......
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.edit.drag.next.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.edit.drag.next.html new file mode 100644 index 00000000..ffc874aa --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.edit.drag.next.html @@ -0,0 +1,58 @@ +
              +
              +

              Boolean / Function(treeId, treeNodes, targetNode)setting.edit.drag.next

              +

              概述[ 依赖 jquery.ztree.exedit 扩展 js ]

              +
              +

              +
              +

              拖拽到目标节点时,设置是否允许移动到目标节点后面的操作。[setting.edit.enable = true 时生效]

              +

              拖拽目标是 根 的时候,不触发 prev 和 next,只会触发 inner

              +

              此功能主要作用是对拖拽进行适当限制(辅助箭头),需要结合 prev、inner 一起使用,才能实现完整功能。

              +

              默认值:true

              +
              +
              +

              Boolean 格式说明

              +
              +

              true / false 分别表示 允许 / 不允许 移动到目标节点后面

              +
              +

              Function 参数说明

              +
              +

              treeIdString

              +

              对应 zTree 的 treeId,便于用户操控(多棵树拖拽时,是目标节点所在树的 treeId)

              +

              treeNodesArray(JSON)

              +

              被拖拽的节点 JSON 数据集合

              +

              targetNodeJSON

              +

              拖拽时的目标节点 JSON 数据对象

              +

              返回值Boolean

              +

              返回值同 Boolean 格式的数据

              +
              +

              setting & function 举例

              +

              1. 禁止拖拽到节点后面的操作

              +
              var setting = {
              +	edit: {
              +		enable: true,
              +		drag: {
              +			prev: true,
              +			next: false,
              +			inner: true
              +		}
              +	}
              +};
              +......
              +

              2. 禁止拖拽到父节点后面的操作

              +
              function canNext(treeId, nodes, targetNode) {
              +	return !targetNode.isParent;
              +}
              +var setting = {
              +	edit: {
              +		enable: true,
              +		drag: {
              +			prev: true,
              +			next: canNext,
              +			inner: true
              +		}
              +	}
              +};
              +......
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.edit.drag.prev.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.edit.drag.prev.html new file mode 100644 index 00000000..bd053618 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.edit.drag.prev.html @@ -0,0 +1,58 @@ +
              +
              +

              Boolean / Function(treeId, treeNodes, targetNode)setting.edit.drag.prev

              +

              概述[ 依赖 jquery.ztree.exedit 扩展 js ]

              +
              +

              +
              +

              拖拽到目标节点时,设置是否允许移动到目标节点前面的操作。[setting.edit.enable = true 时生效]

              +

              拖拽目标是 根 的时候,不触发 prev 和 next,只会触发 inner

              +

              此功能主要作用是对拖拽进行适当限制(辅助箭头),需要结合 next、inner 一起使用,才能实现完整功能。

              +

              默认值:true

              +
              +
              +

              Boolean 格式说明

              +
              +

              true / false 分别表示 允许 / 不允许 移动到目标节点前面

              +
              +

              Function 参数说明

              +
              +

              treeIdString

              +

              对应 zTree 的 treeId,便于用户操控(多棵树拖拽时,是目标节点所在树的 treeId)

              +

              treeNodesArray(JSON)

              +

              被拖拽的节点 JSON 数据集合

              +

              targetNodeJSON

              +

              拖拽时的目标节点 JSON 数据对象

              +

              返回值Boolean

              +

              返回值同 Boolean 格式的数据

              +
              +

              setting & function 举例

              +

              1. 禁止拖拽到节点前面的操作

              +
              var setting = {
              +	edit: {
              +		enable: true,
              +		drag: {
              +			prev: false,
              +			next: true,
              +			inner: true
              +		}
              +	}
              +};
              +......
              +

              2. 禁止拖拽到父节点前面的操作

              +
              function canPrev(treeId, nodes, targetNode) {
              +	return !targetNode.isParent;
              +}
              +var setting = {
              +	edit: {
              +		enable: true,
              +		drag: {
              +			prev: canPrev,
              +			next: true,
              +			inner: true
              +		}
              +	}
              +};
              +......
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.edit.editNameSelectAll.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.edit.editNameSelectAll.html new file mode 100644 index 00000000..30784f3c --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.edit.editNameSelectAll.html @@ -0,0 +1,27 @@ +
              +
              +

              Booleansetting.edit.editNameSelectAll

              +

              概述[ 依赖 jquery.ztree.exedit 扩展 js ]

              +
              +

              +
              +

              节点编辑名称 input 初次显示时,设置 txt 内容是否为全选状态。 [setting.edit.enable = true 时生效]

              +

              默认值: false

              +
              +
              +

              Boolean 格式说明

              +
              +

              true 表示 全选状态

              +

              false 表示 不是全选状态,光标默认在最后

              +
              +

              setting 举例

              +

              1. 设置节点编辑名称 input 初次显示时,txt内容为全选状态

              +
              var setting = {
              +	edit: {
              +		enable: true,
              +		editNameSelectAll: true
              +	}
              +};
              +......
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.edit.enable.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.edit.enable.html new file mode 100644 index 00000000..de1afeaf --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.edit.enable.html @@ -0,0 +1,38 @@ +
              +
              +

              Booleansetting.edit.enable

              +

              概述[ 依赖 jquery.ztree.exedit 扩展 js ]

              +
              +

              +
              +

              设置 zTree 是否处于编辑状态

              +

              请在初始化之前设置,初始化后需要改变编辑状态请使用 zTreeObj.setEditable() 方法

              +

              默认值: false

              +
              +
              +

              Boolean 格式说明

              +
              +

              true / false 分别表示 可以 / 不可以 编辑

              +
              +

              编辑状态规则说明

              +
              +

              1、点击节点时,不会打开 node.url 指定的 URL。 +
              2、全面支持 编辑 与 异步加载 状态共存。 +
              3、可以对节点进行拖拽,且支持多棵树之间进行拖拽。 +
              4、支持拖拽时 复制/移动 节点。(参考: setting.edit.drag.isCopy / setting.edit.drag.isMove) +
              5、可以通过编辑按钮修改 name 属性。 +
              6、可以通过删除按钮删除节点。 +
              +

              +

              请注意大小写,不要改变

              +
              +

              setting 举例

              +

              1. 设置 zTree 进入编辑状态

              +
              var setting = {
              +	edit: {
              +		enable: true
              +	}
              +};
              +......
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.edit.removeTitle.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.edit.removeTitle.html new file mode 100644 index 00000000..55257da7 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.edit.removeTitle.html @@ -0,0 +1,48 @@ +
              +
              +

              String / Function(treeId, treeNode)setting.edit.removeTitle

              +

              概述[ 依赖 jquery.ztree.exedit 扩展 js ]

              +
              +

              +
              +

              删除按钮的 Title 辅助信息。[setting.edit.enable = true & setting.edit.showRemoveBtn = true 时生效]

              +

              默认值:"remove"

              +
              +
              +

              String 格式说明

              +
              +

              鼠标移动到 删除按钮 上时,浏览器自动弹出的辅助信息内容,可根据用户需要自行修改

              +
              +

              Function 参数说明

              +
              +

              treeIdString

              +

              对应 zTree 的 treeId,便于用户操控

              +

              treeNodeJSON

              +

              需要设置删除按钮 Title 信息的节点 JSON 数据对象

              +

              返回值String

              +

              返回值同 String 格式的数据

              +
              +

              setting & function 举例

              +

              1. 设置删除按钮的 Title 辅助信息为: "删除节点"

              +
              var setting = {
              +	edit: {
              +		enable: true,
              +		showRemoveBtn: true,
              +		removeTitle: "删除节点"
              +	}
              +};
              +......
              +

              2. 设置父节点删除按钮的 Title 辅助信息为: "删除父节点"

              +
              function setRemoveTitle(treeId, treeNode) {
              +	return treeNode.isParent ? "删除父节点":"删除叶子节点";
              +}
              +var setting = {
              +	edit: {
              +		enable: true,
              +		showRemoveBtn: true,
              +		removeTitle: setRemoveTitle
              +	}
              +};
              +......
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.edit.renameTitle.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.edit.renameTitle.html new file mode 100644 index 00000000..2dfbcca1 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.edit.renameTitle.html @@ -0,0 +1,48 @@ +
              +
              +

              String / Function(treeId, treeNode)setting.edit.renameTitle

              +

              概述[ 依赖 jquery.ztree.exedit 扩展 js ]

              +
              +

              +
              +

              编辑名称按钮的 Title 辅助信息。[setting.edit.enable = true & setting.edit.showRenameBtn = true 时生效]

              +

              默认值:"rename"

              +
              +
              +

              String 格式说明

              +
              +

              设置鼠标移动到 编辑名称按钮 上时,浏览器自动弹出的辅助信息内容,可根据用户需要自行修改

              +
              +

              Function 参数说明

              +
              +

              treeIdString

              +

              对应 zTree 的 treeId,便于用户操控

              +

              treeNodeJSON

              +

              需要设置编辑名称按钮 Title 信息的节点 JSON 数据对象

              +

              返回值String

              +

              返回值同 String 格式的数据

              +
              +

              setting & function 举例

              +

              1. 设置编辑名称按钮的 Title 辅助信息为: "编辑节点名称"

              +
              var setting = {
              +	edit: {
              +		enable: true,
              +		showRenameBtn: true,
              +		renameTitle: "编辑节点名称"
              +	}
              +};
              +......
              +

              2. 设置父节点编辑名称按钮的 Title 辅助信息为: "编辑父节点名称"

              +
              function setRenameTitle(treeId, treeNode) {
              +	return treeNode.isParent ? "编辑父节点名称":"编辑叶子节点名称";
              +}
              +var setting = {
              +	edit: {
              +		enable: true,
              +		showRenameBtn: true,
              +		renameTitle: setRenameTitle
              +	}
              +};
              +......
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.edit.showRemoveBtn.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.edit.showRemoveBtn.html new file mode 100644 index 00000000..db62053c --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.edit.showRemoveBtn.html @@ -0,0 +1,49 @@ +
              +
              +

              Boolean / Function(treeId, treeNode)setting.edit.showRemoveBtn

              +

              概述[ 依赖 jquery.ztree.exedit 扩展 js ]

              +
              +

              +
              +

              设置是否显示删除按钮。[setting.edit.enable = true 时生效]

              +

              当点击某节点的删除按钮时:

              +

              1、首先触发 setting.callback.beforeRemove 回调函数,用户可判定是否进行删除操作。

              +

              2、如果未设置 beforeRemove 或 beforeRemove 返回 true,则删除节点并触发 setting.callback.onRemove 回调函数。

              +

              默认值:true

              +
              +
              +

              Boolean 格式说明

              +
              +

              true / false 分别表示 显示 / 隐藏 删除按钮

              +
              +

              Function 参数说明

              +
              +

              treeIdString

              +

              对应 zTree 的 treeId,便于用户操控

              +

              treeNodeJSON

              +

              需要设置是否显示删除按钮的节点 JSON 数据对象

              +

              返回值Boolean

              +

              返回值同 Boolean 格式的数据

              +
              +

              setting & function 举例

              +

              1. 不显示删除按钮

              +
              var setting = {
              +	edit: {
              +		enable: true,
              +		showRemoveBtn: false
              +	}
              +};
              +......
              +

              2. 设置所有的父节点不显示删除按钮

              +
              function setRemoveBtn(treeId, treeNode) {
              +	return !treeNode.isParent;
              +}
              +var setting = {
              +	edit: {
              +		enable: true,
              +		showRemoveBtn: setRemoveBtn
              +	}
              +};
              +......
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.edit.showRenameBtn.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.edit.showRenameBtn.html new file mode 100644 index 00000000..33dd37aa --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.edit.showRenameBtn.html @@ -0,0 +1,51 @@ +
              +
              +

              Boolean / Function(treeId, treeNode)setting.edit.showRenameBtn

              +

              概述[ 依赖 jquery.ztree.exedit 扩展 js ]

              +
              +

              +
              +

              设置是否显示编辑名称按钮。[setting.edit.enable = true 时生效]

              +

              当点击某节点的编辑名称按钮时:

              +

              1、进入节点编辑名称状态。

              +

              2、编辑名称完毕(Input 失去焦点 或 按下 Enter 键),会触发 setting.callback.beforeRename 回调函数,用户可根据自己的规则判定是否允许修改名称。

              +

              3、如果 beforeRename 返回 false,则继续保持编辑名称状态,直到名称符合规则位置 (按下 ESC 键可取消编辑名称状态,恢复原名称)。

              +

              4、如果未设置 beforeRename 或 beforeRename 返回 true,则结束节点编辑名称状态,更新节点名称,并触发 setting.callback.onRename 回调函数。

              +

              默认值:true

              +
              +
              +

              Boolean 格式说明

              +
              +

              true / false 分别表示 显示 / 隐藏 编辑名称按钮

              +
              +

              Function 参数说明

              +
              +

              treeIdString

              +

              对应 zTree 的 treeId,便于用户操控

              +

              treeNodeJSON

              +

              需要设置是否显示编辑名称按钮的节点 JSON 数据对象

              +

              返回值Boolean

              +

              返回值同 Boolean 格式的数据

              +
              +

              setting & function 举例

              +

              1. 不显示编辑名称按钮

              +
              var setting = {
              +	edit: {
              +		enable: true,
              +		showRenameBtn: false
              +	}
              +};
              +......
              +

              2. 设置所有的父节点不显示编辑名称按钮

              +
              function setRenameBtn(treeId, treeNode) {
              +	return !treeNode.isParent;
              +}
              +var setting = {
              +	edit: {
              +		enable: true,
              +		showRenameBtn: setRenameBtn
              +	}
              +};
              +......
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.treeId.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.treeId.html new file mode 100644 index 00000000..819743eb --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.treeId.html @@ -0,0 +1,14 @@ +
              +
              +

              Stringsetting.treeId

              +

              概述[ 依赖 jquery.ztree.core 核心 js ]

              +
              +

              +
              +

              zTree 的唯一标识,初始化后,等于 用户定义的 zTree 容器的 id 属性值。

              +

              请勿进行初始化 或 修改,属于内部参数。

              +
              +
              + +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.treeObj.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.treeObj.html new file mode 100644 index 00000000..37684a19 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.treeObj.html @@ -0,0 +1,14 @@ +
              +
              +

              Objectsetting.treeObj

              +

              概述[ 依赖 jquery.ztree.core 核心 js ]

              +
              +

              +
              +

              zTree 容器的 jQuery 对象,主要功能:便于操作。

              +

              请勿进行初始化 或 修改,属于内部参数。

              +
              +
              + +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.view.addDiyDom.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.view.addDiyDom.html new file mode 100644 index 00000000..0a508acc --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.view.addDiyDom.html @@ -0,0 +1,40 @@ +
              +
              +

              Function(treeId, treeNode)setting.view.addDiyDom

              +

              概述[ 依赖 jquery.ztree.core 核心 js ]

              +
              +

              +
              +

              用于在节点上固定显示用户自定义控件

              +

              1. 大数据量的节点加载请注意:在 addDiyDom 中针对每个节点 查找 DOM 对象并且添加新 DOM 控件,肯定会影响初始化性能;如果不是必须使用,建议不使用此功能

              +

              2. 属于高级应用,使用时请确保对 zTree 比较了解。

              +

              默认值:null

              +
              +
              +

              Function 参数说明

              +
              +

              treeIdString

              +

              对应 zTree 的 treeId,便于用户操控

              +

              treeNodeJSON

              +

              需要显示自定义控件的节点 JSON 数据对象

              +
              +

              setting & function 举例

              +

              1. 设置节点后面显示一个按钮

              +
              var setting = {
              +	view: {
              +		addDiyDom: addDiyDom
              +	}
              +};
              +function addDiyDom(treeId, treeNode) {
              +	var aObj = $("#" + treeNode.tId + "_a");
              +	if ($("#diyBtn_"+treeNode.id).length>0) return;
              +	var editStr = "<span id='diyBtn_space_" +treeNode.id+ "' > </span>"
              +		+ "<button type='button' class='diyBtn1' id='diyBtn_" + treeNode.id
              +		+ "' title='"+treeNode.name+"' onfocus='this.blur();'></button>";
              +	aObj.append(editStr);
              +	var btn = $("#diyBtn_"+treeNode.id);
              +	if (btn) btn.bind("click", function(){alert("diy Button for " + treeNode.name);});
              +};
              +......
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.view.addHoverDom.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.view.addHoverDom.html new file mode 100644 index 00000000..f073e79c --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.view.addHoverDom.html @@ -0,0 +1,45 @@ +
              +
              +

              Function(treeId, treeNode)setting.view.addHoverDom

              +

              概述[ 依赖 jquery.ztree.exedit 扩展 js ]

              +
              +

              +
              +

              用于当鼠标移动到节点上时,显示用户自定义控件,显示隐藏状态同 zTree 内部的编辑、删除按钮

              +

              请务必与 setting.view.removeHoverDom 同时使用;属于高级应用,使用时请确保对 zTree 比较了解。

              +

              默认值:null

              +
              +
              +

              Function 参数说明

              +
              +

              treeIdString

              +

              对应 zTree 的 treeId,便于用户操控

              +

              treeNodeJSON

              +

              需要显示自定义控件的节点 JSON 数据对象

              +
              +

              setting & function 举例

              +

              1. 设置鼠标移到节点上,在后面显示一个按钮

              +
              var setting = {
              +	view: {
              +		addHoverDom: addHoverDom,
              +		removeHoverDom: removeHoverDom,
              +		......
              +	}
              +};
              +function addHoverDom(treeId, treeNode) {
              +	var aObj = $("#" + treeNode.tId + "_a");
              +	if ($("#diyBtn_"+treeNode.id).length>0) return;
              +	var editStr = "<span id='diyBtn_space_" +treeNode.id+ "' > </span>"
              +		+ "<button type='button' class='diyBtn1' id='diyBtn_" + treeNode.id
              +		+ "' title='"+treeNode.name+"' onfocus='this.blur();'></button>";
              +	aObj.append(editStr);
              +	var btn = $("#diyBtn_"+treeNode.id);
              +	if (btn) btn.bind("click", function(){alert("diy Button for " + treeNode.name);});
              +};
              +function removeHoverDom(treeId, treeNode) {
              +	$("#diyBtn_"+treeNode.id).unbind().remove();
              +	$("#diyBtn_space_" +treeNode.id).unbind().remove();
              +};
              +......
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.view.autoCancelSelected.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.view.autoCancelSelected.html new file mode 100644 index 00000000..aff1078b --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.view.autoCancelSelected.html @@ -0,0 +1,26 @@ +
              +
              +

              Booleansetting.view.autoCancelSelected

              +

              概述[ 依赖 jquery.ztree.core 核心 js ]

              +
              +

              +
              +

              点击节点时,按下 Ctrl 键是否允许取消选择操作。

              +

              如果不需要此功能,请设置为 false。

              +

              默认值: true

              +
              +
              +

              Boolean 格式说明

              +
              +

              true / false 分别表示 支持 / 不支持 配合 Ctrl 键进行取消节点选择的操作

              +
              +

              setting 举例

              +

              1. 禁止配合 Ctrl 键进行取消节点选择的操作

              +
              var setting = {
              +	view: {
              +		autoCancelSelected: false
              +	}
              +};
              +......
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.view.dblClickExpand.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.view.dblClickExpand.html new file mode 100644 index 00000000..5f3db964 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.view.dblClickExpand.html @@ -0,0 +1,44 @@ +
              +
              +

              Boolean / Function(treeId, treeNode)setting.view.dblClickExpand

              +

              概述[ 依赖 jquery.ztree.core 核心 js ]

              +
              +

              +
              +

              双击节点时,是否自动展开父节点的标识

              +

              默认值: true

              +
              +
              +

              Boolean 格式说明

              +
              +

              true / false 分别表示双击节点 切换 / 不切换 展开状态

              +
              +

              Function 参数说明

              +
              +

              treeIdString

              +

              对应 zTree 的 treeId,便于用户操控

              +

              treeNodeJSON

              +

              需要设置是否双击切换展开状态的节点 JSON 数据对象

              +

              返回值Boolean

              +

              返回值同 Boolean 格式的数据

              +
              +

              setting 举例

              +

              1. 取消默认双击展开父节点的功能

              +
              var setting = {
              +	view: {
              +		dblClickExpand: false
              +	}
              +};
              +......
              +

              2. 设置 zTree 仅仅 level=0 的父节点取消双击展开的功能

              +
              function dblClickExpand(treeId, treeNode) {
              +	return treeNode.level > 0;
              +};
              +var setting = {
              +	view: {
              +		dblClickExpand: dblClickExpand
              +	}
              +};
              +......
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.view.expandSpeed.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.view.expandSpeed.html new file mode 100644 index 00000000..3b799c32 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.view.expandSpeed.html @@ -0,0 +1,31 @@ +
              +
              +

              String / Numbersetting.view.expandSpeed

              +

              概述[ 依赖 jquery.ztree.core 核心 js ]

              +
              +

              +
              +

              zTree 节点展开、折叠时的动画速度,设置方法同 JQuery 动画效果中 speed 参数。

              +

              IE6 下会自动关闭动画效果,以保证 zTree 的操作速度

              +

              默认值:"fast"

              +
              +
              +

              String 格式说明

              +
              +

              三种预定速度之一的字符串("slow", "normal", or "fast")

              +

              设置为 "" 时,不显示动画效果

              +
              +

              Number 格式说明

              +
              +

              表示动画时长的毫秒数值 (如:1000)

              +
              +

              setting 举例

              +

              1. 设置为慢速显示动画效果

              +
              var setting = {
              +	view: {
              +		expandSpeed: "slow"
              +	}
              +};
              +......
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.view.fontCss.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.view.fontCss.html new file mode 100644 index 00000000..54efb1bb --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.view.fontCss.html @@ -0,0 +1,42 @@ +
              +
              +

              JSON / Function(treeId, treeNode)setting.view.fontCss

              +

              概述[ 依赖 jquery.ztree.core 核心 js ]

              +
              +

              +
              +

              个性化文字样式,只针对 zTree 在节点上显示的<A>对象。

              +

              默认值:{}

              +
              +
              +

              JSON 格式说明

              +
              +

              JSON 格式为 JQuery css方法中的 JSON 对象格式,例如:{color:"#ff0011", background:"blue"}

              +
              +

              Function 参数说明

              +
              +

              treeIdString

              +

              对应 zTree 的 treeId,便于用户操控

              +

              treeNodeJSON

              +

              需要设置自定义样式的节点 JSON 数据对象

              +

              返回值JSON

              +

              返回值同 JSON 格式的数据,例如:{color:"#ff0011", background:"blue"}

              +
              +

              setting & function 举例

              +

              1. 不修改CSS,设置全部节点 name 显示为红色

              +
              var setting = {
              +	view: {
              +		fontCss : {color:"red"}
              +	}
              +};
              +

              2. 设置 level=0 的节点 name 显示为红色

              +
              function setFontCss(treeId, treeNode) {
              +	return treeNode.level == 0 ? {color:"red"} : {};
              +};
              +var setting = {
              +	view: {
              +		fontCss: setFontCss
              +	}
              +};
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.view.nameIsHTML.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.view.nameIsHTML.html new file mode 100644 index 00000000..a1d916c5 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.view.nameIsHTML.html @@ -0,0 +1,27 @@ +
              +
              +

              Booleansetting.view.nameIsHTML

              +

              概述[ 依赖 jquery.ztree.core 核心 js ]

              +
              +

              +
              +

              设置 name 属性是否支持 HTML 脚本

              +

              如果允许 HTML 脚本,请根据自己的需求做校验,避免出现 js 注入等安全问题。

              +

              默认值: false

              +
              +
              +

              Boolean 格式说明

              +
              +

              true / false 分别表示 支持 / 不支持 HTML 脚本

              +
              +

              setting 举例

              +

              1. 设置 name 属性支持 HTML 脚本

              +
              var setting = {
              +	view: {
              +		nameIsHTML: true
              +	}
              +};
              +var node = {"name":"<font color='red'>test</font>"};
              +......
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.view.removeHoverDom.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.view.removeHoverDom.html new file mode 100644 index 00000000..bb1a9aa2 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.view.removeHoverDom.html @@ -0,0 +1,45 @@ +
              +
              +

              Function(treeId, treeNode)setting.view.removeHoverDom

              +

              概述[ 依赖 jquery.ztree.exedit 扩展 js ]

              +
              +

              +
              +

              用于当鼠标移出节点时,隐藏用户自定义控件,显示隐藏状态同 zTree 内部的编辑、删除按钮

              +

              请务必与 addHoverDom 同时使用;属于高级应用,使用时请确保对 zTree 比较了解。

              +

              默认值:null

              +
              +
              +

              Function 参数说明

              +
              +

              treeIdString

              +

              对应 zTree 的 treeId,便于用户操控

              +

              treeNodeJSON

              +

              需要隐藏自定义控件的节点 JSON 数据对象

              +
              +

              setting & function 举例

              +

              1. 设置鼠标移到节点上,在后面显示一个按钮

              +
              var setting = {
              +	view: {
              +		addHoverDom: addHoverDom,
              +		removeHoverDom: removeHoverDom,
              +		......
              +	}
              +};
              +function addHoverDom(treeId, treeNode) {
              +	var aObj = $("#" + treeNode.tId + "_a");
              +	if ($("#diyBtn_"+treeNode.id).length>0) return;
              +	var editStr = "<span id='diyBtn_space_" +treeNode.id+ "' > </span>"
              +		+ "<button type='button' class='diyBtn1' id='diyBtn_" + treeNode.id
              +		+ "' title='"+treeNode.name+"' onfocus='this.blur();'></button>";
              +	aObj.append(editStr);
              +	var btn = $("#diyBtn_"+treeNode.id);
              +	if (btn) btn.bind("click", function(){alert("diy Button for " + treeNode.name);});
              +};
              +function removeHoverDom(treeId, treeNode) {
              +	$("#diyBtn_"+treeNode.id).unbind().remove();
              +	$("#diyBtn_space_" +treeNode.id).unbind().remove();
              +};
              +......
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.view.selectedMulti.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.view.selectedMulti.html new file mode 100644 index 00000000..d73820df --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.view.selectedMulti.html @@ -0,0 +1,27 @@ +
              +
              +

              Booleansetting.view.selectedMulti

              +

              概述[ 依赖 jquery.ztree.core 核心 js ]

              +
              +

              +
              +

              设置是否允许同时选中多个节点。

              +

              默认值: true

              +
              +
              +

              Boolean 格式说明

              +
              +

              true / false 分别表示 支持 / 不支持 同时选中多个节点

              +

              1、设置为 true时,按下 Ctrl 键可以选中多个节点

              +

              2、设置为 true / false 都不影响按下 Ctrl 键可以让已选中的节点取消选中状态( 取消选中状态可以参考 setting.view.autoCancelSelected )

              +
              +

              setting 举例

              +

              1. 禁止多点同时选中的功能

              +
              var setting = {
              +	view: {
              +		selectedMulti: false
              +	}
              +};
              +......
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.view.showIcon.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.view.showIcon.html new file mode 100644 index 00000000..ebe423ca --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.view.showIcon.html @@ -0,0 +1,44 @@ +
              +
              +

              Boolean / Function(treeId, treeNode)setting.view.showIcon

              +

              概述[ 依赖 jquery.ztree.core 核心 js ]

              +
              +

              +
              +

              设置 zTree 是否显示节点的图标。

              +

              默认值:true

              +
              +
              +

              Boolean 格式说明

              +
              +

              true / false 分别表示 显示 / 隐藏 图标

              +
              +

              Function 参数说明

              +
              +

              treeIdString

              +

              对应 zTree 的 treeId,便于用户操控

              +

              treeNodeJSON

              +

              需要设置是否显示图标的节点 JSON 数据对象

              +

              返回值Boolean

              +

              返回值同 Boolean 格式的数据

              +
              +

              setting & function 举例

              +

              1. 设置 zTree 不显示图标

              +
              var setting = {
              +	view: {
              +		showIcon: false
              +	}
              +};
              +......
              +

              2. 设置 zTree 仅仅 level=2 的节点不显示图标

              +
              function showIconForTree(treeId, treeNode) {
              +	return treeNode.level != 2;
              +};
              +var setting = {
              +	view: {
              +		showIcon: showIconForTree
              +	}
              +};
              +......
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.view.showLine.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.view.showLine.html new file mode 100644 index 00000000..02ab5ebb --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.view.showLine.html @@ -0,0 +1,25 @@ +
              +
              +

              Booleansetting.view.showLine

              +

              概述[ 依赖 jquery.ztree.core 核心 js ]

              +
              +

              +
              +

              设置 zTree 是否显示节点之间的连线。

              +

              默认值:true

              +
              +
              +

              Boolean 格式说明

              +
              +

              true / false 分别表示 显示 / 不显示 连线

              +
              +

              setting 举例

              +

              1. 设置 zTree 不显示节点之间的连线

              +
              var setting = {
              +	view: {
              +		showLine: false
              +	}
              +};
              +......
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.view.showTitle.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.view.showTitle.html new file mode 100644 index 00000000..5bcb8600 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.view.showTitle.html @@ -0,0 +1,46 @@ +
              +
              +

              Boolean / Function(treeId, treeNode)setting.view.showTitle

              +

              概述[ 依赖 jquery.ztree.core 核心 js ]

              +
              +

              +
              +

              设置 zTree 是否显示节点的 title 提示信息(即节点 DOM 的 title 属性)。

              +

              请务必与 setting.data.key.title 同时使用。

              +

              默认值:true

              +
              +
              +

              Boolean 格式说明

              +
              +

              true / false 分别表示 显示 / 隐藏 提示信息

              +

              如果 setting.view.showTitle = true & setting.data.key.title = '',zTree 会自动使用 setting.data.key.name 指定的节点名称当做 title

              +
              +

              Function 参数说明

              +
              +

              treeIdString

              +

              对应 zTree 的 treeId,便于用户操控

              +

              treeNodeJSON

              +

              需要设置是否显示提示信息的节点 JSON 数据对象

              +

              返回值Boolean

              +

              返回值同 Boolean 格式的数据

              +
              +

              setting & function 举例

              +

              1. 设置 zTree 不显示提示信息

              +
              var setting = {
              +	view: {
              +		showTitle: false
              +	}
              +};
              +......
              +

              2. 设置 zTree 仅仅 level=2 的节点不显示提示信息

              +
              function showTitleForTree(treeId, treeNode) {
              +	return treeNode.level != 2;
              +};
              +var setting = {
              +	view: {
              +		showTitle: showTitleForTree
              +	}
              +};
              +......
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.view.txtSelectedEnable.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.view.txtSelectedEnable.html new file mode 100644 index 00000000..c22a8c00 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/setting.view.txtSelectedEnable.html @@ -0,0 +1,25 @@ +
              +
              +

              Booleansetting.view.txtSelectedEnable

              +

              概述[ 依赖 jquery.ztree.core 核心 js ]

              +
              +

              +
              +

              设置 zTree 是否允许可以选择 zTree DOM 内的文本。

              +

              默认值:false

              +
              +
              +

              Boolean 格式说明

              +
              +

              true / false 分别表示 允许 / 不允许 选择 zTree Dom 内的文本

              +
              +

              setting & function 举例

              +

              1. 设置 zTree 允许选择文本

              +
              var setting = {
              +	view: {
              +		txtSelectedEnable: true
              +	}
              +};
              +......
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/treeNode.check_Child_State.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/treeNode.check_Child_State.html new file mode 100644 index 00000000..fa378994 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/treeNode.check_Child_State.html @@ -0,0 +1,43 @@ +
              +
              +

              NumbertreeNode.check_Child_State

              +

              概述[ 依赖 jquery.ztree.excheck 扩展 js ]

              +
              +

              +
              +

              用于设置节点的子节点的 checkBox / radio 的半选状态。[setting.check.enable = true 时有效]

              +

              v3.x 针对节点数据对象提供 treeNode.getCheckStatus() 方法获取标准的半选状态

              +

              zTree 内部使用,请勿进行初始化 或 随意修改

              +

              默认值:true

              +
              +
              +

              Number 格式说明

              +
              +

              规则如下:

              + + + + + + + + + + + +
              setting.check.checkType = "checkbox"
              treeNode.check_Child_State勾选状态说明
              -1不存在子节点 或 子节点全部设置为 nocheck = true
              0无 子节点被勾选
              1部分 子节点被勾选
              2全部 子节点被勾选
              +
              + + + + + + + + + + +
              setting.check.checkType = "radio"
              treeNode.check_Child_State勾选状态说明
              -1不存在子节点 或 子节点全部设置为 nocheck = true
              0无 子节点被勾选
              2有 子节点被勾选
              +
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/treeNode.check_Focus.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/treeNode.check_Focus.html new file mode 100644 index 00000000..785aec9f --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/treeNode.check_Focus.html @@ -0,0 +1,19 @@ +
              +
              +

              BooleantreeNode.check_Focus

              +

              概述[ 依赖 jquery.ztree.excheck 扩展 js ]

              +
              +

              +
              +

              用于设置节点的 checkBox / radio 的 focus 状态。[setting.check.enable = true 时有效]

              +

              zTree 内部使用,请勿进行初始化 或 随意修改

              +

              默认值:false

              +
              +
              +

              Boolean 格式说明

              +
              +

              true 表示当前鼠标移动到输入框内

              +

              false 表示当前鼠标移动到输入框外

              +
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/treeNode.checked.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/treeNode.checked.html new file mode 100644 index 00000000..049d6ba4 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/treeNode.checked.html @@ -0,0 +1,32 @@ +
              +
              +

              BooleantreeNode.checked

              +

              概述[ 依赖 jquery.ztree.excheck 扩展 js ]

              +
              +

              +
              +

              节点的 checkBox / radio 的 勾选状态。[setting.check.enable = true & treeNode.nocheck = false 时有效]

              +

              1、如果不使用 checked 属性设置勾选状态,请修改 setting.data.key.checked

              +

              2、建立 treeNode 数据时设置 treeNode.checked = true 可以让节点的输入框默认为勾选状态

              +

              3、修改节点勾选状态,可以使用 treeObj.checkNode / checkAllNodes / updateNode 方法,具体使用哪种请根据自己的需求而定

              +

              4、为了解决部分朋友生成 json 数据出现的兼容问题, 支持 "false","true" 字符串格式的数据

              +

              默认值:false

              +
              +
              +

              Boolean 格式说明

              +
              +

              true 表示节点的输入框被勾选

              +

              false 表示节点的输入框未勾选

              +
              +

              treeNode 举例

              +

              1. 初始化的数据设置 默认为勾选状态

              +
              var nodes = [
              +{ "id":1, "name":"test1", checked:true },
              +{ "id":2, "name":"test2", checked:true }
              +]
              +

              2. 获取第一个根节点的勾选状态

              +
              var treeObj = $.fn.zTree.getZTreeObj("tree");
              +var checked = treeObj.getNodes()[0].checked;
              +
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/treeNode.checkedOld.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/treeNode.checkedOld.html new file mode 100644 index 00000000..cab717e7 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/treeNode.checkedOld.html @@ -0,0 +1,25 @@ +
              +
              +

              BooleantreeNode.checkedOld

              +

              概述[ 依赖 jquery.ztree.excheck 扩展 js ]

              +
              +

              +
              +

              节点的 checkBox / radio 在初始化时的 勾选状态。[setting.check.enable = true & treeNode.nocheck = false 时有效]

              +

              1、zTree 初始化节点数据时会对此属性进行赋值,因此请勿对此属性初始化

              +

              2、如需配合 zTreeObj.getChangeCheckedNodes 方法实现特殊功能,可以根据需求在使用中自行修改 checkedOld 数据

              +

              默认值:checked的初始化值

              +
              +
              +

              Boolean 格式说明

              +
              +

              true 表示节点初始化时 输入框被勾选

              +

              false 表示节点初始化时 输入框未勾选

              +
              +

              treeNode 举例

              +

              1. 获取第一个根节点的初始勾选状态

              +
              var treeObj = $.fn.zTree.getZTreeObj("tree");
              +var checkedOld = treeObj.getNodes()[0].checkedOld;
              +
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/treeNode.children.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/treeNode.children.html new file mode 100644 index 00000000..4bab8351 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/treeNode.children.html @@ -0,0 +1,35 @@ +
              +
              +

              Array(JSON)treeNode.children

              +

              概述[ 依赖 jquery.ztree.core 核心 js ]

              +
              +

              +
              +

              节点的子节点数据集合。

              +

              1、如果不使用 children 属性保存子节点数据,请修改 setting.data.key.children

              +

              2、异步加载时,对于设置了 isParent = true 的节点,在展开时将进行异步加载

              +

              默认值:无

              +
              +
              +

              Array(JSON) 格式说明

              +
              +

              标准的 JSON 数据对象

              +
              +

              treeNode 举例

              +

              1. 初始化的标准嵌套格式的 JSON 数据对象

              +
              var nodes = [
              +{ "id":1, "name":"test1",
              +	children: [
              +	{ "id":3, "name":"test3"},
              +	{ "id":4, "name":"test4"},
              +	{ "id":5, "name":"test5"}
              +	]
              +},
              +{ "id":2, "name":"test2"  }
              +]
              +

              2. 获取第一个根节点的子节点

              +
              var treeObj = $.fn.zTree.getZTreeObj("tree");
              +var nodes = treeObj.getNodes()[0].children;
              +
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/treeNode.chkDisabled.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/treeNode.chkDisabled.html new file mode 100644 index 00000000..e6bb0322 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/treeNode.chkDisabled.html @@ -0,0 +1,28 @@ +
              +
              +

              BooleantreeNode.chkDisabled

              +

              概述[ 依赖 jquery.ztree.excheck 扩展 js ]

              +
              +

              +
              +

              1、设置节点的 checkbox / radio 是否禁用 [setting.check.enable = true 时有效]

              +

              2、为了解决部分朋友生成 json 数据出现的兼容问题, 支持 "false","true" 字符串格式的数据

              +

              3、请勿对已加载的节点修改此属性,禁止 或 取消禁止 请使用 setChkDisabled() 方法

              +

              4、初始化时,如果需要子孙节点继承父节点的 chkDisabled 属性,请设置 setting.check.chkDisabledInherit 属性

              +

              默认值:false

              +
              +
              +

              Boolean 格式说明

              +
              +

              true 表示此节点的 checkbox / radio 被禁用。

              +

              false 表示此节点的 checkbox / radio 可以使用。

              +
              +

              treeNode 举例

              +

              1. 禁用节点 checkbox / radio

              +
              var nodes = [
              +	{ "id":1, "name":"test1", "checked":true, "chkDisabled":true},
              +	{ "id":2, "name":"test2", "chkDisabled":true},
              +	{ "id":3, "name":"test3"}
              +]
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/treeNode.click.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/treeNode.click.html new file mode 100644 index 00000000..833c6784 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/treeNode.click.html @@ -0,0 +1,24 @@ +
              +
              +

              StringtreeNode.click

              +

              概述[ 依赖 jquery.ztree.core 核心 js ]

              +
              +

              +
              +

              最简单的 click 事件操作。相当于 onclick="..." 的内容。 如果操作较复杂,请使用 onClick 事件回调函数。

              +

              由于 IE 对于 onclick 和 click事件共存时的处理与其他浏览器不同,所以请不要利用此参数控制是否允许跳转的操作(例如:treeNode.click = "return false;")。如有类似需求,请不要使用 url 属性设置网址,同时利用 onClick 回调函数控制跳转。

              +

              默认值:无

              +
              +
              +

              String 格式说明

              +
              +

              标准 javascript 语法, 例如:alert("test"); 等

              +
              +

              treeNode 举例

              +

              1. 设置某节点点击时,弹出信息框

              +
              var nodes = [
              +	{ "id":1, "name":"Google CN", "url":"http://g.cn", "click":"alert('test');"},
              +	......
              +]
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/treeNode.diy.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/treeNode.diy.html new file mode 100644 index 00000000..b2fb0d9e --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/treeNode.diy.html @@ -0,0 +1,15 @@ +
              +
              +

              ?treeNode.* DIY *

              +

              概述[ 依赖 jquery.ztree.core 核心 js ]

              +
              +

              +
              +

              用于保存节点的其他自定义数据信息,不要与 zTree 使用的属性相同即可,用户可随意设定。

              +
              +
              +

              treeNode 举例

              +

              1. 设置节点的备用英文名称

              +
              var node = { "id":1, "name":"test1", "ename":"test eName"};
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/treeNode.editNameFlag.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/treeNode.editNameFlag.html new file mode 100644 index 00000000..51162b8b --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/treeNode.editNameFlag.html @@ -0,0 +1,19 @@ +
              +
              +

              BooleantreeNode.editNameFlag

              +

              概述[ 依赖 jquery.ztree.exedit 扩展 js ]

              +
              +

              +
              +

              用于记录节点是否处于编辑名称状态。[setting.edit.enable = true 时有效]

              +

              zTree 内部使用,请勿进行初始化 或 随意修改

              +

              默认值:false

              +
              +
              +

              Boolean 格式说明

              +
              +

              true 表示节点处于编辑名称状态

              +

              false 表示节点未处于编辑名称状态

              +
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/treeNode.getCheckStatus.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/treeNode.getCheckStatus.html new file mode 100644 index 00000000..fc20eac4 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/treeNode.getCheckStatus.html @@ -0,0 +1,63 @@ +
              +
              +

              Function()treeNode.getCheckStatus

              +

              概述[ 依赖 jquery.ztree.excheck 扩展 js ]

              +
              +

              +
              +

              获取节点 checkbox / radio 半勾选状态。[setting.check.enable = true 时有效]

              +

              初始化节点数据时,由 zTree 增加此属性,请勿提前赋值

              +
              +
              +

              Function 参数说明

              +
              +

              返回值JSON

              +
              {
              +	checked: true, //等同于 treeNode.checked
              +	half: true  //规则见下表
              +}
              + + + + + + + + + + + + + + + + + + +
              setting.check.checkType = "checkbox"
              treeNode.checkedtreeNode.check_Child_StatetreeNode.halfCheck half
              --truetrue
               
              true-1falsefalse
              true0falsetrue
              true1falsetrue
              true2falsefalse
               
              false-1falsefalse
              false0falsefalse
              false1falsetrue
              false2falsetrue
              +
              + + + + + + + + + + + + + + + + +
              setting.check.checkType = "radio"
              treeNode.checkedtreeNode.check_Child_StatetreeNode.halfCheck half
              --truetrue
               
              true-1falsefalse
              true0falsefalse
              true2falsetrue
               
              false-1falsefalse
              false0falsefalse
              false2falsetrue
              +
              +

              treeNode 举例

              +

              1. 获取第一个根节点的半选状态

              +
              var treeObj = $.fn.zTree.getZTreeObj("tree");
              +var halfCheck = treeObj.getNodes()[0].getCheckStatus();
              +
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/treeNode.getNextNode.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/treeNode.getNextNode.html new file mode 100644 index 00000000..7a0fa5c0 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/treeNode.getNextNode.html @@ -0,0 +1,27 @@ +
              +
              +

              Function()treeNode.getNextNode

              +

              概述[ 依赖 jquery.ztree.core 核心 js ]

              +
              +

              +
              +

              获取与 treeNode 节点相邻的后一个节点。

              +

              初始化节点数据时,由 zTree 增加此属性,请勿提前赋值

              +
              +
              +

              Function 参数说明

              +
              +

              返回值JSON

              +

              与 treeNode 节点相邻的后一个节点。

              +

              如果 treeNode 是最后一个节点,返回 null 。

              +
              +

              treeNode 举例

              +

              1. 获取当前被选中的节点的下一个节点

              +
              var treeObj = $.fn.zTree.getZTreeObj("tree");
              +var sNodes = treeObj.getSelectedNodes();
              +if (sNodes.length > 0) {
              +	var node = sNodes[0].getNextNode();
              +}
              +
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/treeNode.getParentNode.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/treeNode.getParentNode.html new file mode 100644 index 00000000..31309a62 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/treeNode.getParentNode.html @@ -0,0 +1,27 @@ +
              +
              +

              Function()treeNode.getParentNode

              +

              概述[ 依赖 jquery.ztree.core 核心 js ]

              +
              +

              +
              +

              获取 treeNode 节点的父节点。

              +

              初始化节点数据时,由 zTree 增加此属性,请勿提前赋值

              +
              +
              +

              Function 参数说明

              +
              +

              返回值JSON

              +

              treeNode 节点的父节点 JSON 数据对象。

              +

              如果 treeNode 是根节点,返回 null 。

              +
              +

              treeNode 举例

              +

              1. 获取当前被选中的节点的父节点

              +
              var treeObj = $.fn.zTree.getZTreeObj("tree");
              +var sNodes = treeObj.getSelectedNodes();
              +if (sNodes.length > 0) {
              +	var node = sNodes[0].getParentNode();
              +}
              +
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/treeNode.getPreNode.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/treeNode.getPreNode.html new file mode 100644 index 00000000..9d841841 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/treeNode.getPreNode.html @@ -0,0 +1,27 @@ +
              +
              +

              Function()treeNode.getPreNode

              +

              概述[ 依赖 jquery.ztree.core 核心 js ]

              +
              +

              +
              +

              获取与 treeNode 节点相邻的前一个节点。

              +

              初始化节点数据时,由 zTree 增加此属性,请勿提前赋值

              +
              +
              +

              Function 参数说明

              +
              +

              返回值JSON

              +

              与 treeNode 节点相邻的前一个节点。

              +

              如果 treeNode 是第一个节点,返回 null 。

              +
              +

              treeNode 举例

              +

              1. 获取当前被选中的节点的前一个节点

              +
              var treeObj = $.fn.zTree.getZTreeObj("tree");
              +var sNodes = treeObj.getSelectedNodes();
              +if (sNodes.length > 0) {
              +	var node = sNodes[0].getPreNode();
              +}
              +
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/treeNode.halfCheck.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/treeNode.halfCheck.html new file mode 100644 index 00000000..23ac744c --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/treeNode.halfCheck.html @@ -0,0 +1,29 @@ +
              +
              +

              BooleantreeNode.halfCheck

              +

              概述[ 依赖 jquery.ztree.excheck 扩展 js ]

              +
              +

              +
              +

              强制节点的 checkBox / radio 的 半勾选状态。[setting.check.enable = true & treeNode.nocheck = false 时有效]

              +

              1、强制为半勾选状态后,不再进行自动计算半勾选状态

              +

              2、设置 treeNode.halfCheck = false 或 null 才能恢复自动计算半勾选状态

              +

              3、为了解决部分朋友生成 json 数据出现的兼容问题, 支持 "false","true" 字符串格式的数据

              +

              默认值:false

              +
              +
              +

              Boolean 格式说明

              +
              +

              true 表示节点的输入框 强行设置为半勾选

              +

              false 表示节点的输入框 根据 zTree 的规则自动计算半勾选状态

              +
              +

              treeNode 举例

              +

              1. 初始化的数据设置 默认为半勾选状态

              +
              var nodes = [
              +{ "id":1, "name":"test1", isParent:true, checked:true, halfCheck:true },
              +{ "id":2, "name":"test2", isParent:true, checked:false, halfCheck:true },
              +{ "id":3, "name":"test3", isParent:true, checked:true },
              +{ "id":4, "name":"test4", isParent:true, checked:false }
              +]
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/treeNode.icon.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/treeNode.icon.html new file mode 100644 index 00000000..69c5db16 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/treeNode.icon.html @@ -0,0 +1,33 @@ +
              +
              +

              StringtreeNode.icon

              +

              概述[ 依赖 jquery.ztree.core 核心 js ]

              +
              +

              +
              +

              节点自定义图标的 URL 路径。

              +

              1、父节点如果只设置 icon ,会导致展开、折叠时都使用同一个图标

              +

              2、父节点展开、折叠使用不同的个性化图标需要同时设置 treeNode.iconOpen / treeNode.iconClose 两个属性

              +

              3、如果想利用 className 设置个性化图标,需要设置 treeNode.iconSkin 属性

              +

              默认值:无

              +
              +
              +

              String 格式说明

              +
              +

              图标图片的 url 可以是相对路径也可以是绝对路径

              +

              设置相对路径请注意页面与图片之间的关系,确保图片能够正常加载

              +
              +

              treeNode 举例

              +

              1. 设置节点的个性化图标

              +
              var nodes = [
              +	//父节点展开 折叠时使用相同的图标
              +	{ name:"父节点1", icon:"/img/parent.gif"},
              +
              +	//父节点展开 折叠时分别使用不同的图标
              +	{ name:"父节点2", iconOpen:"/img/open.gif", iconClose:"/img/close.gif"}, 
              +
              +	//叶子节点个性化图标
              +	{ name:"叶子节点", icon:"/img/leaf.gif"}
              +]
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/treeNode.iconClose.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/treeNode.iconClose.html new file mode 100644 index 00000000..f51da9c9 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/treeNode.iconClose.html @@ -0,0 +1,33 @@ +
              +
              +

              StringtreeNode.iconClose

              +

              概述[ 依赖 jquery.ztree.core 核心 js ]

              +
              +

              +
              +

              父节点自定义折叠时图标的 URL 路径。

              +

              1、此属性只针对父节点有效

              +

              2、此属性必须与 iconOpen 同时使用

              +

              3、如果想利用 className 设置个性化图标,需要设置 treeNode.iconSkin 属性

              +

              默认值:无

              +
              +
              +

              String 格式说明

              +
              +

              图标图片的 url 可以是相对路径也可以是绝对路径

              +

              设置相对路径请注意页面与图片之间的关系,确保图片能够正常加载

              +
              +

              treeNode 举例

              +

              1. 设置节点的个性化图标

              +
              var nodes = [
              +	//父节点展开 折叠时使用相同的图标
              +	{ name:"父节点1", icon:"/img/parent.gif"},
              +
              +	//父节点展开 折叠时分别使用不同的图标
              +	{ name:"父节点2", iconOpen:"/img/open.gif", iconClose:"/img/close.gif"}, 
              +
              +	//叶子节点个性化图标
              +	{ name:"叶子节点", icon:"/img/leaf.gif"}
              +]
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/treeNode.iconOpen.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/treeNode.iconOpen.html new file mode 100644 index 00000000..29c9baae --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/treeNode.iconOpen.html @@ -0,0 +1,33 @@ +
              +
              +

              StringtreeNode.iconOpen

              +

              概述[ 依赖 jquery.ztree.core 核心 js ]

              +
              +

              +
              +

              父节点自定义展开时图标的 URL 路径。

              +

              1、此属性只针对父节点有效

              +

              2、此属性必须与 iconClose 同时使用

              +

              3、如果想利用 className 设置个性化图标,需要设置 treeNode.iconSkin 属性

              +

              默认值:无

              +
              +
              +

              String 格式说明

              +
              +

              图标图片的 url 可以是相对路径也可以是绝对路径

              +

              设置相对路径请注意页面与图片之间的关系,确保图片能够正常加载

              +
              +

              treeNode 举例

              +

              1. 设置节点的个性化图标

              +
              var nodes = [
              +	//父节点展开 折叠时使用相同的图标
              +	{ name:"父节点1", icon:"/img/parent.gif"},
              +
              +	//父节点展开 折叠时分别使用不同的图标
              +	{ name:"父节点2", iconOpen:"/img/open.gif", iconClose:"/img/close.gif"}, 
              +
              +	//叶子节点个性化图标
              +	{ name:"叶子节点", icon:"/img/leaf.gif"}
              +]
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/treeNode.iconSkin.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/treeNode.iconSkin.html new file mode 100644 index 00000000..d5d97269 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/treeNode.iconSkin.html @@ -0,0 +1,43 @@ +
              +
              +

              StringtreeNode.iconSkin

              +

              概述[ 依赖 jquery.ztree.core 核心 js ]

              +
              +

              +
              +

              节点自定义图标的 className

              +

              1、需要修改 css,增加相应 className 的设置

              +

              2、css 方式简单、方便,并且同时支持父节点展开、折叠状态切换图片

              +

              3、css 建议采用图片分割渲染的方式以减少反复加载图片,并且避免图片闪动

              +

              4、zTree v3.x 的 iconSkin 同样支持 IE6

              +

              5、如果想直接使用 图片的Url路径 设置节点的个性化图标,需要设置 treeNode.icon / treeNode.iconOpen / treeNode.iconClose 属性

              +

              默认值:无

              +
              +
              +

              String 格式说明

              +
              +

              设置个性图标的 className

              +
              +

              css & treeNode 举例

              +

              1. 设置节点的个性化图标

              +
              css 内容:
              +.ztree li span.button.diy01_ico_open, .ztree li span.button.diy01_ico_close{...}
              +
              +.ztree li span.button.diy02_ico_open{...}
              +.ztree li span.button.diy02_ico_close{...}
              +
              +.ztree li span.button.diy03_ico_docu{...}
              +
              +js中节点数据:
              +var nodes = [
              +	//父节点展开 折叠时使用相同的图标
              +	{ name:"父节点1", iconSkin:"diy01"},
              +
              +	//父节点展开 折叠时分别使用不同的图标
              +	{ name:"父节点2", iconSkin:"diy02"},
              +
              +	//叶子节点个性化图标
              +	{ name:"叶子节点", iconSkin:"diy03"}
              +]
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/treeNode.isAjaxing.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/treeNode.isAjaxing.html new file mode 100644 index 00000000..330c1202 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/treeNode.isAjaxing.html @@ -0,0 +1,26 @@ +
              +
              +

              BooleantreeNode.isAjaxing

              +

              概述[ 依赖 jquery.ztree.core 核心 js ]

              +
              +

              +
              +

              记录 treeNode 节点是否正在进行异步加载。

              +

              初始化节点数据时,由 zTree 增加此属性,请勿提前赋值

              +
              +
              +

              Boolean 格式说明

              +
              +

              true 表示节点正在进行异步加载

              +

              false 表示节点没有进行异步加载

              +
              +

              treeNode 举例

              +

              1. 查看当前被选中的节点是否节点正在进行异步加载

              +
              var treeObj = $.fn.zTree.getZTreeObj("tree");
              +var sNodes = treeObj.getSelectedNodes();
              +if (sNodes.length > 0) {
              +	var isAjaxing = sNodes[0].isAjaxing;
              +}
              +
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/treeNode.isFirstNode.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/treeNode.isFirstNode.html new file mode 100644 index 00000000..83b80bd9 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/treeNode.isFirstNode.html @@ -0,0 +1,28 @@ +
              +
              +

              BooleantreeNode.isFirstNode

              +

              概述[ 依赖 jquery.ztree.core 核心 js ]

              +
              +

              +
              +

              记录 treeNode 节点是否为同级节点中的第一个节点。

              +

              使用 exhide 扩展后,只针对显示的节点设置此属性

              +

              初始化节点数据时,由 zTree 增加此属性,请勿提前赋值

              +
              +
              +

              Boolean 格式说明

              +
              +

              true 表示是同级节点中的第一个节点

              +

              false 表示不是同级节点中的第一个节点

              +

              节点被隐藏后,isFirstNode = false

              +
              +

              treeNode 举例

              +

              1. 查看当前被选中的节点是否是同级节点中的第一个节点

              +
              var treeObj = $.fn.zTree.getZTreeObj("tree");
              +var sNodes = treeObj.getSelectedNodes();
              +if (sNodes.length > 0) {
              +	var isFirstNode = sNodes[0].isFirstNode;
              +}
              +
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/treeNode.isHidden.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/treeNode.isHidden.html new file mode 100644 index 00000000..5fb388e2 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/treeNode.isHidden.html @@ -0,0 +1,27 @@ +
              +
              +

              BooleantreeNode.isHidden

              +

              概述[ 依赖 jquery.ztree.exhide 扩展 js ]

              +
              +

              +
              +

              判断 treeNode 节点是否被隐藏。

              +

              1、初始化 zTree 时,如果节点设置 isHidden = true,会被自动隐藏

              +

              2、请勿对已加载的节点修改此属性,隐藏 / 显示 请使用 hideNode() / hideNodes() / showNode() / showNodes() 方法

              +
              +
              +

              Boolean 格式说明

              +
              +

              true 表示被隐藏

              +

              false 表示被显示

              +
              +

              treeNode 举例

              +

              1. 查看第一个根节点是否被隐藏

              +
              var treeObj = $.fn.zTree.getZTreeObj("tree");
              +var sNodes = treeObj.getNodes();
              +if (sNodes.length > 0) {
              +	var isHidden = sNodes[0].isHidden;
              +}
              +
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/treeNode.isHover.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/treeNode.isHover.html new file mode 100644 index 00000000..dcef6eba --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/treeNode.isHover.html @@ -0,0 +1,19 @@ +
              +
              +

              BooleantreeNode.isHover

              +

              概述[ 依赖 jquery.ztree.exedit 扩展 js ]

              +
              +

              +
              +

              记录节点 的 hover 状态,主要用于 setting.view.addHoverDom / removeHoverDom 。

              +

              zTree 内部使用,请勿进行初始化 或 随意修改

              +

              默认值:false

              +
              +
              +

              Boolean 格式说明

              +
              +

              true 表示节点处于 hover 状态

              +

              false 表示节点未处于 hover 状态

              +
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/treeNode.isLastNode.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/treeNode.isLastNode.html new file mode 100644 index 00000000..5d5ac822 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/treeNode.isLastNode.html @@ -0,0 +1,28 @@ +
              +
              +

              BooleantreeNode.isLastNode

              +

              概述[ 依赖 jquery.ztree.core 核心 js ]

              +
              +

              +
              +

              记录 treeNode 节点是否为同级节点中的最后一个节点。

              +

              使用 exhide 扩展后,只针对显示的节点设置此属性

              +

              初始化节点数据时,由 zTree 增加此属性,请勿提前赋值

              +
              +
              +

              Boolean 格式说明

              +
              +

              true 表示是同级节点中的最后一个节点

              +

              false 表示不是同级节点中的最后一个节点

              +

              节点被隐藏后,isLastNode = false

              +
              +

              treeNode 举例

              +

              1. 查看当前被选中的节点是否是同级节点中的最后一个节点

              +
              var treeObj = $.fn.zTree.getZTreeObj("tree");
              +var sNodes = treeObj.getSelectedNodes();
              +if (sNodes.length > 0) {
              +	var isLastNode = sNodes[0].isLastNode;
              +}
              +
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/treeNode.isParent.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/treeNode.isParent.html new file mode 100644 index 00000000..bab887e0 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/treeNode.isParent.html @@ -0,0 +1,28 @@ +
              +
              +

              BooleantreeNode.isParent

              +

              概述[ 依赖 jquery.ztree.core 核心 js ]

              +
              +

              +
              +

              记录 treeNode 节点是否为父节点。

              +

              1、初始化节点数据时,根据 treeNode.children 属性判断,有子节点则设置为 true,否则为 false

              +

              2、初始化节点数据时,如果设定 treeNode.isParent = true,即使无子节点数据,也会设置为父节点

              +

              3、为了解决部分朋友生成 json 数据出现的兼容问题, 支持 "false","true" 字符串格式的数据

              +
              +
              +

              Boolean 格式说明

              +
              +

              true 表示是父节点

              +

              false 表示不是父节点

              +
              +

              treeNode 举例

              +

              1. 查看当前被选中的节点是否是父节点

              +
              var treeObj = $.fn.zTree.getZTreeObj("tree");
              +var sNodes = treeObj.getSelectedNodes();
              +if (sNodes.length > 0) {
              +	var isParent = sNodes[0].isParent;
              +}
              +
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/treeNode.level.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/treeNode.level.html new file mode 100644 index 00000000..aff3254c --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/treeNode.level.html @@ -0,0 +1,25 @@ +
              +
              +

              NumbertreeNode.level

              +

              概述[ 依赖 jquery.ztree.core 核心 js ]

              +
              +

              +
              +

              记录节点的层级

              +

              初始化节点数据时,由 zTree 增加此属性,请勿提前赋值

              +
              +
              +

              Number 格式说明

              +
              +

              根节点 level = 0,依次递增

              +
              +

              treeNode 举例

              +

              1. 查看当前被选中的节点的级数

              +
              var treeObj = $.fn.zTree.getZTreeObj("tree");
              +var sNodes = treeObj.getSelectedNodes();
              +if (sNodes.length > 0) {
              +	var level = sNodes[0].level;
              +}
              +
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/treeNode.name.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/treeNode.name.html new file mode 100644 index 00000000..918f2b49 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/treeNode.name.html @@ -0,0 +1,25 @@ +
              +
              +

              StringtreeNode.name

              +

              概述[ 依赖 jquery.ztree.core 核心 js ]

              +
              +

              +
              +

              节点名称。

              +

              1、如果不使用 name 属性保存节点名称,请修改 setting.data.key.name

              +

              默认值:无

              +
              +
              +

              String 格式说明

              +
              +

              节点显示的名称字符串,标准 String 即可,所有特殊字符都会被自动转义

              +
              +

              treeNode 举例

              +

              1. 设置节点的名称为 test1、test2、test3

              +
              var nodes = [
              +	{ "id":1, "name":"test1"},
              +	{ "id":2, "name":"test2"},
              +	{ "id":3, "name":"test3"}
              +]
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/treeNode.nocheck.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/treeNode.nocheck.html new file mode 100644 index 00000000..afaa62fb --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/treeNode.nocheck.html @@ -0,0 +1,26 @@ +
              +
              +

              BooleantreeNode.nocheck

              +

              概述[ 依赖 jquery.ztree.excheck 扩展 js ]

              +
              +

              +
              +

              1、设置节点是否隐藏 checkbox / radio [setting.check.enable = true 时有效]

              +

              2、为了解决部分朋友生成 json 数据出现的兼容问题, 支持 "false","true" 字符串格式的数据

              +

              默认值:false

              +
              +
              +

              Boolean 格式说明

              +
              +

              true 表示此节点不显示 checkbox / radio,不影响勾选的关联关系,不影响父节点的半选状态。

              +

              false 表示节点具有正常的勾选功能

              +
              +

              treeNode 举例

              +

              1. 不显示某个节点的 checkbox / radio

              +
              var nodes = [
              +	{ "id":1, "name":"test1", "nocheck":true},
              +	{ "id":2, "name":"test2"},
              +	{ "id":3, "name":"test3"}
              +]
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/treeNode.open.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/treeNode.open.html new file mode 100644 index 00000000..1eb9aec4 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/treeNode.open.html @@ -0,0 +1,30 @@ +
              +
              +

              BooleantreeNode.open

              +

              概述[ 依赖 jquery.ztree.core 核心 js ]

              +
              +

              +
              +

              记录 treeNode 节点的 展开 / 折叠 状态。

              +

              1、初始化节点数据时,如果设定 treeNode.open = true,则会直接展开此节点

              +

              2、叶子节点 treeNode.open = false

              +

              3、为了解决部分朋友生成 json 数据出现的兼容问题, 支持 "false","true" 字符串格式的数据

              +

              4、非异步加载模式下,无子节点的父节点设置 open=true 后,可显示为展开状态,但异步加载模式下不会生效。(v3.5.15+)

              +

              默认值:false

              +
              +
              +

              Boolean 格式说明

              +
              +

              true 表示节点为 展开 状态

              +

              false 表示节点为 折叠 状态

              +
              +

              treeNode 举例

              +

              1. 查看当前被选中的节点的 展开 / 折叠 状态

              +
              var treeObj = $.fn.zTree.getZTreeObj("tree");
              +var sNodes = treeObj.getSelectedNodes();
              +if (sNodes.length > 0) {
              +	var isOpen = sNodes[0].open;
              +}
              +
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/treeNode.parentTId.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/treeNode.parentTId.html new file mode 100644 index 00000000..d228a23a --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/treeNode.parentTId.html @@ -0,0 +1,27 @@ +
              +
              +

              StringtreeNode.parentTId

              +

              概述[ 依赖 jquery.ztree.core 核心 js ]

              +
              +

              +
              +

              treeNode 节点的父节点唯一标识 tId。

              +

              1、v3.x 用 parentTId 替换了原先的 parentNode 属性,同时增加了 getParentNode 方法,以避免原先 parentNode 造成的 clone 死循环

              +

              2、初始化节点数据时,由 zTree 增加此属性,请勿提前赋值

              +
              +
              +

              String 格式说明

              +
              +

              zTree 内部生成的节点唯一标识,请参考 treeNode.tId 的说明

              +

              如果 treeNode 是根节点,则 parentTId = null

              +
              +

              treeNode 举例

              +

              1. 查看当前被选中的节点的父节点 tId

              +
              var treeObj = $.fn.zTree.getZTreeObj("tree");
              +var sNodes = treeObj.getSelectedNodes();
              +if (sNodes.length > 0) {
              +	var parentTId = sNodes[0].parentTId;
              +}
              +
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/treeNode.tId.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/treeNode.tId.html new file mode 100644 index 00000000..c32285c5 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/treeNode.tId.html @@ -0,0 +1,25 @@ +
              +
              +

              StringtreeNode.tId

              +

              概述[ 依赖 jquery.ztree.core 核心 js ]

              +
              +

              +
              +

              treeNode 节点的唯一标识 tId。

              +

              初始化节点数据时,由 zTree 增加此属性,请勿提前赋值

              +
              +
              +

              String 格式说明

              +
              +

              生成规则:setting.treeId + "_" + 内部计数

              +
              +

              treeNode 举例

              +

              1. 查看当前被选中的节点的 tId

              +
              var treeObj = $.fn.zTree.getZTreeObj("tree");
              +var sNodes = treeObj.getSelectedNodes();
              +if (sNodes.length > 0) {
              +	var tId = sNodes[0].tId;
              +}
              +
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/treeNode.target.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/treeNode.target.html new file mode 100644 index 00000000..f7c1b6ba --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/treeNode.target.html @@ -0,0 +1,24 @@ +
              +
              +

              StringtreeNode.target

              +

              概述[ 依赖 jquery.ztree.core 核心 js ]

              +
              +

              +
              +

              设置点击节点后在何处打开 url。[treeNode.url 存在时有效]

              +

              默认值:无

              +
              +
              +

              String 格式说明

              +
              +

              同超链接 target 属性: "_blank", "_self" 或 其他指定窗口名称

              +

              省略此属性,则默认为 "_blank"

              +
              +

              treeNode 举例

              +

              1. 设置点击某节点时,弹出新页面

              +
              var nodes = [
              +	{ "id":1, "name":"test1", "url":"http://myTest.com", "target":"_blank"},
              +	......
              +]
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/treeNode.url.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/treeNode.url.html new file mode 100644 index 00000000..0b2e0076 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/treeNode.url.html @@ -0,0 +1,25 @@ +
              +
              +

              StringtreeNode.url

              +

              概述[ 依赖 jquery.ztree.core 核心 js ]

              +
              +

              +
              +

              节点链接的目标 URL

              +

              1、编辑模式 (setting.edit.enable = true) 下此属性功能失效,如果必须使用类似功能,请利用 onClick 事件回调函数自行控制。

              +

              2、如果需要在 onClick 事件回调函数中进行跳转控制,那么请将 URL 地址保存在其他自定义的属性内,请勿使用 url

              +

              默认值:无

              +
              +
              +

              String 格式说明

              +
              +

              同超链接 href 属性

              +
              +

              treeNode 举例

              +

              1. 设置某节点点击时,跳转到 g.cn

              +
              var nodes = [
              +	{ "id":1, "name":"Google CN", "url":"http://g.cn"},
              +	......
              +]
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/treeNode.zAsync.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/treeNode.zAsync.html new file mode 100644 index 00000000..00e48f39 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/treeNode.zAsync.html @@ -0,0 +1,28 @@ +
              +
              +

              BooleantreeNode.zAsync

              +

              概述[ 依赖 jquery.ztree.core 核心 js ]

              +
              +

              +
              +

              记录 treeNode 节点是否已经进行过异步加载,避免父节点反复异步加载数据。

              +

              初始化节点数据时,由 zTree 增加此属性,请勿提前赋值

              +

              默认值:false (无子节点的父节点); true (有子节点的父节点 & 叶子节点)

              +
              +
              +

              Boolean 格式说明

              +
              +

              true 表示父节点展开时不需要自动异步加载

              +

              false 表示父节点展开时需要自动异步加载

              +

              此参数不会对 reAsyncChildNodes 方法造成任何影响

              +
              +

              treeNode 举例

              +

              1. 查看当前被选中的节点是否节点是否需要自动异步加载

              +
              var treeObj = $.fn.zTree.getZTreeObj("tree");
              +var sNodes = treeObj.getSelectedNodes();
              +if (sNodes.length > 0) {
              +	var zAsync = sNodes[0].zAsync;
              +}
              +
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/zTreeObj.addNodes.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/zTreeObj.addNodes.html new file mode 100644 index 00000000..eac2152d --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/zTreeObj.addNodes.html @@ -0,0 +1,42 @@ +
              +
              +

              Function(parentNode, newNodes, isSilent)zTreeObj.addNodes

              +

              概述[ 依赖 jquery.ztree.core 扩展 js ]

              +
              +

              +
              +

              添加节点。

              +

              v3.x 为了避免原先反复初始化造成的数据重复问题,在 初始化 和 添加节点 时内部进行 clone 操作。如果需要获取数据在 zTree 内的对象,请获取此方法的返回值。

              +

              请通过 zTree 对象执行此方法。

              +
              +
              +

              Function 参数说明

              +
              +

              parentNodeJSON

              +

              指定的父节点,如果增加根节点,请设置 parentNode 为 null 即可。

              +

              请务必保证此节点数据对象 是 zTree 内部的数据对象

              +

              newNodesJSON / Array(JSON)

              +

              需要增加的节点数据 JSON 对象集合,数据只需要满足 zTree 的节点数据必需的属性即可,详细请参考“treeNode 节点数据详解”

              +

              1、v3.x 支持单独添加一个节点,即如果只新增一个节点,不用必须包在数组中

              +

              2、使用简单数据模式,请参考 setting.data.simpleData 内的属性说明

              +

              isSilentBoolean

              +

              设定增加节点后是否自动展开父节点。

              +

              isSilent = true 时,不展开父节点,其他值或缺省状态都自动展开。

              +

              返回值Array(JSON)

              +

              返回值是 zTree 最终添加的节点数据集合

              +

              如果 newNodes 是单个节点数据 JSON,返回值也是将其包在 Array 内

              +

              请务必记住:返回值中的数据对象 是 newNodes 被 clone 后的,所以绝对不相等!

              +
              +

              function 举例

              +

              1. 对于 id = "tree" 的 zTree 增加 1 个根节点

              +
              var treeObj = $.fn.zTree.getZTreeObj("tree");
              +var newNode = {name:"newNode1"};
              +newNode = treeObj.addNodes(null, newNode);
              +
              +

              2. 对于 id = "tree" 的 zTree 增加 3 个根节点

              +
              var treeObj = $.fn.zTree.getZTreeObj("tree");
              +var newNodes = [{name:"newNode1"}, {name:"newNode2"}, {name:"newNode3"}];
              +newNodes = treeObj.addNodes(null, newNodes);
              +
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/zTreeObj.cancelEditName.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/zTreeObj.cancelEditName.html new file mode 100644 index 00000000..9df098f0 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/zTreeObj.cancelEditName.html @@ -0,0 +1,30 @@ +
              +
              +

              Function(newName)zTreeObj.cancelEditName

              +

              概述[ 依赖 jquery.ztree.exedit 扩展 js ]

              +
              +

              +
              +

              取消节点的编辑名称状态,可以恢复原名称,也可以强行赋给新的名称。

              +

              请通过 zTree 对象执行此方法。

              +
              +
              +

              Function 参数说明

              +
              +

              newNameString

              +

              重新给定的新名称。

              +

              如果省略此参数,则恢复原名称。

              +

              返回值

              +

              目前无任何返回值

              +
              +

              function 举例

              +

              1. 取消 zTree 的编辑名称状态,恢复该节点原有名称

              +
              var treeObj = $.fn.zTree.getZTreeObj("tree");
              +treeObj.cancelEditName();
              +
              +

              2. 取消 zTree 的编辑名称状态,并且重新设定该节点名称

              +
              var treeObj = $.fn.zTree.getZTreeObj("tree");
              +treeObj.cancelEditName("test_new_name");
              +
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/zTreeObj.cancelSelectedNode.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/zTreeObj.cancelSelectedNode.html new file mode 100644 index 00000000..26d5706f --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/zTreeObj.cancelSelectedNode.html @@ -0,0 +1,35 @@ +
              +
              +

              Function(treeNode)zTreeObj.cancelSelectedNode

              +

              概述[ 依赖 jquery.ztree.core 核心 js ]

              +
              +

              +
              +

              取消节点的选中状态。

              +

              v3.x 支持多点同时选中,因此取消选中状态可以全部取消,也可以单独取消某个节点的选中状态。

              +

              请通过 zTree 对象执行此方法。

              +
              +
              +

              Function 参数说明

              +
              +

              treeNodeJSON

              +

              需要取消选中状态的节点。

              +

              请务必保证此节点数据对象 是 zTree 内部的数据对象

              +

              如果省略此参数,则将取消全部被选中节点的选中状态。

              +

              返回值

              +

              目前无任何返回值

              +
              +

              function 举例

              +

              1. 取消当前所有被选中节点的选中状态

              +
              var treeObj = $.fn.zTree.getZTreeObj("tree");
              +treeObj.cancelSelectedNode();
              +
              +

              2. 取消当前第一个被选中节点的选中状态

              +
              var treeObj = $.fn.zTree.getZTreeObj("tree");
              +var nodes = treeObj.getSelectedNode();
              +if (nodes.length>0) { 
              +	treeObj.cancelSelectedNode(nodes[0]);
              +}
              +
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/zTreeObj.checkAllNodes.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/zTreeObj.checkAllNodes.html new file mode 100644 index 00000000..d6eaadf1 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/zTreeObj.checkAllNodes.html @@ -0,0 +1,29 @@ +
              +
              +

              Function(checked)zTreeObj.checkAllNodes

              +

              概述[ 依赖 jquery.ztree.excheck 扩展 js ]

              +
              +

              +
              +

              勾选 或 取消勾选 全部节点。[setting.check.enable = true 且 setting.check.chkStyle = "checkbox" 时有效]

              +

              此方法不会触发 beforeCheck / onCheck 事件回调函数。

              +

              请通过 zTree 对象执行此方法。

              +
              +
              +

              Function 参数说明

              +
              +

              checkedBoolean

              +

              checked = true 表示勾选全部节点

              +

              checked = false 表示全部节点取消勾选

              +

              不会影响 treeNode.nochecked = true 的节点。

              +

              不会影响未加载的节点。

              +

              返回值

              +

              目前无任何返回值

              +
              +

              function 举例

              +

              1. 勾选全部节点

              +
              var treeObj = $.fn.zTree.getZTreeObj("tree");
              +treeObj.checkAllNodes(true);
              +
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/zTreeObj.checkNode.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/zTreeObj.checkNode.html new file mode 100644 index 00000000..cb8bb7de --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/zTreeObj.checkNode.html @@ -0,0 +1,44 @@ +
              +
              +

              Function(treeNode, checked, checkTypeFlag, callbackFlag)zTreeObj.checkNode

              +

              概述[ 依赖 jquery.ztree.excheck 扩展 js ]

              +
              +

              +
              +

              勾选 或 取消勾选 单个节点。[setting.check.enable = true 时有效]

              +

              v3.x 中 checkNode() 方法可以触发 beforeCheck / onCheck 事件回调函数。便于减少冗余代码

              +

              请通过 zTree 对象执行此方法。

              +
              +
              +

              Function 参数说明

              +
              +

              treeNodeJSON

              +

              需要勾选 或 取消勾选 的节点数据

              +

              请务必保证此节点数据对象 是 zTree 内部的数据对象

              +

              checkedBoolean

              +

              checked = true 表示勾选节点

              +

              checked = false 表示节点取消勾选

              +

              省略此参数,则根据对此节点的勾选状态进行 toggle 切换

              +

              不影响 treeNode.nochecked = true 的节点。

              +

              checkTypeFlagBoolean

              +

              checkTypeFlag = true 表示按照 setting.check.chkboxType 属性进行父子节点的勾选联动操作

              +

              checkTypeFlag = false 表示只修改此节点勾选状态,无任何勾选联动操作

              +

              checkTypeFlag = false 且 treeNode.checked = checked 时,不会触发回调函数,直接返回

              +

              不影响父子节点中 treeNode.nochecked = true 的节点。

              +

              callbackFlagBoolean

              +

              callbackFlag = true 表示执行此方法时触发 beforeCheck & onCheck 事件回调函数

              +

              callbackFlag = false 表示执行此方法时不触发事件回调函数

              +

              省略此参数,等同于 false

              +

              返回值

              +

              目前无任何返回值

              +
              +

              function 举例

              +

              1. 勾选当前选中的节点

              +
              var treeObj = $.fn.zTree.getZTreeObj("tree");
              +var nodes = treeObj.getSelectedNodes();
              +for (var i=0, l=nodes.length; i < l; i++) {
              +	treeObj.checkNode(nodes[i], true, true);
              +}
              +
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/zTreeObj.copyNode.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/zTreeObj.copyNode.html new file mode 100644 index 00000000..f1b624bf --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/zTreeObj.copyNode.html @@ -0,0 +1,44 @@ +
              +
              +

              Function(targetNode, treeNode, moveType, isSilent)zTreeObj.copyNode

              +

              概述[ 依赖 jquery.ztree.exedit 扩展 js ]

              +
              +

              +
              +

              复制节点。

              +

              v3.x 复制节点时进行 clone 操作。如果需要获取数据在 zTree 内的对象,请获取此方法的返回值。

              +

              请通过 zTree 对象执行此方法。

              +
              +
              +

              Function 参数说明

              +
              +

              targetNodeJSON

              +

              要复制到的目标节点 JSON 数据

              +

              如果复制成为根节点,请设置 targetNode 为 null 即可

              +

              请务必保证此节点数据对象 是 zTree 内部的数据对象

              +

              treeNodeJSON

              +

              需要被复制的节点数据

              +

              请务必保证此节点数据对象 是 zTree 内部的数据对象

              +

              moveTypeString

              +

              复制到目标节点的相对位置

              +

              "inner":成为子节点,"prev":成为同级前一个节点,"next":成为同级后一个节点

              +

              isSilentBoolean

              +

              设定复制节点后是否自动展开父节点。

              +

              isSilent = true 时,不展开父节点,其他值或缺省状态都自动展开。

              +

              返回值JSON

              +

              返回值是最终加入到 zTree 内的节点数据

              +

              请务必记住:返回值中的数据对象 是 treeNode 被 clone 后的,所以绝对不相等!

              +
              +

              function 举例

              +

              1. 将根节点中第二个节点 复制成为 第一个节点的子节点

              +
              var treeObj = $.fn.zTree.getZTreeObj("tree");
              +var nodes = treeObj.getNodes();
              +treeObj.copyNode(nodes[0], nodes[1], "inner");
              +
              +

              2. 将根节点中第二个节点 复制成为 第一个节点的前一个节点

              +
              var treeObj = $.fn.zTree.getZTreeObj("tree");
              +var nodes = treeObj.getNodes();
              +treeObj.copyNode(nodes[0], nodes[1], "before");
              +
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/zTreeObj.destroy.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/zTreeObj.destroy.html new file mode 100644 index 00000000..d9f6da0d --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/zTreeObj.destroy.html @@ -0,0 +1,25 @@ +
              +
              +

              Function(treeId)zTreeObj.destroy

              +

              概述[ 依赖 jquery.ztree.core 核心 js ]

              +
              +

              +
              +

              从 zTree v3.4 开始提供销毁 zTree 的方法。

              +

              1、用此方法可以销毁 zTreeObj 代表的 zTree。

              +

              2、销毁当前页面全部的 zTree,也可以使用 $.fn.zTree.destroy() 方法。

              +

              3、重新使用已经被销毁的树,必须要使用 init 方法进行初始化。

              +
              +
              +

              Function Parameter Descriptions

              +
              +

              返回值

              +

              目前无任何返回值

              +
              +

              function 举例

              +

              1. 销毁 id 为 "treeDemo" 的 zTree

              +
              var zTreeObj = $.fn.zTree.getZTreeObj("treeDemo");
              +zTreeObj.destroy();
              +
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/zTreeObj.editName.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/zTreeObj.editName.html new file mode 100644 index 00000000..2d4eaf7b --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/zTreeObj.editName.html @@ -0,0 +1,29 @@ +
              +
              +

              Function(treeNode)zTreeObj.editName

              +

              概述[ 依赖 jquery.ztree.exedit 扩展 js ]

              +
              +

              +
              +

              设置某节点进入编辑名称状态。

              +

              1、如果需要用 js 取消编辑名称状态,请使用 cancelEditName(newName) 方法。

              +

              2、可利用此方法让当前正编辑的节点 input 输入框获取焦点。

              +

              3、请通过 zTree 对象执行此方法。

              +
              +
              +

              Function 参数说明

              +
              +

              treeNodeJSON

              +

              指定进入编辑名称状态的节点 JSON 数据

              +

              请务必保证此节点数据对象 是 zTree 内部的数据对象

              +

              返回值

              +

              目前无任何返回值

              +
              +

              function 举例

              +

              1. 设置根节点第一个节点进入编辑名称状态

              +
              var treeObj = $.fn.zTree.getZTreeObj("tree");
              +var nodes = treeObj.getNodes();
              +treeObj.editName(nodes[0]);
              +
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/zTreeObj.expandAll.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/zTreeObj.expandAll.html new file mode 100644 index 00000000..aaa3e464 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/zTreeObj.expandAll.html @@ -0,0 +1,30 @@ +
              +
              +

              Function(expandFlag)zTreeObj.expandAll

              +

              概述[ 依赖 jquery.ztree.core 核心 js ]

              +
              +

              +
              +

              展开 / 折叠 全部节点

              +

              此方法不会触发 beforeExpand / onExpand 和 beforeCollapse / onCollapse 事件回调函数。

              +

              请通过 zTree 对象执行此方法。

              +
              +
              +

              Function 参数说明

              +
              +

              expandFlagBoolean

              +

              expandFlag = true 表示 展开 全部节点

              +

              expandFlag = false 表示 折叠 全部节点

              +

              返回值Boolean

              +

              返回值表示最终实际操作情况

              +

              true 表示 展开 全部节点

              +

              false 表示 折叠 全部节点

              +

              null 表示 不存在任何父节点

              +
              +

              function 举例

              +

              1. 展开全部节点

              +
              var treeObj = $.fn.zTree.getZTreeObj("tree");
              +treeObj.expandAll(true);
              +
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/zTreeObj.expandNode.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/zTreeObj.expandNode.html new file mode 100644 index 00000000..5d96d3f5 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/zTreeObj.expandNode.html @@ -0,0 +1,50 @@ +
              +
              +

              Function(treeNode, expandFlag, sonSign, focus, callbackFlag)zTreeObj.expandNode

              +

              概述[ 依赖 jquery.ztree.core 核心 js ]

              +
              +

              +
              +

              展开 / 折叠 指定的节点

              +

              v3.x 中执行此方法可以触发 beforeExpand / onExpand 或 beforeCollapse / onCollapse 事件回调函数。便于减少冗余代码

              +

              请通过 zTree 对象执行此方法。

              +
              +
              +

              Function 参数说明

              +
              +

              treeNodeJSON

              +

              需要 展开 / 折叠 的节点数据

              +

              请务必保证此节点数据对象 是 zTree 内部的数据对象

              +

              expandFlagBoolean

              +

              expandFlag = true 表示 展开 节点

              +

              expandFlag = false 表示 折叠 节点

              +

              省略此参数,则根据对此节点的展开状态进行 toggle 切换

              +

              sonSignBoolean

              +

              sonSign = true 表示 全部子孙节点 进行与 expandFlag 相同的操作

              +

              sonSign = false 表示 只影响此节点,对于其 子孙节点无任何影响

              +

              sonSign = false 且 treeNode.open = expandFlag 时,不会触发回调函数,直接返回

              +

              省略此参数,等同于 false

              +

              focusBoolean

              +

              focus = true 表示 展开 / 折叠 操作后,通过设置焦点保证此焦点进入可视区域内

              +

              focus = false 表示 展开 / 折叠 操作后,不设置任何焦点

              +

              省略此参数,等同于 true

              +

              callbackFlagBoolean

              +

              callbackFlag = true 表示执行此方法时触发 beforeExpand / onExpand 或 beforeCollapse / onCollapse 事件回调函数

              +

              callbackFlag = false 表示执行此方法时不触发事件回调函数

              +

              省略此参数,等同于 false

              +

              返回值Boolean

              +

              返回值表示最终实际操作情况

              +

              true 表示 展开 节点

              +

              false 表示 折叠 节点

              +

              null 表示 不是父节点

              +
              +

              function 举例

              +

              1. 展开当前选择的第一个节点(包括其全部子节点)

              +
              var treeObj = $.fn.zTree.getZTreeObj("tree");
              +var nodes = treeObj.getSelectedNodes();
              +if (nodes.length>0) {
              +	treeObj.expandNode(nodes[0], true, true, true);
              +}
              +
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/zTreeObj.getChangeCheckedNodes.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/zTreeObj.getChangeCheckedNodes.html new file mode 100644 index 00000000..ba865347 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/zTreeObj.getChangeCheckedNodes.html @@ -0,0 +1,24 @@ +
              +
              +

              Function()zTreeObj.getChangeCheckedNodes

              +

              概述[ 依赖 jquery.ztree.excheck 扩展 js ]

              +
              +

              +
              +

              获取输入框勾选状态被改变的节点集合(与原始数据 checkedOld 对比)。[setting.check.enable = true 时有效]

              +

              请通过 zTree 对象执行此方法。

              +
              +
              +

              Function 参数说明

              +
              +

              返回值Array(JSON)

              +

              返回全部勾选状态被改变的节点集合 Array

              +

              如果需要获取每次操作后全部被改变勾选状态的节点数据,请在每次勾选操作后,遍历所有被改变勾选状态的节点数据,让其 checkedOld = checked 就可以了。

              +
              +

              function 举例

              +

              1. 获取当前勾选状态被改变的节点集合

              +
              var treeObj = $.fn.zTree.getZTreeObj("tree");
              +var nodes = treeObj.getChangeCheckedNodes();
              +
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/zTreeObj.getCheckedNodes.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/zTreeObj.getCheckedNodes.html new file mode 100644 index 00000000..85f4ba04 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/zTreeObj.getCheckedNodes.html @@ -0,0 +1,28 @@ +
              +
              +

              Function(checked)zTreeObj.getCheckedNodes

              +

              概述[ 依赖 jquery.ztree.excheck 扩展 js ]

              +
              +

              +
              +

              获取输入框被勾选 或 未勾选的节点集合。[setting.check.enable = true 时有效]

              +

              请通过 zTree 对象执行此方法。

              +
              +
              +

              Function 参数说明

              +
              +

              checkedBoolean

              +

              checked = true 表示获取 被勾选 的节点集合

              +

              checked = false 表示获取 未勾选 的节点集合

              +

              省略此参数,等同于 true。

              +

              对于 treeNode.nochecked = true 的节点不进行获取。

              +

              返回值Array(JSON)

              +

              返回全部符合要求的节点集合 Array

              +
              +

              function 举例

              +

              1. 获取当前被勾选的节点集合

              +
              var treeObj = $.fn.zTree.getZTreeObj("tree");
              +var nodes = treeObj.getCheckedNodes(true);
              +
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/zTreeObj.getNodeByParam.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/zTreeObj.getNodeByParam.html new file mode 100644 index 00000000..89e72c78 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/zTreeObj.getNodeByParam.html @@ -0,0 +1,32 @@ +
              +
              +

              Function(key, value, parentNode)zTreeObj.getNodeByParam

              +

              概述[ 依赖 jquery.ztree.core 核心 js ]

              +
              +

              +
              +

              根据节点数据的属性搜索,获取条件完全匹配的节点数据 JSON 对象

              +

              请通过 zTree 对象执行此方法。

              +
              +
              +

              Function 参数说明

              +
              +

              keyString

              +

              需要精确匹配的属性名称

              +

              value?

              +

              需要精确匹配的属性值,可以是任何类型,只要保证与 key 指定的属性值保持一致即可

              +

              parentNodeJSON

              +

              搜索范围,指定在某个父节点下的子节点中进行搜索

              +

              忽略此参数,表示在全部节点中搜索

              +

              返回值JSON

              +

              匹配精确搜索的节点数据

              +

              1、如无结果,返回 null

              +

              2、如有多个节点满足查询条件,只返回第一个匹配到的节点

              +
              +

              function 举例

              +

              1. 查找 id = 1 的节点数据

              +
              var treeObj = $.fn.zTree.getZTreeObj("tree");
              +var node = treeObj.getNodeByParam("id", 1, null);
              +
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/zTreeObj.getNodeByTId.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/zTreeObj.getNodeByTId.html new file mode 100644 index 00000000..76fcc486 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/zTreeObj.getNodeByTId.html @@ -0,0 +1,27 @@ +
              +
              +

              Function(tId)zTreeObj.getNodeByTId

              +

              概述[ 依赖 jquery.ztree.core 核心 js ]

              +
              +

              +
              +

              根据 zTree 的唯一标识 tId 快速获取节点 JSON 数据对象

              +

              通过内部的 cache 获取,不需要遍历节点。

              +

              请通过 zTree 对象执行此方法。

              +
              +
              +

              Function 参数说明

              +
              +

              tIdString

              +

              节点在 zTree 内的唯一标识 tId

              +

              返回值JSON

              +

              tId 对应的节点 JSON 数据对象

              +

              如无结果,返回 null

              +
              +

              function 举例

              +

              1. 获取 tId = "tree_10" 的节点数据

              +
              var treeObj = $.fn.zTree.getZTreeObj("tree");
              +var node = treeObj.getNodeByTId("tree_10");
              +
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/zTreeObj.getNodeIndex.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/zTreeObj.getNodeIndex.html new file mode 100644 index 00000000..b2c757d2 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/zTreeObj.getNodeIndex.html @@ -0,0 +1,30 @@ +
              +
              +

              Function(treeNode)zTreeObj.getNodeIndex

              +

              概述[ 依赖 jquery.ztree.core 核心 js ]

              +
              +

              +
              +

              获取某节点在同级节点中的序号(从0开始)

              +

              请通过 zTree 对象执行此方法。

              +
              +
              +

              Function 参数说明

              +
              +

              treeNodeJSON

              +

              需要查询顺序的节点 JSON 数据对象

              +

              请务必保证此节点数据对象 是 zTree 内部的数据对象

              +

              返回值Number

              +

              返回值从 0 开始计数

              +

              如果不存在该节点数据,返回 -1

              +
              +

              function 举例

              +

              1. 获取当前选中的第一个节点在同级节点中的序号

              +
              var treeObj = $.fn.zTree.getZTreeObj("tree");
              +var nodes = treeObj.getSelectedNodes();
              +if (nodes.length>0) {
              +	var index = treeObj.getNodeIndex(nodes[0]);
              +}
              +
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/zTreeObj.getNodes.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/zTreeObj.getNodes.html new file mode 100644 index 00000000..b368535e --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/zTreeObj.getNodes.html @@ -0,0 +1,26 @@ +
              +
              +

              Function()zTreeObj.getNodes

              +

              概述[ 依赖 jquery.ztree.core 核心 js ]

              +
              +

              +
              +

              获取 zTree 的全部节点数据

              +

              请通过 zTree 对象执行此方法。

              +
              +
              +

              Function 参数说明

              +
              +

              返回值Array(JSON)

              +

              全部节点数据

              +

              1、Array 仅仅是根节点的集合(默认情况子节点都处于 children 属性下);

              +

              2、如需遍历全部节点需要利用递归,或利用 transformToArray 方法 将数据变成简单的 Array 集合

              +

              3、对于异步加载模式下,尚未加载的子节点是无法通过此方法获取的。

              +
              +

              function 举例

              +

              1. 获取全部节点数据

              +
              var treeObj = $.fn.zTree.getZTreeObj("tree");
              +var nodes = treeObj.getNodes();
              +
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/zTreeObj.getNodesByFilter.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/zTreeObj.getNodesByFilter.html new file mode 100644 index 00000000..69174251 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/zTreeObj.getNodesByFilter.html @@ -0,0 +1,43 @@ +
              +
              +

              Function(filter, isSingle, parentNode, invokeParam)zTreeObj.getNodesByFilter

              +

              概述[ 依赖 jquery.ztree.core 核心 js ]

              +
              +

              +
              +

              根据自定义规则搜索节点数据 JSON 对象集合 或 单个节点数据

              +

              可自定义复杂的搜索规则

              +

              请通过 zTree 对象执行此方法。

              +
              +
              +

              Function 参数说明

              +
              +

              filterFunction

              +

              自定义过滤器函数 function filter(node) {...}

              +

              filter 参数:node (节点数据 JSON)

              +

              filter 返回值:boolean (true 表示符合搜索条件;false 表示不符合搜索条件)

              +

              isSingleBoolean

              +

              isSingle = true 表示只查找单个节点

              +

              isSingle = false 表示查找节点集合

              +

              忽略此参数,表示查找节点集合

              +

              parentNodeJSON

              +

              可以指定在某个父节点下的子节点中搜索

              +

              忽略此参数,表示在全部节点中搜索

              +

              invokeParam任意类型

              +

              用户自定义的数据对象,用于 filter 中进行计算

              +

              返回值Array(JSON) / JSON

              +

              isSingle = true 返回 第一个找到的节点数据 JSON,无结果时返回 null

              +

              isSingle = false 返回 节点数据集合 Array(JSON),无结果时返回 [ ]

              +
              +

              function 举例

              +

              1. 查找 level = 2 & name 中包含 "test" 的节点数据

              +
              function filter(node) {
              +    return (node.level == 2 && node.name.indexOf("test")>-1);
              +}
              +......
              +var treeObj = $.fn.zTree.getZTreeObj("tree");
              +var node = treeObj.getNodesByFilter(filter, true); // 仅查找一个节点
              +var nodes = treeObj.getNodesByFilter(filter); // 查找节点集合
              +
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/zTreeObj.getNodesByParam.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/zTreeObj.getNodesByParam.html new file mode 100644 index 00000000..cf45939c --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/zTreeObj.getNodesByParam.html @@ -0,0 +1,31 @@ +
              +
              +

              Function(key, value, parentNode)zTreeObj.getNodesByParam

              +

              概述[ 依赖 jquery.ztree.core 核心 js ]

              +
              +

              +
              +

              根据节点数据的属性搜索,获取条件完全匹配的节点数据 JSON 对象集合

              +

              请通过 zTree 对象执行此方法。

              +
              +
              +

              Function 参数说明

              +
              +

              keyString

              +

              需要精确匹配的属性名称

              +

              value?

              +

              需要精确匹配的属性值,可以是任何类型,只要保证与 key 指定的属性值保持一致即可

              +

              parentNodeJSON

              +

              可以指定在某个父节点下的子节点中搜索

              +

              忽略此参数,表示在全部节点中搜索

              +

              返回值Array(JSON)

              +

              匹配精确搜索的节点数据集合

              +

              如无结果,返回 [ ]

              +
              +

              function 举例

              +

              1. 查找 name = "test" 的节点数据

              +
              var treeObj = $.fn.zTree.getZTreeObj("tree");
              +var nodes = treeObj.getNodesByParam("name", "test", null);
              +
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/zTreeObj.getNodesByParamFuzzy.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/zTreeObj.getNodesByParamFuzzy.html new file mode 100644 index 00000000..04d183f9 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/zTreeObj.getNodesByParamFuzzy.html @@ -0,0 +1,32 @@ +
              +
              +

              Function(key, value, parentNode)zTreeObj.getNodesByParamFuzzy

              +

              概述[ 依赖 jquery.ztree.core 核心 js ]

              +
              +

              +
              +

              根据节点数据的属性搜索,获取条件模糊匹配的节点数据 JSON 对象集合

              +

              请通过 zTree 对象执行此方法。

              +
              +
              +

              Function 参数说明

              +
              +

              keyString

              +

              需要模糊匹配的属性名称

              +

              valueString

              +

              需要模糊匹配的属性值

              +

              模糊匹配只能针对 String 类型的数据

              +

              parentNodeJSON

              +

              可以指定在某个父节点下的子节点中搜索

              +

              忽略此参数,表示在全部节点中搜索

              +

              返回值Array(JSON)

              +

              匹配模糊搜索的节点数据集合

              +

              如无结果,返回 [ ]

              +
              +

              function 举例

              +

              1. 查找 name 包含 "test" 的节点数据

              +
              var treeObj = $.fn.zTree.getZTreeObj("tree");
              +var nodes = treeObj.getNodesByParamFuzzy("name", "test", null);
              +
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/zTreeObj.getSelectedNodes.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/zTreeObj.getSelectedNodes.html new file mode 100644 index 00000000..ab36f8ee --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/zTreeObj.getSelectedNodes.html @@ -0,0 +1,23 @@ +
              +
              +

              Function()zTreeObj.getSelectedNodes

              +

              概述[ 依赖 jquery.ztree.core 核心 js ]

              +
              +

              +
              +

              获取 zTree 当前被选中的节点数据集合

              +

              请通过 zTree 对象执行此方法。

              +
              +
              +

              Function 参数说明

              +
              +

              返回值Array(JSON)

              +

              当前被选中的节点数据集合

              +
              +

              function 举例

              +

              1. 获取当前被选中的节点数据集合

              +
              var treeObj = $.fn.zTree.getZTreeObj("tree");
              +var nodes = treeObj.getSelectedNodes();
              +
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/zTreeObj.hideNode.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/zTreeObj.hideNode.html new file mode 100644 index 00000000..a1996b88 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/zTreeObj.hideNode.html @@ -0,0 +1,29 @@ +
              +
              +

              Function(treeNode)zTreeObj.hideNode

              +

              概述[ 依赖 jquery.ztree.exhide 扩展 js ]

              +
              +

              +
              +

              隐藏某个节点。

              +

              1、此功能不支持 exedit 扩展,因此不要在编辑状态时使用隐藏节点的方法。

              +

              2、隐藏/显示节点,会影响节点的 isFirstNode 和 isLastNode 属性。

              +

              3、请通过 zTree 对象执行此方法。

              +
              +
              +

              Function 参数说明

              +
              +

              treeNodeJSON

              +

              指定被隐藏的节点 JSON 数据

              +

              请务必保证此节点数据对象 是 zTree 内部的数据对象

              +

              返回值

              +

              目前无任何返回值

              +
              +

              function 举例

              +

              1. 隐藏根节点第一个节点

              +
              var treeObj = $.fn.zTree.getZTreeObj("tree");
              +var nodes = treeObj.getNodes();
              +treeObj.hideNode(nodes[0]);
              +
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/zTreeObj.hideNodes.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/zTreeObj.hideNodes.html new file mode 100644 index 00000000..cf752b50 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/zTreeObj.hideNodes.html @@ -0,0 +1,29 @@ +
              +
              +

              Function(treeNodes)zTreeObj.hideNodes

              +

              概述[ 依赖 jquery.ztree.exhide 扩展 js ]

              +
              +

              +
              +

              隐藏一批节点。

              +

              1、此功能不支持 exedit 扩展,因此不要在编辑状态时使用隐藏节点的方法。

              +

              2、隐藏/显示节点,会影响节点的 isFirstNode 和 isLastNode 属性。

              +

              3、请通过 zTree 对象执行此方法。

              +
              +
              +

              Function 参数说明

              +
              +

              treeNodesArray(JSON)

              +

              指定被隐藏的节点 JSON 数据集合

              +

              请务必保证这些节点数据对象 是 zTree 内部的数据对象

              +

              返回值

              +

              目前无任何返回值

              +
              +

              function 举例

              +

              1. 隐藏根节点第一个节点的子节点

              +
              var treeObj = $.fn.zTree.getZTreeObj("tree");
              +var nodes = treeObj.getNodes();
              +treeObj.hideNodes(nodes[0].children);
              +
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/zTreeObj.moveNode.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/zTreeObj.moveNode.html new file mode 100644 index 00000000..27f225a7 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/zTreeObj.moveNode.html @@ -0,0 +1,46 @@ +
              +
              +

              Function(targetNode, treeNode, moveType, isSilent)zTreeObj.moveNode

              +

              概述[ 依赖 jquery.ztree.exedit 扩展 js ]

              +
              +

              +
              +

              移动节点。

              +

              请通过 zTree 对象执行此方法。

              +
              +
              +

              Function 参数说明

              +
              +

              targetNodeJSON

              +

              要移动到的目标节点 JSON 数据

              +

              如果移动成为根节点,请设置 targetNode 为 null 即可

              +

              请务必保证此节点数据对象 是 zTree 内部的数据对象

              +

              treeNodeJSON

              +

              需要被移动的节点数据

              +

              请务必保证此节点数据对象 是 zTree 内部的数据对象

              +

              moveTypeString

              +

              指定移动到目标节点的相对位置

              +

              "inner":成为子节点,"prev":成为同级前一个节点,"next":成为同级后一个节点

              +

              isSilentBoolean

              +

              设定移动节点后是否自动展开父节点。

              +

              isSilent = true 时,不展开父节点,其他值或缺省状态都自动展开。

              +

              返回值JSON

              +

              返回值是最终被移动的节点数据,正常情况下与 treeNode 参数完全相同

              +

              如果 返回值 为 null,说明 移动失败,主要原因有:
              +  1、targetNode 是 treeNode 父节点,且 moveType = "inner"
              +  2、targetNode 是 treeNode 子孙节点 +

              +
              +

              function 举例

              +

              1. 将根节点中第二个节点 移动成为 第一个节点的子节点

              +
              var treeObj = $.fn.zTree.getZTreeObj("tree");
              +var nodes = treeObj.getNodes();
              +treeObj.moveNode(nodes[0], nodes[1], "inner");
              +
              +

              2. 将根节点中第二个节点 移动成为 第一个节点的前一个节点

              +
              var treeObj = $.fn.zTree.getZTreeObj("tree");
              +var nodes = treeObj.getNodes();
              +treeObj.moveNode(nodes[0], nodes[1], "before");
              +
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/zTreeObj.reAsyncChildNodes.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/zTreeObj.reAsyncChildNodes.html new file mode 100644 index 00000000..4a354e2f --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/zTreeObj.reAsyncChildNodes.html @@ -0,0 +1,42 @@ +
              +
              +

              Function(parentNode, reloadType, isSilent)zTreeObj.reAsyncChildNodes

              +

              概述[ 依赖 jquery.ztree.core 核心 js ]

              +
              +

              +
              +

              强行异步加载父节点的子节点。[setting.async.enable = true 时有效]

              +

              已经加载过的父节点可反复使用此方法重新加载。

              +

              请通过 zTree 对象执行此方法。

              +
              +
              +

              Function 参数说明

              +
              +

              parentNodeJSON

              +

              指定需要异步加载的父节点 JSON 数据

              +

              1、parentNode = null 时,相当于从根节点 Root 进行异步加载

              +

              2、parentNode.isParent = false 时,不进行异步加载

              +

              3、请务必保证此节点数据对象 是 zTree 内部的数据对象

              +

              reloadTypeString

              +

              reloadType = "refresh" 表示清空后重新加载。

              +

              reloadType != "refresh" 时,表示追加子节点处理。

              +

              isSilentBoolean

              +

              设定异步加载后是否自动展开父节点。

              +

              isSilent = true 时,不展开父节点,其他值或缺省状态都自动展开。

              +

              返回值

              +

              目前无任何返回值

              +
              +

              function 举例

              +

              1. 重新异步加载 zTree

              +
              var treeObj = $.fn.zTree.getZTreeObj("tree");
              +treeObj.reAsyncChildNodes(null, "refresh");
              +
              +

              2. 重新异步加载当前选中的第一个节点

              +
              var treeObj = $.fn.zTree.getZTreeObj("tree");
              +var nodes = treeObj.getSelectedNodes();
              +if (nodes.length>0) {
              +	treeObj.reAsyncChildNodes(nodes[0], "refresh");
              +}
              +
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/zTreeObj.refresh.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/zTreeObj.refresh.html new file mode 100644 index 00000000..09a74ca3 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/zTreeObj.refresh.html @@ -0,0 +1,24 @@ +
              +
              +

              Function()zTreeObj.refresh

              +

              概述[ 依赖 jquery.ztree.core 核心 js ]

              +
              +

              +
              +

              刷新 zTree 。

              +

              没有特殊必要,尽量不要使用此方法。单个节点更新请使用 updateNode 方法,异步加载模式下请使用 reAsyncChildNodes 方法。

              +

              请通过 zTree 对象执行此方法。

              +
              +
              +

              Function 参数说明

              +
              +

              返回值

              +

              目前无任何返回值

              +
              +

              function 举例

              +

              1. 刷新 zTree

              +
              var treeObj = $.fn.zTree.getZTreeObj("tree");
              +treeObj.refresh();
              +
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/zTreeObj.removeChildNodes.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/zTreeObj.removeChildNodes.html new file mode 100644 index 00000000..588639fb --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/zTreeObj.removeChildNodes.html @@ -0,0 +1,32 @@ +
              +
              +

              Function(parentNode)zTreeObj.removeChildNodes

              +

              概述[ 依赖 jquery.ztree.core 扩展 js ]

              +
              +

              +
              +

              清空某父节点的子节点。

              +

              1、清空子节点后,父节点会自动变为叶子节点,如需要父节点保持父节点状态,请设置 setting.data.keep.parent 属性。

              +

              2、请勿用此方法清空根节点,如果需要清空根节点,直接初始化 zTree,并且设置初始节点为 null 即可。

              +

              3、此方法不会触发任何事件回调函数。

              +

              请通过 zTree 对象执行此方法。

              +
              +
              +

              Function 参数说明

              +
              +

              parentNodeJSON

              +

              需要清空子节点的父节点数据

              +

              请务必保证此节点数据对象 是 zTree 内部的数据对象

              +

              返回值Array(JSON)

              +

              将该父节点的子节点数据返回,如果不存在则返回 null

              +
              +

              function 举例

              +

              1. 清空选中的第一个节点的子节点

              +
              var treeObj = $.fn.zTree.getZTreeObj("tree");
              +var nodes = treeObj.getSelectedNodes();
              +if (nodes && nodes.length>0) {
              +	treeObj.removeChildNodes(nodes[0]);
              +}
              +
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/zTreeObj.removeNode.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/zTreeObj.removeNode.html new file mode 100644 index 00000000..442f5c7e --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/zTreeObj.removeNode.html @@ -0,0 +1,34 @@ +
              +
              +

              Function(treeNode, callbackFlag)zTreeObj.removeNode

              +

              概述[ 依赖 jquery.ztree.core 扩展 js ]

              +
              +

              +
              +

              删除节点。

              +

              v3.x 中删除节点可以触发 beforeRemove / onRemove 事件回调函数。便于减少冗余代码

              +

              请通过 zTree 对象执行此方法。

              +
              +
              +

              Function 参数说明

              +
              +

              treeNodeJSON

              +

              需要被删除的节点数据

              +

              请务必保证此节点数据对象 是 zTree 内部的数据对象

              +

              callbackFlagBoolean

              +

              callbackFlag = true 表示执行此方法时触发 beforeRemove & onRemove 事件回调函数

              +

              callbackFlag = false 表示执行此方法时不触发事件回调函数

              +

              省略此参数,等同于 false

              +

              返回值

              +

              目前无任何返回值

              +
              +

              function 举例

              +

              1. 删除所有选中的节点

              +
              var treeObj = $.fn.zTree.getZTreeObj("tree");
              +var nodes = treeObj.getSelectedNodes();
              +for (var i=0, l=nodes.length; i < l; i++) {
              +	treeObj.removeNode(nodes[i]);
              +}
              +
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/zTreeObj.selectNode.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/zTreeObj.selectNode.html new file mode 100644 index 00000000..6e80d813 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/zTreeObj.selectNode.html @@ -0,0 +1,34 @@ +
              +
              +

              Function(treeNode, addFlag)zTreeObj.selectNode

              +

              概述[ 依赖 jquery.ztree.core 核心 js ]

              +
              +

              +
              +

              选中指定节点

              +

              v3.x 支持同时选中多个节点。

              +

              请通过 zTree 对象执行此方法。

              +
              +
              +

              Function 参数说明

              +
              +

              treeNodeJSON

              +

              需要被选中的节点数据

              +

              请务必保证此节点数据对象 是 zTree 内部的数据对象

              +

              addFlagBoolean

              +

              addFlag = true 表示追加选中,会出现多点同时被选中的情况

              +

              addFlag = false 表示单独选中,原先被选中的节点会被取消选中状态

              +

              setting.view.selectedMulti = false 时,此参数无效,始终进行单独选中

              +

              返回值

              +

              目前无任何返回值

              +
              +

              function 举例

              +

              1. 单独选中根节点中第一个节点

              +
              var treeObj = $.fn.zTree.getZTreeObj("tree");
              +var nodes = treeObj.getNodes();
              +if (nodes.length>0) {
              +	treeObj.selectNode(nodes[0]);
              +}
              +
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/zTreeObj.setChkDisabled.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/zTreeObj.setChkDisabled.html new file mode 100644 index 00000000..b042ab43 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/zTreeObj.setChkDisabled.html @@ -0,0 +1,44 @@ +
              +
              +

              Function(node, disabled, inheritParent, inheritChildren)zTreeObj.setChkDisabled

              +

              概述[ 依赖 jquery.ztree.excheck 扩展 js ]

              +
              +

              +
              +

              禁用 或 解禁 某个节点的 checkbox / radio [setting.check.enable = true 时有效]

              +

              1、节点的 checkbox / radio 被禁用后,无法勾选或取消勾选,但能够影响父节点的半选状态

              +

              2、请不要直接修改已加载节点的 treeNode.chkDisabled 属性。

              +

              3、请通过 zTree 对象执行此方法。

              +
              +
              +

              Function 参数说明

              +
              +

              treeNodeJSON

              +

              需要禁用 或 解禁 checkbox / radio 的节点数据

              +

              请务必保证此节点数据对象 是 zTree 内部的数据对象

              +

              disabledBoolean

              +

              disabled = true 表示禁用 checkbox / radio

              +

              disabled = false 表示解禁 checkbox / radio

              +

              省略此参数,等同于 disabled = false

              +

              不影响 treeNode.nochecked = true 的节点。

              +

              inheritParentBoolean

              +

              inheritParent = true 表示全部父节点进行同样的操作

              +

              inheritParent = false 表示不影响父节点

              +

              省略此参数,等同于 inheritParent = false

              +

              inheritChildrenBoolean

              +

              inheritChildren = true 表示全部子节点进行同样的操作

              +

              inheritChildren = false 表示不影响子节点

              +

              省略此参数,等同于 inheritChildren = false

              +

              返回值

              +

              目前无任何返回值

              +
              +

              function 举例

              +

              1. 禁用当前选中的节点的 checkbox / radio

              +
              var treeObj = $.fn.zTree.getZTreeObj("tree");
              +var nodes = treeObj.getSelectedNodes();
              +for (var i=0, l=nodes.length; i < l; i++) {
              +	treeObj.setChkDisabled(nodes[i], true);
              +}
              +
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/zTreeObj.setEditable.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/zTreeObj.setEditable.html new file mode 100644 index 00000000..c90c8de6 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/zTreeObj.setEditable.html @@ -0,0 +1,27 @@ +
              +
              +

              Function(editable)zTreeObj.setEditable

              +

              概述[ 依赖 jquery.ztree.exedit 扩展 js ]

              +
              +

              +
              +

              设置 zTree 进入 / 取消 编辑状态。

              +

              对于编辑状态的各种功能需要提前设置对应 setting 中的不同属性

              +

              请通过 zTree 对象执行此方法。

              +
              +
              +

              Function 参数说明

              +
              +

              editableBoolean

              +

              true 表示进入 编辑状态

              +

              false 表示取消 编辑状态

              +

              返回值

              +

              目前无任何返回值

              +
              +

              function 举例

              +

              1. 设置 zTree 进入编辑状态

              +
              var treeObj = $.fn.zTree.getZTreeObj("tree");
              +treeObj.setEditable(true);
              +
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/zTreeObj.setting.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/zTreeObj.setting.html new file mode 100644 index 00000000..61abd531 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/zTreeObj.setting.html @@ -0,0 +1,13 @@ +
              +
              +

              JSONzTreeObj.setting

              +

              概述[ 依赖 jquery.ztree.core 核心 js ]

              +
              +

              +
              +

              zTree 对象使用的 setting 配置数据,详细请参考 “setting 配置详解”中的各个属性详细说明

              +

              v3.x 取消了原先操作 setting 的方法,让用户可以较自由的修改参数,但请注意,对于 zTree 初始化有影响的参数后期修改是不会起作用的,请对各个属性有较深入的了解以后再考虑进行修改。

              +
              +
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/zTreeObj.showNode.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/zTreeObj.showNode.html new file mode 100644 index 00000000..ed22d510 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/zTreeObj.showNode.html @@ -0,0 +1,31 @@ +
              +
              +

              Function(treeNode)zTreeObj.showNode

              +

              概述[ 依赖 jquery.ztree.exhide 扩展 js ]

              +
              +

              +
              +

              显示某个被隐藏的节点。

              +

              1、此功能不支持 exedit 扩展,因此不要在编辑状态时使用隐藏节点的方法。

              +

              2、隐藏/显示节点,会影响节点的 isFirstNode 和 isLastNode 属性。

              +

              3、请通过 zTree 对象执行此方法。

              +
              +
              +

              Function 参数说明

              +
              +

              treeNodeJSON

              +

              指定被显示的节点 JSON 数据

              +

              请务必保证此节点数据对象 是 zTree 内部的数据对象

              +

              返回值

              +

              目前无任何返回值

              +
              +

              function 举例

              +

              1. 显示某个隐藏的节点

              +
              var treeObj = $.fn.zTree.getZTreeObj("tree");
              +var node = treeObj.getNodeByParam("isHidden", true);
              +if (node) {
              +  treeObj.showNode(node);
              +}
              +
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/zTreeObj.showNodes.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/zTreeObj.showNodes.html new file mode 100644 index 00000000..b0906574 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/zTreeObj.showNodes.html @@ -0,0 +1,29 @@ +
              +
              +

              Function(treeNodes)zTreeObj.showNodes

              +

              概述[ 依赖 jquery.ztree.exhide 扩展 js ]

              +
              +

              +
              +

              显示一批已经被隐藏的节点。

              +

              1、此功能不支持 exedit 扩展,因此不要在编辑状态时使用隐藏节点的方法。

              +

              2、隐藏/显示节点,会影响节点的 isFirstNode 和 isLastNode 属性。

              +

              3、请通过 zTree 对象执行此方法。

              +
              +
              +

              Function 参数说明

              +
              +

              treeNodesArray(JSON)

              +

              指定被显示的节点 JSON 数据集合

              +

              请务必保证这些节点数据对象 是 zTree 内部的数据对象

              +

              返回值

              +

              目前无任何返回值

              +
              +

              function 举例

              +

              1. 显示全部隐藏的节点

              +
              var treeObj = $.fn.zTree.getZTreeObj("tree");
              +var nodes = treeObj.getNodesByParam("isHidden", true);
              +treeObj.showNodes(nodes);
              +
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/zTreeObj.transformToArray.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/zTreeObj.transformToArray.html new file mode 100644 index 00000000..a46dc61e --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/zTreeObj.transformToArray.html @@ -0,0 +1,25 @@ +
              +
              +

              Function(treeNodes)zTreeObj.transformToArray

              +

              概述[ 依赖 jquery.ztree.core 核心 js ]

              +
              +

              +
              +

              将 zTree 使用的标准 JSON 嵌套格式的数据转换为简单 Array 格式。(免去用户自行编写递归遍历全部节点的麻烦)

              +

              请通过 zTree 对象执行此方法。

              +
              +
              +

              Function 参数说明

              +
              +

              treeNodesArray(JSON) / JSON

              +

              需要被转换的 zTree 节点数据对象集合 或 某个单独节点的数据对象

              +

              返回值Array(JSON)

              +

              转换后的简单 Array 数据格式

              +
              +

              function 举例

              +

              1. 将 zTree 节点数据转换为简单 Array 格式

              +
              var treeObj = $.fn.zTree.getZTreeObj("tree");
              +var nodes = treeObj.transformToArray(treeObj.getNodes());
              +
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/zTreeObj.transformTozTreeNodes.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/zTreeObj.transformTozTreeNodes.html new file mode 100644 index 00000000..8a527704 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/zTreeObj.transformTozTreeNodes.html @@ -0,0 +1,43 @@ +
              +
              +

              Function(simpleNodes)zTreeObj.transformTozTreeNodes

              +

              概述[ 依赖 jquery.ztree.core 核心 js ]

              +
              +

              +
              +

              将简单 Array 格式数据转换为 zTree 使用的标准 JSON 嵌套数据格式。

              +

              使用此方法,请务必设置节点唯一标识属性名称 setting.data.simpleData.idKey 和 父节点唯一标识属性名称 setting.data.simpleData.pIdKey,并且让数据满足父子关系。

              +

              请通过 zTree 对象执行此方法。

              +
              +
              +

              Function 参数说明

              +
              +

              simpleNodesArray(JSON) / JSON

              +

              需要被转换的简单 Array 格式数据 或 某个单独的数据对象

              +

              返回值Array(JSON)

              +

              zTree 使用的标准数据,子节点都存在于父节点数据的 children 属性中

              +

              如果 simpleNodes 是一个 JSON 对象,则被简单封装成长度为 1 的数组。

              +
              +

              function 举例

              +

              1. 将简单 Array 格式转换为zTree使用的标准格式

              +
              var setting = {
              +	data: {
              +		simpleData: {
              +			enable: true,
              +			idKey: "id",
              +			pIdKey: "pId",
              +			rootPId: 0,
              +		}
              +	}
              +};
              +var simpleNodes = [
              +    {"id":1, "pId":0, "name":"test1"},
              +    {"id":11, "pId":1, "name":"test11"},
              +    {"id":12, "pId":1, "name":"test12"},
              +    {"id":111, "pId":11, "name":"test111"}
              +];
              +var treeObj = $.fn.zTree.getZTreeObj("tree");
              +var nodes = treeObj.transformTozTreeNodes(simpleNodes);
              +
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/zTreeObj.updateNode.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/zTreeObj.updateNode.html new file mode 100644 index 00000000..847fa6ee --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/cn/zTreeObj.updateNode.html @@ -0,0 +1,37 @@ +
              +
              +

              Function(treeNode, checkTypeFlag)zTreeObj.updateNode

              +

              概述[ 依赖 jquery.ztree.core 核心 js ]

              +
              +

              +
              +

              更新某节点数据,主要用于该节点显示属性的更新。

              +

              1、可针对 name、target、 url、icon、 iconSkin、checked、nocheck 等这几个用于显示效果的参数进行更新,其他用于 zTreeNodes 的参数请不要随意更新,对于展开节点,还请调用 expandNode方法,因此请勿随意修改 open 属性。

              +

              2、用此方法修改 checked 勾选状态不会触发 beforeCheck / onCheck 事件回调函数。

              +

              请通过 zTree 对象执行此方法。

              +
              +
              +

              Function 参数说明

              +
              +

              treeNodeJSON

              +

              指定需要更新的节点 JSON 数据

              +

              请务必保证此节点数据对象 是 zTree 内部的数据对象

              +

              checkTypeFlagBoolean

              +

              checkTypeFlag = true 表示按照 setting.check.chkboxType 属性进行父子节点的勾选联动操作

              +

              checkTypeFlag = false 表示只修改此节点勾选状态,无任何勾选联动操作

              +

              当 setting.check.enable = true 且 setting.check.chkStyle = "checkbox" 时才有效

              +

              不影响父子节点中 treeNode.nochecked = true 的节点。

              +

              返回值

              +

              目前无任何返回值

              +
              +

              function 举例

              +

              1. 更新根节点中第一个节点的名称

              +
              var treeObj = $.fn.zTree.getZTreeObj("tree");
              +var nodes = treeObj.getNodes();
              +if (nodes.length>0) {
              +	nodes[0].name = "test";
              +	treeObj.updateNode(nodes[0]);
              +}
              +
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/fn.zTree._z.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/fn.zTree._z.html new file mode 100644 index 00000000..61da261d --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/fn.zTree._z.html @@ -0,0 +1,13 @@ +
              +
              +

              JSON$.fn.zTree._z

              +

              Overview[ depends on jquery.ztree.core js ]

              +
              +

              +
              +

              All of the methods in zTree v3.x are available through the '$. fn.zTree._z' calls, open it for you to develop your own zTree plug-ins.

              +

              If you have no special requirements, please don't use this object, and don't modify the methods in this object.

              +
              +
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/fn.zTree.destroy.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/fn.zTree.destroy.html new file mode 100644 index 00000000..3a316999 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/fn.zTree.destroy.html @@ -0,0 +1,28 @@ +
              +
              +

              Function(treeId)$.fn.zTree.destroy

              +

              Overview[ depends on jquery.ztree.core js ]

              +
              +

              +
              +

              From zTree v3.4, zTree support the method for destruction.

              +

              1. This method can destroy the zTree with specify treeId, and can destroy all of the zTrees.

              +

              2. If you want to destory some one zTree, you can use the 'zTreeObj.destroy()' method.

              +

              3. If you want to use the tree which has been destroyed, you must use the 'init()' method at first.

              +
              +
              +

              Function Parameter Descriptions

              +
              +

              treeIdString

              +

              zTree unique identifier

              +

              If this parameter is omitted, then will destroy all of the zTrees.

              +

              Return none

              +

              no return value

              +
              +

              Examples of function

              +

              1. destroy the zTree which its id is 'treeDemo'

              +
              $.fn.zTree.destroy("treeDemo");
              +

              2. destroy all of the zTrees

              +
              $.fn.zTree.destroy();
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/fn.zTree.getZTreeObj.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/fn.zTree.getZTreeObj.html new file mode 100644 index 00000000..2bc04476 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/fn.zTree.getZTreeObj.html @@ -0,0 +1,25 @@ +
              +
              +

              Function(treeId)$.fn.zTree.getZTreeObj

              +

              Overview[ depends on jquery.ztree.core js ]

              +
              +

              +
              +

              zTree v3.x specifically provide the method which can use the tree's Id to get zTree object.

              +

              Please initialize zTree first, then you can use this method.

              +

              Users don't need to set the global variable to hold the zTree object, and all of the callback will return 'treeId' parameters, the user can always use this method to get the zTree object.

              +
              +
              +

              Function Parameter Descriptions

              +
              +

              treeIdString

              +

              zTree unique identifier

              +

              Return JSON

              +

              zTree object

              +

              This object can provide the methods of operate the zTree

              +
              +

              Examples of function

              +

              1. Get the zTree object which id is 'tree'

              +
              var treeObj = $.fn.zTree.getZTreeObj("tree");
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/fn.zTree.init.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/fn.zTree.init.html new file mode 100644 index 00000000..cf97d2bc --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/fn.zTree.init.html @@ -0,0 +1,75 @@ +
              +
              +

              Function(obj, zSetting, zNodes)$.fn.zTree.init

              +

              Overview[ depends on jquery.ztree.core js ]

              +
              +

              +
              +

              The method which used to create zTree.

              +

              1. The web page need to use W3C markup. For example: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

              +

              2. Need to load jquery-1.4.2.js or other higher versions.

              +

              3. Need to load jquery-ztree.core-3.0.js. If you need to use the edit mode or checkbox / radio mode, you need to load jquery-ztree.exedit-3.0.js and jquery-ztree.excheck-3.0.js.

              +

              4. Need to load zTreeStyle.css and image files

              +

              5. If you need to use custom icons, please refer to the appropriate Demo.

              +

              6. Note: You need to set zTree container's class name to "ztree". If you need to change, don't forget to modify the css file. If you need other special styles, can modify the css file to their own needs.

              +
              +
              +

              Function Parameter Descriptions

              +
              +

              objectjQuery Object

              +

              DOM Container for zTree

              +

              zSettingJSON

              +

              zTree's configuration data, please refer to "setting details" in the API Document.

              +

              zNodesArray(JSON) / JSON

              +

              zTree's node data, please refer to "treeNode data details" in the API Document.

              +

              1. zTree v3.x support to add single node, that is, if only to add one node, you can use JSON without using Array.

              +

              2. If you need asynchronous load root nodes, can be set to null or [ ]

              +

              3. If you use simple data mode, please refer to "setting.data.simpleData" in the API Document.

              +

              Return JSON

              +

              zTree object

              +

              This object can provide the methods of operate the zTree

              +

              You can use $.fn.zTree.getZTreeObj method at any time to obtain.

              +
              +

              Examples of setting & function

              +

              1. create a simple tree

              +
              <!DOCTYPE html>
              +<HTML>
              + <HEAD>
              +  <TITLE> ZTREE DEMO </TITLE>
              +  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
              +  <link rel="stylesheet" href="zTreeStyle/zTreeStyle.css" type="text/css">
              +  <script type="text/javascript" src="jquery-1.4.2.js"></script>
              +  <script type="text/javascript" src="jquery.ztree.core-3.5.js"></script>
              +<!--
              +  <script type="text/javascript" src="jquery.ztree.excheck-3.5.js"></script>
              +  <script type="text/javascript" src="jquery.ztree.exedit-3.5.js"></script>
              +-->
              +  <SCRIPT type="text/javascript" >
              +	var zTreeObj,
              +	setting = {
              +		view: {
              +			selectedMulti: false
              +		}
              +	},
              +	zTreeNodes = [
              +		{"name":"Site Map", open:true, children: [
              +			{ "name":"google", "url":"http://www.google.com", "target":"_blank"},
              +			{ "name":"baidu", "url":"http://baidu.com", "target":"_blank"},
              +			{ "name":"sina", "url":"http://www.sina.com.cn", "target":"_blank"}
              +			]
              +		}
              +	];
              +
              +	$(document).ready(function(){
              +		zTreeObj = $.fn.zTree.init($("#tree"), setting, zTreeNodes);
              +
              +	});
              +  </SCRIPT>
              + </HEAD>
              +
              +<BODY>
              +<ul id="tree" class="ztree" style="width:230px; overflow:auto;"></ul>
              + </BODY>
              +</HTML>
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.async.autoParam.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.async.autoParam.html new file mode 100644 index 00000000..85cd4691 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.async.autoParam.html @@ -0,0 +1,39 @@ +
              +
              +

              Array(String)setting.async.autoParam

              +

              Overview[ depends on jquery.ztree.core js ]

              +
              +

              +
              +

              Required automatically submit the parameters about the properties of the parent node, when the asynchronous load. It is valid when [setting.async.enable = true]

              +

              Default:[ ]

              +
              +
              +

              Array(String) Format

              +
              +

              1. Just save the attribute name of node to the array. For example: ["id", "name"]

              +

              2. You can change the parameter name. For example: server only accepts "zId" -- ["id=zId"]

              +
              +

              Examples of setting

              +

              1. set auto commit 'id' attribute

              +
              var setting = {
              +	async: {
              +		enable: true,
              +		url: "http://host/getNode.php",
              +		autoParam: ["id"]
              +	}
              +};
              +If have the parent node: {id:1, name:"test"}, When asynchronously load this parent node's child nodes, will be submitted parameters: id=1
              +......
              +

              2. set auto commit 'id' attribute, but parameter name is 'zId'

              +
              var setting = {
              +	async: {
              +		enable: true,
              +		url: "http://host/getNode.php",
              +		autoParam: ["id=zId"]
              +	}
              +};
              +If have the parent node: {id:1, name:"test"}, When asynchronously load this parent node's child nodes, will be submitted parameters: zId=1
              +......
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.async.contentType.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.async.contentType.html new file mode 100644 index 00000000..cc9bfcd3 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.async.contentType.html @@ -0,0 +1,29 @@ +
              +
              +

              Stringsetting.async.contentType

              +

              Overview[ depends on jquery.ztree.core js ]

              +
              +

              +
              +

              When Ajax sending data to the server, use this content-type. It is valid when [setting.async.enable = true]

              +

              Default:"application/x-www-form-urlencoded"

              +
              +
              +

              String Format

              +
              +

              contentType = "application/x-www-form-urlencoded", means: the sending data format is "form" format.

              +

              contentType = "application/json", means: the sending data format is "json" format. (for .Net)

              +
              +

              Examples of setting

              +

              1. set the sending data format to "json" format.

              +
              var setting = {
              +	async: {
              +		enable: true,
              +		contentType: "application/json",
              +		url: "http://host/getNode.php",
              +		autoParam: ["id", "name"]
              +	}
              +};
              +......
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.async.dataFilter.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.async.dataFilter.html new file mode 100644 index 00000000..34733e4d --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.async.dataFilter.html @@ -0,0 +1,45 @@ +
              +
              +

              Function(treeId, parentNode, responseData)setting.async.dataFilter

              +

              Overview[ depends on jquery.ztree.core js ]

              +
              +

              +
              +

              Function used to pre-process for the return data of Ajax. It is valid when [setting.async.enable = true]

              +

              Default: null

              +
              +
              +

              Function Parameter Descriptions

              +
              +

              treeIdString

              +

              zTree unique identifier: treeId, easy for users to control.

              +

              parentNodeJSON

              +

              Parent node's JSON data object

              +

              When asynchronously loading the root, the parentNode = null

              +

              responseDataArray(JSON) / JSON / String

              +

              Ajax got Array (JSON) / JSON / String data objects

              +

              From v3.4, support the string with XML format.

              +

              Return Array(JSON) / JSON

              +

              The return value should be the JSON data structure which is supported by the zTree.

              +

              v3.x supports to load single node JSON data object.

              +
              +

              Examples of setting & function

              +

              1. Modify the node name attribute which is ajax got.

              +
              function ajaxDataFilter(treeId, parentNode, responseData) {
              +    if (responseData) {
              +      for(var i =0; i < responseData.length; i++) {
              +        responseData[i].name += "_filter";
              +      }
              +    }
              +    return responseData;
              +};
              +var setting = {
              +	async: {
              +		enable: true,
              +		url: "http://host/getNode.php",
              +		dataFilter: ajaxDataFilter
              +	}
              +};
              +......
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.async.dataType.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.async.dataType.html new file mode 100644 index 00000000..e6672e9b --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.async.dataType.html @@ -0,0 +1,29 @@ +
              +
              +

              Stringsetting.async.dataType

              +

              Overview[ depends on jquery.ztree.core js ]

              +
              +

              +
              +

              The data type of Ajax. It is valid when [setting.async.enable = true]

              +

              Default:"text"

              +
              +
              +

              String Format

              +
              +

              dataType = "text", It can meet most of the needs.

              +

              The 'dataType' in zTree and jQuery's ajax is same.

              +
              +

              Examples of setting

              +

              1. Set the dataType which ajax got is text.

              +
              var setting = {
              +	async: {
              +		enable: true,
              +		dataType: "text",
              +		url: "http://host/getNode.php",
              +		autoParam: ["id", "name"]
              +	}
              +};
              +......
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.async.enable.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.async.enable.html new file mode 100644 index 00000000..806ba6c6 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.async.enable.html @@ -0,0 +1,30 @@ +
              +
              +

              Booleansetting.async.enable

              +

              Overview[ depends on jquery.ztree.core js ]

              +
              +

              +
              +

              Set zTree asynchronous loading mode is turned on or off.

              +

              Default: false

              +
              +
              +

              Boolean Format

              +
              +

              true - turn on asynchronous loading mode

              +

              false - turn off asynchronous loading mode

              +

              If set it is true, you must set attributes in setting.async

              +

              If you don't pass 'treeNodes' parameter when initialize zTree, the root nodes will get by ajax.

              +
              +

              Examples of setting

              +

              1. Turn on asynchronous loading mode

              +
              var setting = {
              +	async: {
              +		enable: true,
              +		url: "http://host/getNode.php",
              +		autoParam: ["id", "name"]
              +	}
              +};
              +......
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.async.otherParam.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.async.otherParam.html new file mode 100644 index 00000000..2e37390a --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.async.otherParam.html @@ -0,0 +1,40 @@ +
              +
              +

              Array(String) / JSONsetting.async.otherParam

              +

              Overview[ depends on jquery.ztree.core js ]

              +
              +

              +
              +

              The static parameters of the Ajax request. (key - value) It is valid when [setting.async.enable = true]

              +

              Default: [ ]

              +
              +
              +

              Array(String) Format

              +
              +

              Can be empty array. e.g. [ ]. If set key, you must set value, e.g. [key, value]. ([key] or [key, value, key] is wrong!!)

              +
              +

              JSON Format

              +
              +

              Use JSON data format set the key-value. e.g. { key1:value1, key2:value2 }

              +
              +

              Examples of setting

              +

              1. Use Array(String) Format

              +
              var setting = {
              +	async: {
              +		enable: true,
              +		url: "http://host/getNode.php",
              +		otherParam: ["id", "1", "name", "test"]
              +	}
              +};
              +when zTree send ajax, the parameters will has: id=1&name=test
              +

              2. Use JSON data Format

              +
              var setting = {
              +	async: {
              +		enable: true,
              +		url: "http://host/getNode.php",
              +		otherParam: { "id":"1", "name":"test"}
              +	}
              +};
              +when zTree send ajax, the parameters will has: id=1&name=test
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.async.type.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.async.type.html new file mode 100644 index 00000000..ae543388 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.async.type.html @@ -0,0 +1,30 @@ +
              +
              +

              Stringsetting.async.type

              +

              Overview[ depends on jquery.ztree.core js ]

              +
              +

              +
              +

              Http request mode in ajax. It is valid when [setting.async.enable = true]

              +

              Defalut: "post"

              +
              +
              +

              String Format

              +
              +

              "post" - http request mode

              +

              "get" - http request mode

              +

              The 'type' in zTree and jQuery's ajax is same.

              +
              +

              Examples of setting

              +

              1. Set http request mode is 'get'

              +
              var setting = {
              +	async: {
              +		enable: true,
              +		type: "get",
              +		url: "http://host/getNode.php",
              +		autoParam: ["id", "name"]
              +	}
              +};
              +......
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.async.url.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.async.url.html new file mode 100644 index 00000000..5587f294 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.async.url.html @@ -0,0 +1,50 @@ +
              +
              +

              String / Function(treeId, treeNode)setting.async.url

              +

              Overview[ depends on jquery.ztree.core js ]

              +
              +

              +
              +

              The URL to which the ajax request is sent. It is valid when [setting.async.enable = true]

              +

              Default: ""

              +
              +
              +

              String Format

              +
              +

              A url string(e.g. "http://www.domain.com"). Note: please ensure that the url can be loaded

              +

              Url can also take parameters, please note that transcode.

              +
              +

              Function Parameter Descriptions

              +
              +

              treeIdString

              +

              zTree unique identifier: treeId, easy for users to control.

              +

              treeNodeJSON

              +

              Parent node's JSON data object

              +

              When asynchronously loading the root, the treeNode = null

              +

              Return String

              +

              Return value is same as 'String Format'

              +
              +

              Examples of setting & function

              +

              1. set ajax url is "nodes.php"

              +
              var setting = {
              +	async: {
              +		enable: true,
              +		url: "nodes.php",
              +		autoParam: ["id", "name"]
              +	}
              +};
              +......
              +

              2. set ajax url is "function"

              +
              function getAsyncUrl(treeId, treeNode) {
              +    return treeNode.isParent ? "nodes1.php" : "nodes2.php";
              +};
              +var setting = {
              +	async: {
              +		enable: true,
              +		url: getAsyncUrl,
              +		autoParam: ["id", "name"]
              +	}
              +};
              +......
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.callback.beforeAsync.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.callback.beforeAsync.html new file mode 100644 index 00000000..6563ff29 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.callback.beforeAsync.html @@ -0,0 +1,35 @@ +
              +
              +

              Function(treeId, treeNode)setting.callback.beforeAsync

              +

              Overview[ depends on jquery.ztree.core js ]

              +
              +

              +
              +

              Used to capture the event before zTree execute ajax, zTree based on return value to determine whether to execute ajax.

              +

              Default: null

              +
              +
              +

              Function Parameter Descriptions

              +
              +

              treeIdString

              +

              zTree unique identifier: treeId, easy for users to control.

              +

              treeNodeJSON

              +

              JSON data object of the parent node

              +

              When asynchronously loading the root, the treeNode = null

              +

              Return Boolean

              +

              return true or false

              +

              If return false, zTree will not execute ajax, and will not trigger the 'onAsyncSuccess / onAsyncError' callback.

              +
              +

              Examples of setting & function

              +

              1. If the parent node's attribute 'id' is 1, zTree will not execute ajax.

              +
              function zTreeBeforeAsync(treeId, treeNode) {
              +    return (treeNode.id !== 1);
              +};
              +var setting = {
              +	callback: {
              +		beforeAsync: zTreeBeforeAsync
              +	}
              +};
              +......
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.callback.beforeCheck.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.callback.beforeCheck.html new file mode 100644 index 00000000..5260412b --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.callback.beforeCheck.html @@ -0,0 +1,34 @@ +
              +
              +

              Function(treeId, treeNode)setting.callback.beforeCheck

              +

              Overview[ depends on jquery.ztree.excheck js ]

              +
              +

              +
              +

              Used to capture the event before check or uncheck node, zTree based on return value to determine whether to change check state.

              +

              Default: null

              +
              +
              +

              Function Parameter Descriptions

              +
              +

              treeIdString

              +

              zTree unique identifier: treeId, easy for users to control.

              +

              treeNodeJSON

              +

              JSON data object of the node which is checked or unchecked

              +

              Return Boolean

              +

              return true or false

              +

              If return false, zTree will not change check state, and will not trigger the 'onCheck' callback.

              +
              +

              Examples of setting & function

              +

              1. disable to change check state of all nodes, and keep the check state initialization

              +
              function zTreeBeforeCheck(treeId, treeNode) {
              +    return false;
              +};
              +var setting = {
              +	callback: {
              +		beforeCheck: zTreeBeforeCheck
              +	}
              +};
              +......
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.callback.beforeClick.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.callback.beforeClick.html new file mode 100644 index 00000000..8a654481 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.callback.beforeClick.html @@ -0,0 +1,49 @@ +
              +
              +

              Function(treeId, treeNode, clickFlag)setting.callback.beforeClick

              +

              Overview[ depends on jquery.ztree.core js ]

              +
              +

              +
              +

              Used to capture the event before click node, zTree based on return value to determine whether to trigger the 'onClick' callback.

              +

              Default: null

              +
              +
              +

              Function Parameter Descriptions

              +
              +

              treeIdString

              +

              zTree unique identifier: treeId, easy for users to control.

              +

              treeNodeJSON

              +

              JSON data object of the node which is clicked

              +

              clickFlagNumber

              +

              Node is selected or deselected state, please see table below for details

              + + + + + + + + + + + + +
              clickFlagselectedMultiautoCancelSelected
              &&
              event.ctrlKey
              isSelectedoperate for selected
              1truefalsefalsenode is selected (single)
              1truefalsetruenode is selected (single)
              2truetruefalsenode is selected (multi)
              0truetruetruenode is deselected
              1falsefalsefalsenode is selected (single)
              1falsefalsetruenode is selected (single)
              1falsetruefalsenode is selected (single)
              0falsetruetruenode is deselected
              +

              Return Boolean

              +

              return true or false

              +

              If return false, zTree will not change selected state, and will not trigger the 'onClick' callback.

              +
              +

              Examples of setting & function

              +

              1. disabled to click the node

              +
              function zTreeBeforeClick(treeId, treeNode, clickFlag) {
              +    return (treeNode.id !== 1);
              +};
              +var setting = {
              +	callback: {
              +		beforeClick: zTreeBeforeClick
              +	}
              +};
              +......
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.callback.beforeCollapse.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.callback.beforeCollapse.html new file mode 100644 index 00000000..b2713e8a --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.callback.beforeCollapse.html @@ -0,0 +1,34 @@ +
              +
              +

              Function(treeId, treeNode)setting.callback.beforeCollapse

              +

              Overview[ depends on jquery.ztree.core js ]

              +
              +

              +
              +

              Used to capture the event before collapse node, zTree based on return value to determine whether to collapse node.

              +

              Default: null

              +
              +
              +

              Function Parameter Descriptions

              +
              +

              treeIdString

              +

              zTree unique identifier: treeId, easy for users to control.

              +

              treeNodeJSON

              +

              JSON data object of the node which will be collapsed

              +

              Return Boolean

              +

              return true or false

              +

              If return false, zTree will not collapse node, and will not trigger the 'onCollapse' callback.

              +
              +

              Examples of setting & function

              +

              1. disabled to collapse node which is expanded

              +
              function zTreeBeforeCollapse(treeId, treeNode) {
              +    return false;
              +};
              +var setting = {
              +	callback: {
              +		beforeCollapse: zTreeBeforeCollapse
              +	}
              +};
              +......
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.callback.beforeDblClick.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.callback.beforeDblClick.html new file mode 100644 index 00000000..6f1c743e --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.callback.beforeDblClick.html @@ -0,0 +1,36 @@ +
              +
              +

              Function(treeId, treeNode)setting.callback.beforeDblClick

              +

              Overview[ depends on jquery.ztree.core js ]

              +
              +

              +
              +

              Used to capture the dblclick event before the 'onDblClick' callback, zTree based on return value to determine whether to trigger the 'onDblClick' callback.

              +

              Default: null

              +
              +
              +

              Function Parameter Descriptions

              +
              +

              treeIdString

              +

              zTree unique identifier: treeId, easy for users to control.

              +

              treeNodeJSON

              +

              JSON data object of the node which is double clicked

              +

              If the DOM which dblclicked isn't a node, it will return null.

              +

              Return Boolean

              +

              return true or false

              +

              If return false, ztree will not trigger the 'onDblClick' callback, no effect on other operations.

              +

              This callback function does not affect the dblclick the parent node to auto expand, please refer to setting.view.dblClickExpand properties.

              +
              +

              Examples of setting & function

              +

              1. disable to trigger the 'onDblClick' callback

              +
              function zTreeBeforeDblClick(treeId, treeNode) {
              +    return false;
              +};
              +var setting = {
              +	callback: {
              +		beforeDblClick: zTreeBeforeDblClick
              +	}
              +};
              +......
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.callback.beforeDrag.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.callback.beforeDrag.html new file mode 100644 index 00000000..51752448 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.callback.beforeDrag.html @@ -0,0 +1,39 @@ +
              +
              +

              Function(treeId, treeNodes)setting.callback.beforeDrag

              +

              Overview[ depends on jquery.ztree.exedit js ]

              +
              +

              +
              +

              Used to capture the event before drag node, zTree based on return value to determine whether to start to drag node.

              +

              Default: null

              +
              +
              +

              Function Parameter Descriptions

              +
              +

              treeIdString

              +

              zTree unique identifier: treeId, the tree is what the treeNodes are belong to, easy for users to control.

              +

              treeNodesArray(JSON)

              +

              A collection of the nodes which will be dragged

              +

              v3.x allows drag and drop multiple sibling nodes, so this parameter is modified to Array(JSON).

              +

              If the selected nodes aren't the sibling nodes, you can only drag one node which mouse over.

              +

              Return Boolean

              +

              return true or false

              +

              If return false, zTree will stop drag, and will not trigger the 'onDrag / beforeDrop / onDrop' callback.

              +
              +

              Examples of setting & function

              +

              1. disable to drag all node

              +
              function zTreeBeforeDrag(treeId, treeNodes) {
              +    return false;
              +};
              +var setting = {
              +	edit: {
              +		enable: true
              +	},
              +	callback: {
              +		beforeDrag: zTreeBeforeDrag
              +	}
              +};
              +......
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.callback.beforeDragOpen.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.callback.beforeDragOpen.html new file mode 100644 index 00000000..ed1ae978 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.callback.beforeDragOpen.html @@ -0,0 +1,37 @@ +
              +
              +

              Function(treeId, treeNode)setting.callback.beforeDragOpen

              +

              Overview[ depends on jquery.ztree.exedit js ]

              +
              +

              +
              +

              Used to capture the event when drag node to collapsed parent node, zTree based on return value to determine whether to auto expand parent node.

              +

              Default: null

              +
              +
              +

              Function Parameter Descriptions

              +
              +

              treeIdString

              +

              zTree unique identifier: treeId, the tree is what the treeNode(parent node) is belong to, easy for users to control.

              +

              treeNodeJSON

              +

              JSON data object of the parent node which will be auto expanded

              +

              Return Boolean

              +

              return true or false

              +

              If return false, zTree will not auto expand parent node.

              +
              +

              Examples of setting & function

              +

              1. disable to auto expand parent node.

              +
              function zTreeBeforeDragOpen(treeId, treeNode) {
              +    return false;
              +};
              +var setting = {
              +	edit: {
              +		enable: true
              +	},
              +	callback: {
              +		beforeDragOpen: zTreeBeforeDragOpen
              +	}
              +};
              +......
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.callback.beforeDrop.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.callback.beforeDrop.html new file mode 100644 index 00000000..70143211 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.callback.beforeDrop.html @@ -0,0 +1,50 @@ +
              +
              +

              Function(treeId, treeNodes, targetNode, moveType, isCopy)setting.callback.beforeDrop

              +

              Overview[ depends on jquery.ztree.exedit js ]

              +
              +

              +
              +

              Used to capture the event before drag-drop node, zTree based on return value to determine whether to allow drag-drop node.

              +

              Default: null

              +

              When drop the nodes, if the dragged nodes is not in a valid location, this callback will not triggered, and will restore the original position.

              +
              +
              +

              Function Parameter Descriptions

              +
              +

              treeIdString

              +

              zTree unique identifier: treeId, the tree is what the targetNode is belong to, easy for users to control.

              +

              treeNodesArray(JSON)

              +

              A collection of the nodes which has been dragged

              +

              The treeNodes are the data of the nodes which has been dragged, when copy nodes or move nodes.

              +

              targetNodeJSON

              +

              JSON data object of the target node which treeNodes are drag-dropped.

              +

              If the treeNodes will be root node, the targetNode = null

              +

              moveTypeString

              +

              the relative position of move to the target node

              +

              "inner": will be child of targetNode

              +

              "prev": will be sibling node, and be in front of targetNode

              +

              "next": will be sibling node, and be behind targetNode

              +

              isCopyBoolean

              +

              the flag used to judge copy node or move node

              +

              true: copy node; false: move node

              +

              Return Boolean

              +

              return true or false

              +

              If return false, zTree will restore the dragged nodes, and will not trigger the 'onDrop' callback.

              +
              +

              Examples of setting & function

              +

              1. disable to drag nodes to root

              +
              function zTreeBeforeDrop(treeId, treeNodes, targetNode, moveType) {
              +    return !(targetNode == null || (moveType != "inner" && !targetNode.parentTId));
              +};
              +var setting = {
              +	edit: {
              +		enable: true
              +	},
              +	callback: {
              +		beforeDrop: zTreeBeforeDrop
              +	}
              +};
              +......
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.callback.beforeEditName.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.callback.beforeEditName.html new file mode 100644 index 00000000..8772a3e9 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.callback.beforeEditName.html @@ -0,0 +1,38 @@ +
              +
              +

              Function(treeId, treeNode)setting.callback.beforeEditName

              +

              Overview[ depends on jquery.ztree.exedit js ]

              +
              +

              +
              +

              Used to capture the event before click edit button, zTree based on return value to determine whether to allow to edit the name.

              +

              This callback is used to capture the event which edit button is clicked, then trigger the custom editing operation.

              +

              Default: null

              +
              +
              +

              Function Parameter Descriptions

              +
              +

              treeIdString

              +

              zTree unique identifier: treeId, easy for users to control.

              +

              treeNodeJSON

              +

              JSON data object of the node which will be edited name.

              +

              Return Boolean

              +

              return true or false

              +

              If return false, the node will not be able to edit the name.

              +
              +

              Examples of setting & function

              +

              1. disable to edit the parent node's name

              +
              function zTreeBeforeEditName(treeId, treeNode) {
              +	return !treeNode.isParent;
              +}
              +var setting = {
              +	edit: {
              +		enable: true
              +	},
              +	callback: {
              +		beforeEditName: zTreeBeforeEditName
              +	}
              +};
              +......
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.callback.beforeExpand.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.callback.beforeExpand.html new file mode 100644 index 00000000..73cf55a3 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.callback.beforeExpand.html @@ -0,0 +1,34 @@ +
              +
              +

              Function(treeId, treeNode)setting.callback.beforeExpand

              +

              Overview[ depends on jquery.ztree.core js ]

              +
              +

              +
              +

              Used to capture the event before expand node, zTree based on return value to determine whether to expand node.

              +

              Default: null

              +
              +
              +

              Function Parameter Descriptions

              +
              +

              treeIdString

              +

              zTree unique identifier: treeId, easy for users to control.

              +

              treeNodeJSON

              +

              JSON data object of the node which will be expanded

              +

              Return Boolean

              +

              return true or false

              +

              If return false, zTree will not expand node, and will not trigger the 'onExpand' callback.

              +
              +

              Examples of setting & function

              +

              1. disabled to expand node which is collapsed

              +
              function zTreeBeforeExpand(treeId, treeNode) {
              +    return false;
              +};
              +var setting = {
              +	callback: {
              +		beforeExpand: zTreeBeforeExpand
              +	}
              +};
              +......
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.callback.beforeMouseDown.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.callback.beforeMouseDown.html new file mode 100644 index 00000000..4af0818b --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.callback.beforeMouseDown.html @@ -0,0 +1,35 @@ +
              +
              +

              Function(treeId, treeNode)setting.callback.beforeMouseDown

              +

              Overview[ depends on jquery.ztree.core js ]

              +
              +

              +
              +

              Used to capture the mousedown event before the 'onMouseDown' callback, zTree based on return value to determine whether to trigger the 'onMouseDown' callback.

              +

              Default: null

              +
              +
              +

              Function Parameter Descriptions

              +
              +

              treeIdString

              +

              zTree unique identifier: treeId, easy for users to control.

              +

              treeNodeJSON

              +

              JSON data object of the node which mouse over

              +

              If the DOM which mouse over isn't a node, it will return null.

              +

              Return Boolean

              +

              return true or false

              +

              If return false, zTree will not trigger the 'onMouseDown' callback, no effect on other operations.

              +
              +

              Examples of setting & function

              +

              1. disable to trigger the 'onMouseDown' callback

              +
              function zTreeBeforeMouseDown(treeId, treeNode) {
              +    return false;
              +};
              +var setting = {
              +	callback: {
              +		beforeMouseDown: zTreeBeforeMouseDown
              +	}
              +};
              +......
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.callback.beforeMouseUp.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.callback.beforeMouseUp.html new file mode 100644 index 00000000..0c008fc4 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.callback.beforeMouseUp.html @@ -0,0 +1,35 @@ +
              +
              +

              Function(treeId, treeNode)setting.callback.beforeMouseUp

              +

              Overview[ depends on jquery.ztree.core js ]

              +
              +

              +
              +

              Used to capture the mouseup event before the 'onMouseUp' callback, zTree based on return value to determine whether to trigger the 'onMouseUp' callback.

              +

              Default: null

              +
              +
              +

              Function Parameter Descriptions

              +
              +

              treeIdString

              +

              zTree unique identifier: treeId, easy for users to control.

              +

              treeNodeJSON

              +

              JSON data object of the node which mouse over

              +

              If the DOM which mouse over isn't a node, it will return null.

              +

              Return Boolean

              +

              return true or false

              +

              If return false, zTree will not trigger the 'onMouseUp' callback, no effect on other operations.

              +
              +

              Examples of setting & function

              +

              1. disable to trigger the 'onMouseUp' callback

              +
              function zTreeBeforeMouseUp(treeId, treeNode) {
              +    return false;
              +};
              +var setting = {
              +	callback: {
              +		beforeMouseUp: zTreeBeforeMouseUp
              +	}
              +};
              +......
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.callback.beforeRemove.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.callback.beforeRemove.html new file mode 100644 index 00000000..38e14c19 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.callback.beforeRemove.html @@ -0,0 +1,37 @@ +
              +
              +

              Function(treeId, treeNode)setting.callback.beforeRemove

              +

              Overview[ depends on jquery.ztree.exedit js ]

              +
              +

              +
              +

              Used to capture the event before remove node, zTree based on return value to determine whether to allow to remove node.

              +

              Default: null

              +
              +
              +

              Function Parameter Descriptions

              +
              +

              treeIdString

              +

              zTree unique identifier: treeId, easy for users to control.

              +

              treeNodeJSON

              +

              JSON data object of the node which will be removed.

              +

              Return Boolean

              +

              return true or false

              +

              If return false, zTree will not remove node, and will not trigger the 'onRemove' callback.

              +
              +

              Examples of setting & function

              +

              1. disable to remove node

              +
              function zTreeBeforeRemove(treeId, treeNode) {
              +	return false;
              +}
              +var setting = {
              +	edit: {
              +		enable: true
              +	},
              +	callback: {
              +		beforeRemove: zTreeBeforeRemove
              +	}
              +};
              +......
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.callback.beforeRename.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.callback.beforeRename.html new file mode 100644 index 00000000..76438a94 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.callback.beforeRename.html @@ -0,0 +1,46 @@ +
              +
              +

              Function(treeId, treeNode, newName, isCancel)setting.callback.beforeRename

              +

              Overview[ depends on jquery.ztree.exedit js ]

              +
              +

              +
              +

              Used to capture the event before rename(when input DOM blur or press Enter Key), zTree based on return value to determine whether to allow to rename node.

              +

              When node is editing name, press the ESC key to restore the original name and stop edit name.

              +

              From v3.5.13, zTree will trigger this callback when user cancel edit name. please see 'isCancel' parameter.

              +

              Default: null

              +
              +
              +

              Function Parameter Descriptions

              +
              +

              treeIdString

              +

              zTree unique identifier: treeId, easy for users to control.

              +

              treeNodeJSON

              +

              JSON data object of the node which will be rename.

              +

              newNameString

              +

              the new name

              +

              isCancelBoolean

              +

              the status about cancel edit name (v3.5.13+)

              +

              isCancel = true means: user cancel edit name. (press ESC or use cancelEditName() function)

              +

              isCancel = false means: user submit edit name.

              +

              Return Boolean

              +

              return true or false

              +

              If return false, the treeNode will keep the editing name, don't trigger the 'onRename' callback, and will ignore other enents, until the callback return true.

              +

              If returns false, zTree will not set the input box to get focus to avoid the warning message which led to repeated triggering ‘beforeRename’ callback. Please use editName() method to set the input box to get focus when user close the warning message.

              +
              +

              Examples of setting & function

              +

              1. the length of the new name can't less than 5

              +
              function zTreeBeforeRename(treeId, treeNode, newName, isCancel) {
              +	return newName.length > 5;
              +}
              +var setting = {
              +	edit: {
              +		enable: true
              +	},
              +	callback: {
              +		beforeRename: zTreeBeforeRename
              +	}
              +};
              +......
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.callback.beforeRightClick.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.callback.beforeRightClick.html new file mode 100644 index 00000000..15c38cd5 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.callback.beforeRightClick.html @@ -0,0 +1,35 @@ +
              +
              +

              Function(treeId, treeNode)setting.callback.beforeRightClick

              +

              Overview[ depends on jquery.ztree.core js ]

              +
              +

              +
              +

              Used to capture the right click event before the 'onRightClick' callback, zTree based on return value to determine whether to trigger the 'onRightClick' callback.

              +

              Default: null

              +
              +
              +

              Function Parameter Descriptions

              +
              +

              treeIdString

              +

              zTree unique identifier: treeId, easy for users to control.

              +

              treeNodeJSON

              +

              JSON data object of the node which is mouse right clicked

              +

              If the DOM which mouse right clicked isn't a node, it will return null.

              +

              ReturnBoolean

              +

              return true or false

              +

              If return false, ztree will not trigger the 'onRightClick' callback, no effect on other operations.

              +
              +

              Examples of setting & function

              +

              1. disable to trigger the 'onRightClick' callback

              +
              function zTreeBeforeRightClick(treeId, treeNode) {
              +    return false;
              +};
              +var setting = {
              +	callback: {
              +		beforeRightClick: zTreeBeforeRightClick
              +	}
              +};
              +......
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.callback.onAsyncError.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.callback.onAsyncError.html new file mode 100644 index 00000000..785c8d82 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.callback.onAsyncError.html @@ -0,0 +1,42 @@ +
              +
              +

              setting.callback.onAsyncError

              +

              Function(event, treeId, treeNode, XMLHttpRequest, textStatus, errorThrown) 

              +

              Overview[ depends on jquery.ztree.core js ]

              +
              +

              +
              +

              Used to capture the error event when execute ajax.

              +

              If you set 'setting.callback.beforeAsync',and return false, zTree will not execute ajax, and will not trigger the 'onAsyncSuccess / onAsyncError' callback.

              +

              Default: null

              +
              +
              +

              Function Parameter Descriptions

              +
              +

              eventjs event Object

              +

              event Object

              +

              treeIdString

              +

              zTree unique identifier: treeId, easy for users to control.

              +

              treeNodeJSON

              +

              JSON data object of the parent node

              +

              When load root nodes, treeNode = null

              +

              XMLHttpRequestString

              +

              XMLHttpRequest Object, please refer to JQuery API documentation.

              +

              textStatusString

              +

              a string categorizing the status of the request("success", "error"...), please refer to JQuery API documentation.

              +

              errorThrownString

              +

              eWhen an HTTP error occurs, errorThrown receives the textual portion of the HTTP status, please refer to JQuery API documentation.

              +
              +

              Examples of setting & function

              +

              1. When execute ajax make error, alert message.

              +
              function zTreeOnAsyncError(event, treeId, treeNode, XMLHttpRequest, textStatus, errorThrown) {
              +    alert(XMLHttpRequest);
              +};
              +var setting = {
              +	callback: {
              +		onAsyncError: zTreeOnAsyncError
              +	}
              +};
              +......
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.callback.onAsyncSuccess.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.callback.onAsyncSuccess.html new file mode 100644 index 00000000..2722691f --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.callback.onAsyncSuccess.html @@ -0,0 +1,38 @@ +
              +
              +

              Function(event, treeId, treeNode, msg)setting.callback.onAsyncSuccess

              +

              Overview[ depends on jquery.ztree.core js ]

              +
              +

              +
              +

              Used to capture the complete success event when execute ajax.

              +

              If you set 'setting.callback.beforeAsync',and return false, zTree will not execute ajax, and will not trigger the 'onAsyncSuccess / onAsyncError' callback.

              +

              Default: null

              +
              +
              +

              Function Parameter Descriptions

              +
              +

              eventjs event Object

              +

              event Object

              +

              treeIdString

              +

              zTree unique identifier: treeId, easy for users to control.

              +

              treeNodeJSON

              +

              JSON data object of the parent node

              +

              When load root nodes, treeNode = null

              +

              msgString / Object

              +

              The actualnode data which got by ajax. User-friendly debugging.

              +

              The actual data's type of msg is affected by 'setting.async.dataType', please refer to JQuery API documentation.

              +
              +

              Examples of setting & function

              +

              1. When execute ajax complete success, alert message.

              +
              function zTreeOnAsyncSuccess(event, treeId, treeNode, msg) {
              +    alert(msg);
              +};
              +var setting = {
              +	callback: {
              +		onAsyncSuccess: zTreeOnAsyncSuccess
              +	}
              +};
              +......
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.callback.onCheck.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.callback.onCheck.html new file mode 100644 index 00000000..ed33f8d1 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.callback.onCheck.html @@ -0,0 +1,34 @@ +
              +
              +

              Function(event, treeId, treeNode)setting.callback.onCheck

              +

              Overview[ depends on jquery.ztree.excheck js ]

              +
              +

              +
              +

              Used to capture the check or uncheck event when check or uncheck the checkbox and radio.

              +

              If you set 'setting.callback.beforeCheck',and return false, zTree will not change check state, and will not trigger the 'onCheck' callback.

              +

              Default: null

              +
              +
              +

              Function Parameter Descriptions

              +
              +

              eventjs event Object

              +

              event Object

              +

              treeIdString

              +

              zTree unique identifier: treeId, easy for users to control.

              +

              treeNodeJSON

              +

              JSON data object of the node which is checked or unchecked

              +
              +

              Examples of setting & function

              +

              1. When check or uncheck the checkbox and radio, alert info about 'tId' and 'name' and 'checked'.

              +
              function zTreeOnCheck(event, treeId, treeNode) {
              +    alert(treeNode.tId + ", " + treeNode.name + "," + treeNode.checked);
              +};
              +var setting = {
              +	callback: {
              +		onCheck: zTreeOnCheck
              +	}
              +};
              +......
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.callback.onClick.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.callback.onClick.html new file mode 100644 index 00000000..a6ba29a4 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.callback.onClick.html @@ -0,0 +1,49 @@ +
              +
              +

              Function(event, treeId, treeNode, clickFlag)setting.callback.onClick

              +

              Overview[ depends on jquery.ztree.core js ]

              +
              +

              +
              +

              Used to capture the click event when click node.

              +

              If you set 'setting.callback.beforeClick',and return false, zTree will not change selected state, and will not trigger the 'onClick' callback.

              +

              Default: null

              +
              +
              +

              Function Parameter Descriptions

              +
              +

              eventjs event Object

              +

              event Object

              +

              treeIdString

              +

              zTree unique identifier: treeId, easy for users to control.

              +

              treeNodeJSON

              +

              JSON data object of the node which is clicked

              +

              clickFlagNumber

              +

              Node is selected or deselected state, please see table below for details

              + + + + + + + + + + + + +
              clickFlagselectedMultiautoCancelSelected
              &&
              event.ctrlKey
              isSelectedoperate for selected
              1truefalsefalsenode is selected (single)
              1truefalsetruenode is selected (single)
              2truetruefalsenode is selected (multi)
              0truetruetruenode is deselected
              1falsefalsefalsenode is selected (single)
              1falsefalsetruenode is selected (single)
              1falsetruefalsenode is selected (single)
              0falsetruetruenode is deselected
              +
              +

              Examples of setting & function

              +

              1. When click node, alert info about 'tId' and 'name'.

              +
              function zTreeOnClick(event, treeId, treeNode) {
              +    alert(treeNode.tId + ", " + treeNode.name);
              +};
              +var setting = {
              +	callback: {
              +		onClick: zTreeOnClick
              +	}
              +};
              +......
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.callback.onCollapse.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.callback.onCollapse.html new file mode 100644 index 00000000..d605dc8e --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.callback.onCollapse.html @@ -0,0 +1,34 @@ +
              +
              +

              Function(event, treeId, treeNode)setting.callback.onCollapse

              +

              Overview[ depends on jquery.ztree.core js ]

              +
              +

              +
              +

              Used to capture the event when collapse node.

              +

              If you set 'setting.callback.beforeCollapse',and return false, zTree will not collapse node, and will not trigger the 'onCollapse' callback.

              +

              Default: null

              +
              +
              +

              Function Parameter Descriptions

              +
              +

              eventjs event Object

              +

              event Object

              +

              treeIdString

              +

              zTree unique identifier: treeId, easy for users to control.

              +

              treeNodeJSON

              +

              JSON data object of the node which will be collapsed

              +
              +

              Examples of setting & function

              +

              1. When collapse node, alert info about 'tId' and 'name'.

              +
              function zTreeOnCollapse(event, treeId, treeNode) {
              +    alert(treeNode.tId + ", " + treeNode.name);
              +};
              +var setting = {
              +	callback: {
              +		onCollapse: zTreeOnCollapse
              +	}
              +};
              +......
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.callback.onDblClick.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.callback.onDblClick.html new file mode 100644 index 00000000..fbd47e8d --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.callback.onDblClick.html @@ -0,0 +1,35 @@ +
              +
              +

              Function(event, treeId, treeNode)setting.callback.onDblClick

              +

              Overview[ depends on jquery.ztree.core js ]

              +
              +

              +
              +

              Used to capture the dblclick event when double click node.

              +

              If you set 'setting.callback.beforeDblClick',and return false, zTree will not trigger the 'onDblClick' callback.

              +

              Default: null

              +
              +
              +

              Function Parameter Descriptions

              +
              +

              eventjs event Object

              +

              event Object

              +

              treeIdString

              +

              zTree unique identifier: treeId, easy for users to control.

              +

              treeNodeJSON

              +

              JSON data object of the node which is double clicked

              +

              If the DOM which dblclicked isn't a node, it will return null.

              +
              +

              Examples of setting & function

              +

              1. When double click node, alert info about 'tId' and 'name'.

              +
              function zTreeOnDblClick(event, treeId, treeNode) {
              +    alert(treeNode ? treeNode.tId + ", " + treeNode.name : "isRoot");
              +};
              +var setting = {
              +	callback: {
              +		onDblClick: zTreeOnDblClick
              +	}
              +};
              +......
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.callback.onDrag.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.callback.onDrag.html new file mode 100644 index 00000000..30c738d7 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.callback.onDrag.html @@ -0,0 +1,34 @@ +
              +
              +

              Function(event, treeId, treeNodes)setting.callback.onDrag

              +

              Overview[ depends on jquery.ztree.exedit js ]

              +
              +

              +
              +

              Used to capture the drag event when drag node.

              +

              If you set 'setting.callback.beforeDrag',and return false, zTree will stop drag, and will not trigger the 'onDrag' callback.

              +

              Default: null

              +
              +
              +

              Function Parameter Descriptions

              +
              +

              eventjs event Object

              +

              event Object

              +

              treeIdString

              +

              zTree unique identifier: treeId, the tree is what the treeNodes are belong to, easy for users to control.

              +

              treeNodesArray(JSON)

              +

              A collection of the nodes which will be dragged

              +
              +

              Examples of setting & function

              +

              1. When drag nodes, alert the number of dragged nodes.

              +
              function zTreeOnDrag(event, treeId, treeNodes) {
              +    alert(treeNodes.length);
              +};
              +var setting = {
              +	callback: {
              +		onDrag: zTreeOnDrag
              +	}
              +};
              +......
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.callback.onDrop.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.callback.onDrop.html new file mode 100644 index 00000000..63624631 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.callback.onDrop.html @@ -0,0 +1,48 @@ +
              +
              +

              Function(event, treeId, treeNodes, targetNode, moveType, isCopy)setting.callback.onDrop

              +

              Overview[ depends on jquery.ztree.exedit js ]

              +
              +

              +
              +

              Used to capture the drop event when drag-drop node.

              +

              If you set 'setting.callback.beforeDrop',and return false, zTree will restore the dragged nodes, and will not trigger the 'onDrop' callback.

              +

              Default: null

              +
              +
              +

              Function Parameter Descriptions

              +
              +

              eventjs event Object

              +

              event Object

              +

              treeIdString

              +

              zTree unique identifier: treeId, the tree is what the targetNode is belong to, easy for users to control.

              +

              treeNodesArray(JSON)

              +

              A collection of the nodes which has been dragged

              +

              The treeNodes are the data of the nodes which be dragged, when move nodes.

              +

              The treeNodes are the clone data of the nodes which be dragged, when copy nodes.

              +

              targetNodeJSON

              +

              JSON data object of the target node which treeNodes are drag-dropped.

              +

              If the treeNodes will be root node, the targetNode = null

              +

              moveTypeString

              +

              the relative position of move to the target node

              +

              "inner": will be child of targetNode

              +

              "prev": will be sibling node, and be in front of targetNode

              +

              "next": will be sibling node, and be behind targetNode

              +

              If moveType is null, means drag & drop is cancel.

              +

              isCopyBoolean

              +

              the flag used to judge copy node or move node

              +

              true: copy node; false: move node

              +
              +

              Examples of setting & function

              +

              1. When drag-drop nodes complete, alert the number of dragged nodes and info about targetNode.

              +
              function zTreeOnDrop(event, treeId, treeNodes, targetNode, moveType) {
              +    alert(treeNodes.length + "," + (targetNode ? (targetNode.tId + ", " + targetNode.name) : "isRoot" ));
              +};
              +var setting = {
              +	callback: {
              +		onDrop: zTreeOnDrop
              +	}
              +};
              +......
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.callback.onExpand.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.callback.onExpand.html new file mode 100644 index 00000000..7b9d8d50 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.callback.onExpand.html @@ -0,0 +1,34 @@ +
              +
              +

              Function(event, treeId, treeNode)setting.callback.onExpand

              +

              Overview[ depends on jquery.ztree.core js ]

              +
              +

              +
              +

              Used to capture the event when expand node.

              +

              If you set 'setting.callback.beforeExpand',and return false, zTree will not expand node, and will not trigger the 'onExpand' callback.

              +

              Default: null

              +
              +
              +

              Function Parameter Descriptions

              +
              +

              eventjs event Object

              +

              event Object

              +

              treeIdString

              +

              zTree unique identifier: treeId, easy for users to control.

              +

              treeNodeJSON

              +

              JSON data object of the node which will be expanded

              +
              +

              Examples of setting & function

              +

              1. When expand node, alert info about 'tId' and 'name'.

              +
              function zTreeOnExpand(event, treeId, treeNode) {
              +    alert(treeNode.tId + ", " + treeNode.name);
              +};
              +var setting = {
              +	callback: {
              +		onExpand: zTreeOnExpand
              +	}
              +};
              +......
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.callback.onMouseDown.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.callback.onMouseDown.html new file mode 100644 index 00000000..bfd714c2 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.callback.onMouseDown.html @@ -0,0 +1,35 @@ +
              +
              +

              Function(event, treeId, treeNode)setting.callback.onMouseDown

              +

              Overview[ depends on jquery.ztree.core js ]

              +
              +

              +
              +

              Used to capture the event when mouse down.

              +

              If you set 'setting.callback.beforeMouseDown',and return false, zTree will not trigger the 'onMouseDown' callback.

              +

              Default: null

              +
              +
              +

              Function Parameter Descriptions

              +
              +

              eventjs event Object

              +

              event Object

              +

              treeIdString

              +

              zTree unique identifier: treeId, easy for users to control.

              +

              treeNodeJSON

              +

              JSON data object of the node which mouse over

              +

              If the DOM which mouse over isn't a node, it will return null.

              +
              +

              Examples of setting & function

              +

              1. When mouse down, alert info about 'tId' and 'name'.

              +
              function zTreeOnMouseDown(event, treeId, treeNode) {
              +    alert(treeNode ? treeNode.tId + ", " + treeNode.name : "isRoot");
              +};
              +var setting = {
              +	callback: {
              +		onMouseDown: zTreeOnMouseDown
              +	}
              +};
              +......
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.callback.onMouseUp.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.callback.onMouseUp.html new file mode 100644 index 00000000..93edf319 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.callback.onMouseUp.html @@ -0,0 +1,35 @@ +
              +
              +

              Function(event, treeId, treeNode)setting.callback.onMouseUp

              +

              Overview[ depends on jquery.ztree.core js ]

              +
              +

              +
              +

              Used to capture the event when mouse up.

              +

              If you set 'setting.callback.beforeMouseUp',and return false, zTree will not trigger the 'onMouseUp' callback.

              +

              Default: null

              +
              +
              +

              Function Parameter Descriptions

              +
              +

              eventjs event Object

              +

              event Object

              +

              treeIdString

              +

              zTree unique identifier: treeId, easy for users to control.

              +

              treeNodeJSON

              +

              JSON data object of the node which mouse over

              +

              If the DOM which mouse over isn't a node, it will return null.

              +
              +

              Examples of setting & function

              +

              1. When mouse up, alert info about 'tId' and 'name'.

              +
              function zTreeOnMouseUp(event, treeId, treeNode) {
              +    alert(treeNode ? treeNode.tId + ", " + treeNode.name : "isRoot");
              +};
              +var setting = {
              +	callback: {
              +		onMouseUp: zTreeOnMouseUp
              +	}
              +};
              +......
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.callback.onNodeCreated.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.callback.onNodeCreated.html new file mode 100644 index 00000000..a98b572f --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.callback.onNodeCreated.html @@ -0,0 +1,35 @@ +
              +
              +

              Function(event, treeId, treeNode)setting.callback.onNodeCreated

              +

              Overview[ depends on jquery.ztree.core js ]

              +
              +

              +
              +

              Used to capture the event when node's DOM is created.

              +

              Because v3.x uses lazy loading technology, so the nodes which doesn't create DOM when initialized will not trigger this callback, until its parent node is expanded.

              +

              Large amount of data to load, please note: do not set onNodeCreated, can improve performance as when initialized.

              +

              Default: null

              +
              +
              +

              Function Parameter Descriptions

              +
              +

              eventjs event Object

              +

              event Object

              +

              treeIdString

              +

              zTree unique identifier: treeId, easy for users to control.

              +

              treeNodeJSON

              +

              JSON data object of the node which DOM is created

              +
              +

              Examples of setting & function

              +

              1. When node's DOM is created, alert info about 'tId' and 'name'.

              +
              function zTreeOnNodeCreated(event, treeId, treeNode) {
              +    alert(treeNode.tId + ", " + treeNode.name);
              +};
              +var setting = {
              +	callback: {
              +		onNodeCreated: zTreeOnNodeCreated
              +	}
              +};
              +......
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.callback.onRemove.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.callback.onRemove.html new file mode 100644 index 00000000..ce294136 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.callback.onRemove.html @@ -0,0 +1,34 @@ +
              +
              +

              Function(event, treeId, treeNode)setting.callback.onRemove

              +

              Overview[ depends on jquery.ztree.exedit js ]

              +
              +

              +
              +

              Used to capture the event when remove node.

              +

              If you set 'setting.callback.beforeRemove',and return false, zTree will not remove node, and will not trigger the 'onRemove' callback.

              +

              Default: null

              +
              +
              +

              Function Parameter Descriptions

              +
              +

              eventjs event Object

              +

              event Object

              +

              treeIdString

              +

              zTree unique identifier: treeId, easy for users to control.

              +

              treeNodeJSON

              +

              JSON data object of the node which was removed.

              +
              +

              Examples of setting & function

              +

              1. When remove node, alert info about 'tId' and 'name'.

              +
              function zTreeOnRemove(event, treeId, treeNode) {
              +	alert(treeNode.tId + ", " + treeNode.name);
              +}
              +var setting = {
              +	callback: {
              +		onRemove: zTreeOnRemove
              +	}
              +};
              +......
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.callback.onRename.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.callback.onRename.html new file mode 100644 index 00000000..cd47eae1 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.callback.onRename.html @@ -0,0 +1,40 @@ +
              +
              +

              Function(event, treeId, treeNode, isCancel)setting.callback.onRename

              +

              Overview[ depends on jquery.ztree.exedit js ]

              +
              +

              +
              +

              Used to capture the event when remove node.

              +

              1. If you set 'setting.callback.beforeRename',and return false, zTree will keep the editing name, and will not trigger the 'onRename' callback.

              +

              2. If you modity treeNode data, and use 'updateNode' function, zTree will not trigger the 'onRename' callback.

              +

              3. From v3.5.13, zTree will trigger this callback when user cancel edit name. please see 'isCancel' parameter.

              +

              Default: null

              +
              +
              +

              Function Parameter Descriptions

              +
              +

              eventjs event Object

              +

              event Object

              +

              treeIdString

              +

              zTree unique identifier: treeId, easy for users to control.

              +

              treeNodeJSON

              +

              JSON data object of the node which was rename.

              +

              isCancelBoolean

              +

              the status about cancel edit name (v3.5.13+)

              +

              isCancel = true means: user cancel edit name. (press ESC or use cancelEditName() function)

              +

              isCancel = false means: user submit edit name.

              +
              +

              Examples of setting & function

              +

              1. When rename node, alert info about 'tId' and 'name'.

              +
              function zTreeOnRename(event, treeId, treeNode, isCancel) {
              +	alert(treeNode.tId + ", " + treeNode.name);
              +}
              +var setting = {
              +	callback: {
              +		onRename: zTreeOnRename
              +	}
              +};
              +......
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.callback.onRightClick.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.callback.onRightClick.html new file mode 100644 index 00000000..86b4b012 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.callback.onRightClick.html @@ -0,0 +1,36 @@ +
              +
              +

              Function(event, treeId, treeNode)setting.callback.onRightClick

              +

              Overview[ depends on jquery.ztree.core js ]

              +
              +

              +
              +

              Used to capture the event when mouse right click node.

              +

              If you set 'setting.callback.beforeRightClick',and return false, zTree will not trigger the 'onRightClick' callback.

              +

              If you set 'setting.callback.onRightClick', zTree will shield the browser context menu when mouse right click on zTree.

              +

              Default: null

              +
              +
              +

              Function Parameter Descriptions

              +
              +

              eventjs event Object

              +

              event Object

              +

              treeIdString

              +

              zTree unique identifier: treeId, easy for users to control.

              +

              treeNodeJSON

              +

              JSON data object of the node which is mouse right clicked

              +

              If the DOM which mouse right clicked isn't a node, it will return null.

              +
              +

              Examples of setting & function

              +

              1. When mouse right click node, alert info about 'tId' and 'name'.

              +
              function zTreeOnRightClick(event, treeId, treeNode) {
              +    alert(treeNode ? treeNode.tId + ", " + treeNode.name : "isRoot");
              +};
              +var setting = {
              +	callback: {
              +		onRightClick: zTreeOnRightClick
              +	}
              +};
              +......
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.check.autoCheckTrigger.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.check.autoCheckTrigger.html new file mode 100644 index 00000000..b8b04cca --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.check.autoCheckTrigger.html @@ -0,0 +1,29 @@ +
              +
              +

              Booleansetting.check.autoCheckTrigger

              +

              Overview[ depends on jquery.ztree.excheck js ]

              +
              +

              +
              +

              When node is automatically checked or unchecked, this parameter used to set to trigger 'beforeCheck / onCheck' callback. It is valid when [setting.check.enable = true & setting.check.chkStyle = "checkbox"]

              +

              1. If you set 'setting.check.chkboxType' to { "Y": "", "N": "" }, will not automatically checked or unchecked.

              +

              2. If you turn on the trigger and there are many more nodes, will affect the performance, because the check or uncheck node can cause many nodes to be automatically checked or unchecked, it will trigger a lot of callbacks, according to the need to decide whether to use this feature.

              +

              Default: false

              +
              +
              +

              Boolean Format

              +
              +

              true means: trigger callback

              +

              false means: don't trigger callback

              +
              +

              Examples of setting

              +

              1. When node is automatically checked or unchecked, zTree trigger 'beforeCheck / onCheck' callback.

              +
              var setting = {
              +	check: {
              +		enable: true,
              +		autoCheckTrigger: true
              +	}
              +};
              +......
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.check.chkDisabledInherit.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.check.chkDisabledInherit.html new file mode 100644 index 00000000..98d824e4 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.check.chkDisabledInherit.html @@ -0,0 +1,28 @@ +
              +
              +

              Booleansetting.check.chkDisabledInherit

              +

              Overview[ depends on jquery.ztree.excheck js ]

              +
              +

              +
              +

              When the parent node's 'chkDisabled' attribute is true, set the child nodes automatically inherit the 'chkDisabled' attribute. It is valid when [setting.check.enable = true]

              +

              1. Only be used to initialize the nodes, easy batch operations. Please use the 'updateNode' method modify existing node.

              +

              Default: false

              +
              +
              +

              Boolean Format

              +
              +

              true means: When add new child nodes, if parent node's 'chkDisabled' attribute is true, the child nodes automatically inherit the 'chkDisabled' attribute.

              +

              false means: When add new child nodes, the child nodes don't inherit the 'chkDisabled' attribute from parent node.

              +
              +

              Examples of setting

              +

              1. When add new child nodes, the child nodes automatically inherit the 'chkDisabled' attribute from parent node.

              +
              var setting = {
              +	check: {
              +		enable: true,
              +		chkDisabledInherit: true
              +	}
              +};
              +......
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.check.chkStyle.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.check.chkStyle.html new file mode 100644 index 00000000..d42e757a --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.check.chkStyle.html @@ -0,0 +1,48 @@ +
              +
              +

              Stringsetting.check.chkStyle

              +

              Overview[ depends on jquery.ztree.excheck js ]

              +
              +

              +
              +

              Use the checkbox or radio. It is valid when [setting.check.enable = true]

              +

              Default: "checkbox"

              +
              +
              +

              String Format

              +
              +

              When chkStyle = "checkbox", zTree show checkbox, and 'setting.check.chkboxType' attribute is valid. +
              When chkStyle = "radio", zTree show radio, and 'setting.check.radioType' attribute is valid.

              +

              Please note that letter case, do not change.

              +
              +

              checkbox States Descriptions

              +
              +

              +
              +

              not checked; If node is parent, so its child nodes have been not checked. when mouse over:

              +

              not checked; (only parent node) some of its child nodes have been checked. when mouse over:

              +

              be checked; If node is parent, so its all child nodes have been checked. when mouse over:

              +

              be checked; (only parent node) some of its child nodes or all have been not checked. when mouse over:

              +
              +
              +

              radio States Descriptions

              +
              +

              +
              +

              not checked; If node is parent, so its child have been not checked. when mouse over:

              +

              not checked; (only parent node) some of its child have been checked. when mouse over:

              +

              be checked; If node is parent, so its child have been not checked. when mouse over:

              +

              be checked; (only parent node) some of its child have been checked. when mouse over:

              +
              +
              +

              Examples of setting

              +

              1. use radio

              +
              var setting = {
              +	check: {
              +		enable: true,
              +		chkStyle: "radio"
              +	}
              +};
              +......
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.check.chkboxType.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.check.chkboxType.html new file mode 100644 index 00000000..5cecc9ee --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.check.chkboxType.html @@ -0,0 +1,31 @@ +
              +
              +

              JSONsetting.check.chkboxType

              +

              Overview[ depends on jquery.ztree.excheck js ]

              +
              +

              +
              +

              When one node is checked or unchecked, control its parent node and its child node auto checked or unchecked. It is valid when [setting.check.enable = true & setting.check.chkStyle = "checkbox"]

              +

              Default: { "Y": "ps", "N": "ps" }

              +
              +
              +

              JSON Format

              +
              +

              "Y" attribute use to set auto check after checkbox was checked. +
              "N" attribute use to set auto uncheck after checkbox was unchecked. +
              If value has "p", so parent nodes will be checked or unchecked. +
              If value has "s", so child nodes will be checked or unchecked.

              +

              Please note that letter case, do not change.

              +
              +

              Examples of setting

              +

              1. If check the node, so only auto check parent nodes; If uncheck the node, so only auto uncheck child nodes;

              +
              var setting = {
              +	check: {
              +		enable: true,
              +		chkStyle: "checkbox",
              +		chkboxType: { "Y": "p", "N": "s" }
              +	}
              +};
              +......
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.check.enable.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.check.enable.html new file mode 100644 index 00000000..0236b5f8 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.check.enable.html @@ -0,0 +1,26 @@ +
              +
              +

              Booleansetting.check.enable

              +

              Overview[ depends on jquery.ztree.excheck js ]

              +
              +

              +
              +

              Set to use checkbox or radio in zTree

              +

              Default: false

              +
              +
              +

              Boolean Format

              +
              +

              true means: use the checkbox or radio

              +

              false means: don't use the checkbox or radio

              +
              +

              Examples of setting

              +

              1. use the checkbox

              +
              var setting = {
              +	check: {
              +		enable: true
              +	}
              +};
              +......
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.check.nocheckInherit.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.check.nocheckInherit.html new file mode 100644 index 00000000..758b437e --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.check.nocheckInherit.html @@ -0,0 +1,28 @@ +
              +
              +

              Booleansetting.check.nocheckInherit

              +

              Overview[ depends on jquery.ztree.excheck js ]

              +
              +

              +
              +

              When the parent node's 'nocheck' attribute is true, set the child nodes automatically inherit the 'nocheck' attribute. It is valid when [setting.check.enable = true]

              +

              1. Only be used to initialize the nodes, easy batch operations. Please use the 'updateNode' method modify existing node.

              +

              Default: false

              +
              +
              +

              Boolean Format

              +
              +

              true means: When add new child nodes, if parent node's 'nocheck' attribute is true, the child nodes automatically inherit the 'nocheck' attribute.

              +

              false means: When add new child nodes, the child nodes don't inherit the 'nocheck' attribute from parent node.

              +
              +

              Examples of setting

              +

              1. When add new child nodes, the child nodes automatically inherit the 'nocheck' attribute from parent node.

              +
              var setting = {
              +	check: {
              +		enable: true,
              +		nocheckInherit: true
              +	}
              +};
              +......
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.check.radioType.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.check.radioType.html new file mode 100644 index 00000000..be867d75 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.check.radioType.html @@ -0,0 +1,29 @@ +
              +
              +

              Stringsetting.check.radioType

              +

              Overview[ depends on jquery.ztree.excheck js ]

              +
              +

              +
              +

              The group about radio. It is valid when [setting.check.enable = true & setting.check.chkStyle = "radio"]

              +

              Default: "level"

              +
              +
              +

              String Format

              +
              +

              When radioType = "level", will be grouped with same level nodes which have the same parent node. +
              When radioType = "all", will be grouped with all nodes.

              +

              Please note that letter case, do not change.

              +
              +

              Examples of setting

              +

              1. Set the group about radio is all nodes.

              +
              var setting = {
              +	check: {
              +		enable: true,
              +		chkStyle: "radio",
              +		radioType: "all"
              +	}
              +};
              +......
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.data.keep.leaf.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.data.keep.leaf.html new file mode 100644 index 00000000..71c573e4 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.data.keep.leaf.html @@ -0,0 +1,28 @@ +
              +
              +

              Booleansetting.data.keep.leaf

              +

              Overview[ depends on jquery.ztree.core js ]

              +
              +

              +
              +

              The leaf node's lock, the leaf node will lock the 'isParent' attribute to false.

              +

              Default: false

              +
              +
              +

              Boolean Format

              +
              +

              true means: lock the leaf node, and the node which 'isParent' attribute is false can't add child nodes.

              +

              false means: don't lock the leaf node, and the node which 'isParent' attribute is false can add child nodes.

              +
              +

              Examples of setting

              +

              1. lock the leaf node

              +
              var setting = {
              +	data: {
              +		keep: {
              +			leaf: true
              +		}
              +	}
              +};
              +......
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.data.keep.parent.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.data.keep.parent.html new file mode 100644 index 00000000..5bab2f1e --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.data.keep.parent.html @@ -0,0 +1,28 @@ +
              +
              +

              Booleansetting.data.keep.parent

              +

              Overview[ depends on jquery.ztree.core js ]

              +
              +

              +
              +

              The parent node's lock, the parent node will lock 'isParent' attribute to true.

              +

              Default: false

              +
              +
              +

              Boolean Format

              +
              +

              true means: lock the parent node, and if remove all of the parent node's child nodes, its 'isParent' attribute still keep to be true..

              +

              false means: don't lock the parent node, and if remove all of the parent node's child nodes, its 'isParent' attribute will change to be false..

              +
              +

              Examples of setting

              +

              1. lock the parent node

              +
              var setting = {
              +	data: {
              +		keep: {
              +			parent: true
              +		}
              +	}
              +};
              +......
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.data.key.checked.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.data.key.checked.html new file mode 100644 index 00000000..2678cf25 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.data.key.checked.html @@ -0,0 +1,24 @@ +
              +
              +

              Stringsetting.data.key.checked

              +

              Overview[ depends on jquery.ztree.excheck js ]

              +
              +

              +
              +

              The node data's attribute to save the checked state.

              +

              Default: "checked"

              +

              Please don't set the other node attribute which zTree used. (e.g., checkedOld)

              +
              +
              +

              Examples of setting

              +

              1. set the 'isChecked' attribute to save the checked state.

              +
              var setting = {
              +	data: {
              +		key: {
              +			checked: "isChecked"
              +		}
              +	}
              +};
              +......
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.data.key.children.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.data.key.children.html new file mode 100644 index 00000000..321a1a7d --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.data.key.children.html @@ -0,0 +1,23 @@ +
              +
              +

              Stringsetting.data.key.children

              +

              Overview[ depends on jquery.ztree.core js ]

              +
              +

              +
              +

              The node data's attribute to save the child nodes.

              +

              Default: "children"

              +
              +
              +

              Examples of setting

              +

              1. Set the 'nodes' attribute to save the child nodes.

              +
              var setting = {
              +	data: {
              +		key: {
              +			children: "nodes"
              +		}
              +	}
              +};
              +......
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.data.key.name.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.data.key.name.html new file mode 100644 index 00000000..0208c559 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.data.key.name.html @@ -0,0 +1,23 @@ +
              +
              +

              Stringsetting.data.key.name

              +

              Overview[ depends on jquery.ztree.core js ]

              +
              +

              +
              +

              The node data's attribute to save the node name.

              +

              Default: "name"

              +
              +
              +

              Examples of setting

              +

              1. Set the 'ename' attribute to save the node name.

              +
              var setting = {
              +	data: {
              +		key: {
              +			name: "ename"
              +		}
              +	}
              +};
              +......
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.data.key.title.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.data.key.title.html new file mode 100644 index 00000000..96540eb6 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.data.key.title.html @@ -0,0 +1,24 @@ +
              +
              +

              Stringsetting.data.key.title

              +

              Overview[ depends on jquery.ztree.core js ]

              +
              +

              +
              +

              The node data's attribute to save the 'title' attribute of node DOM. It is valid when [setting.view.showTitle = true]

              +

              If set it to "", the title of node DOM will be same as 'setting.data.key.name' attribute.

              +

              Default: ""

              +
              +
              +

              Examples of setting

              +

              1. Set the 'fullName' attribute to save the title of node DOM.

              +
              var setting = {
              +	data: {
              +		key: {
              +			title: "fullName"
              +		}
              +	}
              +};
              +......
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.data.key.url.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.data.key.url.html new file mode 100644 index 00000000..e9a08cea --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.data.key.url.html @@ -0,0 +1,24 @@ +
              +
              +

              Stringsetting.data.key.url

              +

              Overview[ depends on jquery.ztree.core js ]

              +
              +

              +
              +

              The node data's attribute to save the node link's url.

              +

              Special: If the nodes's data can only use the 'url' attribute, and don't use the link to jump feature, you can modify this attribute to any nonexistent attribute.

              +

              Default: "url"

              +
              +
              +

              Examples of setting

              +

              1. Set the 'xUrl' attribute to save the node link's url.

              +
              var setting = {
              +	data: {
              +		key: {
              +			url: "xUrl"
              +		}
              +	}
              +};
              +......
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.data.simpleData.enable.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.data.simpleData.enable.html new file mode 100644 index 00000000..7ea21db3 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.data.simpleData.enable.html @@ -0,0 +1,39 @@ +
              +
              +

              Booleansetting.data.simpleData.enable

              +

              Overview[ depends on jquery.ztree.core js ]

              +
              +

              +
              +

              Set zTree's node to accept the simple data format, when zTree is initialized or when ajax get / or when use addNodes method.

              +

              Don't have to generate the complex nested data.

              +

              Default: false

              +
              +
              +

              Boolean Format

              +
              +

              true means: zTree's node accept the simple data format.

              +

              false means: zTree's node only accept the nested data format.

              +

              If set it is true, you must set the other attributes in 'setting.data.simpleData'. (e.g., idKey, pIdKey, rootPId) And let the data satisfy the parent-child relationship.

              +
              +

              Examples of setting

              +

              1. use the simple data format

              +
              var setting = {
              +	data: {
              +		simpleData: {
              +			enable: true,
              +			idKey: "id",
              +			pIdKey: "pId",
              +			rootPId: 0,
              +		}
              +	}
              +};
              +var treeNodes = [
              +    {"id":1, "pId":0, "name":"test1"},
              +    {"id":11, "pId":1, "name":"test11"},
              +    {"id":12, "pId":1, "name":"test12"},
              +    {"id":111, "pId":11, "name":"test111"}
              +];
              +......
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.data.simpleData.idKey.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.data.simpleData.idKey.html new file mode 100644 index 00000000..43df2605 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.data.simpleData.idKey.html @@ -0,0 +1,32 @@ +
              +
              +

              Stringsetting.data.simpleData.idKey

              +

              Overview[ depends on jquery.ztree.core js ]

              +
              +

              +
              +

              The node data's attribute to save node data's unique identifier. It is valid when [setting.data.simpleData.enable = true]

              +

              Default: "id"

              +
              +
              +

              Examples of setting

              +

              1. use the simple data format

              +
              var setting = {
              +	data: {
              +		simpleData: {
              +			enable: true,
              +			idKey: "id",
              +			pIdKey: "pId",
              +			rootPId: 0,
              +		}
              +	}
              +};
              +var treeNodes = [
              +    {"id":1, "pId":0, "name":"test1"},
              +    {"id":11, "pId":1, "name":"test11"},
              +    {"id":12, "pId":1, "name":"test12"},
              +    {"id":111, "pId":11, "name":"test111"}
              +];
              +......
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.data.simpleData.pIdKey.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.data.simpleData.pIdKey.html new file mode 100644 index 00000000..8378c6e3 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.data.simpleData.pIdKey.html @@ -0,0 +1,32 @@ +
              +
              +

              Stringsetting.data.simpleData.pIdKey

              +

              Overview[ depends on jquery.ztree.core js ]

              +
              +

              +
              +

              The node data's attribute to save its parent node data's unique identifier. It is valid when [setting.data.simpleData.enable = true]

              +

              Default: "pId"

              +
              +
              +

              Examples of setting

              +

              1. use the simple data format

              +
              var setting = {
              +	data: {
              +		simpleData: {
              +			enable: true,
              +			idKey: "id",
              +			pIdKey: "pId",
              +			rootPId: 0
              +		}
              +	}
              +};
              +var treeNodes = [
              +    {"id":1, "pId":0, "name":"test1"},
              +    {"id":11, "pId":1, "name":"test11"},
              +    {"id":12, "pId":1, "name":"test12"},
              +    {"id":111, "pId":11, "name":"test111"}
              +];
              +......
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.data.simpleData.rootPId.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.data.simpleData.rootPId.html new file mode 100644 index 00000000..61c9bbd0 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.data.simpleData.rootPId.html @@ -0,0 +1,32 @@ +
              +
              +

              String / Numbersetting.data.simpleData.rootPId

              +

              Overview[ depends on jquery.ztree.core js ]

              +
              +

              +
              +

              Set the default value of root's 'pIdKey' specified attribute values​​. It is valid when [setting.data.simpleData.enable = true]

              +

              Default: null

              +
              +
              +

              Examples of setting

              +

              1. use the simple data format

              +
              var setting = {
              +	data: {
              +		simpleData: {
              +			enable: true,
              +			idKey: "id",
              +			pIdKey: "pId",
              +			rootPId: 0
              +		}
              +	}
              +};
              +var treeNodes = [
              +    {"id":1, "pId":0, "name":"test1"},
              +    {"id":11, "pId":1, "name":"test11"},
              +    {"id":12, "pId":1, "name":"test12"},
              +    {"id":111, "pId":11, "name":"test111"}
              +];
              +......
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.edit.drag.autoExpandTrigger.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.edit.drag.autoExpandTrigger.html new file mode 100644 index 00000000..804ee66a --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.edit.drag.autoExpandTrigger.html @@ -0,0 +1,29 @@ +
              +
              +

              Booleansetting.edit.drag.autoExpandTrigger

              +

              Overview[ depends on jquery.ztree.exedit js ]

              +
              +

              +
              +

              When drag node cause the parent node is automatically expanded, set whether to allow to trigger the 'onExpand' callback. It is valid when [setting.edit.enable = true]

              +

              Default: false

              +
              +
              +

              Boolean Format

              +
              +

              true means: trigger the 'onExpand' callback.

              +

              false means: don't trigger the 'onExpand' callback.

              +
              +

              Examples of setting

              +

              1. Set to allow to trigger the 'onExpand' callback

              +
              var setting = {
              +	edit: {
              +		enable: true,
              +		drag: {
              +			autoExpandTrigger: true
              +		}
              +	}
              +};
              +......
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.edit.drag.autoOpenTime.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.edit.drag.autoOpenTime.html new file mode 100644 index 00000000..74982afa --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.edit.drag.autoOpenTime.html @@ -0,0 +1,25 @@ +
              +
              +

              Numbersetting.edit.drag.autoOpenTime

              +

              Overview[ depends on jquery.ztree.exedit js ]

              +
              +

              +
              +

              Drag to the parent node, the parent node auto expand time interval. (Unit: ms) It is valid when [setting.edit.enable = true]

              +

              Default: 500

              +

              Please adjust the value according to needs.

              +
              +
              +

              Examples of setting

              +

              1. When drag node to other parent node, expand it at once.

              +
              var setting = {
              +	edit: {
              +		enable: true,
              +		drag: {
              +			autoOpenTime: 0
              +		}
              +	}
              +};
              +......
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.edit.drag.borderMax.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.edit.drag.borderMax.html new file mode 100644 index 00000000..edbb752b --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.edit.drag.borderMax.html @@ -0,0 +1,25 @@ +
              +
              +

              Numbersetting.edit.drag.borderMax

              +

              Overview[ depends on jquery.ztree.exedit js ]

              +
              +

              +
              +

              When drag a node to root, the zTree's inner border width. (Unit: px) It is valid when [setting.edit.enable = true]

              +

              Default: 10

              +

              Please adjust the value according to needs.

              +
              +
              +

              Examples of setting

              +

              1. adjust the inner border width is 20px

              +
              var setting = {
              +	edit: {
              +		enable: true,
              +		drag: {
              +			borderMax: 20
              +		}
              +	}
              +};
              +......
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.edit.drag.borderMin.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.edit.drag.borderMin.html new file mode 100644 index 00000000..e8458530 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.edit.drag.borderMin.html @@ -0,0 +1,25 @@ +
              +
              +

              Numbersetting.edit.drag.borderMin

              +

              Overview[ depends on jquery.ztree.exedit js ]

              +
              +

              +
              +

              When drag a node to root, the zTree's outer border width. (Unit: px) It is valid when [setting.edit.enable = true]

              +

              Default: -5

              +

              Please adjust the value according to needs.

              +
              +
              +

              Examples of setting

              +

              1. adjust the outer border width is 10px

              +
              var setting = {
              +	edit: {
              +		enable: true,
              +		drag: {
              +			borderMin: -10
              +		}
              +	}
              +};
              +......
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.edit.drag.inner.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.edit.drag.inner.html new file mode 100644 index 00000000..1065df3b --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.edit.drag.inner.html @@ -0,0 +1,60 @@ +
              +
              +

              Boolean / Function(treeId, treeNodes, targetNode)setting.edit.drag.inner

              +

              Overview[ depends on jquery.ztree.exedit js ]

              +
              +

              +
              +

              When drag one node to the target node, set whether to allow the node to be the target node's child. It is valid when [setting.edit.enable = true]

              +

              If the target node is root, so zTree will only trigger 'inner' and not trigger 'prev / next'.

              +

              This function mainly for the appropriate limit drag and drop (auxiliary arrow), it requires a combination of 'prev, next' together, to achieve full functionality.

              +

              Default: true

              +
              +
              +

              Boolean Format

              +
              +

              true means: allow the node to be the target node's child.

              +

              false means: don't allow the node to be the target node's child.

              +
              +

              Function Parameter Descriptions

              +
              +

              treeIdString

              +

              zTree unique identifier: treeId, easy for users to control.

              +

              treeNodesArray(JSON)

              +

              A collection of the nodes which has been dragged

              +

              targetNodeJSON

              +

              JSON data object of the target node which treeNodes are draged over.

              +

              If the treeNodes will be root node, the targetNode = null

              +

              Return Boolean

              +

              return true or false

              +
              +

              Examples of setting & function

              +

              1. disable to drag the node to the target node's inner.

              +
              var setting = {
              +	edit: {
              +		enable: true,
              +		drag: {
              +			prev: true,
              +			next: true,
              +			inner: false
              +		}
              +	}
              +};
              +......
              +

              2. disable to drag the node to be root node's child.

              +
              function canInner(treeId, nodes, targetNode) {
              +	return !(targetNode && targetNode.level === 0);
              +}
              +var setting = {
              +	edit: {
              +		enable: true,
              +		drag: {
              +			prev: true,
              +			next: true,
              +			inner: canInner
              +		}
              +	}
              +};
              +......
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.edit.drag.isCopy.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.edit.drag.isCopy.html new file mode 100644 index 00000000..df39a8ae --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.edit.drag.isCopy.html @@ -0,0 +1,32 @@ +
              +
              +

              Booleansetting.edit.drag.isCopy

              +

              Overview[ depends on jquery.ztree.exedit js ]

              +
              +

              +
              +

              When drag-drop node, set whether to allow to copy node. It is valid when [setting.edit.enable = true]

              +

              Default: true

              +
              +
              +

              Rules Description

              +
              +

              1. If isCopy = true and isMove = true, when drag-drop node, press Ctrl-Key can copy node, don't press Ctrl-Key can move node.

              +

              2. If isCopy = true and isMove = false, when drag-drop node, will copy node.

              +

              3. If isCopy = false and isMove = true, when drag-drop node, will move node.

              +

              4. If isCopy = false and isMove = false, so disable to drag-drop node.

              +
              +

              Examples of setting

              +

              1. all of the drag-drop operation will copy node.

              +
              var setting = {
              +	edit: {
              +		enable: true,
              +		drag: {
              +			isCopy: true,
              +			isMove: false
              +		}
              +	}
              +};
              +......
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.edit.drag.isMove.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.edit.drag.isMove.html new file mode 100644 index 00000000..78cd8d34 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.edit.drag.isMove.html @@ -0,0 +1,32 @@ +
              +
              +

              Booleansetting.edit.drag.isMove

              +

              Overview[ depends on jquery.ztree.exedit js ]

              +
              +

              +
              +

              When drag-drop node, set whether to allow to move node. It is valid when [setting.edit.enable = true]

              +

              Default: true

              +
              +
              +

              Rules Description

              +
              +

              1. If isCopy = true and isMove = true, when drag-drop node, press Ctrl-Key can copy node, don't press Ctrl-Key can move node.

              +

              2. If isCopy = true and isMove = false, when drag-drop node, will copy node.

              +

              3. If isCopy = false and isMove = true, when drag-drop node, will move node.

              +

              4. If isCopy = false and isMove = false, so disable to drag-drop node.

              +
              +

              Examples of setting

              +

              1. all of the drag-drop operation will move node.

              +
              var setting = {
              +	edit: {
              +		enable: true,
              +		drag: {
              +			isCopy: false,
              +			isMove: true
              +		}
              +	}
              +};
              +......
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.edit.drag.maxShowNodeNum.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.edit.drag.maxShowNodeNum.html new file mode 100644 index 00000000..dbc3ae47 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.edit.drag.maxShowNodeNum.html @@ -0,0 +1,25 @@ +
              +
              +

              Numbersetting.edit.drag.maxShowNodeNum

              +

              Overview[ depends on jquery.ztree.exedit js ]

              +
              +

              +
              +

              When dragging more than one sibling node, the floating layer shows the maximum number of nodes. zTree using '...' instead of redundant nodes. It is valid when [setting.edit.enable = true]

              +

              Default: 5

              +

              Please adjust the value according to needs.

              +
              +
              +

              Examples of setting

              +

              1. Set the maximum number is 10

              +
              var setting = {
              +	edit: {
              +		enable: true,
              +		drag: {
              +			maxShowNodeNum: 10
              +		}
              +	}
              +};
              +......
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.edit.drag.minMoveSize.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.edit.drag.minMoveSize.html new file mode 100644 index 00000000..8270a993 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.edit.drag.minMoveSize.html @@ -0,0 +1,25 @@ +
              +
              +

              Numbersetting.edit.drag.minMoveSize

              +

              Overview[ depends on jquery.ztree.exedit js ]

              +
              +

              +
              +

              The minimum offset which used to determine the drag operator start. (Unit: px) It is valid when [setting.edit.enable = true]

              +

              Please adjust the value according to needs. Note: If it is too small, will easily lead to misoperation when you click mouse.

              +

              Default: 5

              +
              +
              +

              Examples of setting

              +

              1. Set the minimum offset is 10px.

              +
              var setting = {
              +	edit: {
              +		enable: true,
              +		drag: {
              +			minMoveSize: 10
              +		}
              +	}
              +};
              +......
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.edit.drag.next.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.edit.drag.next.html new file mode 100644 index 00000000..82eb6fba --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.edit.drag.next.html @@ -0,0 +1,59 @@ +
              +
              +

              Boolean / Function(treeId, treeNodes, targetNode)setting.edit.drag.next

              +

              Overview[ depends on jquery.ztree.exedit js ]

              +
              +

              +
              +

              When drag one node to the target node, set whether to allow the node to be the target node's next sibling. It is valid when [setting.edit.enable = true]

              +

              If the target node is root, so zTree will only trigger 'inner' and not trigger 'prev / next'.

              +

              This function mainly for the appropriate limit drag and drop (auxiliary arrow), it requires a combination of 'prev, inner' together, to achieve full functionality.

              +

              Default: true

              +
              +
              +

              Boolean Format

              +
              +

              true means: allow the node to be the target node's next sibling.

              +

              false means: don't allow the node to be the target node's next sibling.

              +
              +

              Function Parameter Descriptions

              +
              +

              treeIdString

              +

              zTree unique identifier: treeId, easy for users to control.

              +

              treeNodesArray(JSON)

              +

              A collection of the nodes which has been dragged

              +

              targetNodeJSON

              +

              JSON data object of the target node which treeNodes are draged over.

              +

              Return Boolean

              +

              return true or false

              +
              +

              Examples of setting & function

              +

              1. disable to drag the node to the target node's next sibling.

              +
              var setting = {
              +	edit: {
              +		enable: true,
              +		drag: {
              +			prev: true,
              +			next: false,
              +			inner: true
              +		}
              +	}
              +};
              +......
              +

              2. disable to drag the node to be all of the parent nodes's next sibling.

              +
              function canNext(treeId, nodes, targetNode) {
              +	return !targetNode.isParent;
              +}
              +var setting = {
              +	edit: {
              +		enable: true,
              +		drag: {
              +			prev: true,
              +			next: canNext,
              +			inner: true
              +		}
              +	}
              +};
              +......
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.edit.drag.prev.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.edit.drag.prev.html new file mode 100644 index 00000000..de6f0c82 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.edit.drag.prev.html @@ -0,0 +1,59 @@ +
              +
              +

              Boolean / Function(treeId, treeNodes, targetNode)setting.edit.drag.prev

              +

              Overview[ depends on jquery.ztree.exedit js ]

              +
              +

              +
              +

              When drag one node to the target node, set whether to allow the node to be the target node's previous sibling. It is valid when [setting.edit.enable = true]

              +

              If the target node is root, so zTree will only trigger 'inner' and not trigger 'prev / next'.

              +

              This function mainly for the appropriate limit drag and drop (auxiliary arrow), it requires a combination of 'next, inner' together, to achieve full functionality.

              +

              Default: true

              +
              +
              +

              Boolean Format

              +
              +

              true means: allow the node to be the target node's previous sibling.

              +

              false means: don't allow the node to be the target node's previous sibling.

              +
              +

              Function Parameter Descriptions

              +
              +

              treeIdString

              +

              zTree unique identifier: treeId, easy for users to control.

              +

              treeNodesArray(JSON)

              +

              A collection of the nodes which has been dragged

              +

              targetNodeJSON

              +

              JSON data object of the target node which treeNodes are draged over.

              +

              Return Boolean

              +

              return true or false

              +
              +

              Examples of setting & function

              +

              1. disable to drag the node to the target node's previous sibling.

              +
              var setting = {
              +	edit: {
              +		enable: true,
              +		drag: {
              +			prev: false,
              +			next: true,
              +			inner: true
              +		}
              +	}
              +};
              +......
              +

              2. disable to drag the node to be all of the parent nodes's previous sibling.

              +
              function canPrev(treeId, nodes, targetNode) {
              +	return !targetNode.isParent;
              +}
              +var setting = {
              +	edit: {
              +		enable: true,
              +		drag: {
              +			prev: canPrev,
              +			next: true,
              +			inner: true
              +		}
              +	}
              +};
              +......
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.edit.editNameSelectAll.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.edit.editNameSelectAll.html new file mode 100644 index 00000000..a030359d --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.edit.editNameSelectAll.html @@ -0,0 +1,27 @@ +
              +
              +

              Booleansetting.edit.editNameSelectAll

              +

              Overview[ depends on jquery.ztree.exedit js ]

              +
              +

              +
              +

              When edit node's name, the text in input is selected or unselected. It is valid when [setting.edit.enable = true]

              +

              Default: false

              +
              +
              +

              Boolean Format

              +
              +

              true means: when show the input, the text in input is selected

              +

              false means: when show the input, the text in input is not selected

              +
              +

              Examples of setting

              +

              1. When edit node's name, the text in input is selected.

              +
              var setting = {
              +	edit: {
              +		enable: true,
              +		editNameSelectAll: true
              +	}
              +};
              +......
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.edit.enable.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.edit.enable.html new file mode 100644 index 00000000..ec9d2b31 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.edit.enable.html @@ -0,0 +1,39 @@ +
              +
              +

              Booleansetting.edit.enable

              +

              Overview[ depends on jquery.ztree.exedit js ]

              +
              +

              +
              +

              Set zTree is in edit mode

              +

              Please set this attribute before zTree initialization. If you need to change the edit mode after the initialization, please use zTreeObj.setEditable() method.

              +

              Default: false

              +
              +
              +

              Boolean Format

              +
              +

              true means: zTree is in edit mode.

              +

              false means: zTree is not in edit mode.

              +
              +

              Editing Rules Description

              +
              +

              1. When click the node, it will not open 'node.url' specified URL. +
              2. Support for dynamic tree editing. +
              3. You can drag-drop nodes, and support drag-drop nodes between multiple trees. +
              4. Support use drag-drop to copy or move the node. (Reference: setting.edit.drag.isCopy / setting.edit.drag.isMove) +
              5. You can use the Edit button to modify the name attribute. +
              6. You can use the Remove button to remove the node. +
              +

              +

              Please note that letter case, do not change.

              +
              +

              Examples of setting

              +

              1. edit the tree

              +
              var setting = {
              +	edit: {
              +		enable: true
              +	}
              +};
              +......
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.edit.removeTitle.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.edit.removeTitle.html new file mode 100644 index 00000000..e2175279 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.edit.removeTitle.html @@ -0,0 +1,48 @@ +
              +
              +

              String / Function(treeId, treeNode)setting.edit.removeTitle

              +

              Overview[ depends on jquery.ztree.exedit js ]

              +
              +

              +
              +

              the title of the remove button DOM. It is valid when [setting.edit.enable = true & setting.edit.showRemoveBtn = true]

              +

              Default: "remove"

              +
              +
              +

              String Format

              +
              +

              When the mouse over the remove button, the browser auto pop-up message content.

              +
              +

              Function Parameter Descriptions

              +
              +

              treeIdString

              +

              zTree unique identifier: treeId, easy for users to control.

              +

              treeNodeJSON

              +

              JSON data object of the node which show the remove button

              +

              Return String

              +

              Return value is same as 'String Format'

              +
              +

              Examples of setting & function

              +

              1. Set title is 'remove the node' about all the remove button

              +
              var setting = {
              +	edit: {
              +		enable: true,
              +		showRemoveBtn: true,
              +		removeTitle: "remove the node"
              +	}
              +};
              +......
              +

              2. Set title is 'remove the parent node' about the parent node, and is 'remove the leaf node' about the leaf node

              +
              function setRemoveTitle(treeId, treeNode) {
              +	return treeNode.isParent ? "remove the parent node":"remove the leaf node";
              +}
              +var setting = {
              +	edit: {
              +		enable: true,
              +		showRemoveBtn: true,
              +		removeTitle: setRemoveTitle
              +	}
              +};
              +......
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.edit.renameTitle.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.edit.renameTitle.html new file mode 100644 index 00000000..b8ce5a6b --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.edit.renameTitle.html @@ -0,0 +1,48 @@ +
              +
              +

              String / Function(treeId, treeNode)setting.edit.renameTitle

              +

              Overview[ depends on jquery.ztree.exedit js ]

              +
              +

              +
              +

              the title of the rename button DOM. It is valid when [setting.edit.enable = true & setting.edit.showRenameBtn = true]

              +

              Default: "rename"

              +
              +
              +

              String Format

              +
              +

              When the mouse over the rename button, the browser auto pop-up message content.

              +
              +

              Function Parameter Descriptions

              +
              +

              treeIdString

              +

              zTree unique identifier: treeId, easy for users to control.

              +

              treeNodeJSON

              +

              JSON data object of the node which show the rename button

              +

              Return String

              +

              return value is same as 'String Format'

              +
              +

              Examples of setting & function

              +

              1. Set title is 'rename the node' about all the rename button

              +
              var setting = {
              +	edit: {
              +		enable: true,
              +		showRenameBtn: true,
              +		renameTitle: "rename the node"
              +	}
              +};
              +......
              +

              2. Set title is 'rename the parent node' about the parent node, and is 'rename the leaf node' about the leaf node

              +
              function setRenameTitle(treeId, treeNode) {
              +	return treeNode.isParent ? "rename the parent node":"rename the leaf node";
              +}
              +var setting = {
              +	edit: {
              +		enable: true,
              +		showRenameBtn: true,
              +		renameTitle: setRenameTitle
              +	}
              +};
              +......
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.edit.showRemoveBtn.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.edit.showRemoveBtn.html new file mode 100644 index 00000000..f0f1fe15 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.edit.showRemoveBtn.html @@ -0,0 +1,50 @@ +
              +
              +

              Boolean / Function(treeId, treeNode)setting.edit.showRemoveBtn

              +

              Overview[ depends on jquery.ztree.exedit js ]

              +
              +

              +
              +

              Set to show or hide the remove button. It is valid when [setting.edit.enable = true]

              +

              When you click the remove button:

              +

              1. zTree will trigger the setting.callback.beforeRemove callback, and you can decide whether to allow delete.

              +

              2. If you don't set the 'beforeRemove' or the 'beforeRemove' callback return true, so zTree will trigger the setting.callback.onRemove callback after remove the node.

              +

              Default: true

              +
              +
              +

              Boolean Format

              +
              +

              true means: show the remove button

              +

              false means: hide the remove button

              +
              +

              Function Parameter Descriptions

              +
              +

              treeIdString

              +

              zTree unique identifier: treeId, easy for users to control.

              +

              treeNodeJSON

              +

              JSON data object of the node which show the remove button

              +

              Return Boolean

              +

              Return value is same as 'Boolean Format'

              +
              +

              Examples of setting & function

              +

              1. Hide the remove button

              +
              var setting = {
              +	edit: {
              +		enable: true,
              +		showRemoveBtn: false
              +	}
              +};
              +......
              +

              2. Hide the remove button of parent node

              +
              function setRemoveBtn(treeId, treeNode) {
              +	return !treeNode.isParent;
              +}
              +var setting = {
              +	edit: {
              +		enable: true,
              +		showRemoveBtn: setRemoveBtn
              +	}
              +};
              +......
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.edit.showRenameBtn.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.edit.showRenameBtn.html new file mode 100644 index 00000000..4fe2f581 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.edit.showRenameBtn.html @@ -0,0 +1,52 @@ +
              +
              +

              Boolean / Function(treeId, treeNode)setting.edit.showRenameBtn

              +

              Overview[ depends on jquery.ztree.exedit js ]

              +
              +

              +
              +

              Set to show or hide the rename button. It is valid when [setting.edit.enable = true]

              +

              When you click the rename button:

              +

              1. Click the rename button, you can rename the node.

              +

              2. After rename operation (the input DOM blur or press the Enter Key), zTree will trigger the setting.callback.beforeRename callback, and you can decide whether to allow rename.

              +

              3. If the 'beforeRename' callback return false, so zTree will keep the edit status. (Press the ESC key, can be restored to the original state.

              +

              4. If you don't set the 'beforeRename' or the 'beforeRename' callback return true, so zTree will trigger the setting.callback.onRename callback after rename the node.

              +

              Default: true

              +
              +
              +

              Boolean Format

              +
              +

              true means: show the rename button

              +

              false means: hide the rename button

              +
              +

              Function Parameter Descriptions

              +
              +

              treeIdString

              +

              zTree unique identifier: treeId, easy for users to control.

              +

              treeNodeJSON

              +

              JSON data object of the node which show the rename button

              +

              Return Boolean

              +

              Return value is same as 'Boolean Format'

              +
              +

              Examples of setting & function

              +

              1. Hide the rename button

              +
              var setting = {
              +	edit: {
              +		enable: true,
              +		showRenameBtn: false
              +	}
              +};
              +......
              +

              2. Hide the rename button of parent node

              +
              function setRenameBtn(treeId, treeNode) {
              +	return !treeNode.isParent;
              +}
              +var setting = {
              +	edit: {
              +		enable: true,
              +		showRenameBtn: setRenameBtn
              +	}
              +};
              +......
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.treeId.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.treeId.html new file mode 100644 index 00000000..e4b04b37 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.treeId.html @@ -0,0 +1,14 @@ +
              +
              +

              Stringsetting.treeId

              +

              Overview[ depends on jquery.ztree.core js ]

              +
              +

              +
              +

              zTree unique identifier. After the initialization, it equals to the id attribute value of the user-defined zTree container.

              +

              Do not initialize or modify it, it is an internal argument.

              +
              +
              + +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.treeObj.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.treeObj.html new file mode 100644 index 00000000..30eb66c4 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.treeObj.html @@ -0,0 +1,14 @@ +
              +
              +

              Objectsetting.treeObj

              +

              Overview[ depends on jquery.ztree.core js ]

              +
              +

              +
              +

              zTree DOM's jQuery object, the main function: easy to internal operations.

              +

              Do not initialize or modify it, it is an internal argument.

              +
              +
              + +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.view.addDiyDom.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.view.addDiyDom.html new file mode 100644 index 00000000..fa22befd --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.view.addDiyDom.html @@ -0,0 +1,40 @@ +
              +
              +

              Function(treeId, treeNode)setting.view.addDiyDom

              +

              Overview[ depends on jquery.ztree.core js ]

              +
              +

              +
              +

              This function used to display the custom control on the node.

              +

              1. If you have huge node data, please note: this function will affect the initialization performance. If not required, it is recommended not to use this function.

              +

              2. This function is an advanced application, please make sure that a better understanding of zTree before you use it.

              +

              Default: null

              +
              +
              +

              Function Parameter Descriptions

              +
              +

              treeIdString

              +

              zTree unique identifier: treeId, easy for users to control.

              +

              treeNodeJSON

              +

              JSON data object of the node which display the custom control.

              +
              +

              Examples of setting & function

              +

              1. Display button in all nodes.

              +
              var setting = {
              +	view: {
              +		addDiyDom: addDiyDom
              +	}
              +};
              +function addDiyDom(treeId, treeNode) {
              +	var aObj = $("#" + treeNode.tId + "_a");
              +	if ($("#diyBtn_"+treeNode.id).length>0) return;
              +	var editStr = "<span id='diyBtn_space_" +treeNode.id+ "' > </span>"
              +		+ "<button type='button' class='diyBtn1' id='diyBtn_" + treeNode.id
              +		+ "' title='"+treeNode.name+"' onfocus='this.blur();'></button>";
              +	aObj.append(editStr);
              +	var btn = $("#diyBtn_"+treeNode.id);
              +	if (btn) btn.bind("click", function(){alert("diy Button for " + treeNode.name);});
              +};
              +......
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.view.addHoverDom.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.view.addHoverDom.html new file mode 100644 index 00000000..1ea8b6d9 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.view.addHoverDom.html @@ -0,0 +1,45 @@ +
              +
              +

              Function(treeId, treeNode)setting.view.addHoverDom

              +

              Overview[ depends on jquery.ztree.exedit js ]

              +
              +

              +
              +

              Used to display custom control when mouse move over the node. (e.g. the rename and remove button)

              +

              If you use this function, so must set setting.view.removeHoverDom, please make sure that a better understanding of zTree before you use it.

              +

              Default: null

              +
              +
              +

              Function Parameter Descriptions

              +
              +

              treeIdString

              +

              zTree unique identifier: treeId, easy for users to control.

              +

              treeNodeJSON

              +

              JSON data object of the node which need to display the custom control.

              +
              +

              Examples of setting & function

              +

              1. Display a button when mouse move over the node, and hide the button when mouse move out.

              +
              var setting = {
              +	view: {
              +		addHoverDom: addHoverDom,
              +		removeHoverDom: removeHoverDom,
              +		......
              +	}
              +};
              +function addHoverDom(treeId, treeNode) {
              +	var aObj = $("#" + treeNode.tId + "_a");
              +	if ($("#diyBtn_"+treeNode.id).length>0) return;
              +	var editStr = "<span id='diyBtn_space_" +treeNode.id+ "' > </span>"
              +		+ "<button type='button' class='diyBtn1' id='diyBtn_" + treeNode.id
              +		+ "' title='"+treeNode.name+"' onfocus='this.blur();'></button>";
              +	aObj.append(editStr);
              +	var btn = $("#diyBtn_"+treeNode.id);
              +	if (btn) btn.bind("click", function(){alert("diy Button for " + treeNode.name);});
              +};
              +function removeHoverDom(treeId, treeNode) {
              +	$("#diyBtn_"+treeNode.id).unbind().remove();
              +	$("#diyBtn_space_" +treeNode.id).unbind().remove();
              +};
              +......
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.view.autoCancelSelected.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.view.autoCancelSelected.html new file mode 100644 index 00000000..8cc2fbb2 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.view.autoCancelSelected.html @@ -0,0 +1,27 @@ +
              +
              +

              Booleansetting.view.autoCancelSelected

              +

              Overview[ depends on jquery.ztree.core js ]

              +
              +

              +
              +

              When click the selected node while pressing the Ctrl key, allow to cancel selected the node.

              +

              If you don't need this function, please set to false.

              +

              Default: true

              +
              +
              +

              Boolean Format

              +
              +

              true means: press the Ctrl key, can cancel selected node.

              +

              false means: press the Ctrl key, can't cancel selected node.

              +
              +

              Examples of setting

              +

              1. Press the Ctrl key, can't cancel selected node.

              +
              var setting = {
              +	view: {
              +		autoCancelSelected: false
              +	}
              +};
              +......
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.view.dblClickExpand.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.view.dblClickExpand.html new file mode 100644 index 00000000..25176240 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.view.dblClickExpand.html @@ -0,0 +1,45 @@ +
              +
              +

              Boolean / Function(treeId, treeNode)setting.view.dblClickExpand

              +

              Overview[ depends on jquery.ztree.core js ]

              +
              +

              +
              +

              When double-click the parent node, 'dblClickExpand' is used to decide whether to expand the parent node.

              +

              Default: true

              +
              +
              +

              Boolean Format

              +
              +

              true means: When double-click the parent node, zTree will expand the parent node.

              +

              false means: When double-click the parent node, zTree will not expand the parent node.

              +
              +

              Function Pamameter Descriptions

              +
              +

              treeIdString

              +

              zTree unique identifier: treeId, easy for users to control.

              +

              treeNodeJSON

              +

              JSON data object of the node which be double-clicked.

              +

              Return Boolean

              +

              Return value is same as 'Boolean Format'

              +
              +

              Example of setting

              +

              1. When double-click the parent node, zTree will not expand the parent node.

              +
              var setting = {
              +	view: {
              +		dblClickExpand: false
              +	}
              +};
              +......
              +

              2. When double-click the parent node, zTree will expand the parent node which level>0.

              +
              function dblClickExpand(treeId, treeNode) {
              +	return treeNode.level > 0;
              +};
              +var setting = {
              +	view: {
              +		dblClickExpand: dblClickExpand
              +	}
              +};
              +......
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.view.expandSpeed.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.view.expandSpeed.html new file mode 100644 index 00000000..1911e74e --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.view.expandSpeed.html @@ -0,0 +1,31 @@ +
              +
              +

              String / Numbersetting.view.expandSpeed

              +

              Overview[ depends on jquery.ztree.core js ]

              +
              +

              +
              +

              The animation speed of expand or collapse node. As same as 'speed' parameter in jQuery

              +

              In order to ensure zTree operating speed, if use the IE6, zTree will not use animation.

              +

              Default: "fast"

              +
              +
              +

              String Format

              +
              +

              e.g. "slow", "normal", or "fast"

              +

              If set to "", zTree will not use animation.

              +
              +

              Number Format

              +
              +

              How long the animation will run. [Unit: ms] (e.g. 1000)

              +
              +

              Examples of setting

              +

              1. Set the animation speed to slow

              +
              var setting = {
              +	view: {
              +		expandSpeed: "slow"
              +	}
              +};
              +......
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.view.fontCss.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.view.fontCss.html new file mode 100644 index 00000000..1ad5f516 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.view.fontCss.html @@ -0,0 +1,42 @@ +
              +
              +

              JSON / Function(treeId, treeNode)setting.view.fontCss

              +

              Overview[ depends on jquery.ztree.core js ]

              +
              +

              +
              +

              Personalized text style, only applies to <A> object in the node DOM

              +

              Default: {}

              +
              +
              +

              JSON Format

              +
              +

              As same as .css() method in jQuery. e.g. {color:"#ff0011", background:"blue"}

              +
              +

              Function Parameter Descriptions

              +
              +

              treeIdString

              +

              zTree unique identifier: treeId, easy for users to control.

              +

              treeNodeJSON

              +

              JSON data object of the node which use the personalized text style

              +

              Return JSON

              +

              Return value is same as 'JSON Format'. e.g. {color:"#ff0011", background:"blue"}

              +
              +

              Examples of setting & function

              +

              1. Don't modify css file, and set the node name's color to red

              +
              var setting = {
              +	view: {
              +		fontCss : {color:"red"}
              +	}
              +};
              +

              2. Don't modify css file, and set the root node name's color to red

              +
              function setFontCss(treeId, treeNode) {
              +	return treeNode.level == 0 ? {color:"red"} : {};
              +};
              +var setting = {
              +	view: {
              +		fontCss: setFontCss
              +	}
              +};
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.view.nameIsHTML.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.view.nameIsHTML.html new file mode 100644 index 00000000..4fe19ada --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.view.nameIsHTML.html @@ -0,0 +1,28 @@ +
              +
              +

              Booleansetting.view.nameIsHTML

              +

              Overview[ depends on jquery.ztree.core js ]

              +
              +

              +
              +

              Set to use HTML in 'name' attribute.

              +

              If allow HTML, please do check to avoid security issues, e.g. JavaScript Injection...

              +

              Default: false

              +
              +
              +

              Boolean Format

              +
              +

              true means: 'name' attribute can be HTML.

              +

              false means: 'name' attribute is only TEXT.

              +
              +

              Examples of setting

              +

              1. Set to allow HTML

              +
              var setting = {
              +	view: {
              +		nameIsHTML: true
              +	}
              +};
              +var node = {"name":"<font color='red'>test</font>"};
              +......
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.view.removeHoverDom.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.view.removeHoverDom.html new file mode 100644 index 00000000..0c70aff2 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.view.removeHoverDom.html @@ -0,0 +1,45 @@ +
              +
              +

              Function(treeId, treeNode)setting.view.removeHoverDom

              +

              Overview[ depends on jquery.ztree.exedit js ]

              +
              +

              +
              +

              Used to hide custom control when mouse move out the node. (e.g. the rename and remove button)

              +

              If you use this function, so must set setting.view.addHoverDom, please make sure that a better understanding of zTree before you use it.

              +

              Default: null

              +
              +
              +

              Function Parameter Descriptions

              +
              +

              treeIdString

              +

              zTree unique identifier: treeId, easy for users to control.

              +

              treeNodeJSON

              +

              JSON data object of the node which need to hide the custom control.

              +
              +

              Examples of setting & function

              +

              1. Display a button when mouse move over the node, and hide the button when mouse move out.

              +
              var setting = {
              +	view: {
              +		addHoverDom: addHoverDom,
              +		removeHoverDom: removeHoverDom,
              +		......
              +	}
              +};
              +function addHoverDom(treeId, treeNode) {
              +	var aObj = $("#" + treeNode.tId + "_a");
              +	if ($("#diyBtn_"+treeNode.id).length>0) return;
              +	var editStr = "<span id='diyBtn_space_" +treeNode.id+ "' > </span>"
              +		+ "<button type='button' class='diyBtn1' id='diyBtn_" + treeNode.id
              +		+ "' title='"+treeNode.name+"' onfocus='this.blur();'></button>";
              +	aObj.append(editStr);
              +	var btn = $("#diyBtn_"+treeNode.id);
              +	if (btn) btn.bind("click", function(){alert("diy Button for " + treeNode.name);});
              +};
              +function removeHoverDom(treeId, treeNode) {
              +	$("#diyBtn_"+treeNode.id).unbind().remove();
              +	$("#diyBtn_space_" +treeNode.id).unbind().remove();
              +};
              +......
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.view.selectedMulti.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.view.selectedMulti.html new file mode 100644 index 00000000..ffa129de --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.view.selectedMulti.html @@ -0,0 +1,28 @@ +
              +
              +

              Booleansetting.view.selectedMulti

              +

              Overview[ depends on jquery.ztree.core js ]

              +
              +

              +
              +

              Set whether to allow select multiple nodes.

              +

              Default: true

              +
              +
              +

              Boolean Format

              +
              +

              true mean: you can select multiple nodes.

              +

              false mean: you can only select one node.

              +

              1. Press Ctrl key, you can select multiple nodes.

              +

              2、This attribute don't affect the feature of cancel select node. ( please see setting.view.autoCancelSelected )

              +
              +

              Examples of setting

              +

              1. Only select one node.

              +
              var setting = {
              +	view: {
              +		selectedMulti: false
              +	}
              +};
              +......
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.view.showIcon.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.view.showIcon.html new file mode 100644 index 00000000..9adf0034 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.view.showIcon.html @@ -0,0 +1,45 @@ +
              +
              +

              Boolean / Function(treeId, treeNode)setting.view.showIcon

              +

              Overview[ depends on jquery.ztree.core js ]

              +
              +

              +
              +

              Set to show or hide node icon.

              +

              Default: true

              +
              +
              +

              Boolean Format

              +
              +

              true means: show node icon.

              +

              false means: hide node icon.

              +
              +

              Function Parameter Descriptions

              +
              +

              treeIdString

              +

              zTree unique identifier: treeId, easy for users to control.

              +

              treeNodeJSON

              +

              JSON data object of the node which need to show icon.

              +

              Return Boolean

              +

              Return value is same as 'Boolean Format'

              +
              +

              Examples of setting & function

              +

              1. Hide node icon

              +
              var setting = {
              +	view: {
              +		showIcon: false
              +	}
              +};
              +......
              +

              2. Hide node icon which level=2

              +
              function showIconForTree(treeId, treeNode) {
              +	return treeNode.level != 2;
              +};
              +var setting = {
              +	view: {
              +		showIcon: showIconForTree
              +	}
              +};
              +......
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.view.showLine.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.view.showLine.html new file mode 100644 index 00000000..a5540149 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.view.showLine.html @@ -0,0 +1,26 @@ +
              +
              +

              Booleansetting.view.showLine

              +

              Overview[ depends on jquery.ztree.core js ]

              +
              +

              +
              +

              Set to show or hide line.

              +

              Default: true

              +
              +
              +

              Boolean Format

              +
              +

              true means: show line.

              +

              false means: hide line.

              +
              +

              Examples of setting

              +

              1. Hide line

              +
              var setting = {
              +	view: {
              +		showLine: false
              +	}
              +};
              +......
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.view.showTitle.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.view.showTitle.html new file mode 100644 index 00000000..66bb26e6 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.view.showTitle.html @@ -0,0 +1,47 @@ +
              +
              +

              Boolean / Function(treeId, treeNode)setting.view.showTitle

              +

              Overview[ depends on jquery.ztree.core js ]

              +
              +

              +
              +

              Set to show or hide the 'title' attribute of node DOM.

              +

              Please see the setting.data.key.title attribute

              +

              Default: true

              +
              +
              +

              Boolean Format

              +
              +

              true means: show the 'title' attribute of node DOM.

              +

              false means: hide the 'title' attribute of node DOM.

              +

              When setting.view.showTitle = true & setting.data.key.title = '', zTree will set the 'setting.data.key.name' attribute to the 'setting.data.key.title'.

              +
              +

              Function Parameter Descriptions

              +
              +

              treeIdString

              +

              zTree unique identifier: treeId, easy for users to control.

              +

              treeNodeJSON

              +

              JSON data object of the node which need to show title.

              +

              Return Boolean

              +

              Return value is same as 'Boolean Format'

              +
              +

              Examples of setting & function

              +

              1. Hide the 'title' attribute of node DOM.

              +
              var setting = {
              +	view: {
              +		showTitle: false
              +	}
              +};
              +......
              +

              2. Hide the 'title' attribute of node DOM which level=2.

              +
              function showTitleForTree(treeId, treeNode) {
              +	return treeNode.level != 2;
              +};
              +var setting = {
              +	view: {
              +		showTitle: showTitleForTree
              +	}
              +};
              +......
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.view.txtSelectedEnable.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.view.txtSelectedEnable.html new file mode 100644 index 00000000..a3809300 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/setting.view.txtSelectedEnable.html @@ -0,0 +1,26 @@ +
              +
              +

              Booleansetting.view.txtSelectedEnable

              +

              Overview[ depends on jquery.ztree.core js ]

              +
              +

              +
              +

              Set to allow or don't allow to select the text which in zTree's DOM.

              +

              Default: false

              +
              +
              +

              Boolean Format

              +
              +

              true means: Allow to select the txt which in zTree's DOM.

              +

              false means: Don't allow to select the txt which in zTree's DOM.

              +
              +

              Examples of setting & function

              +

              1. Allow to select the txt which in zTree's DOM.

              +
              var setting = {
              +	view: {
              +		txtSelectedEnable: true
              +	}
              +};
              +......
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/treeNode.check_Child_State.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/treeNode.check_Child_State.html new file mode 100644 index 00000000..48efb79a --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/treeNode.check_Child_State.html @@ -0,0 +1,43 @@ +
              +
              +

              NumbertreeNode.check_Child_State

              +

              Overview[ depends on jquery.ztree.excheck js ]

              +
              +

              +
              +

              Used to record the node's half-checked state about its all child nodes's checkbox or radio. It is valid when [setting.check.enable = true]

              +

              zTree v3.x provides treeNode.getCheckStatus () method to get an accurate the half-checked status.

              +

              Do not initialize or modify it, it is an internal argument.

              +

              Default: true

              +
              +
              +

              Number Format

              +
              +

              Rules:

              + + + + + + + + + + + +
              setting.check.checkType = "checkbox"
              treeNode.check_Child_StateChecked Status Description
              -1Has no child nodes or all child nodes's 'nocheck' attribute is true.
              0All of the child nodes has not been checked.
              1Some of the child nodes has been checked.
              2All of the child nodes has been checked.
              +
              + + + + + + + + + + +
              setting.check.checkType = "radio"
              treeNode.check_Child_StateChecked Status Description
              -1Has no child nodes or all child nodes's 'nocheck' attribute is true.
              0All of the child nodes has not been checked.
              2Some of the child nodes has been checked.
              +
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/treeNode.check_Focus.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/treeNode.check_Focus.html new file mode 100644 index 00000000..77b73598 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/treeNode.check_Focus.html @@ -0,0 +1,19 @@ +
              +
              +

              BooleantreeNode.check_Focus

              +

              Overview[ depends on jquery.ztree.excheck js ]

              +
              +

              +
              +

              Used to record the status which the checkbox or radio get focus. It is valid when [setting.check.enable = true]

              +

              Do not initialize or modify it, it is an internal argument.

              +

              Default: false

              +
              +
              +

              Boolean Format

              +
              +

              true means: mouse move over the checkbox

              +

              false means: mouse move out the checkbox

              +
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/treeNode.checked.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/treeNode.checked.html new file mode 100644 index 00000000..8a55f3d6 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/treeNode.checked.html @@ -0,0 +1,32 @@ +
              +
              +

              BooleantreeNode.checked

              +

              Overview[ depends on jquery.ztree.excheck js ]

              +
              +

              +
              +

              The checked status about node's checkbox or radio. It is valid when [setting.check.enable = true & treeNode.nocheck = false]

              +

              1. If change the 'checked' to other attribute, please set the 'setting.data.key.checked' attribute.

              +

              2. If you create node data, and set 'checked' attribute to true, zTree will check this node's checkbox or radio when zTree is initialized.

              +

              3. Use the treeObj.checkNode or checkAllNodes or updateNode method, you can check or uncheck the node. Please see the API about these methods.

              +

              4. zTree support identification string 'true' & 'false'.

              +

              Default: false

              +
              +
              +

              Boolean Format

              +
              +

              true means: check the checkbox or radio when zTree is initialized.

              +

              false means: uncheck the checkbox or radio when zTree is initialized.

              +
              +

              Examples of treeNode

              +

              1. check the checkbox when zTree is initialized

              +
              var nodes = [
              +{ "id":1, "name":"test1", checked:true },
              +{ "id":2, "name":"test2", checked:true }
              +]
              +

              2. Get the checked status of the first root node

              +
              var treeObj = $.fn.zTree.getZTreeObj("tree");
              +var checked = treeObj.getNodes()[0].checked;
              +
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/treeNode.checkedOld.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/treeNode.checkedOld.html new file mode 100644 index 00000000..ee516260 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/treeNode.checkedOld.html @@ -0,0 +1,25 @@ +
              +
              +

              BooleantreeNode.checkedOld

              +

              Overview[ depends on jquery.ztree.excheck js ]

              +
              +

              +
              +

              The checked status about node's checkbox or radio when zTree was initialized. It is valid when [setting.check.enable = true & treeNode.nocheck = false]

              +

              1. Do not initialize it, it will be initialized when the node is initialized.

              +

              2. If you need to achieve special features, you can use the zTreeObj.getChangeCheckedNodes method and modify the value of 'checkedOld' attribute.

              +

              Default: the value of 'checked' attribute when zTree is initialized

              +
              +
              +

              Boolean Format

              +
              +

              true means: the checkbox or radio is checked when zTree is initialized.

              +

              false means: the checkbox or radio is not checked when zTree is initialized.

              +
              +

              Examples of treeNode

              +

              1. Get the original checked status of the first root node

              +
              var treeObj = $.fn.zTree.getZTreeObj("tree");
              +var checkedOld = treeObj.getNodes()[0].checkedOld;
              +
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/treeNode.children.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/treeNode.children.html new file mode 100644 index 00000000..d765bb96 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/treeNode.children.html @@ -0,0 +1,35 @@ +
              +
              +

              Array(JSON)treeNode.children

              +

              Overview[ depends on jquery.ztree.core js ]

              +
              +

              +
              +

              The data collections of node's child nodes.

              +

              1. If change the 'children' to other attribute, please set the 'setting.data.key.children' attribute.

              +

              2. If you set to use dynamic tree, when a node is expanded which 'isParent' attribute is true and which has no child nodes, zTree will use ajax to get its child nodes.

              +

              Default: undefined

              +
              +
              +

              Array(JSON) Format

              +
              +

              Standard JSON Data object

              +
              +

              Examples of treeNode

              +

              1. Use the standard JSON data object.

              +
              var nodes = [
              +{ "id":1, "name":"test1",
              +	children: [
              +	{ "id":3, "name":"test3"},
              +	{ "id":4, "name":"test4"},
              +	{ "id":5, "name":"test5"}
              +	]
              +},
              +{ "id":2, "name":"test2"  }
              +]
              +

              2. Get the first root node's child nodes

              +
              var treeObj = $.fn.zTree.getZTreeObj("tree");
              +var nodes = treeObj.getNodes()[0].children;
              +
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/treeNode.chkDisabled.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/treeNode.chkDisabled.html new file mode 100644 index 00000000..7a5fcf38 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/treeNode.chkDisabled.html @@ -0,0 +1,28 @@ +
              +
              +

              BooleantreeNode.chkDisabled

              +

              Overview[ depends on jquery.ztree.excheck js ]

              +
              +

              +
              +

              1. Set node's checkbox / radio to disabled. It is valid when [setting.check.enable = true]

              +

              2. zTree support identification string 'true' & 'false'.

              +

              3. Please don't change this attribute of the nodes which have been created. If you want to disable or undisable the nodes, please use 'setChkDisabled()' methods.

              +

              4. When zTree initialize the nodes, if you need to the child nodes automatically inherit the 'chkDisabled' attribute, please see 'setting.check.chkDisabledInherit'.

              +

              Default: false

              +
              +
              +

              Boolean Format

              +
              +

              true means: this node's checkbox / radio is disabled.

              +

              false means: this node's checkbox / radio is able.

              +
              +

              Examples of treeNode

              +

              1. disable some node's checkbox / radio

              +
              var nodes = [
              +	{ "id":1, "name":"test1", "checked":true, "chkDisabled":true},
              +	{ "id":2, "name":"test2", "chkDisabled":true},
              +	{ "id":3, "name":"test3"}
              +]
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/treeNode.click.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/treeNode.click.html new file mode 100644 index 00000000..1f9db626 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/treeNode.click.html @@ -0,0 +1,24 @@ +
              +
              +

              StringtreeNode.click

              +

              Overview[ depends on jquery.ztree.core js ]

              +
              +

              +
              +

              Simple click event operations. As same as : (onclick ="...") the code. If the operation is more complex, please use the onClick callback.

              +

              Because IE is different to other browsers in operating the event of ‘onclick’ and ‘click’ coexistence, please do not use this parameter to control whether to allow the redirection operation (for example: treeNode.click = "return false;"). If there is similar requirements, please do not use the 'url' attribute to save the website address, but use the 'onClick' callback to control jumps.

              +

              Default: undefined

              +
              +
              +

              String Format

              +
              +

              Standard javascript syntax, for example: alert ("test"); etc.

              +
              +

              Examples of treeNode

              +

              1. When click this node, will alert msg.

              +
              var nodes = [
              +	{ "id":1, "name":"Google CN", "url":"http://g.cn", "click":"alert('test');"},
              +	......
              +]
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/treeNode.diy.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/treeNode.diy.html new file mode 100644 index 00000000..68c39ba6 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/treeNode.diy.html @@ -0,0 +1,15 @@ +
              +
              +

              ?treeNode.* DIY *

              +

              Overview[ depends on jquery.ztree.core js ]

              +
              +

              +
              +

              Used to save other custom data of node, do not use the same attribute name with ztree used, the user can freely set.

              +
              +
              +

              Examples of treeNode

              +

              1. Use 'ename' attribute to save more info

              +
              var node = { "id":1, "name":"test1", "ename":"test eName"};
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/treeNode.editNameFlag.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/treeNode.editNameFlag.html new file mode 100644 index 00000000..f60ef2ab --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/treeNode.editNameFlag.html @@ -0,0 +1,19 @@ +
              +
              +

              BooleantreeNode.editNameFlag

              +

              Overview[ depends on jquery.ztree.exedit js ]

              +
              +

              +
              +

              Used to save the node editing name status. It is valid when [setting.edit.enable = true]

              +

              Do not initialize or modify it, it is an internal argument.

              +

              Default: false

              +
              +
              +

              Boolean Format

              +
              +

              true means: node is being edited.

              +

              false means: node is not being edited.

              +
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/treeNode.getCheckStatus.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/treeNode.getCheckStatus.html new file mode 100644 index 00000000..3c9a2e6b --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/treeNode.getCheckStatus.html @@ -0,0 +1,63 @@ +
              +
              +

              Function()treeNode.getCheckStatus

              +

              Overview[ depends on jquery.ztree.excheck js ]

              +
              +

              +
              +

              Get the node's half-checked status of checkbox or radio. It is valid when [setting.check.enable = true]

              +

              Do not initialize or modify it, it is created by the zTree.

              +
              +
              +

              Function Parameter Descriptions

              +
              +

              ReturnJSON

              +
              {
              +	checked: true, //As same as 'treeNode.checked'
              +	half: true  //Rule the table below
              +}
              + + + + + + + + + + + + + + + + + + +
              setting.check.checkType = "checkbox"
              treeNode.checkedtreeNode.check_Child_StatetreeNode.halfCheck half
              --truetrue
               
              true-1falsefalse
              true0falsetrue
              true1falsetrue
              true2falsefalse
               
              false-1falsefalse
              false0falsefalse
              false1falsetrue
              false2falsetrue
              +
              + + + + + + + + + + + + + + + + +
              setting.check.checkType = "radio"
              treeNode.checkedtreeNode.check_Child_StatetreeNode.halfCheck half
              --truetrue
               
              true-1falsefalse
              true0falsefalse
              true2falsetrue
               
              false-1falsefalse
              false0falsefalse
              false2falsetrue
              +
              +

              Examples of treeNode

              +

              1. Get the first root node's half-checked status

              +
              var treeObj = $.fn.zTree.getZTreeObj("tree");
              +var halfCheck = treeObj.getNodes()[0].getCheckStatus();
              +
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/treeNode.getNextNode.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/treeNode.getNextNode.html new file mode 100644 index 00000000..755aa6ee --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/treeNode.getNextNode.html @@ -0,0 +1,27 @@ +
              +
              +

              Function()treeNode.getNextNode

              +

              Overview[ depends on jquery.ztree.core js ]

              +
              +

              +
              +

              Get the treeNode's next sibling node.

              +

              Do not initialize or modify it, it is created by the zTree.

              +
              +
              +

              Function Parameter Descriptions

              +
              +

              ReturnJSON

              +

              JSON data object of the treeNode's next sibling node

              +

              If have not the next node, return null.

              +
              +

              Examples of treeNode

              +

              1. Get the first selected node's next sibling node.

              +
              var treeObj = $.fn.zTree.getZTreeObj("tree");
              +var sNodes = treeObj.getSelectedNodes();
              +if (sNodes.length > 0) {
              +	var node = sNodes[0].getNextNode();
              +}
              +
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/treeNode.getParentNode.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/treeNode.getParentNode.html new file mode 100644 index 00000000..16bab306 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/treeNode.getParentNode.html @@ -0,0 +1,27 @@ +
              +
              +

              Function()treeNode.getParentNode

              +

              Overview[ depends on jquery.ztree.core js ]

              +
              +

              +
              +

              Get the treeNode's parent node.

              +

              Do not initialize or modify it, it is created by the zTree.

              +
              +
              +

              Function Parameter Descriptions

              +
              +

              ReturnJSON

              +

              JSON data object of treeNode's parent node.

              +

              If treeNode is root, return null.

              +
              +

              Examples of treeNode

              +

              1. Get the first selected node's parent node.

              +
              var treeObj = $.fn.zTree.getZTreeObj("tree");
              +var sNodes = treeObj.getSelectedNodes();
              +if (sNodes.length > 0) {
              +	var node = sNodes[0].getParentNode();
              +}
              +
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/treeNode.getPreNode.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/treeNode.getPreNode.html new file mode 100644 index 00000000..f6745b14 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/treeNode.getPreNode.html @@ -0,0 +1,27 @@ +
              +
              +

              Function()treeNode.getPreNode

              +

              Overview[ depends on jquery.ztree.core js ]

              +
              +

              +
              +

              Get the treeNode's previous sibling node.

              +

              Do not initialize or modify it, it is created by the zTree.

              +
              +
              +

              Function Parameter Descriptions

              +
              +

              ReturnJSON

              +

              JSON data object of the treeNode's previous sibling node

              +

              If have not the previous node, return null.

              +
              +

              Examples of treeNode

              +

              1. Get the first selected node's previous sibling node.

              +
              var treeObj = $.fn.zTree.getZTreeObj("tree");
              +var sNodes = treeObj.getSelectedNodes();
              +if (sNodes.length > 0) {
              +	var node = sNodes[0].getPreNode();
              +}
              +
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/treeNode.halfCheck.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/treeNode.halfCheck.html new file mode 100644 index 00000000..8375326b --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/treeNode.halfCheck.html @@ -0,0 +1,29 @@ +
              +
              +

              BooleantreeNode.halfCheck

              +

              Overview[ depends on jquery.ztree.excheck js ]

              +
              +

              +
              +

              Force node checkBox / radio to the half-checked status. It is valid when [setting.check.enable = true & treeNode.nocheck = false]

              +

              1. If you force to the half-checked status, zTree will not automatically calculated the half-checked status about this node.

              +

              2. Until you set treeNode.halfCheck to false or null, zTree will automatically calculated the half-checked status about this node.

              +

              3. zTree support identification string 'true' & 'false'.

              +

              Defaul: false

              +
              +
              +

              Boolean Format

              +
              +

              true means: the checkbox or radio is half-checked when zTree is initialized.

              +

              false means: the half-checked status will be automatically calculated

              +
              +

              Examples of treeNode

              +

              1. set the half-checked status when zTree is initialized

              +
              var nodes = [
              +{ "id":1, "name":"test1", isParent:true, checked:true, halfCheck:true },
              +{ "id":2, "name":"test2", isParent:true, checked:false, halfCheck:true },
              +{ "id":3, "name":"test3", isParent:true, checked:true },
              +{ "id":4, "name":"test4", isParent:true, checked:false }
              +]
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/treeNode.icon.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/treeNode.icon.html new file mode 100644 index 00000000..4e1c99fa --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/treeNode.icon.html @@ -0,0 +1,33 @@ +
              +
              +

              StringtreeNode.icon

              +

              Overview[ depends on jquery.ztree.core js ]

              +
              +

              +
              +

              URL path of node's custom icon.

              +

              1. If you only set the 'icon' attribute to parent node, the parent node will only show one icon when it is expanded or collapsed.

              +

              2. If you need to show two icons when it is expanded or collapsed, please set the 'treeNode.iconOpen' and 'treeNode.iconClose' attribute.

              +

              3. If you need to use css to set the custom icon, please set the 'treeNode.iconSkin' attribute.

              +

              Default: undefined

              +
              +
              +

              String Format

              +
              +

              Icon image url can be a relative path or absolute path.

              +

              If use a relative path, please note the relationship between icon image and the page, ensure the correct image path.

              +
              +

              Examples of treeNode

              +

              1. Set the custom icon

              +
              var nodes = [
              +	//Only show one icon when it is expanded or collapsed.
              +	{ name:"Parent Node 1", icon:"/img/parent.gif"},
              +
              +	//Show two icons when it is expanded or collapsed.
              +	{ name:"Parent Node 2", iconOpen:"/img/open.gif", iconClose:"/img/close.gif"},
              +
              +	//the custom icon for leaf node
              +	{ name:"Leaf Node", icon:"/img/leaf.gif"}
              +]
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/treeNode.iconClose.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/treeNode.iconClose.html new file mode 100644 index 00000000..2259e8f3 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/treeNode.iconClose.html @@ -0,0 +1,33 @@ +
              +
              +

              StringtreeNode.iconClose

              +

              Overview[ depends on jquery.ztree.core js ]

              +
              +

              +
              +

              URL path of parent node's custom icon when it is collapsed.

              +

              1. Only parent node support this attribute.

              +

              2. This attribute must be used simultaneously with 'iconOpen' attribute.

              +

              3. If you need to use css to set the custom icon, please set the 'treeNode.iconSkin' attribute.

              +

              Default: undefined

              +
              +
              +

              String Format

              +
              +

              Icon image url can be a relative path or absolute path.

              +

              If use a relative path, please note the relationship between icon image and the page, ensure the correct image path.

              +
              +

              Examples of treeNode

              +

              1. Set the custom icon

              +
              var nodes = [
              +	//Only show one icon when it is expanded or collapsed.
              +	{ name:"Parent Node 1", icon:"/img/parent.gif"},
              +
              +	//Show two icons when it is expanded or collapsed.
              +	{ name:"Parent Node 2", iconOpen:"/img/open.gif", iconClose:"/img/close.gif"},
              +
              +	//the custom icon for leaf node
              +	{ name:"Leaf Node", icon:"/img/leaf.gif"}
              +]
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/treeNode.iconOpen.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/treeNode.iconOpen.html new file mode 100644 index 00000000..3203615d --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/treeNode.iconOpen.html @@ -0,0 +1,33 @@ +
              +
              +

              StringtreeNode.iconOpen

              +

              Overview[ depends on jquery.ztree.core js ]

              +
              +

              +
              +

              URL path of parent node's custom icon when it is expanded.

              +

              1. Only parent node support this attribute.

              +

              2. This attribute must be used simultaneously with 'iconClose' attribute.

              +

              3. If you need to use css to set the custom icon, please set the 'treeNode.iconSkin' attribute.

              +

              Default: undefined

              +
              +
              +

              String Format

              +
              +

              Icon image url can be a relative path or absolute path.

              +

              If use a relative path, please note the relationship between icon image and the page, ensure the correct image path.

              +
              +

              Examples of treeNode

              +

              1. Set the custom icon

              +
              var nodes = [
              +	//Only show one icon when it is expanded or collapsed.
              +	{ name:"Parent Node 1", icon:"/img/parent.gif"},
              +
              +	//Show two icons when it is expanded or collapsed.
              +	{ name:"Parent Node 2", iconOpen:"/img/open.gif", iconClose:"/img/close.gif"},
              +
              +	//the custom icon for leaf node
              +	{ name:"Leaf Node", icon:"/img/leaf.gif"}
              +]
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/treeNode.iconSkin.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/treeNode.iconSkin.html new file mode 100644 index 00000000..fca7fbf2 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/treeNode.iconSkin.html @@ -0,0 +1,43 @@ +
              +
              +

              StringtreeNode.iconSkin

              +

              Overview[ depends on jquery.ztree.core js ]

              +
              +

              +
              +

              The className of node's custom icon.

              +

              1. You need to modify the css, add the definition of className.

              +

              2. The css is simple, convenient, and support the parent node to switch icons when it is expanded or collapsed.

              +

              3. Recommend the use of CSS Sprites, can reduce repeating load the image, to avoid image flicker.

              +

              4. The 'iconSkin' support IE6 in zTree v3.x.

              +

              5. If you need to use image's URL to set the custom icon, please set the 'treeNode.icon' or 'treeNode.iconOpen' or 'treeNode.iconClose' attribute.

              +

              Default: undefined

              +
              +
              +

              String Format

              +
              +

              The string about custom icon's className.

              +
              +

              Examples of css & treeNode

              +

              1. Set the custom icon

              +
              css example:
              +.ztree li span.button.diy01_ico_open, .ztree li span.button.diy01_ico_close{...}
              +
              +.ztree li span.button.diy02_ico_open{...}
              +.ztree li span.button.diy02_ico_close{...}
              +
              +.ztree li span.button.diy03_ico_docu{...}
              +
              +node's data example:
              +var nodes = [
              +	//Only show one icon when it is expanded or collapsed.
              +	{ name:"Parent Node 1", iconSkin:"diy01"},
              +
              +	//Show two icons when it is expanded or collapsed.
              +	{ name:"Parent Node 2", iconSkin:"diy02"},
              +
              +	//the custom icon for leaf node
              +	{ name:"Leaf Node", iconSkin:"diy03"}
              +]
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/treeNode.isAjaxing.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/treeNode.isAjaxing.html new file mode 100644 index 00000000..ddadf41b --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/treeNode.isAjaxing.html @@ -0,0 +1,26 @@ +
              +
              +

              BooleantreeNode.isAjaxing

              +

              Overview[ depends on jquery.ztree.core js ]

              +
              +

              +
              +

              Judge whether the node's child nodes being loaded asynchronously.

              +

              Do not initialize or modify it, it is created by the zTree.

              +
              +
              +

              Boolean Format

              +
              +

              true means: the node's child nodes is being loaded asynchronously

              +

              false means: the node's child nodes is not being loaded asynchronously

              +
              +

              Examples of treeNode

              +

              1. Judge whether the first selected node's child nodes being loaded asynchronously

              +
              var treeObj = $.fn.zTree.getZTreeObj("tree");
              +var sNodes = treeObj.getSelectedNodes();
              +if (sNodes.length > 0) {
              +	var isAjaxing = sNodes[0].isAjaxing;
              +}
              +
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/treeNode.isFirstNode.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/treeNode.isFirstNode.html new file mode 100644 index 00000000..a8ee61ce --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/treeNode.isFirstNode.html @@ -0,0 +1,28 @@ +
              +
              +

              BooleantreeNode.isFirstNode

              +

              Overview[ depends on jquery.ztree.core js ]

              +
              +

              +
              +

              Judge whether the node is the sibling nodes's first node.

              +

              If you use the 'exhide' pack, so this attribute will only support the node which be shown.

              +

              Do not initialize or modify it, it is created by the zTree.

              +
              +
              +

              Boolean Format

              +
              +

              true means: the node is first node.

              +

              false means: the node is not first node.

              +

              If the node has been hidden, isFirstNode = false

              +
              +

              Examples of treeNode

              +

              1. Judge whether the first selected node is the sibling nodes's first node.

              +
              var treeObj = $.fn.zTree.getZTreeObj("tree");
              +var sNodes = treeObj.getSelectedNodes();
              +if (sNodes.length > 0) {
              +	var isFirstNode = sNodes[0].isFirstNode;
              +}
              +
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/treeNode.isHidden.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/treeNode.isHidden.html new file mode 100644 index 00000000..3a07b94c --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/treeNode.isHidden.html @@ -0,0 +1,28 @@ +
              +
              +

              BooleantreeNode.isHidden

              +

              Overview[ depends on jquery.ztree.exhide js ]

              +
              +

              +
              +

              Judge whether the node has been hidden.

              +

              1. When initialize zTree, the nodes which be set 'isHidden = true' will be hidden.

              +

              +

              2. Please don't change this attribute of the nodes which have been created. If you want to hide or show nodes, please use 'hideNode() / hideNodes() / showNode() / showNodes()' methods.

              +
              +
              +

              Boolean Format

              +
              +

              true means: this node is hidden.

              +

              false means: this node is shown.

              +
              +

              Examples of treeNode

              +

              1. Judge whether the first root node has been hidden.

              +
              var treeObj = $.fn.zTree.getZTreeObj("tree");
              +var sNodes = treeObj.getNodes();
              +if (sNodes.length > 0) {
              +	var isHidden = sNodes[0].isHidden;
              +}
              +
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/treeNode.isHover.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/treeNode.isHover.html new file mode 100644 index 00000000..e18ed0cf --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/treeNode.isHover.html @@ -0,0 +1,19 @@ +
              +
              +

              BooleantreeNode.isHover

              +

              Overview[ depends on jquery.ztree.exedit js ]

              +
              +

              +
              +

              Used to record the hover status of node's DOM. For 'setting.view.addHoverDom / removeHoverDom'.

              +

              Do not initialize or modify it, it is an internal argument.

              +

              Default: false

              +
              +
              +

              Boolean Format

              +
              +

              true means: the node's DOM is in hover.

              +

              false means: the node's DOM is not in hover.

              +
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/treeNode.isLastNode.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/treeNode.isLastNode.html new file mode 100644 index 00000000..cd2ca26b --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/treeNode.isLastNode.html @@ -0,0 +1,28 @@ +
              +
              +

              BooleantreeNode.isLastNode

              +

              Overview[ depends on jquery.ztree.core js ]

              +
              +

              +
              +

              Judge whether the node is the sibling nodes's last node.

              +

              If you use the 'exhide' pack, so this attribute will only support the node which be shown.

              +

              Do not initialize or modify it, it is created by the zTree.

              +
              +
              +

              Boolean Format

              +
              +

              true means: the node is last node.

              +

              false means: the node is not last node.

              +

              If the node has been hidden, isLastNode = false

              +
              +

              Examples of treeNode

              +

              1. Judge whether the first selected node is the sibling nodes's last node.

              +
              var treeObj = $.fn.zTree.getZTreeObj("tree");
              +var sNodes = treeObj.getSelectedNodes();
              +if (sNodes.length > 0) {
              +	var isLastNode = sNodes[0].isLastNode;
              +}
              +
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/treeNode.isParent.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/treeNode.isParent.html new file mode 100644 index 00000000..dad4b819 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/treeNode.isParent.html @@ -0,0 +1,28 @@ +
              +
              +

              BooleantreeNode.isParent

              +

              Overview[ depends on jquery.ztree.core js ]

              +
              +

              +
              +

              Judge whether the node is the parent node.

              +

              1. When zTree initialize the node data, the node which has children is set to true, otherwise false.

              +

              2. When zTree initialize the node data, if set treeNode.isParent to true, the node will be set to be parent node.

              +

              3. In order to solve the problem of someone make json data, supporting "false", "true" format of the data string.

              +
              +
              +

              Boolean Format

              +
              +

              true means: the node is parent node.

              +

              false means: the node is not parent node.

              +
              +

              Examples of treeNode

              +

              1. Judge whether the first selected node is the parent node.

              +
              var treeObj = $.fn.zTree.getZTreeObj("tree");
              +var sNodes = treeObj.getSelectedNodes();
              +if (sNodes.length > 0) {
              +	var isParent = sNodes[0].isParent;
              +}
              +
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/treeNode.level.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/treeNode.level.html new file mode 100644 index 00000000..d1511624 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/treeNode.level.html @@ -0,0 +1,25 @@ +
              +
              +

              NumbertreeNode.level

              +

              Overview[ depends on jquery.ztree.core js ]

              +
              +

              +
              +

              The level of node

              +

              Do not initialize or modify it, it is created by the zTree.

              +
              +
              +

              Number Format

              +
              +

              The root node's level = 0, and next level = 1, ...

              +
              +

              Examples of treeNode

              +

              1. Get the first selected node's level

              +
              var treeObj = $.fn.zTree.getZTreeObj("tree");
              +var sNodes = treeObj.getSelectedNodes();
              +if (sNodes.length > 0) {
              +	var level = sNodes[0].level;
              +}
              +
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/treeNode.name.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/treeNode.name.html new file mode 100644 index 00000000..fa508ccb --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/treeNode.name.html @@ -0,0 +1,25 @@ +
              +
              +

              StringtreeNode.name

              +

              Overview[ depends on jquery.ztree.core js ]

              +
              +

              +
              +

              The node's name

              +

              1. If you want to change 'name' attribute, please modify the 'setting.data.key.name' attribute.

              +

              Default: undenfined

              +
              +
              +

              String Format

              +
              +

              String object. The HTML special characters are escaped

              +
              +

              Examples of treeNode

              +

              1. Set node's name to 'test1', 'test2', 'test3'

              +
              var nodes = [
              +	{ "id":1, "name":"test1"},
              +	{ "id":2, "name":"test2"},
              +	{ "id":3, "name":"test3"}
              +]
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/treeNode.nocheck.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/treeNode.nocheck.html new file mode 100644 index 00000000..6c4880c8 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/treeNode.nocheck.html @@ -0,0 +1,26 @@ +
              +
              +

              BooleantreeNode.nocheck

              +

              Overview[ depends on jquery.ztree.excheck js ]

              +
              +

              +
              +

              1. Set node to hide the checkbox or radio. It is valid when [setting.check.enable = true]

              +

              2. zTree support identification string 'true' & 'false'.

              +

              Default: false

              +
              +
              +

              Boolean Format

              +
              +

              true means: the node hide the checkbox or radio, and don't affect the checked association, and don't affect its parent node's half-checked status.

              +

              false means: the node show the checkbox or radio.

              +
              +

              Examples of treeNode

              +

              1. Hide some node's checkbox / radio

              +
              var nodes = [
              +	{ "id":1, "name":"test1", "nocheck":true},
              +	{ "id":2, "name":"test2"},
              +	{ "id":3, "name":"test3"}
              +]
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/treeNode.open.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/treeNode.open.html new file mode 100644 index 00000000..bc910de3 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/treeNode.open.html @@ -0,0 +1,30 @@ +
              +
              +

              BooleantreeNode.open

              +

              Overview[ depends on jquery.ztree.core js ]

              +
              +

              +
              +

              Used to record the parent node's expand status.

              +

              1. When zTree initialize the node data, if you set treeNode.open = true, zTree will default expand this parent node.

              +

              2. Leaf node's 'open' attribute is false.

              +

              3. In order to solve the problem of someone make json data, supporting "false", "true" format of the data string.

              +

              4. When setting.async.enable = false, the parent node will be expanded which have no child nodes and its attribute 'open' is true. (v3.5.15+)

              +

              Default: false

              +
              +
              +

              Boolean Format

              +
              +

              true means: the parent node is expanded.

              +

              false means: the parent node is collapsed.

              +
              +

              Examples of treeNode

              +

              1. Get the first selected node's expand status.

              +
              var treeObj = $.fn.zTree.getZTreeObj("tree");
              +var sNodes = treeObj.getSelectedNodes();
              +if (sNodes.length > 0) {
              +	var isOpen = sNodes[0].open;
              +}
              +
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/treeNode.parentTId.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/treeNode.parentTId.html new file mode 100644 index 00000000..0bc2a6d6 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/treeNode.parentTId.html @@ -0,0 +1,27 @@ +
              +
              +

              StringtreeNode.parentTId

              +

              Overview[ depends on jquery.ztree.core js ]

              +
              +

              +
              +

              The unique identifier of node's parent node.

              +

              1. zTree v3.x using 'parentTId' replaced the original 'parentNode' attribute, and increased getParentNode () method, in order to avoid the original 'parentNode' cause the clone () method infinite loop.

              +

              2. Do not initialize or modify it, it is created by the zTree.

              +
              +
              +

              String Format

              +
              +

              String object of node's parent node's tId. please see API about 'treeNode.tId'

              +

              If treeNode is root node, parentTId is null.

              +
              +

              Examples of treeNode

              +

              1. Get the first selected node's parent node's tId

              +
              var treeObj = $.fn.zTree.getZTreeObj("tree");
              +var sNodes = treeObj.getSelectedNodes();
              +if (sNodes.length > 0) {
              +	var parentTId = sNodes[0].parentTId;
              +}
              +
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/treeNode.tId.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/treeNode.tId.html new file mode 100644 index 00000000..18c2855a --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/treeNode.tId.html @@ -0,0 +1,25 @@ +
              +
              +

              StringtreeNode.tId

              +

              Overview[ depends on jquery.ztree.core js ]

              +
              +

              +
              +

              The unique identifier of node.

              +

              Do not initialize or modify it, it is created by the zTree.

              +
              +
              +

              String Format

              +
              +

              tId rules: setting.treeId + "_" + zTree counter

              +
              +

              Examples of treeNode

              +

              1. Get the first selected node's tId

              +
              var treeObj = $.fn.zTree.getZTreeObj("tree");
              +var sNodes = treeObj.getSelectedNodes();
              +if (sNodes.length > 0) {
              +	var tId = sNodes[0].tId;
              +}
              +
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/treeNode.target.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/treeNode.target.html new file mode 100644 index 00000000..176a7a35 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/treeNode.target.html @@ -0,0 +1,24 @@ +
              +
              +

              StringtreeNode.target

              +

              Overview[ depends on jquery.ztree.core js ]

              +
              +

              +
              +

              Used to set the target where the node is clicked to open url. It is valid when [treeNode.url exists]

              +

              Default: undefined

              +
              +
              +

              String Format

              +
              +

              As same as <a> tag's 'target' attribute. e.g. '_blank', '_self' or other window name.

              +

              if this attribute is omitted, zTree default set it to '_blank'

              +
              +

              Exmaples of treeNode

              +

              1. Set target is '_blank'

              +
              var nodes = [
              +	{ "id":1, "name":"test1", "url":"http://myTest.com", "target":"_blank"},
              +	......
              +]
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/treeNode.url.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/treeNode.url.html new file mode 100644 index 00000000..55524455 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/treeNode.url.html @@ -0,0 +1,25 @@ +
              +
              +

              StringtreeNode.url

              +

              Overview[ depends on jquery.ztree.core js ]

              +
              +

              +
              +

              The URL of node link

              +

              1. In edit mode (setting.edit.enable = true) , this feature fails. If you must use a similar feature, please use the 'onClick' callback for their own control.

              +

              2. If you use the 'onClick' callback function to control opening URL , then set the URL in the other custom attribute, do not use the 'url' attribute.

              +

              Default: undefined

              +
              +
              +

              String Format

              +
              +

              As same as <a> tag's 'href' attribute.

              +
              +

              Examples of treeNode

              +

              1. Set the URL is 'g.cn'

              +
              var nodes = [
              +	{ "id":1, "name":"Google CN", "url":"http://g.cn"},
              +	......
              +]
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/treeNode.zAsync.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/treeNode.zAsync.html new file mode 100644 index 00000000..b3ff4145 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/treeNode.zAsync.html @@ -0,0 +1,28 @@ +
              +
              +

              BooleantreeNode.zAsync

              +

              Overview[ depends on jquery.ztree.core js ]

              +
              +

              +
              +

              Judge whether the parent node's child nodes will be loaded asynchronously when the parent node is expanded.

              +

              Do not initialize or modify it, it is created by the zTree.

              +

              Default:false (the parent node which have no child nodes); true (the parent node which have child nodes or the leaf node)

              +
              +
              +

              Boolean Format

              +
              +

              true means: the node's child nodes will not be loaded asynchronously when the parent node is expanded.

              +

              false means: the node's child nodes will be loaded asynchronously when the parent node is expanded.

              +

              This attribute will not effect to 'reAsyncChildNodes()' method

              +
              +

              Examples of treeNode

              +

              1. Judge whether the first selected node's child nodes has been loaded asynchronously

              +
              var treeObj = $.fn.zTree.getZTreeObj("tree");
              +var sNodes = treeObj.getSelectedNodes();
              +if (sNodes.length > 0) {
              +	var zAsync = sNodes[0].zAsync;
              +}
              +
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/zTreeObj.addNodes.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/zTreeObj.addNodes.html new file mode 100644 index 00000000..680ccc4e --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/zTreeObj.addNodes.html @@ -0,0 +1,42 @@ +
              +
              +

              Function(parentNode, newNodes, isSilent)zTreeObj.addNodes

              +

              Overview[ depends on jquery.ztree.core js ]

              +
              +

              +
              +

              Add nodes

              +

              In order to avoid duplication data resulting from repeated initialization, zTree v3.x will automatically clone node data when zTree initialized or add nodes. If you need to get the data objects within the zTree, please get the return value of this method.

              +

              Please use zTree object to executing the method.

              +
              +
              +

              Function Parameter Descriptions

              +
              +

              parentNodeJSON

              +

              The additional node's parent node. If additional node is root node, please the parentNode is null.

              +

              Please ensure this node data object is a data object within zTree.

              +

              newNodesJSON / Array(JSON)

              +

              The node data's JSON object collection which need to increase, refer to 'treeNode treeNode data details'

              +

              1. zTree v3.x support to add single node, that is, if you only add a node, you can don't use the array.

              +

              2. If you use simple data model, please refer to the attributes within the 'setting.data.simpleData'.

              +

              isSilentBoolean

              +

              Set whether to automatically expand the parent node, after add nodes.

              +

              isSilent = true means: don't auto expand the parent node. Otherwise auto expand.

              +

              Return Array(JSON)

              +

              return the new nodes in zTree

              +

              If the newNodes is single data object, the return value is a array with length is 1.

              +

              Note: the node data JSON object in the return value is not equal to the JSON object in the 'newNodes'.

              +
              +

              Examples of function

              +

              1. Add one root node to zTree which id is 'tree'

              +
              var treeObj = $.fn.zTree.getZTreeObj("tree");
              +var newNode = {name:"newNode1"};
              +newNode = treeObj.addNodes(null, newNode);
              +
              +

              2. Add three root nodes to zTree which id is 'tree'

              +
              var treeObj = $.fn.zTree.getZTreeObj("tree");
              +var newNodes = [{name:"newNode1"}, {name:"newNode2"}, {name:"newNode3"}];
              +newNodes = treeObj.addNodes(null, newNodes);
              +
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/zTreeObj.cancelEditName.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/zTreeObj.cancelEditName.html new file mode 100644 index 00000000..8afdae0b --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/zTreeObj.cancelEditName.html @@ -0,0 +1,30 @@ +
              +
              +

              Function(newName)zTreeObj.cancelEditName

              +

              Overview[ depends on jquery.ztree.exedit js ]

              +
              +

              +
              +

              Cancel the edit name status. Can restore the original name, and can also force assigned to a new name.

              +

              Please use zTree object to executing the method.

              +
              +
              +

              Function Parameter Descriptions

              +
              +

              newNameString

              +

              Re given a new name

              +

              If this parameter is omitted, then restore the original name.

              +

              Return none

              +

              no return value

              +
              +

              Examples of function

              +

              1. Cancel edit name, and restore the original name.

              +
              var treeObj = $.fn.zTree.getZTreeObj("tree");
              +treeObj.cancelEditName();
              +
              +

              2. Cancel edit name , and set the new name.

              +
              var treeObj = $.fn.zTree.getZTreeObj("tree");
              +treeObj.cancelEditName("test_new_name");
              +
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/zTreeObj.cancelSelectedNode.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/zTreeObj.cancelSelectedNode.html new file mode 100644 index 00000000..581c2d2b --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/zTreeObj.cancelSelectedNode.html @@ -0,0 +1,35 @@ +
              +
              +

              Function(treeNode)zTreeObj.cancelSelectedNode

              +

              Overview[ depends on jquery.ztree.core js ]

              +
              +

              +
              +

              To cancel the selected node.

              +

              zTree v3.x support to select multiple nodes, so you can cancel a single selected node, and you can cancel all of the selected nodes too.

              +

              Please use zTree object to executing the method.

              +
              +
              +

              Function Parameter Descriptions

              +
              +

              treeNodeJSON

              +

              JSON data object of the node which need to cancel selected.

              +

              Please ensure that this data object is an internal node data object in zTree.

              +

              If you omit this parameter, zTree will cancel all of the selected nodes.

              +

              Return none

              +

              no return value

              +
              +

              Examples of function

              +

              1. Cancel all of the selected nodes

              +
              var treeObj = $.fn.zTree.getZTreeObj("tree");
              +treeObj.cancelSelectedNode();
              +
              +

              2. Cancel the first node of the selected nodes

              +
              var treeObj = $.fn.zTree.getZTreeObj("tree");
              +var nodes = treeObj.getSelectedNode();
              +if (nodes.length>0) { 
              +	treeObj.cancelSelectedNode(nodes[0]);
              +}
              +
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/zTreeObj.checkAllNodes.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/zTreeObj.checkAllNodes.html new file mode 100644 index 00000000..276b6294 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/zTreeObj.checkAllNodes.html @@ -0,0 +1,29 @@ +
              +
              +

              Function(checked)zTreeObj.checkAllNodes

              +

              Overview[ depends on jquery.ztree.excheck js ]

              +
              +

              +
              +

              Check or unCheck all nodes which have been initialized. It is valid when [setting.check.enable = true & setting.check.chkStyle = "checkbox"]

              +

              This method does not trigger 'beforeCheck' or 'onCheck' callback function.

              +

              Please use zTree object to executing the method.

              +
              +
              +

              Function Parameter Descriptions

              +
              +

              checkedBoolean

              +

              checked = true means: check all nodes.

              +

              checked = false means: uncheck all nodes.

              +

              Don't affect the node which 'nochecked' attribute is true.

              +

              Don't affect the node is not loaded.

              +

              Return none

              +

              no return value

              +
              +

              Examples of function

              +

              1. check all nodes

              +
              var treeObj = $.fn.zTree.getZTreeObj("tree");
              +treeObj.checkAllNodes(true);
              +
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/zTreeObj.checkNode.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/zTreeObj.checkNode.html new file mode 100644 index 00000000..7411ef86 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/zTreeObj.checkNode.html @@ -0,0 +1,44 @@ +
              +
              +

              Function(treeNode, checked, checkTypeFlag, callbackFlag)zTreeObj.checkNode

              +

              Overview[ depends on jquery.ztree.excheck js ]

              +
              +

              +
              +

              Check or unCheck a single node. It is valid when [setting.check.enable = true]

              +

              Use checkNode() method of zTree v3.x can trigger 'beforeCheck' or 'onCheck' callback function. for reduce redundant code.

              +

              Please use zTree object to executing the method.

              +
              +
              +

              Function Parameter Descriptions

              +
              +

              treeNodeJSON

              +

              JSON data object of the node which need to be checked or unchecked.

              +

              Please ensure that this data object is an internal node data object in zTree.

              +

              checkedBoolean

              +

              checked = true means: check node.

              +

              checked = false means: uncheck node.

              +

              If this parameter is omitted, then toggle check or uncheck depend this node's expanded state.

              +

              Don't affect the node which 'nochecked' attribute is true.

              +

              checkTypeFlagBoolean

              +

              checkTypeFlag = true means: According to 'setting.check.chkboxType' attribute automatically check or uncheck the parent and child nodes.

              +

              checkTypeFlag = false means: only check or uncheck this node, don't affect its parent and child nodes.

              +

              When checkTypeFlag = false and treeNode.checked = checked, will not trigger callback function.

              +

              Don't affect the parent and child nodes which 'nochecked' attribute is true.

              +

              callbackFlagBoolean

              +

              callbackFlag = true means: call this method, will trigger 'beforeCheck' & 'onCheck' callback.

              +

              callbackFlag = false means: call this method, will not trigger callback.

              +

              If this parameter is omitted, it is same as 'callbackFlag = false'

              +

              Return none

              +

              no return value

              +
              +

              Examples of function

              +

              1. check the selected nodes

              +
              var treeObj = $.fn.zTree.getZTreeObj("tree");
              +var nodes = treeObj.getSelectedNodes();
              +for (var i=0, l=nodes.length; i < l; i++) {
              +	treeObj.checkNode(nodes[i], true, true);
              +}
              +
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/zTreeObj.copyNode.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/zTreeObj.copyNode.html new file mode 100644 index 00000000..a98e84de --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/zTreeObj.copyNode.html @@ -0,0 +1,47 @@ +
              +
              +

              Function(targetNode, treeNode, moveType, isSilent)zTreeObj.copyNode

              +

              Overview[ depends on jquery.ztree.exedit js ]

              +
              +

              +
              +

              Copy the node

              +

              When copy nodes, zTree v3.x will clone nodes. If you need to get the data object in zTree, please get the return value of this method.

              +

              Please use zTree object to executing the method.

              +
              +
              +

              Function Parameter Descriptions

              +
              +

              targetNodeJSON

              +

              JSON data object of the node which will be target.

              +

              If copy the node to root node, please set the 'targetNode' to null.

              +

              Please ensure that this data object is an internal node data object in zTree.

              +

              treeNodeJSON

              +

              JSON data object of the node which will be copied.

              +

              Please ensure that this data object is an internal node data object in zTree.

              +

              moveTypeString

              +

              Copied to the target node's relative position.

              +

              "inner" means: to be taregetNode's child node.

              +

              "prev" means: to be taregetNode's previous sibling node.

              +

              "next" means: to be taregetNode's next sibling node.

              +

              isSilentBoolean

              +

              After copy the node, whether to automatically expand its parent node.

              +

              isSilent = true means: don't expand its parent node.

              +

              isSilent = false or omit this parameter means: expand its parent node.

              +

              Return JSON

              +

              return the new node in zTree

              +

              Note: the node data JSON object in the return value is not equal to the treeNode.

              +
              +

              Examples of function

              +

              1. Copy the second root node to the first root node's child node.

              +
              var treeObj = $.fn.zTree.getZTreeObj("tree");
              +var nodes = treeObj.getNodes();
              +treeObj.copyNode(nodes[0], nodes[1], "inner");
              +
              +

              2. Copy the second root node to the first root node's previous sibling node.

              +
              var treeObj = $.fn.zTree.getZTreeObj("tree");
              +var nodes = treeObj.getNodes();
              +treeObj.copyNode(nodes[0], nodes[1], "before");
              +
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/zTreeObj.destroy.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/zTreeObj.destroy.html new file mode 100644 index 00000000..80c52811 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/zTreeObj.destroy.html @@ -0,0 +1,25 @@ +
              +
              +

              Function(treeId)zTreeObj.destroy

              +

              Overview[ depends on jquery.ztree.core js ]

              +
              +

              +
              +

              From zTree v3.4, zTree support the method for destruction.

              +

              1. This method can destroy the zTreeObj's zTree.

              +

              2. If you want to destory all of the zTrees, you can use the '$.fn.zTree.destroy()' method.

              +

              3. If you want to use the tree which has been destroyed, you must use the 'init()' method at first.

              +
              +
              +

              Function Parameter Descriptions

              +
              +

              Return none

              +

              no return value

              +
              +

              Examples of function

              +

              1. destroy the zTree which its id is 'treeDemo'

              +
              var zTreeObj = $.fn.zTree.getZTreeObj("treeDemo");
              +zTreeObj.destroy();
              +
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/zTreeObj.editName.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/zTreeObj.editName.html new file mode 100644 index 00000000..92ac5c1c --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/zTreeObj.editName.html @@ -0,0 +1,29 @@ +
              +
              +

              Function(treeNode)zTreeObj.editName

              +

              Overview[ depends on jquery.ztree.exedit js ]

              +
              +

              +
              +

              Start editing the node's name.

              +

              1. If need to cancel editing the node's name, please use cancelEditName(newName) method.

              +

              2. This method can be used to set the editing node‘s input box to get focus.

              +

              3. Please use zTree object to executing the method.

              +
              +
              +

              Function Parameter Descriptions

              +
              +

              treeNodeJSON

              +

              JSON data object of the node which will be editing name

              +

              Please ensure that this data object is an internal node data object in zTree.

              +

              Retrun none

              +

              no return value

              +
              +

              Examples of function

              +

              1. Start editing the first selected node's name.

              +
              var treeObj = $.fn.zTree.getZTreeObj("tree");
              +var nodes = treeObj.getNodes();
              +treeObj.editName(nodes[0]);
              +
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/zTreeObj.expandAll.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/zTreeObj.expandAll.html new file mode 100644 index 00000000..ef28a316 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/zTreeObj.expandAll.html @@ -0,0 +1,30 @@ +
              +
              +

              Function(expandFlag)zTreeObj.expandAll

              +

              Overview[ depends on jquery.ztree.core js ]

              +
              +

              +
              +

              Expand or collapse all nodes.

              +

              This method does not trigger 'beforeExpand / onExpand' or 'beforeCollapse / onCollapse' callback function.

              +

              Please use zTree object to executing the method.

              +
              +
              +

              Function Parameter Descriptions

              +
              +

              expandFlagBoolean

              +

              expandFlag = true means: expand all nodes.

              +

              expandFlag = false means: collapse all nodes.

              +

              Return Boolean

              +

              return the result of expand or collapse.

              +

              true means: expand all nodes

              +

              false means: collapse all nodes

              +

              null means: have no parent node to expand or collapse.

              +
              +

              Examples of function

              +

              1. Expand all nodes

              +
              var treeObj = $.fn.zTree.getZTreeObj("tree");
              +treeObj.expandAll(true);
              +
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/zTreeObj.expandNode.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/zTreeObj.expandNode.html new file mode 100644 index 00000000..f99ff77d --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/zTreeObj.expandNode.html @@ -0,0 +1,50 @@ +
              +
              +

              Function(treeNode, expandFlag, sonSign, focus, callbackFlag)zTreeObj.expandNode

              +

              Overview[ depends on jquery.ztree.core js ]

              +
              +

              +
              +

              Expand or collapse single node.

              +

              Use expandNode() method of zTree v3.x can trigger 'beforeExpand / onExpand' or 'beforeCollapse / onCollapse' callback function. for reduce redundant code.

              +

              Please use zTree object to executing the method.

              +
              +
              +

              Function Parameter Descriptions

              +
              +

              treeNodeJSON

              +

              JSON data object of the node which will be expanded or collapsed

              +

              Please ensure that this data object is an internal node data object in zTree.

              +

              expandFlagBoolean

              +

              expandFlag = true means: expand the node.

              +

              expandFlag = false means: collapse the node.

              +

              If this parameter is omitted, then toggle expand or collapse depend this node's expanded state.

              +

              sonSignBoolean

              +

              sonSign = true means: expand or collapse all of the child nodes depend the 'expandFlag' parameter.

              +

              sonSign = false means: only expand or collapse this node.

              +

              When sonSign = false and treeNode.open = expandFlag, will not trigger the callback.

              +

              If this parameter is omitted, it is same as 'sonSign = false'.

              +

              focusBoolean

              +

              focus = true means: after expand or collapse, set the focus of this node for view.

              +

              focus = false means: after expand or coolapse, don't set the focus of this node.

              +

              If this parameter is omitted, it is same as 'focus = true'.

              +

              callbackFlagBoolean

              +

              callbackFlag = true means: call this method, will trigger 'beforeExpand / onExpand' or 'beforeCollapse / onCollapse' callback.

              +

              callbackFlag = false means: call this method, will not trigger callback.

              +

              If this parameter is omitted, it is same as 'callbackFlag = false'

              +

              Return Boolean

              +

              return the result of expand or collapse.

              +

              true means: expand node

              +

              false means: collapse node

              +

              null means: the node is not parent node.

              +
              +

              Examples of function

              +

              1. Expand the first selected node. (and expand this node's child nodes)

              +
              var treeObj = $.fn.zTree.getZTreeObj("tree");
              +var nodes = treeObj.getSelectedNodes();
              +if (nodes.length>0) {
              +	treeObj.expandNode(nodes[0], true, true, true);
              +}
              +
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/zTreeObj.getChangeCheckedNodes.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/zTreeObj.getChangeCheckedNodes.html new file mode 100644 index 00000000..d0f9cf3b --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/zTreeObj.getChangeCheckedNodes.html @@ -0,0 +1,24 @@ +
              +
              +

              Function()zTreeObj.getChangeCheckedNodes

              +

              Overview[ depends on jquery.ztree.excheck js ]

              +
              +

              +
              +

              Get the collection of nodes which be changed checked status. (Compared with the original data checkedOld) It is valid when [setting.check.enable = true]

              +

              Please use zTree object to executing the method.

              +
              +
              +

              Function Parameter Descriptions

              +
              +

              Return Array(JSON)

              +

              return the collection of nodes which be changed checked status (Array)

              +

              If you need to get the collection of nodes which changed the checked status, when nodes be checked or unchecked, so please set treeNode.checkedOld = treeNode.checked ( for all of the be changed checked status nodes ).

              +
              +

              Examples of function

              +

              1. Get the collection of nodes which be changed checked status

              +
              var treeObj = $.fn.zTree.getZTreeObj("tree");
              +var nodes = treeObj.getChangeCheckedNodes();
              +
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/zTreeObj.getCheckedNodes.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/zTreeObj.getCheckedNodes.html new file mode 100644 index 00000000..7a7c3b97 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/zTreeObj.getCheckedNodes.html @@ -0,0 +1,28 @@ +
              +
              +

              Function(checked)zTreeObj.getCheckedNodes

              +

              Overview[ depends on jquery.ztree.excheck js ]

              +
              +

              +
              +

              Get the collection of nodes which be checked or unchecked. It is valid when [setting.check.enable = true]

              +

              Please use zTree object to executing the method.

              +
              +
              +

              Function Parameter Descriptions

              +
              +

              checkedBoolean

              +

              checked = true means: get the collection of nodes which be checked

              +

              checked = false means: get the collection of nodes which be unchecked

              +

              If this parameter is omitted, it is same as 'checked = true'

              +

              Don't get the nodes which 'nochecked' attribute is true.

              +

              Return Array(JSON)

              +

              return the collection of nodes which be checked or unchecked. (Array)

              +
              +

              Examples of function

              +

              1. Get the collection of nodes which be checked.

              +
              var treeObj = $.fn.zTree.getZTreeObj("tree");
              +var nodes = treeObj.getCheckedNodes(true);
              +
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/zTreeObj.getNodeByParam.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/zTreeObj.getNodeByParam.html new file mode 100644 index 00000000..05572e73 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/zTreeObj.getNodeByParam.html @@ -0,0 +1,32 @@ +
              +
              +

              Function(key, value, parentNode)zTreeObj.getNodeByParam

              +

              Overview[ depends on jquery.ztree.core js ]

              +
              +

              +
              +

              According to the node data attribute, search the node which exactly matches, and get the JSON object of node.

              +

              Please use zTree object to executing the method.

              +
              +
              +

              Function Parameter Descriptions

              +
              +

              keyString

              +

              The name of attribute which need to exactly match

              +

              value?

              +

              The value which need to exactly match, can be any type, please ensure its type consistent with the attribute values.

              +

              parentNodeJSON

              +

              The search range, you can search node from a parent node's child nodes.

              +

              If this parameter is omitted, zTree will search node from all nodes.

              +

              Return JSON

              +

              JSON data object of the node which be searched.

              +

              1. If search none node, return null.

              +

              2. If there are many nodes can be searched, return the first node.

              +
              +

              Examples of function

              +

              1. Search the node which its 'id' attribute is 1.

              +
              var treeObj = $.fn.zTree.getZTreeObj("tree");
              +var node = treeObj.getNodeByParam("id", 1, null);
              +
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/zTreeObj.getNodeByTId.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/zTreeObj.getNodeByTId.html new file mode 100644 index 00000000..8fd26ea0 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/zTreeObj.getNodeByTId.html @@ -0,0 +1,27 @@ +
              +
              +

              Function(tId)zTreeObj.getNodeByTId

              +

              Overview[ depends on jquery.ztree.core js ]

              +
              +

              +
              +

              According the unique identifier tId of zTree, quick get the node's JSON data object.

              +

              Get the node from the cache, don't need to search from all nodes.

              +

              Please use zTree object to executing the method.

              +
              +
              +

              Function Parameter Descriptions

              +
              +

              tIdString

              +

              The unique identifier of node.

              +

              Return JSON

              +

              JSON data object of the node which be searched.

              +

              If no result, return null.

              +
              +

              Examples of function

              +

              1. 1. Search the node which its 'tId' attribute is 'tree_10'

              +
              var treeObj = $.fn.zTree.getZTreeObj("tree");
              +var node = treeObj.getNodeByTId("tree_10");
              +
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/zTreeObj.getNodeIndex.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/zTreeObj.getNodeIndex.html new file mode 100644 index 00000000..ad828e7a --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/zTreeObj.getNodeIndex.html @@ -0,0 +1,30 @@ +
              +
              +

              Function(treeNode)zTreeObj.getNodeIndex

              +

              Overview[ depends on jquery.ztree.core js ]

              +
              +

              +
              +

              Get the node's index in the same level nodes. (start from 0)

              +

              Please use zTree object to executing the method.

              +
              +
              +

              Function Parameter Descriptions

              +
              +

              treeNodeJSON

              +

              JSON data object of the node which need to get index.

              +

              Please ensure that this data object is an internal node data object in zTree.

              +

              Return Number

              +

              return the index. (start from 0)

              +

              If there is no this node, return -1.

              +
              +

              Examples of function

              +

              1. Get the first selected node's index in the same level nodes.

              +
              var treeObj = $.fn.zTree.getZTreeObj("tree");
              +var nodes = treeObj.getSelectedNodes();
              +if (nodes.length>0) {
              +	var index = treeObj.getNodeIndex(nodes[0]);
              +}
              +
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/zTreeObj.getNodes.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/zTreeObj.getNodes.html new file mode 100644 index 00000000..5906a434 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/zTreeObj.getNodes.html @@ -0,0 +1,26 @@ +
              +
              +

              Function()zTreeObj.getNodes

              +

              Overview[ depends on jquery.ztree.core js ]

              +
              +

              +
              +

              Get all of the nodes in zTree

              +

              Please use zTree object to executing the method.

              +
              +
              +

              Function Parameter Descriptions

              +
              +

              Return Array(JSON)

              +

              return all of the nodes

              +

              1. This array is a collection of the root nodes (the default child nodes are in the 'children' attributes);

              +

              2. Traverse all the nodes need to use recursion, or the use of transformToArray() method make the nodes to be a simple array.

              +

              3. For the asynchronous loading mode, can't get the nodes which are yet loaded.

              +
              +

              Examples of function

              +

              1. Get all of the nodes

              +
              var treeObj = $.fn.zTree.getZTreeObj("tree");
              +var nodes = treeObj.getNodes();
              +
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/zTreeObj.getNodesByFilter.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/zTreeObj.getNodesByFilter.html new file mode 100644 index 00000000..2cd6baa8 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/zTreeObj.getNodesByFilter.html @@ -0,0 +1,43 @@ +
              +
              +

              Function(filter, isSingle, parentNode, invokeParam)zTreeObj.getNodesByFilter

              +

              Overview[ depends on jquery.ztree.core js ]

              +
              +

              +
              +

              Search the single node's data or collection of nodes's data by custom rules.

              +

              Can be customized complex search rules.

              +

              Please use zTree object to executing the method.

              +
              +
              +

              Function Parameter Descriptions

              +
              +

              filterFunction

              +

              Custom search function. e.g. function filter(node) {...}

              +

              filter's parameter: node (node's data -- JSON)

              +

              filter's return: boolean (true means: match the rules; false means: don't match the rules)

              +

              isSingleBoolean

              +

              isSingle = true means: search only one node

              +

              isSingle = false means: search the array of the nodes

              +

              If this parameter is omitted, as same as false

              +

              parentNodeJSON

              +

              The search range, you can search node from a parent node's child nodes.

              +

              If this parameter is omitted, zTree will search node from all nodes.

              +

              invokeParamanything

              +

              Custom data object by user, used to calculate in the filter function.

              +

              Return Array(JSON) / JSON

              +

              If isSingle = true, will return the first node's data (JSON) what be matched. If no match, return null.

              +

              If isSingle = false, will return the array of all nodes's data what be matched. if no match, return [ ].

              +
              +

              Examples of function

              +

              1. Search the nodes which their 'name' contains 'test' and 'level' is 2.

              +
              function filter(node) {
              +    return (node.level == 2 && node.name.indexOf("test")>-1);
              +}
              +......
              +var treeObj = $.fn.zTree.getZTreeObj("tree");
              +var node = treeObj.getNodesByFilter(filter, true); // search only one node
              +var nodes = treeObj.getNodesByFilter(filter); // search the array of the nodes
              +
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/zTreeObj.getNodesByParam.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/zTreeObj.getNodesByParam.html new file mode 100644 index 00000000..3173af47 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/zTreeObj.getNodesByParam.html @@ -0,0 +1,31 @@ +
              +
              +

              Function(key, value, parentNode)zTreeObj.getNodesByParam

              +

              Overview[ depends on jquery.ztree.core js ]

              +
              +

              +
              +

              According to the node data attribute, search the nodes which exactly matches, and get the JSON objects collection of nodes.

              +

              Please use zTree object to executing the method.

              +
              +
              +

              Function Parameter Descriptions

              +
              +

              keyString

              +

              The name of attribute which need to exactly match

              +

              value?

              +

              The value which need to exactly match, can be any type, please ensure its type consistent with the attribute values.

              +

              parentNodeJSON

              +

              The search range, you can search node from a parent node's child nodes.

              +

              If this parameter is omitted, zTree will search node from all nodes.

              +

              Return Array(JSON)

              +

              The JSON data objects collection of the nodes which be searched.

              +

              If search none node, return [ ].

              +
              +

              Examples of function

              +

              1. Search the nodes which their 'name' attribute is 'test'.

              +
              var treeObj = $.fn.zTree.getZTreeObj("tree");
              +var nodes = treeObj.getNodesByParam("name", "test", null);
              +
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/zTreeObj.getNodesByParamFuzzy.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/zTreeObj.getNodesByParamFuzzy.html new file mode 100644 index 00000000..14b6c294 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/zTreeObj.getNodesByParamFuzzy.html @@ -0,0 +1,32 @@ +
              +
              +

              Function(key, value, parentNode)zTreeObj.getNodesByParamFuzzy

              +

              Overview[ depends on jquery.ztree.core js ]

              +
              +

              +
              +

              According to the node data attribute, search the nodes which fuzzy matches, and get the JSON objects collection of nodes.

              +

              Please use zTree object to executing the method.

              +
              +
              +

              Function Parameter Descriptions

              +
              +

              keyString

              +

              The name of attribute which need to fuzzy match

              +

              valueString

              +

              The value which need to fuzzy match.

              +

              The type of value can only be String

              +

              parentNodeJSON

              +

              The search range, you can search node from a parent node's child nodes.

              +

              If this parameter is omitted, zTree will search node from all nodes.

              +

              Return Array(JSON)

              +

              The JSON data objects collection of the nodes which be searched.

              +

              If search none node, return [ ].

              +
              +

              Examples of function

              +

              1. Search the nodes which their 'name' attribute contains the string 'test'.

              +
              var treeObj = $.fn.zTree.getZTreeObj("tree");
              +var nodes = treeObj.getNodesByParamFuzzy("name", "test", null);
              +
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/zTreeObj.getSelectedNodes.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/zTreeObj.getSelectedNodes.html new file mode 100644 index 00000000..4a0f0608 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/zTreeObj.getSelectedNodes.html @@ -0,0 +1,23 @@ +
              +
              +

              Function()zTreeObj.getSelectedNodes

              +

              Overview[ depends on jquery.ztree.core js ]

              +
              +

              +
              +

              Get the JSON data objects collection of the selected nodes in zTree.

              +

              Please use zTree object to executing the method.

              +
              +
              +

              Function Parameter Descriptions

              +
              +

              Return Array(JSON)

              +

              The JSON data objects collection of the selected nodes.

              +
              +

              Examples of function

              +

              1. get the selected nodes

              +
              var treeObj = $.fn.zTree.getZTreeObj("tree");
              +var nodes = treeObj.getSelectedNodes();
              +
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/zTreeObj.hideNode.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/zTreeObj.hideNode.html new file mode 100644 index 00000000..f02f523d --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/zTreeObj.hideNode.html @@ -0,0 +1,29 @@ +
              +
              +

              Function(treeNode)zTreeObj.hideNode

              +

              Overview[ depends on jquery.ztree.exhide js ]

              +
              +

              +
              +

              To hide any node.

              +

              1. This feature can't support the 'exedit' feature, so please don't use this feature in edit mode.

              +

              2. If you hide or show the nodes, it will effect the 'isFirstNode' and 'isLastNode' attribute.

              +

              3. Please use zTree object to executing the method.

              +
              +
              +

              Function Parameter Descriptions

              +
              +

              treeNodeJSON

              +

              JSON data object of the node which will be hidden

              +

              Please ensure that this data object is an internal node data object in zTree.

              +

              Retrun none

              +

              no return value

              +
              +

              Examples of function

              +

              1. hide the first root node.

              +
              var treeObj = $.fn.zTree.getZTreeObj("tree");
              +var nodes = treeObj.getNodes();
              +treeObj.hideNode(nodes[0]);
              +
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/zTreeObj.hideNodes.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/zTreeObj.hideNodes.html new file mode 100644 index 00000000..9bf8e6b5 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/zTreeObj.hideNodes.html @@ -0,0 +1,29 @@ +
              +
              +

              Function(treeNodes)zTreeObj.hideNodes

              +

              Overview[ depends on jquery.ztree.exhide js ]

              +
              +

              +
              +

              To hide a group of nodes.

              +

              1. This feature can't support the 'exedit' feature, so please don't use this feature in edit mode.

              +

              2. If you hide or show the nodes, it will effect the 'isFirstNode' and 'isLastNode' attribute.

              +

              3. Please use zTree object to executing the method.

              +
              +
              +

              Function Parameter Descriptions

              +
              +

              treeNodesArray(JSON)

              +

              the array of the nodes which will be hidden

              +

              Please ensure that this data object is an internal node data object in zTree.

              +

              Retrun none

              +

              no return value

              +
              +

              Examples of function

              +

              1. hide the first root node's children.

              +
              var treeObj = $.fn.zTree.getZTreeObj("tree");
              +var nodes = treeObj.getNodes();
              +treeObj.hideNodes(nodes[0].children);
              +
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/zTreeObj.moveNode.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/zTreeObj.moveNode.html new file mode 100644 index 00000000..cb1e4df0 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/zTreeObj.moveNode.html @@ -0,0 +1,49 @@ +
              +
              +

              Function(targetNode, treeNode, moveType, isSilent)zTreeObj.moveNode

              +

              Overview[ depends on jquery.ztree.exedit js ]

              +
              +

              +
              +

              Move the node

              +

              Please use zTree object to executing the method.

              +
              +
              +

              Function Parameter Descriptions

              +
              +

              targetNodeJSON

              +

              JSON data object of the node which will be target.

              +

              If move the node to root node, please set the 'targetNode' to null.

              +

              Please ensure that this data object is an internal node data object in zTree.

              +

              treeNodeJSON

              +

              JSON data object of the node which will be moved.

              +

              Please ensure that this data object is an internal node data object in zTree.

              +

              moveTypeString

              +

              Moved to the target node's relative position.

              +

              "inner" means: to be taregetNode's child node.

              +

              "prev" means: to be taregetNode's previous sibling node.

              +

              "next" means: to be taregetNode's next sibling node.

              +

              isSilentBoolean

              +

              After move the node, whether to automatically expand its parent node.

              +

              isSilent = true means: don't expand its parent node.

              +

              isSilent = false or omit this parameter means: expand its parent node.

              +

              Return JSON

              +

              return the node which be moved, it is same as the 'treeNode' parameter.

              +

              Return null means: move node has failed. The cause:
              +  1. the targetNode is the treeNode's parent node, and moveType = "inner"
              +  2. the targetNode is the treeNode's child node. +

              +
              +

              Examples of function

              +

              1. Move the second root node to the first root node's child node.

              +
              var treeObj = $.fn.zTree.getZTreeObj("tree");
              +var nodes = treeObj.getNodes();
              +treeObj.moveNode(nodes[0], nodes[1], "inner");
              +
              +

              2. Move the second root node to the first root node's previous sibling node.

              +
              var treeObj = $.fn.zTree.getZTreeObj("tree");
              +var nodes = treeObj.getNodes();
              +treeObj.moveNode(nodes[0], nodes[1], "before");
              +
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/zTreeObj.reAsyncChildNodes.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/zTreeObj.reAsyncChildNodes.html new file mode 100644 index 00000000..63a0896c --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/zTreeObj.reAsyncChildNodes.html @@ -0,0 +1,42 @@ +
              +
              +

              Function(parentNode, reloadType, isSilent)zTreeObj.reAsyncChildNodes

              +

              Overview[ depends on jquery.ztree.core js ]

              +
              +

              +
              +

              Forced asynchronous loading child nodes of parent node. It is valid when [setting.async.enable = true]

              +

              You can use this method to reload child nodes.

              +

              Please use zTree object to executing the method.

              +
              +
              +

              Function Parameter Descriptions

              +
              +

              parentNodeJSON

              +

              The parent node which will asynchronous loading child nodes.

              +

              1. If parentNode = null, it is same as reload root nodes.

              +

              2. If parentNode.isParent = false, don't load nodes.

              +

              3. Please ensure that this data object is an internal node data object in zTree.

              +

              reloadTypeString

              +

              reloadType = "refresh" means: reload child nodes.

              +

              reloadType != "refresh" means: append to load child nodes.

              +

              isSilentBoolean

              +

              Set whether to automatically expand the parent node, after load nodes.

              +

              isSilent = true means: don't auto expand the parent node. Otherwise auto expand.

              +

              Return none

              +

              no return value

              +
              +

              Examples of function

              +

              1. reload root nodes

              +
              var treeObj = $.fn.zTree.getZTreeObj("tree");
              +treeObj.reAsyncChildNodes(null, "refresh");
              +
              +

              2. reload the first selected node's child nodes.

              +
              var treeObj = $.fn.zTree.getZTreeObj("tree");
              +var nodes = treeObj.getSelectedNodes();
              +if (nodes.length>0) {
              +	treeObj.reAsyncChildNodes(nodes[0], "refresh");
              +}
              +
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/zTreeObj.refresh.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/zTreeObj.refresh.html new file mode 100644 index 00000000..8316192c --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/zTreeObj.refresh.html @@ -0,0 +1,24 @@ +
              +
              +

              Function()zTreeObj.refresh

              +

              Overview[ depends on jquery.ztree.core js ]

              +
              +

              +
              +

              Refresh zTree

              +

              If you have no special need, try not to use this method. If you refresh single node, please use updateNode() method. If you refresh child nodes in dynamic mode, please use the reAsyncChildNodes() method.

              +

              Please use zTree object to executing the method.

              +
              +
              +

              Function Parameter Descriptions

              +
              +

              Return none

              +

              no return value

              +
              +

              Examples of function

              +

              1. refresh zTree

              +
              var treeObj = $.fn.zTree.getZTreeObj("tree");
              +treeObj.refresh();
              +
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/zTreeObj.removeChildNodes.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/zTreeObj.removeChildNodes.html new file mode 100644 index 00000000..c249e175 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/zTreeObj.removeChildNodes.html @@ -0,0 +1,32 @@ +
              +
              +

              Function(parentNode)zTreeObj.removeChildNodes

              +

              Overview[ depends on jquery.ztree.core js ]

              +
              +

              +
              +

              Remove a parent node's child nodes

              +

              1. After remove child nodes, the parent node will become a leaf node. Such as the need to maintain the parent node is still a parent node, set 'setting.data.keep.parent' attribute.

              +

              2. Do not use this method to empty the root. If you need to empty the root, you can initialization zTree, and set the initial nodes is null.

              +

              3. This method does not trigger any callback function.

              +

              Please use zTree object to executing the method.

              +
              +
              +

              Function Parameter Descriptions

              +
              +

              parentNodeJSON

              +

              The parent node which need to clear its child nodes.

              +

              Please ensure that this data object is an internal node data object in zTree.

              +

              Return Array(JSON)

              +

              Return the parent node's child nodes which have been removed. If has no child nodes, return null.

              +
              +

              Examples of function

              +

              1. Remove the first selected node's child nodes

              +
              var treeObj = $.fn.zTree.getZTreeObj("tree");
              +var nodes = treeObj.getSelectedNodes();
              +if (nodes && nodes.length>0) {
              +	treeObj.removeChildNodes(nodes[0]);
              +}
              +
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/zTreeObj.removeNode.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/zTreeObj.removeNode.html new file mode 100644 index 00000000..605322f3 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/zTreeObj.removeNode.html @@ -0,0 +1,34 @@ +
              +
              +

              Function(treeNode, callbackFlag)zTreeObj.removeNode

              +

              Overview[ depends on jquery.ztree.core js ]

              +
              +

              +
              +

              Remove a node

              +

              Use removeNode() method of zTree v3.x can trigger 'beforeRemove / onRemove' callback function. for reduce redundant code.

              +

              Please use zTree object to executing the method.

              +
              +
              +

              Function Parameter Descriptions

              +
              +

              treeNodeJSON

              +

              JSON data object of the node which will be removed.

              +

              Please ensure that this data object is an internal node data object in zTree.

              +

              callbackFlagBoolean

              +

              callbackFlag = true means: call this method, will trigger 'beforeRemove' & 'onRemove' callback.

              +

              callbackFlag = false means: call this method, will not trigger callback.

              +

              If this parameter is omitted, it is same as 'callbackFlag = false'

              +

              Return none

              +

              no return value

              +
              +

              Examples of function

              +

              1. Remove all of the selected nodes.

              +
              var treeObj = $.fn.zTree.getZTreeObj("tree");
              +var nodes = treeObj.getSelectedNodes();
              +for (var i=0, l=nodes.length; i < l; i++) {
              +	treeObj.removeNode(nodes[i]);
              +}
              +
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/zTreeObj.selectNode.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/zTreeObj.selectNode.html new file mode 100644 index 00000000..237f1996 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/zTreeObj.selectNode.html @@ -0,0 +1,34 @@ +
              +
              +

              Function(treeNode, addFlag)zTreeObj.selectNode

              +

              Overview[ depends on jquery.ztree.core js ]

              +
              +

              +
              +

              Select a node

              +

              zTree v3.x supports select multiple nodes.

              +

              Please use zTree object to executing the method.

              +
              +
              +

              Function Parameter Descriptions

              +
              +

              treeNodeJSON

              +

              JSON data object of the node which will be selected.

              +

              Please ensure that this data object is an internal node data object in zTree.

              +

              addFlagBoolean

              +

              addFlag = true means: append to select node, don't affect the previously selected node, can select multiple nodes.

              +

              addFlag = false means: select single node, prior the selected node is deselected.

              +

              If setting.view.selectedMulti = false, this para, this parameter is not valid, always select single node

              +

              Return none

              +

              no return value

              +
              +

              Exampleso of function

              +

              1. Select single node which be first selected.

              +
              var treeObj = $.fn.zTree.getZTreeObj("tree");
              +var nodes = treeObj.getNodes();
              +if (nodes.length>0) {
              +	treeObj.selectNode(nodes[0]);
              +}
              +
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/zTreeObj.setChkDisabled.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/zTreeObj.setChkDisabled.html new file mode 100644 index 00000000..1d645e8f --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/zTreeObj.setChkDisabled.html @@ -0,0 +1,44 @@ +
              +
              +

              Function(node, disabled, inheritParent, inheritChildren)zTreeObj.setChkDisabled

              +

              Overview[ depends on jquery.ztree.excheck js ]

              +
              +

              +
              +

              Set the node's checkbox or radio is disabled or remove disabled. It is valid when [setting.check.enable = true]

              +

              1. After the node's checkbox / radio is disabled, it can not be checked or unchecked, but it can affect the half-checked status of the parent node.

              +

              2. Please do not directly modify the 'chkDisabled' attribute of the loaded node.

              +

              3. Please use zTree object to executing the method.

              +
              +
              +

              Function Parameter Descriptions

              +
              +

              treeNodeJSON

              +

              JSON data object of the node which need to be checked or unchecked.

              +

              Please ensure that this data object is an internal node data object in zTree.

              +

              disabledBoolean

              +

              disabled = true means: the node's checkbox / radio is disabled.

              +

              disabled = false means: the node's checkbox / radio is removed disabled.

              +

              If this parameter is omitted, it is same as disabled = false

              +

              Don't affect the node which 'nochecked' attribute is true.

              +

              inheritParentBoolean

              +

              inheritParent = true means: all parent nodes's disabled status will be same as this node.

              +

              inheritParent = false means: all parent nodes's disabled status will be not affected.

              +

              If this parameter is omitted, it is same as 'inheritParent = false'

              +

              inheritChildrenBoolean

              +

              inheritChildren = true means: all child nodes's disabled status will be same as this node.

              +

              inheritChildren = false means: all child nodes's disabled status will be not affected.

              +

              If this parameter is omitted, it is same as 'inheritChildren = false'

              +

              Return none

              +

              no return value

              +
              +

              Examples of function

              +

              1. Set the selected nodes's checkbox / radio to be disabled.

              +
              var treeObj = $.fn.zTree.getZTreeObj("tree");
              +var nodes = treeObj.getSelectedNodes();
              +for (var i=0, l=nodes.length; i < l; i++) {
              +	treeObj.setChkDisabled(nodes[i], true);
              +}
              +
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/zTreeObj.setEditable.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/zTreeObj.setEditable.html new file mode 100644 index 00000000..a44b0ff6 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/zTreeObj.setEditable.html @@ -0,0 +1,27 @@ +
              +
              +

              Function(editable)zTreeObj.setEditable

              +

              Overview[ depends on jquery.ztree.exedit js ]

              +
              +

              +
              +

              Edit mode and normal mode switch.

              +

              To use edit mode, please set the attributes in 'setting.edit'

              +

              Please use zTree object to executing the method.

              +
              +
              +

              Function Parameter Descriptions

              +
              +

              editableBoolean

              +

              true means: set zTree to edit mode.

              +

              false means: set zTree to normal mode.

              +

              Return none

              +

              no return value

              +
              +

              Examples of function

              +

              1. set zTree to edit mode

              +
              var treeObj = $.fn.zTree.getZTreeObj("tree");
              +treeObj.setEditable(true);
              +
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/zTreeObj.setting.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/zTreeObj.setting.html new file mode 100644 index 00000000..d80c139a --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/zTreeObj.setting.html @@ -0,0 +1,14 @@ +
              +
              +

              JSONzTreeObj.setting

              +

              Overview[ depends on jquery.ztree.core js ]

              +
              +

              +
              +

              The configuration data of zTree, refer to "setting details"

              +

              zTree v3.x to cancel the original operation setting method, so users can modify.

              +

              Note: Modify the parameters which affect zTree initialization will not work, please first understand the different attributes.

              +
              +
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/zTreeObj.showNode.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/zTreeObj.showNode.html new file mode 100644 index 00000000..53b5cbda --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/zTreeObj.showNode.html @@ -0,0 +1,31 @@ +
              +
              +

              Function(treeNode)zTreeObj.showNode

              +

              Overview[ depends on jquery.ztree.exhide js ]

              +
              +

              +
              +

              To hide any node which be hidden.

              +

              1. This feature can't support the 'exedit' feature, so please don't use this feature in edit mode.

              +

              2. If you hide or show the nodes, it will effect the 'isFirstNode' and 'isLastNode' attribute.

              +

              3. Please use zTree object to executing the method.

              +
              +
              +

              Function Parameter Descriptions

              +
              +

              treeNodesArray(JSON)

              +

              JSON data object of the node which will be shown

              +

              Please ensure that this data object is an internal node data object in zTree.

              +

              Retrun none

              +

              no return value

              +
              +

              Examples of function

              +

              1. show someone node which be hidden.

              +
              var treeObj = $.fn.zTree.getZTreeObj("tree");
              +var node = treeObj.getNodeByParam("isHidden", true);
              +if (node) {
              +  treeObj.showNode(node);
              +}
              +
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/zTreeObj.showNodes.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/zTreeObj.showNodes.html new file mode 100644 index 00000000..c0c926c3 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/zTreeObj.showNodes.html @@ -0,0 +1,29 @@ +
              +
              +

              Function(treeNodes)zTreeObj.showNodes

              +

              Overview[ depends on jquery.ztree.exhide js ]

              +
              +

              +
              +

              To show a group of nodes which be hidden.

              +

              1. This feature can't support the 'exedit' feature, so please don't use this feature in edit mode.

              +

              2. If you hide or show the nodes, it will effect the 'isFirstNode' and 'isLastNode' attribute.

              +

              3. Please use zTree object to executing the method.

              +
              +
              +

              Function Parameter Descriptions

              +
              +

              treeNodesArray(JSON)

              +

              the array of the nodes which will be shown

              +

              Please ensure that this data object is an internal node data object in zTree.

              +

              Retrun none

              +

              no return value

              +
              +

              Examples of function

              +

              1. show all of the nodes which be hidden.

              +
              var treeObj = $.fn.zTree.getZTreeObj("tree");
              +var nodes = treeObj.getNodesByParam("isHidden", true);
              +treeObj.showNodes(nodes);
              +
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/zTreeObj.transformToArray.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/zTreeObj.transformToArray.html new file mode 100644 index 00000000..4b2296d5 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/zTreeObj.transformToArray.html @@ -0,0 +1,27 @@ +
              +
              +

              Function(treeNodes)zTreeObj.transformToArray

              +

              Overview[ depends on jquery.ztree.core js ]

              +
              +

              +
              +

              +

              Transform the zTree nodes data into simple array. (To avoid the user to write code to traverse all nodes)

              +

              Please use zTree object to executing the method.

              +
              +
              +

              Function Parameter Descriptions

              +
              +

              treeNodesArray(JSON) / JSON

              +

              JSON data object of the node which need to be transformed.

              +

              or JSON data objects collection of the nodes which need to be transformed.

              +

              Return Array(JSON)

              +

              The JSON data objects array of the nodes which be transformed.

              +
              +

              Examples of function

              +

              1. Transform the zTree nodes data into simple array.

              +
              var treeObj = $.fn.zTree.getZTreeObj("tree");
              +var nodes = treeObj.transformToArray(treeObj.getNodes());
              +
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/zTreeObj.transformTozTreeNodes.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/zTreeObj.transformTozTreeNodes.html new file mode 100644 index 00000000..51d4a629 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/zTreeObj.transformTozTreeNodes.html @@ -0,0 +1,44 @@ +
              +
              +

              Function(simpleNodes)zTreeObj.transformTozTreeNodes

              +

              Overview[ depends on jquery.ztree.core js ]

              +
              +

              +
              +

              Transform the simple array into zTree nodes data.

              +

              If you use this method, you must set 'setting.data.simpleData.idKey' and 'setting.data.simpleData.pIdKey' attribute, and let the data are consistent with parent-child relationship.

              +

              Please use zTree object to executing the method.

              +
              +
              +

              Function Parameter Descriptions

              +
              +

              simpleNodesArray(JSON) / JSON

              +

              JSON data object of the node which need to be transformed.

              +

              or JSON data objects array of the nodes which need to be transformed.

              +

              Return Array(JSON)

              +

              Standard data which zTree use. The child nodes are stored in the parent node's 'children' attribute.

              +

              If simpleNodes is a single JSON, so the return array's length is 1.

              +
              +

              Examples of function

              +

              1. Transform the simple array data into zTree nodes format.

              +
              var setting = {
              +	data: {
              +		simpleData: {
              +			enable: true,
              +			idKey: "id",
              +			pIdKey: "pId",
              +			rootPId: 0,
              +		}
              +	}
              +};
              +var simpleNodes = [
              +    {"id":1, "pId":0, "name":"test1"},
              +    {"id":11, "pId":1, "name":"test11"},
              +    {"id":12, "pId":1, "name":"test12"},
              +    {"id":111, "pId":11, "name":"test111"}
              +];
              +var treeObj = $.fn.zTree.getZTreeObj("tree");
              +var nodes = treeObj.transformTozTreeNodes(simpleNodes);
              +
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/zTreeObj.updateNode.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/zTreeObj.updateNode.html new file mode 100644 index 00000000..7639ff41 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/api/en/zTreeObj.updateNode.html @@ -0,0 +1,37 @@ +
              +
              +

              Function(treeNode, checkTypeFlag)zTreeObj.updateNode

              +

              Overview[ depends on jquery.ztree.core js ]

              +
              +

              +
              +

              Update node data. Primarily used to update the node's DOM.

              +

              1. Can update the attributes for display (e.g. 'name', 'target', 'url', 'icon', 'iconSkin', 'checked', 'nocheck'), do not update the other attributes. For example: If you need to expand the node, please use expandNode() method, do not modify the 'open' attribute.

              +

              2. Use updateNode() method of zTree can't trigger 'beforeCheck' or 'onCheck' callback function.

              +

              Please use zTree object to executing the method.

              +
              +
              +

              Function Parameter Descriptions

              +
              +

              treeNodeJSON

              +

              JSON data object of the node which need to update.

              +

              Please ensure that this data object is an internal node data object in zTree.

              +

              checkTypeFlagBoolean

              +

              checkTypeFlag = true means: According to 'setting.check.chkboxType' attribute automatically check or uncheck the parent and child nodes.

              +

              checkTypeFlag = false means: only check or uncheck this node, don't affect its parent and child nodes.

              +

              This parameter is valid when 'setting.check.enable = true' and 'setting.check.chkStyle = "checkbox"'

              +

              Don't affect the parent and child nodes which 'nochecked' attribute is true.

              +

              Return none

              +

              no return value

              +
              +

              Examples of function

              +

              1. Modify the first selected node's name, and update it.

              +
              var treeObj = $.fn.zTree.getZTreeObj("tree");
              +var nodes = treeObj.getNodes();
              +if (nodes.length>0) {
              +	nodes[0].name = "test";
              +	treeObj.updateNode(nodes[0]);
              +}
              +
              +
              +
              \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/css/demo.css b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/css/demo.css new file mode 100644 index 00000000..f6dba0de --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/css/demo.css @@ -0,0 +1,33 @@ +html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, font, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td { + margin: 0;padding: 0;border: 0;outline: 0;font-weight: inherit;font-style: inherit;font-size: 100%;font-family: inherit;vertical-align: baseline;} +body {color: #2f332a;font: 15px/21px Arial, Helvetica, simsun, sans-serif;background: #f0f6e4 \9;} +h1, h2, h3, h4, h5, h6 {color: #2f332a;font-weight: bold;font-family: Helvetica, Arial, sans-serif;padding-bottom: 5px;} +h1 {font-size: 24px;line-height: 34px;text-align: center;} +h2 {font-size: 14px;line-height: 24px;padding-top: 5px;} +h6 {font-weight: normal;font-size: 12px;letter-spacing: 1px;line-height: 24px;text-align: center;} +a {color:#3C6E31;text-decoration: underline;} +a:hover {background-color:#3C6E31;color:white;} +input.radio {margin: 0 2px 0 8px;} +input.radio.first {margin-left:0;} +input.empty {color: lightgray;} +code {color: #2f332a;} +.highlight_red {color:#A60000;} +.highlight_green {color:#A7F43D;} +li {list-style: circle;font-size: 12px;} +li.title {list-style: none;} +ul.list {margin-left: 17px;} + +div.content_wrap {width: 600px;height:380px;} +div.content_wrap div.left{float: left;width: 250px;} +div.content_wrap div.right{float: right;width: 340px;} +div.zTreeDemoBackground {width:250px;height:362px;text-align:left;} + +ul.ztree {margin-top: 10px;border: 1px solid #617775;background: #f0f6e4;width:220px;height:360px;overflow-y:scroll;overflow-x:auto;} +ul.log {border: 1px solid #617775;background: #f0f6e4;width:300px;height:170px;overflow: hidden;} +ul.log.small {height:45px;} +ul.log li {color: #666666;list-style: none;padding-left: 10px;} +ul.log li.dark {background-color: #E3E3E3;} + +/* ruler */ +div.ruler {height:20px; width:220px; background-color:#f0f6e4;border: 1px solid #333; margin-bottom: 5px; cursor: pointer} +div.ruler div.cursor {height:20px; width:30px; background-color:#3C6E31; color:white; text-align: right; padding-right: 5px; cursor: pointer} \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/css/zTreeStyle/img/diy/1_close.png b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/css/zTreeStyle/img/diy/1_close.png new file mode 100644 index 0000000000000000000000000000000000000000..68ccb3c3b90170df7cddab1fe6e8e455c3854573 GIT binary patch literal 601 zcmV-f0;c_mP)(_`g8%^e{{R4h=>PzAFaQARU;qF*m;eA5Z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23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/css/zTreeStyle/img/diy/5.png b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/css/zTreeStyle/img/diy/5.png new file mode 100644 index 0000000000000000000000000000000000000000..0c5eccd562c303cf5197629ef5f2666b6180bd48 GIT binary patch literal 710 zcmV;%0y+JOP)(_`g8%^e{{R4h=>PzAFaQARU;qF*m;eA5Z<1fd zMgRZ;Oi4sRRCwB?l21sJaTv!xzis}To8;O?C>{dC{zy=SO6rn?>JoVfJ9PB0!cw|< z5rY2EH4^INrK0lE$(TB`L1J|?w{{RVwVX+{e0A>6yZ3#69o{*#LV~{V{P^I25M99V?Z$DfCOu%f*iEi)VM!&PQ0~X={*pIhRm&^JADx2Ei zO9FtZ)17!zihou!LclW{fUsJ6-KRQWX%RLy%#rdc&iw~WzZ8c|*7UlD+tm4dPcnr0SiDoFEg5E2Y&dPN717pvrG@d&~qN)SLk2YQ}eWhnzS2NsMXU@e;q z$#1J?MTrek>$@}ysIbH4Pn4|s4!{BsRg~ey@o{jwK^l-v|2=daTrL(~1&Auja1qcm zA0Pb~i;esUhr#VZ*EO_EW=H6T4sH+MBVlG^vFAPW@zEjxNMD$XUVj}71~yd{>Do)) z&``4()NF>lp&_eXY~*rG1t$YtbJ2bvy&WKdWa#Vaz0czlsCFm9?LkALArT%gs@=iz zM3Aw>%3UB?=s|4%%0TI@ntc}!?y2fKbE&)8wwW?tw9>)Yi;(_`g8%^e{{R4h=>PzAFaQARU;qF*m;eA5Z<1fd zMgRZ-Hc3Q5RCwBylf6#EFcgKqR*|SEf;KdQN{mQMNM#6bz*E3p!3*#TJOP9q=I%T} z)g_1#i3ub?3{8Itwu2ecv`#4@J&R@g=<~Vv$_3Z+FM(5**Hx$4IK%aP-43;Gb+vXq zUuVhneBJ75-43T-EP$6WJoRVj!|QthI?cwfXCHeI>Dj&rpcKd`Uv3%2{zO&+5OQ|7 z=;cI0rUAu-Dnz~nLZs7L08+*mb;p_3zesh*i2-sBFdS=wK}gNEso8dBf?)8;uvD5$ zpcK!qZv_3`za>=GH`uH0qya)Hf_^WvdFF_P+D(_`g8%^e{{R4h=>PzAFaQARU;qF*m;eA5Z<1fd zMgRZ-oJmAMRCwCNld)>sP!xtg$;P&DX##d?FjXy#1Btu@<1TrIE}b(6+V0u<0C|G+ z1!6E{h#^zPfVNUH1)Si?mq44L)RLtur52}yfrAIB@yT&wtK6#}E;o1CwW> zs0MEifRF!B`^DaweqwrPizJsaJ+ws@N@V7V{5<_TW}e7G$pgN~T?_h(db5KXZbM-X z@i~OveZ=Qbn4^Z<)SDg9SGgG&F_ybUT3JJlcA@4#C4%DjEY}>=XqU9IhUIR75$6O7 z8YIQ(_la3W9qobDhNK8q8+Eit%qmX550Ym5hYkYx{R_;P^`1+ZR#BsUc>NAF+9yn_ ztoK|n4k(!k^_NgGljU2p)j*9W zaI13;R$T12?;o{2_N$D)6u7>L2Aq7}dD;>lbA1yHY`_4jK;tey79sFML_*`gU*n$v Y0CUjIYVM#Hl>h($07*qoM6N<$g3L4G@&Et; literal 0 HcmV?d00001 diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/css/zTreeStyle/img/diy/8.png b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/css/zTreeStyle/img/diy/8.png new file mode 100644 index 0000000000000000000000000000000000000000..a8f3a86e7091de4acdd38745f74b30f0f3d40f9e GIT binary patch literal 529 zcmV+s0`C2ZP)(_`g8%^e{{R4h=>PzAFaQARU;qF*m;eA5Z<1fd zMgRZ-mq|oHRCwB?ld(!1Q51&1(I{htpn+Xo2nhiLK7gQ=rAta1-4c z23I~Dy#=Bx=-sES#qFU9A~NtT@3!SYME0%7fru>cwq@9yhz#EV;MBm^6uNgtR8Xr= z2i9fl6|Mue0M{9PgJ@>&J^Va_d-JF#FCqZvz~tbj{^y9_PT}y_|FTqGfU(|32N(ld zdoN`zWX3zdQtSRe)z51`wtYaRAywY{0S-(qSQqqB^m^?LF~6wMV5jvm0?L4k3s8yo zD*>6YSQl38yF2Ej`-O+&`dWo7gEaA8Rp?@@!`g|8C0WWJ_m{hqX~o6>&}D$W3~-$S zV;!z@c}1laaT=qvy0*ci2asppOD)WX6h)7P*^pMr>b(YuB-DG2YA$FmJ^na9HNDvf zXGS+Sp6w9M)GC&%xasQa+^&Tc%i_FwxOx6O0H%St(lzkAoEgbPL(_`g8%^e{{R4h=>PzAFaQARU;qF*m;eA5Z<1fd zMgRZ-SxH1eRCwCFlD%phK@^3*HCYugNa+j-+qg=ez>lIrt6Er<-ysj+R54r6Ea(-| zq;X*c?zeMmf*6eCC_6h695=JJ71{U?e45KW_s-#5&LjXuQTzlBfs@f_G?s+5w&eg$ zhQs057_-6Uc|IlzNRo=85P&3%F=}Cq5wOKcVuv^4*#fPL|MB6ehpW|!JkK}!G)eCUA?`kDYU+wRQl|@AsL{=k$6#thE3*=Sl#oqXX&kO!|GS z@au=FqXS6-*ah~DF{o$>nU{_K+;olW3X86D1zL_O(0T4pKdrt_r^NSay z@PGjCE6_9z-g}y+dE_5_`V3#b@v&aP`RUeDmSwEhYqBic7MNZ8lJBEIOU$l)`Ssp{ zbFQ3BCIf)!bb1$GL=xlLi**V7k+e*bq}|z?$BHD9nE9)5GXRrS-uaN7-+2H4002ov JPDHLkV1iKO%vb;b literal 0 HcmV?d00001 diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/css/zTreeStyle/img/line_conn.gif b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/css/zTreeStyle/img/line_conn.gif new file mode 100644 index 0000000000000000000000000000000000000000..d561d36a915776730eb3069cee4c949f027667ed GIT binary patch literal 45 xcmZ?wbhEHbT_)p@)n z{^qIIq1(T$e$~zMQ}6t1w^a|Cj;Amo3}FHq!p^`7G=x7ROJIXqM}S9S9}m;(SWbi* zHiVjpkZW$u7K%QH zEX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xcj;xA`~$-oDNAFgD;nm!S&SN(1RdWp1n9H`NtWhb!#YxV+Wc)=RSOw+5*(0HxPgsOEf zCec|CoFC8irSUdkvrX?^<5C_0sP;s-(ibFD{wFY7f4v~1c`<(kv?ux}9l)%~{`RcC zH+su~j3sC8MI;F!NrnZ#T38SjTg|A3`K+;$3D7T+3tyy0gcVnQzFJGdq5z%$10c8r Ap8x;= literal 0 HcmV?d00001 diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/css/zTreeStyle/img/zTreeStandard.png b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/css/zTreeStyle/img/zTreeStandard.png new file mode 100644 index 0000000000000000000000000000000000000000..ffda01ef1cccc398ee4e2327f4093ba1130a4961 GIT binary patch literal 11173 zcmYLvWmFwav?YFV4Z+>r9WEN&f;$&YfZ*=#esOnqhu{tYf=h6BcW3zCn>F*JyMA=9 zI$Hbes#D?0ic%`eCMGW@PGaKWg^*6N8kDgs7U^@~Jn1m)iW@N18WyvpNUqmNcrPI3Y#Ri>q7dfcjA0`CQJQPRv z93Ju@g2iM|VQG_AnX(C!YE<|otj>Y%t~3wFd|9$=oJj#ew<0i%PNM0mtqXpZtV?GLkh`_pJ{z_ z%S*3y3oPMI!)ik|n^y83JT7B+t-_z>NO8=nf2}0%w>JWyz9~+$^BAK}qdy})aRN5z zuO_<0-qB+0!4d6A6NMYS%lL}2%@*5Ie#~dtpp8%(Q-{Ih+vx<->Pb?+R+#h3JRk6u z!*pT9&Pz%Ivw2=d7+7-TAxNxPD=R4(x-;QLRNjkGXk%`Q_ej=xw9xUnU`!?_I4H=f zLl9I;*|!23DN!jq+=(}g4&ivnx$fJ#4JVeDC*QhJ_;W62Teq>L-fd>DgM#f^fi>m8 zMS>X;9skRUnF&f)l|=)KgLm^~(^xOE-(*|E^si5%S1z(&8=lMiJC)MQ?T0&H8*Uvg zIAfujn+Gq^A^27N3iqbjlqqIPqAC@b&f7%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gF{36&CSimWQFVl zE?BiIQ0|g*Z)vabXjNrp;f4ogqx?z=9XexejtBRIymp&d+puNCag}e)i76?<;G`t3 zB#9AA%*;!^{*!B+b{6>$NL@WWLSLMcP5*&0l=A9o;M&rX)@nP?gGsDrwI1a5(=!bX z4O+Lyoh1f>qOy@V1&E!>^;0hY<<`r>c`sgk^;?i=SnC9qm?7ZY>GOk4>01s2G=xQn X3wf1`XyoU;TL_tNiW1dgpn(4aGkUu% literal 0 HcmV?d00001 diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/css/zTreeStyle/zTreeStyle.css b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/css/zTreeStyle/zTreeStyle.css new file mode 100644 index 00000000..f06554e3 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/css/zTreeStyle/zTreeStyle.css @@ -0,0 +1,97 @@ +/*------------------------------------- +zTree Style + +version: 3.4 +author: Hunter.z +email: hunter.z@263.net +website: http://code.google.com/p/jquerytree/ + +-------------------------------------*/ + +.ztree * {padding:0; margin:0; font-size:12px; font-family: Verdana, Arial, Helvetica, AppleGothic, sans-serif} +.ztree {margin:0; padding:5px; color:#333} +.ztree li{padding:0; margin:0; list-style:none; line-height:14px; text-align:left; white-space:nowrap; outline:0} +.ztree li ul{ margin:0; padding:0 0 0 18px} +.ztree li ul.line{ background:url(./img/line_conn.gif) 0 0 repeat-y;} + +.ztree li a {padding:1px 3px 0 0; margin:0; cursor:pointer; height:17px; color:#333; background-color: transparent; + text-decoration:none; vertical-align:top; display: inline-block} +.ztree li a:hover {text-decoration:underline} +.ztree li a.curSelectedNode {padding-top:0px; background-color:#FFE6B0; color:black; height:16px; border:1px #FFB951 solid; opacity:0.8;} +.ztree li a.curSelectedNode_Edit {padding-top:0px; background-color:#FFE6B0; color:black; height:16px; border:1px #FFB951 solid; opacity:0.8;} +.ztree li a.tmpTargetNode_inner {padding-top:0px; background-color:#316AC5; color:white; height:16px; border:1px #316AC5 solid; + opacity:0.8; filter:alpha(opacity=80)} +.ztree li a.tmpTargetNode_prev {} +.ztree li a.tmpTargetNode_next {} +.ztree li a input.rename {height:14px; width:80px; padding:0; margin:0; + font-size:12px; border:1px #7EC4CC solid; *border:0px} +.ztree li span {line-height:16px; margin-right:2px} +.ztree li span.button {line-height:0; margin:0; width:16px; height:16px; display: inline-block; vertical-align:middle; + border:0 none; cursor: pointer;outline:none; + background-color:transparent; background-repeat:no-repeat; background-attachment: scroll; + background-image:url("./img/zTreeStandard.png"); *background-image:url("./img/zTreeStandard.gif")} + +.ztree li span.button.chk {width:13px; height:13px; margin:0 3px 0 0; cursor: auto} +.ztree li span.button.chk.checkbox_false_full {background-position:0 0} +.ztree li span.button.chk.checkbox_false_full_focus {background-position:0 -14px} +.ztree li span.button.chk.checkbox_false_part {background-position:0 -28px} +.ztree li span.button.chk.checkbox_false_part_focus {background-position:0 -42px} +.ztree li span.button.chk.checkbox_false_disable {background-position:0 -56px} +.ztree li span.button.chk.checkbox_true_full {background-position:-14px 0} +.ztree li span.button.chk.checkbox_true_full_focus {background-position:-14px -14px} +.ztree li span.button.chk.checkbox_true_part {background-position:-14px -28px} +.ztree li span.button.chk.checkbox_true_part_focus {background-position:-14px -42px} +.ztree li span.button.chk.checkbox_true_disable {background-position:-14px -56px} +.ztree li span.button.chk.radio_false_full {background-position:-28px 0} +.ztree li span.button.chk.radio_false_full_focus {background-position:-28px -14px} +.ztree li span.button.chk.radio_false_part {background-position:-28px -28px} +.ztree li span.button.chk.radio_false_part_focus {background-position:-28px -42px} +.ztree li span.button.chk.radio_false_disable {background-position:-28px -56px} +.ztree li span.button.chk.radio_true_full {background-position:-42px 0} +.ztree li span.button.chk.radio_true_full_focus {background-position:-42px -14px} +.ztree li span.button.chk.radio_true_part {background-position:-42px -28px} +.ztree li span.button.chk.radio_true_part_focus {background-position:-42px -42px} +.ztree li span.button.chk.radio_true_disable {background-position:-42px -56px} + +.ztree li span.button.switch {width:18px; height:18px} +.ztree li span.button.root_open{background-position:-92px -54px} +.ztree li span.button.root_close{background-position:-74px -54px} +.ztree li span.button.roots_open{background-position:-92px 0} +.ztree li span.button.roots_close{background-position:-74px 0} +.ztree li span.button.center_open{background-position:-92px -18px} +.ztree li span.button.center_close{background-position:-74px -18px} +.ztree li span.button.bottom_open{background-position:-92px -36px} +.ztree li span.button.bottom_close{background-position:-74px -36px} +.ztree li span.button.noline_open{background-position:-92px -72px} +.ztree li span.button.noline_close{background-position:-74px -72px} +.ztree li span.button.root_docu{ background:none;} +.ztree li span.button.roots_docu{background-position:-56px 0} +.ztree li span.button.center_docu{background-position:-56px -18px} +.ztree li span.button.bottom_docu{background-position:-56px -36px} +.ztree li span.button.noline_docu{ background:none;} + +.ztree li span.button.ico_open{margin-right:2px; background-position:-110px -16px; vertical-align:top; *vertical-align:middle} +.ztree li span.button.ico_close{margin-right:2px; background-position:-110px 0; vertical-align:top; *vertical-align:middle} +.ztree li span.button.ico_docu{margin-right:2px; background-position:-110px -32px; vertical-align:top; *vertical-align:middle} +.ztree li span.button.edit {margin-right:2px; background-position:-110px -48px; vertical-align:top; *vertical-align:middle} +.ztree li span.button.remove {margin-right:2px; background-position:-110px -64px; vertical-align:top; *vertical-align:middle} + +.ztree li span.button.ico_loading{margin-right:2px; background:url(./img/loading.gif) no-repeat scroll 0 0 transparent; vertical-align:top; *vertical-align:middle} + +ul.tmpTargetzTree {background-color:#FFE6B0; opacity:0.8; filter:alpha(opacity=80)} + +span.tmpzTreeMove_arrow {width:16px; height:16px; display: inline-block; padding:0; margin:2px 0 0 1px; border:0 none; position:absolute; + background-color:transparent; background-repeat:no-repeat; background-attachment: scroll; + background-position:-110px -80px; background-image:url("./img/zTreeStandard.png"); *background-image:url("./img/zTreeStandard.gif")} + +ul.ztree.zTreeDragUL {margin:0; padding:0; position:absolute; width:auto; height:auto;overflow:hidden; background-color:#cfcfcf; border:1px #00B83F dotted; opacity:0.8; filter:alpha(opacity=80)} +.zTreeMask {z-index:10000; background-color:#cfcfcf; opacity:0.0; filter:alpha(opacity=0); position:absolute} + +/* level style*/ +/*.ztree li span.button.level0 { + display:none; +} +.ztree li ul.level0 { + padding:0; + background:none; +}*/ \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/asyncData/getNodes.php b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/asyncData/getNodes.php new file mode 100644 index 00000000..88625a24 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/asyncData/getNodes.php @@ -0,0 +1,38 @@ + +[] diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/asyncData/getNodesForBigData.php b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/asyncData/getNodesForBigData.php new file mode 100644 index 00000000..91d002e1 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/asyncData/getNodesForBigData.php @@ -0,0 +1,24 @@ + +[] \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/bigdata/common.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/bigdata/common.html new file mode 100644 index 00000000..ded4358e --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/bigdata/common.html @@ -0,0 +1,190 @@ + + + + ZTREE DEMO - big data common + + + + + + + + + + + +

              一次性加载大数据量

              +
              [ 文件路径: bigdata/common.html ]
              +
              + + \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/bigdata/diy_async.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/bigdata/diy_async.html new file mode 100644 index 00000000..c4a8bfba --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/bigdata/diy_async.html @@ -0,0 +1,157 @@ + + + + ZTREE DEMO - big data async + + + + + + + + + + + +

              分批异步加载大数据量

              +
              [ 文件路径: bigdata/diy_async.html ]
              +
              +
              +
                +
              •     此 Demo 专门用于测试分批异步加载,每次展开节点都要重新进行异步加载。
              • +
              +
                +
                +
                +
                  +
                • 1、大数据量加载说明

                  +
                    +
                  • 1)、对于某一级节点数多达几千个的时候,zTree 默认的延迟加载是无效的,此 Demo 演示了一种原先 zTree v2.6 时的分批加载节点的方法。
                  • +
                  • 2)、此方法适用于1、2千个节点必须全部显示的需求。
                  • +
                  • 3)、此方法并不能解决加载慢的问题,相反只会让最终结果出现的更慢,只是可以有限度的避免浏览器假死,而且显示的节点越多就越慢。
                  • +
                  • 4)、对于某一级节点数至少几千个的情况,另一个解决方案是:分页异步加载。
                    + async load log:
                    +
                    • +
                    +
                  • +
                  • 2、setting 配置信息说明

                    +
                      +
                    • 需要设置 setting.async 异步加载部分的参数
                    • +
                    • 建议关闭动画效果 setting.view.expandSpeed = "";
                    • +
                    • 其他不需要进行特殊的配置,根据自己的需求自行设置
                    • +
                    +
                  • +
                  • 3、treeNode 节点数据说明

                    +
                      +
                    • 对 节点数据 没有特殊要求,用户可以根据自己的需求添加自定义属性
                    • +
                    +
                  • +
                  +
                  +
                  + + \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/bigdata/page.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/bigdata/page.html new file mode 100644 index 00000000..ef3c763b --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/bigdata/page.html @@ -0,0 +1,150 @@ + + + + ZTREE DEMO - big data page + + + + + + + + + + + + +

                  分页加载大数据量

                  +
                  [ 文件路径: bigdata/page.html ]
                  +
                  +
                  +
                    +
                    +
                    +
                      +
                    • 1、大数据量加载说明

                      +
                        +
                      • 1)、分页方案可以有效解决某一级节点数据超大的情况。
                      • +
                      • 2)、分页按钮通过自定义控件的方法实现。
                      • +
                      • 3)、分页方案对于 checkbox 的关联关系无能为力,只能每次翻页后进行修正。由于时间关系,Demo 中不对 checkbox 的关联进行任何修正处理。
                      • +
                      • 4)、分页方案中,从 zTree 得到的节点数据只有当前页的节点数据,可以在每次翻页后自行保存每页的数据,作为缓存,具体情况要根据实际需求来决定。
                      • + +
                      • 2、setting 配置信息说明

                        +
                          +
                        • 需要设置 setting.async 异步加载部分的参数
                        • +
                        • 其他不需要进行特殊的配置,根据自己的需求自行设置
                        • +
                        +
                      • +
                      • 3、treeNode 节点数据说明

                        +
                          +
                        • 对 节点数据 没有特殊要求,用户可以根据自己的需求添加自定义属性
                        • +
                        +
                      • +
                      +
                    +
                    + + \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/core/async.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/core/async.html new file mode 100644 index 00000000..3f2a0d90 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/core/async.html @@ -0,0 +1,70 @@ + + + + ZTREE DEMO - Async + + + + + + + + + + +

                    异步加载节点数据的树

                    +
                    [ 文件路径: core/async.html ]
                    +
                    +
                    +
                      +
                      +
                      +
                        +
                      • 1、setting 配置信息说明

                        +
                          +
                        • 使用异步加载,必须设置 setting.async 中的各个属性,详细请参见 API 文档中的相关内容
                        • +
                        +
                      • +
                      • 2、treeNode 节点数据说明

                        +
                          +
                        • 异步加载功能对于 treeNode 节点数据没有特别要求,如果采用简单 JSON 数据,请设置 setting.data.simple 中的属性
                        • +
                        • 如果异步加载每次都只返回单层的节点数据,那么可以不设置简单 JSON 数据模式
                        • +
                        +
                      • +
                      • 3、其他说明

                        +
                          +
                        • 观察 autoParam 和 otherParam 请使用 firebug 或 浏览器的开发人员工具
                        • +
                        • 此 Demo 只能加载到第 4 级节点(level=3)
                        • +
                        • 此 Demo 利用 dataFilter 对节点的 name 进行了修改
                        • +
                        +
                      • +
                      +
                      +
                      + + \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/core/async_fun.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/core/async_fun.html new file mode 100644 index 00000000..3571b24b --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/core/async_fun.html @@ -0,0 +1,144 @@ + + + + ZTREE DEMO - reAsyncChildNodes + + + + + + + + + + + +

                      用 zTree 方法异步加载节点数据

                      +
                      [ 文件路径: core/async_fun.html ]
                      +
                      +
                      +
                        +
                        +
                        +
                          +
                        • 1、reAsyncChildNodes 方法操作说明

                          +
                            +
                          • 使用 zTreeObj.reAsyncChildNodes 方法,详细请参见 API 文档中的相关内容
                          • +
                          • 此 Demo 只能同时选中一个父节点
                            + 试试看:[ 重新加载 ]    [ 追加 ]

                            +
                          • +
                          • “悄悄地”操作只能针对 折叠状态 的父节点
                            + 试试看:[ 悄悄地 重新加载 ]    [ 悄悄地 追加 ]
                            + async log:
                            +

                              +
                            • +
                            +
                          • +
                          • 2、setting 配置信息说明

                            +
                              +
                            • 使用 zTree 提供的 reAsyncChildNodes 方法也必须设置 setting.async 中的各个属性,详细请参见 API 文档中的相关内容
                            • +
                            +
                          • +
                          • 3、treeNode 节点数据说明

                            +
                              +
                            • 同 "异步加载 节点数据" 中的说明
                            • +
                            +
                          • +
                          • 4、其他说明

                            +
                              +
                            • 同 "异步加载 节点数据" 中的说明
                            • +
                            +
                          • +
                          +
                          +
                          + + \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/core/click.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/core/click.html new file mode 100644 index 00000000..50367d97 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/core/click.html @@ -0,0 +1,107 @@ + + + + ZTREE DEMO - beforeClick / onClick + + + + + + + + + + +

                          单击节点控制

                          +
                          [ 文件路径: core/click.html ]
                          +
                          +
                          +
                            +
                            +
                            +
                              +
                            • 1、beforeClick / onClick 事件回调函数控制

                              +
                                +
                              • 利用 click 事件回调函数 可以进行各种其他的附加操作,这里简单演示如何监控此事件
                              • +
                              • 请尝试按下 Ctrl 键进行 多节点选择 和 取消选择
                                + click log:
                                +

                                  +
                                • +
                                +
                              • +
                              • 2、setting 配置信息说明

                                +
                                  +
                                • 需要设置 setting.callback.beforeClick 和 setting.callback.onClick 属性, 详细请参见 API 文档中的相关内容
                                • +
                                +
                              • +
                              • 3、treeNode 节点数据说明

                                +
                                  +
                                • 对 节点数据 没有特殊要求,用户可以根据自己的需求添加自定义属性
                                • +
                                +
                              • +
                              +
                              +
                              + + \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/core/custom_font.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/core/custom_font.html new file mode 100644 index 00000000..e9f901ec --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/core/custom_font.html @@ -0,0 +1,67 @@ + + + + ZTREE DEMO - Custom Font + + + + + + + + + + +

                              显示自定义字体的树

                              +
                              [ 文件路径: core/custom_font.html ]
                              +
                              +
                              +
                                +
                                +
                                +
                                  +
                                • 1、setting 配置信息说明

                                  +
                                    +
                                  • 1、节点自定义字体请设置 setting.view.fontCss 属性,详细请参见 API 文档中的相关内容
                                  • +
                                  • 2、setting.view.nameIsHTML 属性可以允许节点名称支持 HTML 内容,详细请参见 API 文档中的相关内容
                                  • +
                                  +
                                • +
                                • 2、treeNode 节点数据说明

                                  +
                                    +
                                  • 设置字体不需要 treeNode 设置特殊数据,但如果用于为了区别不同类型的节点,设置不同的样式,可以对相应的数据设置自定义属性
                                  • +
                                  • 此 Demo 利用 treeNode 保存样式定义
                                  • +
                                  +
                                • +
                                +
                                +
                                + + \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/core/custom_icon.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/core/custom_icon.html new file mode 100644 index 00000000..7c8de189 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/core/custom_icon.html @@ -0,0 +1,74 @@ + + + + ZTREE DEMO - Custom Icon + + + + + + + + + + +

                                自定义图标 -- icon 属性

                                +
                                [ 文件路径: core/custom_icon.html ]
                                +
                                +
                                +
                                  +
                                  +
                                  +
                                    +
                                  • 1、setting 配置信息说明

                                    +
                                      +
                                    • 自定义图标不需要对 setting 进行特殊配置
                                    • +
                                    +
                                  • +
                                  • 2、treeNode 节点数据说明

                                    +
                                      +
                                    • 利用 节点数据的 icon / iconOpen / iconClose 属性实现自定义图标
                                    • +
                                    • 详细请参见 API 文档中的相关内容
                                    • +
                                    +
                                  • +
                                  • 3、其他说明

                                    +
                                      +
                                    • 由于时间关系,例子直接采用 png 图片,如果需要解决 ie6 下 png 图片的透明问题,请针对 ie6 制作特殊的 gif 图片或者利用 css filter 解决
                                    • +
                                    +
                                  • +
                                  +
                                  +
                                  + + \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/core/custom_iconSkin.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/core/custom_iconSkin.html new file mode 100644 index 00000000..cde753a5 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/core/custom_iconSkin.html @@ -0,0 +1,84 @@ + + + + ZTREE DEMO - Custom Icon Skin + + + + + + + + + + + +

                                  自定义图标 -- iconSkin 属性

                                  +
                                  [ 文件路径: core/custom_iconSkin.html ]
                                  +
                                  +
                                  +
                                    +
                                    +
                                    +
                                      +
                                    • 1、setting 配置信息说明

                                      +
                                        +
                                      • 自定义图标不需要对 setting 进行特殊配置
                                      • +
                                      +
                                    • +
                                    • 2、treeNode 节点数据说明

                                      +
                                        +
                                      • 利用 节点数据的 iconSkin 属性 配合 css 实现自定义图标
                                      • +
                                      • 详细请参见 API 文档中的相关内容
                                      • +
                                      +
                                    • +
                                    • 3、其他说明

                                      +
                                        +
                                      • 由于时间关系,例子直接采用 png 图片,如果需要解决 ie6 下 png 图片的透明问题,请针对 ie6 制作特殊的 gif 图片或者利用 css filter 解决
                                      • +
                                      +
                                    • +
                                    +
                                    +
                                    + + \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/core/expand.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/core/expand.html new file mode 100644 index 00000000..15b03b5d --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/core/expand.html @@ -0,0 +1,185 @@ + + + + ZTREE DEMO - beforeExpand / onExpand && beforeCollapse / onCollapse + + + + + + + + + + +

                                    展开 / 折叠父节点控制

                                    +
                                    [ 文件路径: core/expand.html ]
                                    +
                                    +
                                    +
                                      +
                                      +
                                      +
                                        +
                                      • 1、beforeCollapse / onCollapse
                                          beforeExpand / onExpand 事件回调函数控制

                                        +
                                          +
                                        • 利用 collapse / expand 事件回调函数 可以控制父节点是否允许 展开 / 折叠,这里简单演示如何监控此事件
                                        • +
                                        • 试试看:
                                          +      expandNode 方法是否触发 callback
                                          +     单个节点--[ 展开 ] +     [ 折叠 ] +     [ 展开 / 折叠 切换 ]
                                          +     单个节点(包括子节点)--[ 展开 ] +     [ 折叠 ]
                                          +     全部节点--[ 展开 ] +     [ 折叠 ]

                                          +
                                        • 使用 zTreeObj.expandNode 方法,详细请参见 API 文档中的相关内容
                                          + collapse / expand log:
                                          +

                                            +
                                          • +
                                          +
                                        • +
                                        • 2、setting 配置信息说明

                                          +
                                            +
                                          • 事件回调函数的使用,详细请参见 API 文档中 setting.callback 的相关内容
                                          • +
                                          • 如果需要调整 展开 / 折叠 的动画效果, 详细请参见 API 文档中 setting.view.expandSpeed 的相关内容
                                          • +
                                          +
                                        • +
                                        • 3、treeNode 节点数据说明

                                          +
                                            +
                                          • 对 节点数据 没有特殊要求,用户可以根据自己的需求添加自定义属性
                                          • +
                                          +
                                        • +
                                        +
                                        +
                                        + + \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/core/noicon.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/core/noicon.html new file mode 100644 index 00000000..9562163b --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/core/noicon.html @@ -0,0 +1,93 @@ + + + + ZTREE DEMO - noIcon + + + + + + + + + + + +

                                        不显示节点图标的树

                                        +
                                        [ 文件路径: core/noicon.html ]
                                        +
                                        +
                                        +
                                          +
                                          +
                                          +
                                            +
                                          • 1、setting 配置信息说明

                                            +
                                              +
                                            • 此 Demo 利用 Function 设置了使父节点不显示图标的规则
                                            • +
                                            • 是否显示节点图标请设置 setting.view.showIcon 属性,详细请参见 API 文档中的相关内容
                                            • +
                                            +
                                          • +
                                          • 2、treeNode 节点数据说明

                                            +
                                              +
                                            • 是否显示图标,不需要 treeNode 节点数据提供特殊设置,但如果用户需要根据不同节点动态设置,可以对节点数据增加特殊属性,用于判别
                                            • +
                                            +
                                          • +
                                          +
                                          +
                                          + + \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/core/noline.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/core/noline.html new file mode 100644 index 00000000..212d97bb --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/core/noline.html @@ -0,0 +1,88 @@ + + + + ZTREE DEMO - noLine + + + + + + + + + + + +

                                          不显示连接线的树

                                          +
                                          [ 文件路径: core/noline.html ]
                                          +
                                          +
                                          +
                                            +
                                            +
                                            +
                                              +
                                            • 1、setting 配置信息说明

                                              +
                                                +
                                              • 是否显示连接线请设置 setting.view.showLine 属性,详细请参见 API 文档中的相关内容
                                              • +
                                              +
                                            • +
                                            • 2、treeNode 节点数据说明

                                              +
                                                +
                                              • 是否显示连线,不需要 treeNode 节点数据提供特殊设置
                                              • +
                                              +
                                            • +
                                            +
                                            +
                                            + + \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/core/otherMouse.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/core/otherMouse.html new file mode 100644 index 00000000..2dff4e41 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/core/otherMouse.html @@ -0,0 +1,132 @@ + + + + ZTREE DEMO - Other Mouse Event + + + + + + + + + + +

                                            其他鼠标事件监听

                                            +
                                            [ 文件路径: core/otherMouse.html ]
                                            +
                                            +
                                            +
                                              +
                                              +
                                              +
                                                +
                                              • 1、mousedown / mouseup / rightClick 事件回调函数控制

                                                +
                                                  +
                                                • zTree 提供 这几种鼠标事件响应,主要是为了便于用户针对一些特殊需求进行扩展开发,不会对 zTree 造成任何影响,这里简单演示如何监控此事件
                                                • +
                                                • 请尝试鼠标在 zTree 上胡乱点击(左键、右键)吧,顺便看看 log
                                                  + mousedown event log:
                                                  +

                                                    + mouseup event log:
                                                    +
                                                      + rightClick event log:
                                                      +

                                                        +
                                                      • +
                                                      +
                                                    • +
                                                    • 2、setting 配置信息说明

                                                      +
                                                        +
                                                      • 事件回调函数的使用,详细请参见 API 文档中 setting.callback 的相关内容
                                                      • +
                                                      +
                                                    • +
                                                    • 3、treeNode 节点数据说明

                                                      +
                                                        +
                                                      • 对 节点数据 没有特殊要求,用户可以根据自己的需求添加自定义属性
                                                      • +
                                                      +
                                                    • +
                                                    +
                                                    +
                                                    + + \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/core/searchNodes.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/core/searchNodes.html new file mode 100644 index 00000000..28c2e3ba --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/core/searchNodes.html @@ -0,0 +1,173 @@ + + + + ZTREE DEMO - getNodeByParam / getNodesByParam / getNodesByParamFuzzy + + + + + + + + + + +

                                                    根据参数查找节点

                                                    +
                                                    [ 文件路径: core/searchNodes.html ]
                                                    +
                                                    +
                                                    +
                                                      +
                                                      +
                                                      +
                                                        +
                                                      • 1、getNodeByParam / getNodesByParam / getNodesByParamFuzzy 方法操作说明

                                                        +
                                                          +
                                                        • 使用 zTreeObj.getNodeByParam / getNodesByParam / getNodesByParamFuzzy / getNodeByTId 方法,详细请参见 API 文档中的相关内容
                                                        • +
                                                        • 搜索试试看:
                                                          + 属性值( value ):
                                                          + 属性( key ):name (string)
                                                          + level (number) ... 根节点 level = 0
                                                          + id (number)
                                                          + 方法:getNodeByParam
                                                          + getNodesByParam
                                                          + getNodesByParamFuzzy (only string)
                                                          + getNodesByFilter (参考本页源码中 function filter)
                                                          +

                                                          +
                                                        • +
                                                        +
                                                      • +
                                                      • 2、setting 配置信息说明

                                                        +
                                                          +
                                                        • 不需要对 setting 进行特殊设置
                                                        • +
                                                        +
                                                      • +
                                                      • 3、treeNode 节点数据说明

                                                        +
                                                          +
                                                        • 请注意各个方法使用时保证传入查找的参数类型与设定要查找的属性的类型一致
                                                        • +
                                                        +
                                                      • +
                                                      +
                                                      +
                                                      + + \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/core/simpleData.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/core/simpleData.html new file mode 100644 index 00000000..6d2dcb89 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/core/simpleData.html @@ -0,0 +1,100 @@ + + + + ZTREE DEMO - Simple Data + + + + + + + + + + +

                                                      最简单的树 -- 简单 JSON 数据

                                                      +
                                                      [ 文件路径: core/simpleData.html ]
                                                      +
                                                      +
                                                      +
                                                        +
                                                        +
                                                        +
                                                          +
                                                        • 1、setting 配置信息说明

                                                          +
                                                            +
                                                          • 必须设置 setting.data.simple 内的属性,详细请参见 API 文档中的相关内容
                                                          • +
                                                          • 与显示相关的内容请参考 API 文档中 setting.view 内的配置信息
                                                          • +
                                                          • name、children、title 等属性定义更改请参考 API 文档中 setting.data.key 内的配置信息
                                                          • +
                                                          +
                                                        • +
                                                        • 2、treeNode 节点数据说明

                                                          +
                                                            +
                                                          • 简单模式的 JSON 数据需要使用 id / pId 表示节点的父子包含关系,如使用其他属性设置父子关联关系请参考 setting.data.simple 内各项说明 +
                                                            例如:
                                                            +var nodes = [
                                                            +	{id:1, pId:0, name: "父节点1"},
                                                            +	{id:11, pId:1, name: "子节点1"},
                                                            +	{id:12, pId:1, name: "子节点2"}
                                                            +];
                                                          • +
                                                          • 默认展开的节点,请设置 treeNode.open 属性
                                                          • +
                                                          • 无子节点的父节点,请设置 treeNode.isParent 属性
                                                          • +
                                                          • 其他属性说明请参考 API 文档中 "treeNode 节点数据详解"
                                                          • +
                                                          +
                                                        • +
                                                        • 3、其他说明

                                                          +
                                                            +
                                                          • Demo 中绝大部分都采用简单 JSON 数据模式,以便于大家学习
                                                          • +
                                                          +
                                                        • +
                                                        +
                                                        +
                                                        + + \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/core/standardData.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/core/standardData.html new file mode 100644 index 00000000..582a6e16 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/core/standardData.html @@ -0,0 +1,106 @@ + + + + ZTREE DEMO - Standard Data + + + + + + + + + + +

                                                        最简单的树 -- 标准 JSON 数据

                                                        +
                                                        [ 文件路径: core/standardData.html ]
                                                        +
                                                        +
                                                        +
                                                          +
                                                          +
                                                          +
                                                            +
                                                          • 1、setting 配置信息说明

                                                            +
                                                              +
                                                            • 普通使用,无必须设置的参数
                                                            • +
                                                            • 与显示相关的内容请参考 API 文档中 setting.view 内的配置信息
                                                            • +
                                                            • name、children、title 等属性定义更改请参考 API 文档中 setting.data.key 内的配置信息
                                                            • +
                                                            +
                                                          • +
                                                          • 2、treeNode 节点数据说明

                                                            +
                                                              +
                                                            • 标准的 JSON 数据需要嵌套表示节点的父子包含关系 +
                                                              例如:
                                                              +var nodes = [
                                                              +	{name: "父节点1", children: [
                                                              +		{name: "子节点1"},
                                                              +		{name: "子节点2"}
                                                              +	]}
                                                              +];
                                                              +
                                                            • +
                                                            • 默认展开的节点,请设置 treeNode.open 属性
                                                            • +
                                                            • 无子节点的父节点,请设置 treeNode.isParent 属性
                                                            • +
                                                            • 其他属性说明请参考 API 文档中 "treeNode 节点数据详解"
                                                            • +
                                                            +
                                                          • +
                                                          +
                                                          +
                                                          + + \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/core/update_fun.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/core/update_fun.html new file mode 100644 index 00000000..918ed82b --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/core/update_fun.html @@ -0,0 +1,143 @@ + + + + ZTREE DEMO - updateNode + + + + + + + + + + + +

                                                          用 zTree 方法 更新 节点数据

                                                          +
                                                          [ 文件路径: core/update_fun.html ]
                                                          +
                                                          +
                                                          +
                                                            +
                                                            +
                                                            +
                                                              +
                                                            • 1、updateNode 方法操作说明

                                                              +
                                                                +
                                                              • 使用 zTreeObj.updateNode 方法,详细请参见 API 文档中的相关内容
                                                              • +
                                                              • 此 Demo 只能同时选中一个节点
                                                                + 试试看:[ 换名字 ] +     [ 换图标 ] +     [ 换颜色 ] +     [ 斜体 ]

                                                                +
                                                              • +
                                                              +
                                                            • +
                                                            • 2、setting 配置信息说明

                                                              +
                                                                +
                                                              • 不需要对 setting 进行特殊设置
                                                              • +
                                                              • 配合 setting.view.fontCss 可以修改节点文字样式
                                                              • +
                                                              +
                                                            • +
                                                            • 3、treeNode 节点数据说明

                                                              +
                                                                +
                                                              • zTreeObj.updateNode 方法的 API 文档中有详细说明
                                                              • +
                                                              +
                                                            • +
                                                            • 4、其他说明

                                                              +
                                                                +
                                                              • 此 Demo 是针对 核心 js 包 core 制作的,因此不包括 checkbox 的更新操作
                                                              • +
                                                              +
                                                            • +
                                                            +
                                                            +
                                                            + + \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/core/url.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/core/url.html new file mode 100644 index 00000000..8550d287 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/core/url.html @@ -0,0 +1,63 @@ + + + + ZTREE DEMO - url + + + + + + + + + + +

                                                            超链接演示

                                                            +
                                                            [ 文件路径: core/url.html ]
                                                            +
                                                            +
                                                            +
                                                              +
                                                              +
                                                              +
                                                                +
                                                              • 1、setting 配置信息说明

                                                                +
                                                                  +
                                                                • 普通使用,无必须设置的参数
                                                                • +
                                                                • 如果需要灵活控制超链接跳转,请利用 onClick 事件回调函数进行控制,详细请参见 API 文档中的相关内容
                                                                • +
                                                                +
                                                              • +
                                                              • 2、treeNode 节点数据说明

                                                                +
                                                                  +
                                                                • 1、url 属性用于设置 页面跳转的路径
                                                                • +
                                                                • 2、target 属性用于设置 页面跳转的窗口目标
                                                                • +
                                                                • 3、click 属性用于设置简单的 onClick 事件
                                                                • +
                                                                • 其他属性说明请参考 API 文档中 "treeNode 节点数据详解"
                                                                • +
                                                                +
                                                              • +
                                                              +
                                                              +
                                                              + + \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/excheck/checkbox.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/excheck/checkbox.html new file mode 100644 index 00000000..01c5d5c9 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/excheck/checkbox.html @@ -0,0 +1,107 @@ + + + + ZTREE DEMO - checkbox + + + + + + + + + + + +

                                                              Checkbox 勾选操作

                                                              +
                                                              [ 文件路径: excheck/checkbox.html ]
                                                              +
                                                              +
                                                              +
                                                                +
                                                                +
                                                                +
                                                                  +
                                                                • 1、setting 配置信息说明

                                                                  +
                                                                    +
                                                                  • 使用 checkbox,必须设置 setting.check 中的各个属性,详细请参见 API 文档中的相关内容
                                                                  • +
                                                                  • 父子关联关系:
                                                                    + 被勾选时:关联父 + 关联子
                                                                    + 取消勾选时:关联父 + 关联子
                                                                    +

                                                                      +
                                                                    • +
                                                                    +
                                                                  • +
                                                                  • 2、treeNode 节点数据说明

                                                                    +
                                                                      +
                                                                    • 1)、如果需要初始化默认节点被勾选,请设置 treeNode.checked 属性,详细请参见 API 文档中的相关内容
                                                                    • +
                                                                    • 2)、如果某节点禁用 checkbox,请设置 treeNode.chkDisabled 属性,详细请参见 API 文档中的相关内容 和 'chkDisabled 演示'
                                                                    • +
                                                                    • 3)、如果某节点不显示 checkbox,请设置 treeNode.nocheck 属性,详细请参见 API 文档中的相关内容 和 'nocheck 演示'
                                                                    • +
                                                                    • 4)、如果更换 checked 属性,请参考 API 文档中 setting.data.key.checked 的详细说明
                                                                    • +
                                                                    • 5)、其他请参考 API 文档中 treeNode.checkedOld / getCheckStatus / check_Child_State / check_Focus 的详细说明
                                                                    • +
                                                                    +
                                                                  • +
                                                                  +
                                                                  +
                                                                  + + \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/excheck/checkbox_chkDisabled.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/excheck/checkbox_chkDisabled.html new file mode 100644 index 00000000..c3ad4664 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/excheck/checkbox_chkDisabled.html @@ -0,0 +1,112 @@ + + + + ZTREE DEMO - Checkbox chkDisabled + + + + + + + + + + + +

                                                                  Checkbox chkDisabled 演示

                                                                  +
                                                                  [ 文件路径: excheck/checkbox_chkDisabled.html ]
                                                                  +
                                                                  +
                                                                  +
                                                                    +
                                                                    +
                                                                    +
                                                                      +
                                                                    • 1、setChkDisabled 方法操作说明

                                                                      +
                                                                        +
                                                                      • setChkDisabled 方法可以设置节点 checkbox / radio 禁用 或 取消禁用,详细请参见 API 文档中的相关内容
                                                                      • +
                                                                      • 试试看:
                                                                        + 禁用时:关联父 + 关联子
                                                                        + 取消禁用时:关联父 + 关联子
                                                                        +     [ 禁用 ] +     [ 取消禁用 ] +

                                                                      • +
                                                                      +
                                                                    • +
                                                                    • 2、setting 配置信息说明

                                                                      +
                                                                        +
                                                                      • 这个 Demo 只简单演示 chkDisabled 的使用方法,详细配置信息请参考 ‘Checkbox 勾选操作’
                                                                      • +
                                                                      +
                                                                    • +
                                                                    • 3、treeNode 节点数据说明

                                                                      +
                                                                        +
                                                                      • 1)、如果某节点禁用 checkbox,请设置 treeNode.chkDisabled 属性,详细请参见 API 文档中的相关内容
                                                                      • +
                                                                      • 2)、其他请参考 ‘Checkbox 勾选操作’
                                                                      • +
                                                                      +
                                                                    • +
                                                                    +
                                                                    +
                                                                    + + \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/excheck/checkbox_count.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/excheck/checkbox_count.html new file mode 100644 index 00000000..c0d84ba1 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/excheck/checkbox_count.html @@ -0,0 +1,126 @@ + + + + ZTREE DEMO - getChangeCheckedNodes / getCheckedNodes + + + + + + + + + + + +

                                                                    checkbox 勾选统计

                                                                    +
                                                                    [ 文件路径: excheck/checkbox_count.html ]
                                                                    +
                                                                    +
                                                                    +
                                                                      +
                                                                      +
                                                                      +
                                                                        +
                                                                      • 1、getChangeCheckedNodes / getCheckedNodes 方法操作说明

                                                                        +
                                                                          +
                                                                        • 使用 zTreeObj.getChangeCheckedNodes / getCheckedNodes 方法,详细请参见 API 文档中的相关内容
                                                                        • +
                                                                        • 去勾选 checkbox 比较下面的数字变化:
                                                                          +

                                                                            +
                                                                          • 当前被勾选的节点共
                                                                          • +
                                                                          • 当前未被勾选的节点共
                                                                          • +
                                                                          • 勾选状态对比规则:与 zTree 初始化时对比
                                                                            + 与上一次勾选后对比
                                                                          • +
                                                                          • 当前被修改勾选状态的节点共
                                                                          • +

                                                                          +
                                                                        • +
                                                                        +
                                                                      • +
                                                                      • 2、setting 配置信息说明

                                                                        +
                                                                          +
                                                                        • 同 "checkbox 勾选操作" 中的说明
                                                                        • +
                                                                        +
                                                                      • +
                                                                      • 3、treeNode 节点数据说明

                                                                        +
                                                                          +
                                                                        • 同 "checkbox 勾选操作" 中的说明
                                                                        • +
                                                                        +
                                                                      • +
                                                                      +
                                                                      +
                                                                      + + \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/excheck/checkbox_fun.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/excheck/checkbox_fun.html new file mode 100644 index 00000000..c8a0b12c --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/excheck/checkbox_fun.html @@ -0,0 +1,172 @@ + + + + ZTREE DEMO - beforeCheck / onCheck + + + + + + + + + + + +

                                                                      用 zTree 方法 勾选 checkbox

                                                                      +
                                                                      [ 文件路径: excheck/checkbox_fun.html ]
                                                                      +
                                                                      +
                                                                      +
                                                                        +
                                                                        +
                                                                        +
                                                                          +
                                                                        • 1、beforeCheck / onCheck 事件回调函数控制

                                                                          +
                                                                            +
                                                                          • 利用 beforeCheck / onCheck 事件回调函数 可以控制是否允许 更改 节点勾选状态,这里简单演示如何监控此事件
                                                                          • +
                                                                          • 这里还演示了 checkNode / checkAllNodes 方法触发 beforeCheck / onCheck 事件回调函数的情况,试试看:
                                                                            +      setting.check.autoCheckTrigger: false
                                                                            +      执行勾选方法是否触发 callback
                                                                            +     单节点--[ 勾选 ] +     [ 取消勾选 ] +     [ 勾选 切换 ]
                                                                            +     单节点 ( 影响父子 )--[ 勾选 ] +     [ 取消勾选 ] +     [ 勾选 切换 ]
                                                                            +     全部节点--[ 勾选 ] +     [ 取消勾选 ]

                                                                            +
                                                                          • +
                                                                          • 使用 zTreeObj.checkNode / checkAllNodes 方法,详细请参见 API 文档中的相关内容
                                                                            + beforeCheck / onCheck log:
                                                                            +

                                                                              +
                                                                            • +
                                                                            +
                                                                          • +
                                                                          • 2、setting 配置信息说明

                                                                            +
                                                                              +
                                                                            • 同 "checkbox 勾选操作" 中的说明
                                                                            • +
                                                                            +
                                                                          • +
                                                                          • 3、treeNode 节点数据说明

                                                                            +
                                                                              +
                                                                            • 同 "checkbox 勾选操作" 中的说明
                                                                            • +
                                                                            +
                                                                          • +
                                                                          +
                                                                          +
                                                                          + + \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/excheck/checkbox_halfCheck.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/excheck/checkbox_halfCheck.html new file mode 100644 index 00000000..21de1e07 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/excheck/checkbox_halfCheck.html @@ -0,0 +1,108 @@ + + + + ZTREE DEMO - Checkbox halfCheck + + + + + + + + + + + +

                                                                          Checkbox halfCheck 演示

                                                                          +
                                                                          [ 文件路径: excheck/checkbox_halfCheck.html ]
                                                                          +
                                                                          +
                                                                          +
                                                                            +
                                                                            +
                                                                            +
                                                                              +
                                                                            • 1、演示说明

                                                                              +
                                                                                +
                                                                              • 这个演示式实现了 异步加载模式 下简单的勾选操作
                                                                              • +
                                                                              • 1)、加载子节点后,父节点的 halfCheck 立刻失效
                                                                              • +
                                                                              • 2)、勾选父节点,可以影响之后加载的子节点的勾选状态
                                                                              • +
                                                                              • 3)、勾选父节点,可以让其子节点的 halfCheck 属性失效
                                                                              • +
                                                                              +
                                                                            • +
                                                                            • 2、setting 配置信息说明

                                                                              +
                                                                                +
                                                                              • 实现半勾选功能,不需要配置任何参数。但半勾选功能属于辅助功能,无法单独使用,因此也需要根据自己的需求配置特定参数。
                                                                              • +
                                                                              +
                                                                            • +
                                                                            • 3、treeNode 节点数据说明

                                                                              +
                                                                                +
                                                                              • 1)、请在节点初始化之前,设置 treeNode.halfCheck 属性,详细请参见 API 文档中的相关内容
                                                                              • +
                                                                              • 2)、其他请参考 ‘Checkbox 勾选操作’
                                                                              • +
                                                                              +
                                                                            • +
                                                                            +
                                                                            +
                                                                            + + \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/excheck/checkbox_nocheck.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/excheck/checkbox_nocheck.html new file mode 100644 index 00000000..5e990155 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/excheck/checkbox_nocheck.html @@ -0,0 +1,96 @@ + + + + ZTREE DEMO - no checkbox + + + + + + + + + + + +

                                                                            Checkbox nocheck 演示

                                                                            +
                                                                            [ 文件路径: excheck/checkbox_nocheck.html ]
                                                                            +
                                                                            +
                                                                            +
                                                                              +
                                                                              +
                                                                              +
                                                                                +
                                                                              • 1、setting 配置信息说明

                                                                                +
                                                                                  +
                                                                                • 这个 Demo 只简单演示 nocheck 的使用方法,详细配置信息请参考 ‘Checkbox 勾选操作’
                                                                                • +
                                                                                • setting.check.nocheckInherit 可以设置子节点自动继承父节点的 nocheck 属性,详细请参见 API 文档中的相关内容
                                                                                • +
                                                                                • 试试看:
                                                                                  +     [ 隐藏 ] +     [ 显示 ] +

                                                                                • +
                                                                                +
                                                                              • +
                                                                              • 2、treeNode 节点数据说明

                                                                                +
                                                                                  +
                                                                                • 1)、如果某节点不显示 checkbox,请设置 treeNode.nocheck 属性,详细请参见 API 文档中的相关内容
                                                                                • +
                                                                                • 2)、其他请参考 ‘Checkbox 勾选操作’
                                                                                • +
                                                                                +
                                                                              • +
                                                                              +
                                                                              +
                                                                              + + \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/excheck/radio.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/excheck/radio.html new file mode 100644 index 00000000..9cd589a5 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/excheck/radio.html @@ -0,0 +1,97 @@ + + + + ZTREE DEMO - radio + + + + + + + + + + + +

                                                                              Radio 勾选操作

                                                                              +
                                                                              [ 文件路径: excheck/radio.html ]
                                                                              +
                                                                              +
                                                                              +
                                                                                +
                                                                                +
                                                                                +
                                                                                  +
                                                                                • 1、setting 配置信息说明

                                                                                  +
                                                                                    +
                                                                                  • 使用 radio,必须设置 setting.check 中的各个属性,详细请参见 API 文档中的相关内容
                                                                                  • +
                                                                                  • radio 分组范围:同一级内 + 整棵树内
                                                                                    +

                                                                                      +
                                                                                    • +
                                                                                    +
                                                                                  • +
                                                                                  • 2、treeNode 节点数据说明

                                                                                    +
                                                                                      +
                                                                                    • 1)、如果需要初始化默认节点被勾选,请设置 treeNode.checked 属性,详细请参见 API 文档中的相关内容
                                                                                    • +
                                                                                    • 2)、如果某节点不显示 radio,请设置 treeNode.nocheck 属性,详细请参见 API 文档中的相关内容
                                                                                    • +
                                                                                    • 3)、如果更换 checked 属性,请参考 API 文档中 setting.data.key.checked 的详细说明
                                                                                    • +
                                                                                    • 4)、其他请参考 API 文档中 treeNode.checkedOld / getCheckStatus / check_Child_State / check_Focus 的详细说明
                                                                                    • +
                                                                                    +
                                                                                  • +
                                                                                  +
                                                                                  +
                                                                                  + + \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/excheck/radio_chkDisabled.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/excheck/radio_chkDisabled.html new file mode 100644 index 00000000..6d330f3b --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/excheck/radio_chkDisabled.html @@ -0,0 +1,101 @@ + + + + ZTREE DEMO - Radio chkDisabled + + + + + + + + + + + +

                                                                                  Radio chkDisabled 演示

                                                                                  +
                                                                                  [ 文件路径: excheck/radio_chkDisabled.html ]
                                                                                  +
                                                                                  +
                                                                                  +
                                                                                    +
                                                                                    +
                                                                                    +
                                                                                      +
                                                                                    • 1、setChkDisabled 方法操作说明

                                                                                      +
                                                                                        +
                                                                                      • setChkDisabled 方法可以设置节点 checkbox / radio 禁用 或 取消禁用,详细请参见 API 文档中的相关内容
                                                                                      • +
                                                                                      • 试试看:
                                                                                        +     [ 禁用 ] +     [ 取消禁用 ]

                                                                                        +
                                                                                      • +
                                                                                      +
                                                                                    • +
                                                                                    • 2、setting 配置信息说明

                                                                                      +
                                                                                        +
                                                                                      • 这个 Demo 只简单演示 chkDisabled 的使用方法,详细配置信息请参考 ‘Radio 勾选操作’
                                                                                      • +
                                                                                      +
                                                                                    • +
                                                                                    • 3、treeNode 节点数据说明

                                                                                      +
                                                                                        +
                                                                                      • 1)、如果某节点不显示 radio,请设置 treeNode.chkDisabled 属性,详细请参见 API 文档中的相关内容
                                                                                      • +
                                                                                      • 2)、其他请参考 ‘Radio 勾选操作’
                                                                                      • +
                                                                                      +
                                                                                    • +
                                                                                    +
                                                                                    +
                                                                                    + + \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/excheck/radio_fun.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/excheck/radio_fun.html new file mode 100644 index 00000000..b9b52401 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/excheck/radio_fun.html @@ -0,0 +1,151 @@ + + + + ZTREE DEMO - beforeCheck / onCheck + + + + + + + + + + + +

                                                                                    用 zTree 方法 勾选 radio

                                                                                    +
                                                                                    [ 文件路径: excheck/radio_fun.html ]
                                                                                    +
                                                                                    +
                                                                                    +
                                                                                      +
                                                                                      +
                                                                                      +
                                                                                        +
                                                                                      • 1、beforeCheck / onCheck 事件回调函数控制

                                                                                        +
                                                                                          +
                                                                                        • 利用 beforeCheck / onCheck 事件回调函数 可以控制是否允许 更改 节点勾选状态,这里简单演示如何监控此事件
                                                                                        • +
                                                                                        • 试试看:
                                                                                          +      checkNode 方法是否触发 callback
                                                                                          +     [ 勾选 ] +     [ 取消勾选 ]

                                                                                          +
                                                                                        • 使用 zTreeObj.checkNode 方法,详细请参见 API 文档中的相关内容
                                                                                          + beforeCheck / onCheck log:
                                                                                          +

                                                                                            +
                                                                                          • +
                                                                                          +
                                                                                        • +
                                                                                        • 2、setting 配置信息说明

                                                                                          +
                                                                                            +
                                                                                          • 同 "radio 勾选操作" 中的说明
                                                                                          • +
                                                                                          +
                                                                                        • +
                                                                                        • 3、treeNode 节点数据说明

                                                                                          +
                                                                                            +
                                                                                          • 同 "radio 勾选操作" 中的说明
                                                                                          • +
                                                                                          +
                                                                                        • +
                                                                                        +
                                                                                        +
                                                                                        + + \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/excheck/radio_halfCheck.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/excheck/radio_halfCheck.html new file mode 100644 index 00000000..91f25cff --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/excheck/radio_halfCheck.html @@ -0,0 +1,93 @@ + + + + ZTREE DEMO - Radio halfCheck + + + + + + + + + + + +

                                                                                        Radio halfCheck 演示

                                                                                        +
                                                                                        [ 文件路径: excheck/radio_halfCheck.html ]
                                                                                        +
                                                                                        +
                                                                                        +
                                                                                          +
                                                                                          +
                                                                                          +
                                                                                            +
                                                                                          • 1、演示说明

                                                                                            +
                                                                                              +
                                                                                            • 这个演示式实现了 异步加载模式 下简单的勾选操作
                                                                                            • +
                                                                                            • 1)、加载子节点后,父节点的 halfCheck 立刻失效
                                                                                            • +
                                                                                            • 2)、勾选父节点,不会影响子节点的勾选状态
                                                                                            • +
                                                                                            • 3)、勾选父节点,不会让其子节点的 halfCheck 属性失效
                                                                                            • +
                                                                                            +
                                                                                          • +
                                                                                          • 2、setting 配置信息说明

                                                                                            +
                                                                                              +
                                                                                            • 实现半勾选功能,不需要配置任何参数。但半勾选功能属于辅助功能,无法单独使用,因此也需要根据自己的需求配置特定参数。
                                                                                            • +
                                                                                            +
                                                                                          • +
                                                                                          • 3、treeNode 节点数据说明

                                                                                            +
                                                                                              +
                                                                                            • 1)、请在节点初始化之前,设置 treeNode.halfCheck 属性,详细请参见 API 文档中的相关内容
                                                                                            • +
                                                                                            • 2)、其他请参考 ‘Radio 勾选操作’
                                                                                            • +
                                                                                            +
                                                                                          • +
                                                                                          +
                                                                                          +
                                                                                          + + \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/excheck/radio_nocheck.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/excheck/radio_nocheck.html new file mode 100644 index 00000000..cc648c17 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/excheck/radio_nocheck.html @@ -0,0 +1,77 @@ + + + + ZTREE DEMO - no radio + + + + + + + + + + + +

                                                                                          Radio nocheck 演示

                                                                                          +
                                                                                          [ 文件路径: excheck/radio_nocheck.html ]
                                                                                          +
                                                                                          +
                                                                                          +
                                                                                            +
                                                                                            +
                                                                                            +
                                                                                              +
                                                                                            • 1、setting 配置信息说明

                                                                                              +
                                                                                                +
                                                                                              • 这个 Demo 只简单演示 nocheck 的使用方法,详细配置信息请参考 ‘Radio 勾选操作’
                                                                                              • +
                                                                                              • setting.check.nocheckInherit 可以设置子节点自动继承父节点的 nocheck 属性,详细请参见 API 文档中的相关内容
                                                                                              • +
                                                                                              +
                                                                                            • +
                                                                                            • 2、treeNode 节点数据说明

                                                                                              +
                                                                                                +
                                                                                              • 1)、如果某节点不显示 radio,请设置 treeNode.nocheck 属性,详细请参见 API 文档中的相关内容
                                                                                              • +
                                                                                              • 2)、其他请参考 ‘Radio 勾选操作’
                                                                                              • +
                                                                                              +
                                                                                            • +
                                                                                            +
                                                                                            +
                                                                                            + + \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/exedit/async_edit.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/exedit/async_edit.html new file mode 100644 index 00000000..eb577fbc --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/exedit/async_edit.html @@ -0,0 +1,120 @@ + + + + ZTREE DEMO - async & edit + + + + + + + + + + + + +

                                                                                            异步加载 & 编辑功能 共存

                                                                                            +
                                                                                            [ 文件路径: exedit/async_edit.html ]
                                                                                            +
                                                                                            +
                                                                                            +
                                                                                              +
                                                                                              +
                                                                                              +
                                                                                                +
                                                                                              • 1、异步加载 & 编辑功能 共存说明

                                                                                                +
                                                                                                  +
                                                                                                • 1)、此 Demo 是基于 "高级 增 / 删 / 改 节点" 修改的,并且开放了拖拽功能,可与其进行对比
                                                                                                • +
                                                                                                • 2)、只需要同时开启编辑模式和异步加载模式即可实现共存
                                                                                                • +
                                                                                                • 3)、zTree 完善了异步加载模式下的编辑功能,对于未加载子节点的父节点,增加子节点时,会首先进行异步加载。
                                                                                                • +
                                                                                                +
                                                                                              • +
                                                                                              • 2、setting 配置信息说明

                                                                                                +
                                                                                                  +
                                                                                                • 1)、使用 编辑功能,请参考 "拖拽节点基本控制" 和 "基本 增 / 删 / 改 节点" Demo 中关于 setting 的配置要求
                                                                                                • +
                                                                                                • 2)、使用 异步加载功能,请参考 "异步加载 节点数据" Demo 中关于 setting 的配置要求
                                                                                                • +
                                                                                                +
                                                                                              • +
                                                                                              • 3、treeNode 节点数据说明

                                                                                                +
                                                                                                  +
                                                                                                • 两种模式共存,对数据无特殊要求,请分别参考 "异步加载 节点数据" & "拖拽 节点 基本控制" & "基本 增 / 删 / 改 节点" 中的相关说明
                                                                                                • +
                                                                                                +
                                                                                              • +
                                                                                              +
                                                                                              +
                                                                                              + + \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/exedit/drag.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/exedit/drag.html new file mode 100644 index 00000000..a19da79e --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/exedit/drag.html @@ -0,0 +1,136 @@ + + + + ZTREE DEMO - drag & drop + + + + + + + + + + + +

                                                                                              拖拽节点基本控制

                                                                                              +
                                                                                              [ 文件路径: exedit/drag.html ]
                                                                                              +
                                                                                              +
                                                                                              +
                                                                                                +
                                                                                                +
                                                                                                +
                                                                                                  +
                                                                                                • 1、setting 配置信息说明

                                                                                                  +
                                                                                                    +
                                                                                                  • 此 Demo 仅从功能上演示实现拖拽的基本方法和配置参数
                                                                                                  • +
                                                                                                  • 1)、使用 拖拽功能,必须设置 setting.edit 中的各个属性,详细请参见 API 文档中的相关内容
                                                                                                  • +
                                                                                                  • 2)、使用 拖拽功能的事件回调函数,必须设置 setting.callback.beforeDrag / onDrag / beforeDrop / onDrop 等属性,详细请参见 API 文档中的相关内容
                                                                                                  • +
                                                                                                  • 基本拖拽设置:
                                                                                                    + 允许复制 + 允许移动
                                                                                                    +

                                                                                                      +
                                                                                                    • +
                                                                                                    • 拖拽相对位置设置:
                                                                                                      + prev + inner + next
                                                                                                      +

                                                                                                        +
                                                                                                      • +
                                                                                                      +
                                                                                                    • +
                                                                                                    • 2、treeNode 节点数据说明

                                                                                                      +
                                                                                                        +
                                                                                                      • 对 节点数据 没有特殊要求,用户可以根据自己的需求添加自定义属性
                                                                                                      • +
                                                                                                      +
                                                                                                    • +
                                                                                                    +
                                                                                                    +
                                                                                                    + + \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/exedit/drag_fun.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/exedit/drag_fun.html new file mode 100644 index 00000000..963068de --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/exedit/drag_fun.html @@ -0,0 +1,180 @@ + + + + ZTREE DEMO - copyNode / moveNode + + + + + + + + + + + + +

                                                                                                    用 zTree 方法 移动 / 复制节点

                                                                                                    +
                                                                                                    [ 文件路径: exedit/drag_fun.html ]
                                                                                                    +
                                                                                                    +
                                                                                                    +
                                                                                                      +
                                                                                                      +
                                                                                                      +
                                                                                                        +
                                                                                                      • 1、copyNode / moveNode 方法操作说明

                                                                                                        +
                                                                                                          +
                                                                                                        • 利用 copyNode / moveNode 方法也可以实现 复制 / 移动 节点的目的,这里简单演示使用方法
                                                                                                        • +
                                                                                                        • 对节点进行 复制 / 剪切,试试看:
                                                                                                          +     [ 复制 ] +     [ 剪切 ] +     [ 粘贴 ]

                                                                                                          +
                                                                                                        • 使用 zTreeObj.copyNode / moveNode 方法,详细请参见 API 文档中的相关内容
                                                                                                        • +
                                                                                                        +
                                                                                                      • +
                                                                                                      • 2、setting 配置信息说明

                                                                                                        +
                                                                                                          +
                                                                                                        • 同 "拖拽 节点 基本控制"
                                                                                                        • +
                                                                                                        +
                                                                                                      • +
                                                                                                      • 3、treeNode 节点数据说明

                                                                                                        +
                                                                                                          +
                                                                                                        • 同 "拖拽 节点 基本控制"
                                                                                                        • +
                                                                                                        +
                                                                                                      • +
                                                                                                      +
                                                                                                      +
                                                                                                      + + \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/exedit/drag_super.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/exedit/drag_super.html new file mode 100644 index 00000000..668746f7 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/exedit/drag_super.html @@ -0,0 +1,210 @@ + + + + ZTREE DEMO - beforeDrag / onDrag / beforeDrop / onDrop + + + + + + + + + + + +

                                                                                                      拖拽节点高级控制

                                                                                                      +
                                                                                                      [ 文件路径: exedit/drag_super.html ]
                                                                                                      +
                                                                                                      +
                                                                                                      +
                                                                                                        +
                                                                                                        +
                                                                                                        +
                                                                                                          +
                                                                                                        • 1、beforeDrag / onDrag
                                                                                                            beforeDrop / onDrop 事件回调函数控制

                                                                                                          +
                                                                                                            +
                                                                                                          • 此 Demo 演示合理利用配置参数实现更加灵活、更加合理的拖拽规则,操作时可以对比"基本控制"的例子
                                                                                                          • +
                                                                                                          • 此 Demo 默认 允许复制 / 移动
                                                                                                          • +
                                                                                                          • 此 Demo 中拖拽相对位置设置为 function,可以根据节点动态设定,从而可以放弃使用 beforeDrop 回调函数,拖拽时的效果会更好
                                                                                                          • +
                                                                                                          • 在对这些灵活的配置熟悉以后,相信你能够做出更加合理的拖拽规则!
                                                                                                            +      拖拽节点时自动展开父节点是否触发 callback
                                                                                                            + drag / drop log:
                                                                                                            +

                                                                                                            • +
                                                                                                            +
                                                                                                          • +
                                                                                                          • 2、setting 配置信息说明

                                                                                                            +
                                                                                                              +
                                                                                                            • 同 "拖拽 节点 基本控制"
                                                                                                            • +
                                                                                                            +
                                                                                                          • +
                                                                                                          • 3、treeNode 节点数据说明

                                                                                                            +
                                                                                                              +
                                                                                                            • 同 "拖拽 节点 基本控制"
                                                                                                            • +
                                                                                                            +
                                                                                                          • +
                                                                                                          +
                                                                                                          +
                                                                                                          + + \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/exedit/edit.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/exedit/edit.html new file mode 100644 index 00000000..ed787d76 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/exedit/edit.html @@ -0,0 +1,115 @@ + + + + ZTREE DEMO - edit + + + + + + + + + + + +

                                                                                                          基本 增 / 删 / 改 节点

                                                                                                          +
                                                                                                          [ 文件路径: exedit/edit.html ]
                                                                                                          +
                                                                                                          +
                                                                                                          +
                                                                                                            +
                                                                                                            +
                                                                                                            +
                                                                                                              +
                                                                                                            • 1、setting 配置信息说明

                                                                                                              +
                                                                                                                +
                                                                                                              • 此 Demo 仅从功能上演示编辑节点的基本方法和配置参数
                                                                                                              • +
                                                                                                              • 1)、使用 编辑功能,必须设置 setting.edit 中的各个属性,详细请参见 API 文档中的相关内容
                                                                                                              • +
                                                                                                              • 2)、使用 编辑功能的事件回调函数,必须设置 setting.callback.beforeRemove / onRemove / beforeRename / onRename 等属性,详细请参见 API 文档中的相关内容
                                                                                                              • +
                                                                                                              • 3)、zTree 不提供默认的增加按钮,如需实现请利用自定义控件的方法 addHoverDom / removeHoverDom ,详细请参见 API 文档中的相关内容;另外也可以参考 "高级 增 / 删 / 改 节点" 的 Demo
                                                                                                              • +
                                                                                                              • 基本编辑按钮设置:
                                                                                                                + 显示删除按钮 + 显示编辑按钮
                                                                                                                + remove 按钮的 title:
                                                                                                                + rename 按钮的 title: +

                                                                                                                  +
                                                                                                                • +
                                                                                                                +
                                                                                                              • +
                                                                                                              • 2、treeNode 节点数据说明

                                                                                                                +
                                                                                                                  +
                                                                                                                • 对 节点数据 没有特殊要求,用户可以根据自己的需求添加自定义属性
                                                                                                                • +
                                                                                                                +
                                                                                                              • +
                                                                                                              +
                                                                                                              +
                                                                                                              + + \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/exedit/edit_fun.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/exedit/edit_fun.html new file mode 100644 index 00000000..6201683c --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/exedit/edit_fun.html @@ -0,0 +1,194 @@ + + + + ZTREE DEMO - addNodes / editName / removeNode / removeChildNodes + + + + + + + + + + + +

                                                                                                              用 zTree 方法 增 / 删 / 改 节点

                                                                                                              +
                                                                                                              [ 文件路径: exedit/edit_fun.html ]
                                                                                                              +
                                                                                                              +
                                                                                                              +
                                                                                                                +
                                                                                                                +
                                                                                                                +
                                                                                                                  +
                                                                                                                • 1、addNodes / editName / removeNode / removeChildNodes 方法操作说明

                                                                                                                  +
                                                                                                                    +
                                                                                                                  • 利用 addNodes / editName / removeNode / removeChildNodes 方法也可以实现 增 / 删 / 改 节点的目的,这里简单演示使用方法
                                                                                                                  • +
                                                                                                                  • cancelEditName 方法仅仅是在节点进入名称编辑状态时有效,请在必要时使用,Demo 不进行此方法的演示
                                                                                                                  • +
                                                                                                                  • 利用 setting.data.keep.parent / leaf 属性 实现了父节点、叶子节点的状态锁定
                                                                                                                  • +
                                                                                                                  • 对节点进行 增 / 删 / 改,试试看:
                                                                                                                    +      removeNode 方法是否触发 callback
                                                                                                                    +     [ 增加父节点 ] +     [ 增加叶子节点 ] +     [ 编辑名称 ]
                                                                                                                    +     [ 删除节点 ] +     [ 清空子节点 ]
                                                                                                                    + remove log:
                                                                                                                    +

                                                                                                                      +
                                                                                                                    • +
                                                                                                                    • 使用 zTreeObj.addNodes / cancelEditName / editName / removeNode / removeChildNodes 方法,详细请参见 API 文档中的相关内容
                                                                                                                    • +
                                                                                                                    +
                                                                                                                  • +
                                                                                                                  • 2、setting 配置信息说明

                                                                                                                    +
                                                                                                                      +
                                                                                                                    • 同 "基本 增 / 删 / 改 节点"
                                                                                                                    • +
                                                                                                                    • 保持 父 / 叶子 节点状态,需要设置 setting.data.keep.parent / leaf 属性,详细请参见 API 文档中的相关内容
                                                                                                                    • +
                                                                                                                    +
                                                                                                                  • +
                                                                                                                  • 3、treeNode 节点数据说明

                                                                                                                    +
                                                                                                                      +
                                                                                                                    • 同 "基本 增 / 删 / 改 节点"
                                                                                                                    • +
                                                                                                                    +
                                                                                                                  • +
                                                                                                                  +
                                                                                                                  +
                                                                                                                  + + \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/exedit/edit_super.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/exedit/edit_super.html new file mode 100644 index 00000000..fb56de22 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/exedit/edit_super.html @@ -0,0 +1,183 @@ + + + + ZTREE DEMO - beforeEditName / beforeRemove / onRemove / beforeRename / onRename + + + + + + + + + + + + +

                                                                                                                  高级 增 / 删 / 改 节点

                                                                                                                  +
                                                                                                                  [ 文件路径: exedit/edit_super.html ]
                                                                                                                  +
                                                                                                                  +
                                                                                                                  +
                                                                                                                    +
                                                                                                                    +
                                                                                                                    +
                                                                                                                      +
                                                                                                                    • 1、beforeEditName
                                                                                                                        beforeRemove / onRemove
                                                                                                                        beforeRename / onRename 事件回调函数控制

                                                                                                                      +
                                                                                                                        +
                                                                                                                      • 此 Demo 演示合理利用自定义控件、事件回调函数配合以增强用户体验,操作时可以对比"基本 增 / 删 / 改 节点"的 Demo
                                                                                                                      • +
                                                                                                                      • 此 Demo 实现增加节点按钮
                                                                                                                      • +
                                                                                                                      • 此 Demo 实现删除节点时进行确认
                                                                                                                      • +
                                                                                                                      • 此 Demo 利用 showRenameBtn 对 isLastNode = true 的节点不显示编辑按钮
                                                                                                                      • +
                                                                                                                      • 此 Demo 利用 showRemoveBtn 对 isFirstNode = true 的节点不显示删除按钮
                                                                                                                      • +
                                                                                                                      • 可以利用 beforeEditName 触发自定义的编辑操作
                                                                                                                      • +
                                                                                                                      • 在对这些灵活的配置熟悉以后,相信你能够做出更加合理的编辑界面!
                                                                                                                        +      编辑名称时是否全选 text
                                                                                                                        + remove / rename log:  红色 表示取消编辑操作 (v3.5.13+)
                                                                                                                        +

                                                                                                                          +
                                                                                                                        • +
                                                                                                                        +
                                                                                                                      • +
                                                                                                                      • 2、setting 配置信息说明

                                                                                                                        +
                                                                                                                          +
                                                                                                                        • 同 "基本 增 / 删 / 改 节点"
                                                                                                                        • +
                                                                                                                        +
                                                                                                                      • +
                                                                                                                      • 3、treeNode 节点数据说明

                                                                                                                        +
                                                                                                                          +
                                                                                                                        • 同 "基本 增 / 删 / 改 节点"
                                                                                                                        • +
                                                                                                                        +
                                                                                                                      • +
                                                                                                                      +
                                                                                                                      +
                                                                                                                      + + \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/exedit/multiTree.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/exedit/multiTree.html new file mode 100644 index 00000000..a4736a2a --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/exedit/multiTree.html @@ -0,0 +1,94 @@ + + + + ZTREE DEMO - multiTree + + + + + + + + + + + +

                                                                                                                      多棵树之间 的 数据交互

                                                                                                                      +
                                                                                                                      [ 文件路径: exedit/multiTree.html ]
                                                                                                                      +
                                                                                                                      +
                                                                                                                      +
                                                                                                                        +
                                                                                                                      • 1、setting 配置信息说明

                                                                                                                        +
                                                                                                                          +
                                                                                                                        • zTree 对于多棵树之间拖拽的操作非常简单,只需要创建两棵可拖拽的树即可,同时可根据 各种事件回调函数 以及 zTree 的方法配合实现较复杂的操作规则,这里只是基本演示。
                                                                                                                        • +
                                                                                                                        • 关于配置信息请参考拖拽、编辑等 Demo 的详细说明
                                                                                                                        • +
                                                                                                                        +
                                                                                                                      • +
                                                                                                                      • 2、treeNode 节点数据说明

                                                                                                                        +
                                                                                                                          +
                                                                                                                        • 对 节点数据 没有特殊要求,用户可以根据自己的需求添加自定义属性
                                                                                                                        • +
                                                                                                                        +
                                                                                                                      • +
                                                                                                                      +
                                                                                                                      +
                                                                                                                      +
                                                                                                                        +
                                                                                                                        +
                                                                                                                        +
                                                                                                                          +
                                                                                                                          +
                                                                                                                          + + \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/exhide/checkbox.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/exhide/checkbox.html new file mode 100644 index 00000000..bf730818 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/exhide/checkbox.html @@ -0,0 +1,161 @@ + + + + ZTREE DEMO - Hide With Checkbox Mode + + + + + + + + + + + + +

                                                                                                                          配合 checkbox 的隐藏

                                                                                                                          +
                                                                                                                          [ 文件路径: exhide/checkbox.html ]
                                                                                                                          +
                                                                                                                          +
                                                                                                                          +
                                                                                                                            +
                                                                                                                            +
                                                                                                                            +
                                                                                                                              +
                                                                                                                            • 1、setting 配置信息说明

                                                                                                                              +
                                                                                                                                +
                                                                                                                              • 使用隐藏功能,无需设置任何参数
                                                                                                                              • +
                                                                                                                              +
                                                                                                                            • +
                                                                                                                            • 2、treeNode 节点数据说明

                                                                                                                              +
                                                                                                                                +
                                                                                                                              • 初始化时,设置 treeNode.isHidden = true; 可以让节点隐藏
                                                                                                                              • +
                                                                                                                              • 隐藏、显示节点,看看树的变化:

                                                                                                                                + 试试看:[ 隐藏选中的节点 ] +     [ 显示全部被隐藏的节点 ]

                                                                                                                                +

                                                                                                                                  +
                                                                                                                                • isHidden = true 的节点共
                                                                                                                                • +
                                                                                                                                • 被隐藏的节点共
                                                                                                                                • +
                                                                                                                                • 当前被勾选的节点共
                                                                                                                                • +
                                                                                                                                • 当前未被勾选的节点共
                                                                                                                                • +
                                                                                                                                • 隐藏节点后,可以看看仍显示节点的 isFirstNode 和 isLastNode 属性
                                                                                                                                • +

                                                                                                                                +
                                                                                                                              • +
                                                                                                                              +
                                                                                                                            • +
                                                                                                                            • 3、其他说明

                                                                                                                              +
                                                                                                                                +
                                                                                                                              • 隐藏节点操作,会影响 isFirstNode 和 isLastNode 属性,但是对于 getPreNode() 和 getNextNode() 方法无影响
                                                                                                                              • +
                                                                                                                              +
                                                                                                                            • +
                                                                                                                            +
                                                                                                                            +
                                                                                                                            + + \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/exhide/common.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/exhide/common.html new file mode 100644 index 00000000..600d1c03 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/exhide/common.html @@ -0,0 +1,126 @@ + + + + ZTREE DEMO - Hide Ordinary Node + + + + + + + + + + + +

                                                                                                                            隐藏普通节点

                                                                                                                            +
                                                                                                                            [ 文件路径: exhide/common.html ]
                                                                                                                            +
                                                                                                                            +
                                                                                                                            +
                                                                                                                              +
                                                                                                                              +
                                                                                                                              +
                                                                                                                                +
                                                                                                                              • 1、setting 配置信息说明

                                                                                                                                +
                                                                                                                                  +
                                                                                                                                • 使用此功能,无需设置任何参数
                                                                                                                                • +
                                                                                                                                +
                                                                                                                              • +
                                                                                                                              • 2、treeNode 节点数据说明

                                                                                                                                +
                                                                                                                                  +
                                                                                                                                • 初始化时,设置 treeNode.isHidden = true; 可以让节点隐藏
                                                                                                                                • +
                                                                                                                                • 隐藏、显示节点,看看树的变化:

                                                                                                                                  + 试试看:[ 隐藏选中的节点 ] +     [ 显示全部被隐藏的节点 ]

                                                                                                                                  +

                                                                                                                                    +
                                                                                                                                  • isHidden = true 的节点共
                                                                                                                                  • +
                                                                                                                                  • 隐藏节点后,可以看看仍显示节点的 isFirstNode 和 isLastNode 属性
                                                                                                                                  • +

                                                                                                                                  +
                                                                                                                                • +
                                                                                                                                +
                                                                                                                              • +
                                                                                                                              • 3、其他说明

                                                                                                                                +
                                                                                                                                  +
                                                                                                                                • 隐藏节点操作,会影响 isFirstNode 和 isLastNode 属性,但是对于 getPreNode() 和 getNextNode() 方法无影响
                                                                                                                                • +
                                                                                                                                +
                                                                                                                              • +
                                                                                                                              +
                                                                                                                              +
                                                                                                                              + + \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/exhide/radio.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/exhide/radio.html new file mode 100644 index 00000000..5273b73a --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/exhide/radio.html @@ -0,0 +1,162 @@ + + + + ZTREE DEMO - Hide With Radio Mode + + + + + + + + + + + + +

                                                                                                                              配合 radio 的隐藏

                                                                                                                              +
                                                                                                                              [ 文件路径: exhide/radio.html ]
                                                                                                                              +
                                                                                                                              +
                                                                                                                              +
                                                                                                                                +
                                                                                                                                +
                                                                                                                                +
                                                                                                                                  +
                                                                                                                                • 1、setting 配置信息说明

                                                                                                                                  +
                                                                                                                                    +
                                                                                                                                  • 使用隐藏功能,无需设置任何参数
                                                                                                                                  • +
                                                                                                                                  +
                                                                                                                                • +
                                                                                                                                • 2、treeNode 节点数据说明

                                                                                                                                  +
                                                                                                                                    +
                                                                                                                                  • 初始化时,设置 treeNode.isHidden = true; 可以让节点隐藏
                                                                                                                                  • +
                                                                                                                                  • 隐藏、显示节点,看看树的变化:

                                                                                                                                    + 试试看:[ 隐藏选中的节点 ] +     [ 显示全部被隐藏的节点 ]

                                                                                                                                    +

                                                                                                                                      +
                                                                                                                                    • isHidden = true 的节点共
                                                                                                                                    • +
                                                                                                                                    • 被隐藏的节点共
                                                                                                                                    • +
                                                                                                                                    • 当前被勾选的节点共
                                                                                                                                    • +
                                                                                                                                    • 当前未被勾选的节点共
                                                                                                                                    • +
                                                                                                                                    • 隐藏节点后,可以看看仍显示节点的 isFirstNode 和 isLastNode 属性
                                                                                                                                    • +

                                                                                                                                    +
                                                                                                                                  • +
                                                                                                                                  +
                                                                                                                                • +
                                                                                                                                • 3、其他说明

                                                                                                                                  +
                                                                                                                                    +
                                                                                                                                  • 隐藏节点操作,会影响 isFirstNode 和 isLastNode 属性,但是对于 getPreNode() 和 getNextNode() 方法无影响
                                                                                                                                  • +
                                                                                                                                  +
                                                                                                                                • +
                                                                                                                                +
                                                                                                                                +
                                                                                                                                + + \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/index.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/index.html new file mode 100644 index 00000000..551eebcd --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/index.html @@ -0,0 +1,157 @@ + + + + ZTREE DEMO + + + + + + + + + + + + + + +
                                                                                                                                +
                                                                                                                                  +
                                                                                                                                  + + + diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/super/asyncForAll.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/super/asyncForAll.html new file mode 100644 index 00000000..8a38d986 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/super/asyncForAll.html @@ -0,0 +1,191 @@ + + + + ZTREE DEMO - async for All + + + + + + + + + + +

                                                                                                                                  异步加载模式下全部展开

                                                                                                                                  +
                                                                                                                                  [ 文件路径: super/asyncForAll.html ]
                                                                                                                                  +
                                                                                                                                  +
                                                                                                                                  +
                                                                                                                                    +
                                                                                                                                    +
                                                                                                                                    +
                                                                                                                                      +
                                                                                                                                    • 实现方法说明

                                                                                                                                      +
                                                                                                                                        +
                                                                                                                                      • 利用 onAsyncSuccess / onAsyncError 回调函数 和 reAsyncChildNodes 或 expandNode 方法可以实现全部功能。
                                                                                                                                      • +
                                                                                                                                      • 如果父节点数量很大,请注意利用延时进行控制,避免异步进程过多。
                                                                                                                                      • +
                                                                                                                                      • 建议:演示时请利用调试工具查看 network 的 ajax 加载过程。
                                                                                                                                      • +
                                                                                                                                      • 演示操作 +

                                                                                                                                        + [ 全部展开 ]        + [ 后台自动全部加载 ]

                                                                                                                                        + [ Reset zTree ]

                                                                                                                                        +

                                                                                                                                        +
                                                                                                                                      • +
                                                                                                                                      +
                                                                                                                                    • +
                                                                                                                                    +
                                                                                                                                    +
                                                                                                                                    + + \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/super/checkbox_radio.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/super/checkbox_radio.html new file mode 100644 index 00000000..66a3b035 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/super/checkbox_radio.html @@ -0,0 +1,116 @@ + + + + ZTREE DEMO - checkbox & radio + + + + + + + + + + + +

                                                                                                                                    checkbox / radio 共存

                                                                                                                                    +
                                                                                                                                    [ 文件路径: super/checkbox_radio.html ]
                                                                                                                                    +
                                                                                                                                    +
                                                                                                                                    +
                                                                                                                                      +
                                                                                                                                      +
                                                                                                                                      +
                                                                                                                                        +
                                                                                                                                      • 实现方法说明

                                                                                                                                        +
                                                                                                                                          +
                                                                                                                                        • zTree 默认的 checkbox 和 radio 是无法共存的,但可以利用 自定义控件 的功能实现此需求,具体需求可以参考 "添加 自定义控件" 的详细说明
                                                                                                                                        • +
                                                                                                                                        • 对于 checkbox / radio 的联动规则,请根据需求制定自己的规则
                                                                                                                                        • +
                                                                                                                                        +
                                                                                                                                      • +
                                                                                                                                      +
                                                                                                                                      +
                                                                                                                                      + + \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/super/diydom.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/super/diydom.html new file mode 100644 index 00000000..1980ff9f --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/super/diydom.html @@ -0,0 +1,177 @@ + + + + ZTREE DEMO - addHoverDom / removeHoverDom / addDiyDom + + + + + + + + + + + + +

                                                                                                                                      添加自定义控件

                                                                                                                                      +
                                                                                                                                      [ 文件路径: super/diydom.html ]
                                                                                                                                      +
                                                                                                                                      +
                                                                                                                                      +
                                                                                                                                        +
                                                                                                                                        +
                                                                                                                                        +
                                                                                                                                          +
                                                                                                                                        • 1、实现方法说明

                                                                                                                                          +
                                                                                                                                            +
                                                                                                                                          • 利用 setting.view.addHoverDom / removeHoverDom / addDiyDom 这几个参数的配置可以很容易的实现自定义控件的功能
                                                                                                                                          • +
                                                                                                                                          • 添加自定义控件,请务必掌握 zTree 节点对象的命名规则,以保证正常添加 DOM 控件
                                                                                                                                          • +
                                                                                                                                          • 如果添加标准的 select / checkbox / radio 等,请注意适当调整 zTree 的布局 css,保证 zTree 能正常显示
                                                                                                                                          • +
                                                                                                                                          +
                                                                                                                                        • +
                                                                                                                                        • 2、setting 配置信息说明

                                                                                                                                          +
                                                                                                                                            +
                                                                                                                                          • 使用 setting.view.addHoverDom / removeHoverDom / addDiyDom 属性,详细请参见 API 文档中的相关内容
                                                                                                                                          • +
                                                                                                                                          +
                                                                                                                                        • +
                                                                                                                                        • 3、treeNode 节点数据说明

                                                                                                                                          +
                                                                                                                                            +
                                                                                                                                          • 对 节点数据 没有特殊要求,用户可以根据自己的需求添加自定义属性
                                                                                                                                          • +
                                                                                                                                          +
                                                                                                                                        • +
                                                                                                                                        +
                                                                                                                                        +
                                                                                                                                        + + \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/super/dragWithOther.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/super/dragWithOther.html new file mode 100644 index 00000000..04a5b7c4 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/super/dragWithOther.html @@ -0,0 +1,235 @@ + + + + ZTREE DEMO - drag with other DOM + + + + + + + + + + + + +

                                                                                                                                        与其他 DOM 拖拽互动

                                                                                                                                        +
                                                                                                                                        [ 文件路径: super/dragWithOther.html ]
                                                                                                                                        +
                                                                                                                                        +
                                                                                                                                        +
                                                                                                                                          +
                                                                                                                                          +
                                                                                                                                          +
                                                                                                                                            +
                                                                                                                                          • 实现方法说明

                                                                                                                                            +
                                                                                                                                              +
                                                                                                                                            • zTree v3.2 版本修正了 onDrag/onDrop 中的 event 对象,因此可以较容易的控制将节点拖拽到其他 DOM
                                                                                                                                            • +
                                                                                                                                            • 将其他 DOM 拖拽到 zTree 需要自己制作相关的拖拽代码
                                                                                                                                            • +
                                                                                                                                            • 这仅仅是一个最简单的演示,如果需要更炫的效果,需要制作更复杂的代码
                                                                                                                                            • +
                                                                                                                                            +
                                                                                                                                          • +
                                                                                                                                          • 请拖拽下面内容到 树节点上

                                                                                                                                            +
                                                                                                                                            +
                                                                                                                                            大树小草花朵
                                                                                                                                            +
                                                                                                                                            +
                                                                                                                                            老虎狗熊狮子
                                                                                                                                            +
                                                                                                                                            + 也可以把二级节点拖拽到以上图层 +
                                                                                                                                          • +
                                                                                                                                          +
                                                                                                                                          +
                                                                                                                                          + + \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/super/left_menu.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/super/left_menu.html new file mode 100644 index 00000000..4b9941a2 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/super/left_menu.html @@ -0,0 +1,152 @@ + + + + ZTREE DEMO - left_menu + + + + + + + + + + + +

                                                                                                                                          左侧菜单

                                                                                                                                          +
                                                                                                                                          [ 文件路径: super/left_menu.html ]
                                                                                                                                          +
                                                                                                                                          +
                                                                                                                                          +
                                                                                                                                            +
                                                                                                                                            +
                                                                                                                                            +
                                                                                                                                              +
                                                                                                                                            • 实现方法说明

                                                                                                                                              +
                                                                                                                                                +
                                                                                                                                              • 在 “Demo 演示”中的左侧菜单就是用 zTree 实现的,主要是靠 css 样式负责排版,利用 setting 中的配置进行功能制作,本 Demo 对实现 左侧菜单进行简单的介绍,你也可以通过查看 “Demo 演示”页面的源码深入了解。
                                                                                                                                              • +
                                                                                                                                              • 1、关于 css 完全可以根据自己的需要进行个性化调整,例如:此 Demo 的菜单样式 就 与 “Demo 演示”页面的不一样,仅供对比参考
                                                                                                                                              • +
                                                                                                                                              • 2、主要用到的配置有:
                                                                                                                                                +     setting.view.showIcon / showLine / selectedMulti / dblClickExpand
                                                                                                                                                +     setting.callback.onNodeCreated / beforeClick / onClick +
                                                                                                                                              • +
                                                                                                                                              • 3、是否需要限制单一路径展开,完全由你的需求而定,实现代码可参考 "保持展开单一路径"
                                                                                                                                              • +
                                                                                                                                              • 4、其他辅助规则,请根据实际情况自行编写
                                                                                                                                              • +
                                                                                                                                              +
                                                                                                                                            • +
                                                                                                                                            +
                                                                                                                                            +
                                                                                                                                            + + diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/super/left_menuForOutLook.gif b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/super/left_menuForOutLook.gif new file mode 100644 index 0000000000000000000000000000000000000000..c252f0f831be3f4672142caf7cb148e14eeb466b GIT binary patch literal 216 zcmZ?wbhEHbRAW$M*v!H3_3PKl%F3Reo=uxJH8nLodh{qiKR+!k?f?J(4A_9;PZmZ7 z1`Y-tkR-?q29{QVlb);hTD(5H`+tH)UrMIZ5l4o32mBZg9(}d@s?gnw+SAwB_!k`h zeY0bKEZ6dsa~ylqzO)Ehth}+N?DX5J{SP)QPq2{Sk~MMLt2f^=pS#l8Y_s7vuerhf z$#-&UGaDppGuq^s+1VMTYMEP_EBjKr>q;ihm|QcnhOvCg?3j+ErOTGDkQHRG1^`@{ BRUH5T literal 0 HcmV?d00001 diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/super/left_menuForOutLook.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/super/left_menuForOutLook.html new file mode 100644 index 00000000..bf6eb30c --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/super/left_menuForOutLook.html @@ -0,0 +1,136 @@ + + + + ZTREE DEMO - left_menu for Outlook + + + + + + + + + + +

                                                                                                                                            OutLook 样式的左侧菜单

                                                                                                                                            +
                                                                                                                                            [ 文件路径: super/left_menuForOutLook.html ]
                                                                                                                                            +
                                                                                                                                            +
                                                                                                                                            +
                                                                                                                                              +
                                                                                                                                              +
                                                                                                                                              +
                                                                                                                                                +
                                                                                                                                              • 实现方法说明

                                                                                                                                                +
                                                                                                                                                  +
                                                                                                                                                • 帮朋友用 zTree 实现了一个貌似 Outlook.com 的菜单,特拿出来分享给大家
                                                                                                                                                • +
                                                                                                                                                • 1、请注意本页面源码中的 css 部分
                                                                                                                                                • +
                                                                                                                                                • 2、请查看源码中 js 的使用,特别是利用 addDiyDom 回调将 展开按钮 转移到 <a> 标签内
                                                                                                                                                • +
                                                                                                                                                • 3、利用添加 zTree 的 class 实现展开按钮的隐藏、显示
                                                                                                                                                • +
                                                                                                                                                • 4、其他辅助规则,请根据实际情况自行编写
                                                                                                                                                • +
                                                                                                                                                • 5、当前规则说明:
                                                                                                                                                  +   单击根节点可以展开、折叠;
                                                                                                                                                  +   非根节点只有点击 箭头 图标才可以展开、折叠;
                                                                                                                                                  +
                                                                                                                                                • +
                                                                                                                                                +
                                                                                                                                              • +
                                                                                                                                              +
                                                                                                                                              +
                                                                                                                                              + + diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/super/left_menuForOutLook.png b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/super/left_menuForOutLook.png new file mode 100644 index 0000000000000000000000000000000000000000..36e8acfa3b6cb44f8aa25a339c2fdeb799c108df GIT binary patch literal 421 zcmV;W0b2fvP)Wz za9s|VFMy%u%#2cSX{jWBz4B_Ls5Ok;;ndBs+K8C{*N-`1KAb85wIqX~V{C)<2eLDA zp`^hIn1BhGfbr%q?K*x7{&3B8+Gyt6o!<#fjBjcXRVYvG@p~wbHbYUy7d!za5ocfeYT)_So>?yzikFK{^(}AmD P00000NkvXXu0mjfHrBKf literal 0 HcmV?d00001 diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/super/oneclick.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/super/oneclick.html new file mode 100644 index 00000000..93e32a40 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/super/oneclick.html @@ -0,0 +1,87 @@ + + + + ZTREE DEMO - one click + + + + + + + + + + + +

                                                                                                                                              单击展开/折叠节点

                                                                                                                                              +
                                                                                                                                              [ 文件路径: super/oneclick.html ]
                                                                                                                                              +
                                                                                                                                              +
                                                                                                                                              +
                                                                                                                                                +
                                                                                                                                                +
                                                                                                                                                +
                                                                                                                                                  +
                                                                                                                                                • 实现方法说明

                                                                                                                                                  +
                                                                                                                                                    +
                                                                                                                                                  • zTree 默认不提供单击展开节点的功能,但可以利用 onClick 事件回调函数轻松实现此功能
                                                                                                                                                  • +
                                                                                                                                                  • 为了避免与双击功能冲突,建议关闭双击展开节点的功能,请设置 setting.view.dblClickExpand = false
                                                                                                                                                  • +
                                                                                                                                                  • 可以将所有的 +/- 开关隐藏,请查看本页面源码,查看 css 设置
                                                                                                                                                  • +
                                                                                                                                                  • 由于 +/- 开关与 节点连接线是配套的,所以如果不显示 +/- 开关的话,那么请设置 setting.view.showLine = false 隐藏连接线
                                                                                                                                                  • +
                                                                                                                                                  +
                                                                                                                                                • +
                                                                                                                                                +
                                                                                                                                                +
                                                                                                                                                + + \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/super/oneroot.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/super/oneroot.html new file mode 100644 index 00000000..6624e7bb --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/super/oneroot.html @@ -0,0 +1,79 @@ + + + + ZTREE DEMO - one root + + + + + + + + + + + +

                                                                                                                                                冻结根节点

                                                                                                                                                +
                                                                                                                                                [ 文件路径: super/oneroot.html ]
                                                                                                                                                +
                                                                                                                                                +
                                                                                                                                                +
                                                                                                                                                  +
                                                                                                                                                  +
                                                                                                                                                  +
                                                                                                                                                    +
                                                                                                                                                  • 实现方法说明

                                                                                                                                                    +
                                                                                                                                                      +
                                                                                                                                                    • 对于这种只有一个根节点,且不显示 +/- 开关的需求,需要利用 css、setting 配合使用
                                                                                                                                                    • +
                                                                                                                                                    • zTree v3.x 可以针对指定的 level,进行样式设定,请查看本页面源码,查看 css 设置
                                                                                                                                                    • +
                                                                                                                                                    • 设置 setting.view.dblClickExpand 指向 Function,可以只针对根节点关闭双击展开的操作
                                                                                                                                                    • +
                                                                                                                                                    +
                                                                                                                                                  • +
                                                                                                                                                  +
                                                                                                                                                  +
                                                                                                                                                  + + \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/super/rightClickMenu.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/super/rightClickMenu.html new file mode 100644 index 00000000..9e5b4045 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/super/rightClickMenu.html @@ -0,0 +1,168 @@ + + + + ZTREE DEMO - select menu + + + + + + + + + + + + +

                                                                                                                                                  右键菜单的实现

                                                                                                                                                  +
                                                                                                                                                  [ 文件路径: super/rightClickMenu.html ]
                                                                                                                                                  +
                                                                                                                                                  +
                                                                                                                                                  +
                                                                                                                                                    +
                                                                                                                                                    +
                                                                                                                                                    +
                                                                                                                                                      +
                                                                                                                                                    • 实现方法说明

                                                                                                                                                      +
                                                                                                                                                        +
                                                                                                                                                      • 利用 beforeRightClick / onRightClick 事件回调函数简单实现的右键菜单
                                                                                                                                                      • +
                                                                                                                                                      • Demo 中的菜单比较简陋,你完全可以配合其他自定义样式的菜单图层混合使用
                                                                                                                                                      • +
                                                                                                                                                      +
                                                                                                                                                    • +
                                                                                                                                                    +
                                                                                                                                                    +
                                                                                                                                                    +
                                                                                                                                                    +
                                                                                                                                                      +
                                                                                                                                                    • 增加节点
                                                                                                                                                    • +
                                                                                                                                                    • 删除节点
                                                                                                                                                    • +
                                                                                                                                                    • Check节点
                                                                                                                                                    • +
                                                                                                                                                    • unCheck节点
                                                                                                                                                    • +
                                                                                                                                                    • 恢复zTree
                                                                                                                                                    • +
                                                                                                                                                    +
                                                                                                                                                    + + \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/super/select_menu.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/super/select_menu.html new file mode 100644 index 00000000..67787c66 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/super/select_menu.html @@ -0,0 +1,124 @@ + + + + ZTREE DEMO - select menu + + + + + + + + + + + +

                                                                                                                                                    下拉菜单

                                                                                                                                                    +
                                                                                                                                                    [ 文件路径: super/select_menu.html ]
                                                                                                                                                    +
                                                                                                                                                    +
                                                                                                                                                    +
                                                                                                                                                      +
                                                                                                                                                    •   选择城市时,按下 Ctrl 键可以进行多选
                                                                                                                                                    • +
                                                                                                                                                    •   城市: +  选择
                                                                                                                                                    • +
                                                                                                                                                    +
                                                                                                                                                    +
                                                                                                                                                    +
                                                                                                                                                      +
                                                                                                                                                    • 实现方法说明

                                                                                                                                                      +
                                                                                                                                                        +
                                                                                                                                                      • 用 zTree 实现这种下拉菜单,应该说是比较容易的,你只需要控制 zTree 所在容器的隐藏/显示,以及位置即可。
                                                                                                                                                      • +
                                                                                                                                                      • zTree v3.x 实现了多点选中功能,因此对于需要多选的下拉菜单也易如反掌。
                                                                                                                                                      • +
                                                                                                                                                      • 利用 setting 的各项配置参数,完全可以满足大部分的功能需求。
                                                                                                                                                      • +
                                                                                                                                                      +
                                                                                                                                                    • +
                                                                                                                                                    +
                                                                                                                                                    +
                                                                                                                                                    + + + + \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/super/select_menu_checkbox.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/super/select_menu_checkbox.html new file mode 100644 index 00000000..529b01dd --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/super/select_menu_checkbox.html @@ -0,0 +1,126 @@ + + + + ZTREE DEMO - checkbox select menu + + + + + + + + + + + + +

                                                                                                                                                    带 checkbox 的多选下拉菜单 -- zTree

                                                                                                                                                    +
                                                                                                                                                    [ 文件路径: super/select_menu_checkbox.html ]
                                                                                                                                                    +
                                                                                                                                                    +
                                                                                                                                                    +
                                                                                                                                                      +
                                                                                                                                                    •   勾选 checkbox 或者 点击节点 进行选择
                                                                                                                                                    • +
                                                                                                                                                    •   Test: +  select
                                                                                                                                                    • +
                                                                                                                                                    +
                                                                                                                                                    +
                                                                                                                                                    +
                                                                                                                                                      +
                                                                                                                                                    • 实现方法说明

                                                                                                                                                      +
                                                                                                                                                        +
                                                                                                                                                      • 用 checkbox 也可以轻松实现多选的下拉菜单
                                                                                                                                                      • +
                                                                                                                                                      • 此 Demo 主要用于 和 其他下拉菜单进行对比
                                                                                                                                                      • +
                                                                                                                                                      +
                                                                                                                                                    • +
                                                                                                                                                    +
                                                                                                                                                    +
                                                                                                                                                    + + + + \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/super/select_menu_radio.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/super/select_menu_radio.html new file mode 100644 index 00000000..cc1d4395 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/super/select_menu_radio.html @@ -0,0 +1,127 @@ + + + + ZTREE DEMO - radio select menu + + + + + + + + + + + + +

                                                                                                                                                    带 radio 的单选下拉菜单 -- zTree

                                                                                                                                                    +
                                                                                                                                                    [ 文件路径: super/select_menu_radio.html ]
                                                                                                                                                    +
                                                                                                                                                    +
                                                                                                                                                    +
                                                                                                                                                      +
                                                                                                                                                    •   勾选 radio 或者 点击节点 进行选择
                                                                                                                                                    • +
                                                                                                                                                    •   Test: +  select
                                                                                                                                                    • +
                                                                                                                                                    +
                                                                                                                                                    +
                                                                                                                                                    +
                                                                                                                                                      +
                                                                                                                                                    • 实现方法说明

                                                                                                                                                      +
                                                                                                                                                        +
                                                                                                                                                      • 用 radio 也可以轻松实现单选的下拉菜单
                                                                                                                                                      • +
                                                                                                                                                      • 单选其实没有必要使用 radio, 此 Demo 主要用于 和 其他下拉菜单进行对比
                                                                                                                                                      • +
                                                                                                                                                      +
                                                                                                                                                    • +
                                                                                                                                                    +
                                                                                                                                                    +
                                                                                                                                                    + + + + \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/super/singlepath.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/super/singlepath.html new file mode 100644 index 00000000..90efb649 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/cn/super/singlepath.html @@ -0,0 +1,150 @@ + + + + ZTREE DEMO - single path + + + + + + + + + + + +

                                                                                                                                                    保持展开单一路径

                                                                                                                                                    +
                                                                                                                                                    [ 文件路径: super/singlepath.html ]
                                                                                                                                                    +
                                                                                                                                                    +
                                                                                                                                                    +
                                                                                                                                                      +
                                                                                                                                                      +
                                                                                                                                                      +
                                                                                                                                                        +
                                                                                                                                                      • 实现方法说明

                                                                                                                                                        +
                                                                                                                                                          +
                                                                                                                                                        • 此 Demo 是在 "单击展开/折叠节点" 基础上改造而来,树节点保持始终只展开一条路径。
                                                                                                                                                        • +
                                                                                                                                                        • 利用 setting.callback.beforeExpand / onExpand 事件回调函数实现展开规则
                                                                                                                                                        • +
                                                                                                                                                        +
                                                                                                                                                      • +
                                                                                                                                                      +
                                                                                                                                                      +
                                                                                                                                                      + + \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/asyncData/getNodes.php b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/asyncData/getNodes.php new file mode 100644 index 00000000..3294d9a1 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/asyncData/getNodes.php @@ -0,0 +1,38 @@ + +[] diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/asyncData/getNodesForBigData.php b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/asyncData/getNodesForBigData.php new file mode 100644 index 00000000..91d002e1 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/asyncData/getNodesForBigData.php @@ -0,0 +1,24 @@ + +[] \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/bigdata/common.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/bigdata/common.html new file mode 100644 index 00000000..6e1728da --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/bigdata/common.html @@ -0,0 +1,190 @@ + + + + ZTREE DEMO - big data common + + + + + + + + + + + +

                                                                                                                                                      One-time Large Data Loading

                                                                                                                                                      +
                                                                                                                                                      [ File Path: bigdata/common.html ]
                                                                                                                                                      +
                                                                                                                                                      +
                                                                                                                                                      +
                                                                                                                                                        +
                                                                                                                                                      • Adjust the total number of nodes to the test load speed: +
                                                                                                                                                        +
                                                                                                                                                        5000
                                                                                                                                                        +
                                                                                                                                                        +
                                                                                                                                                        + checkbox     + [ Initialize zTree ] +
                                                                                                                                                        +
                                                                                                                                                      • +
                                                                                                                                                      +
                                                                                                                                                        +
                                                                                                                                                        +
                                                                                                                                                        +
                                                                                                                                                          +
                                                                                                                                                        • 1, Explanation of large data load

                                                                                                                                                          +
                                                                                                                                                            +
                                                                                                                                                          • 1) zTree v3.x optimized for one-time large data loading capacity, using a lazy loading technique, which does not expand the node does not create child nodes of the DOM.
                                                                                                                                                          • +
                                                                                                                                                          • 2) If a maximum of 100 nodes each, but a total number of several thousand or even tens of thousands of nodes, and the parent node is collapsed by default to optimize the most obvious effect, very fast.
                                                                                                                                                          • +
                                                                                                                                                          • 3) For the next level there are thousands of sub-node case, the optimization of lazy loading is invalid, proposal to consider asynchronous page loading.
                                                                                                                                                          • +
                                                                                                                                                          • 4) if you set the data to all the parent nodes are expanded, the optimization of lazy loading is invalid, proposal to not expand all parent node when you initialize zTree.
                                                                                                                                                          • +
                                                                                                                                                          • 5) set the display checkbox / radio will affect some of the performance.
                                                                                                                                                          • +
                                                                                                                                                          • 6) DOM generated using addDiyDom function will affect the speed, the number of nodes determines the number of impact situations.
                                                                                                                                                          • +
                                                                                                                                                          • 7) Using 'onNodeCreated' callback function to manipulate nodes object will affect the speed, the degree of influence determined by the number of nodes.
                                                                                                                                                          • +
                                                                                                                                                          +
                                                                                                                                                        • +
                                                                                                                                                        • 2, Explanation of setting

                                                                                                                                                          +
                                                                                                                                                            +
                                                                                                                                                          • No special configuration.
                                                                                                                                                          • +
                                                                                                                                                          +
                                                                                                                                                        • +
                                                                                                                                                        • 3, Explanation of treeNode

                                                                                                                                                          +
                                                                                                                                                            +
                                                                                                                                                          • No special requirements on the node data, the user can add custom attributes.
                                                                                                                                                          • +
                                                                                                                                                          +
                                                                                                                                                        • +
                                                                                                                                                        +
                                                                                                                                                        +
                                                                                                                                                        + + \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/bigdata/diy_async.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/bigdata/diy_async.html new file mode 100644 index 00000000..13e43aa3 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/bigdata/diy_async.html @@ -0,0 +1,157 @@ + + + + ZTREE DEMO - big data async + + + + + + + + + + + +

                                                                                                                                                        Loading Data in Batches

                                                                                                                                                        +
                                                                                                                                                        [ File Path: bigdata/diy_async.html ]
                                                                                                                                                        +
                                                                                                                                                        +
                                                                                                                                                        +
                                                                                                                                                          +
                                                                                                                                                        •     Demo for testing load data in batches, each node needs to re-start to load.
                                                                                                                                                        • +
                                                                                                                                                        +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                          +
                                                                                                                                                            +
                                                                                                                                                          • 1, Explanation of large data load

                                                                                                                                                            +
                                                                                                                                                              +
                                                                                                                                                            • 1) If has nodes for as many as thousands in one level, lazy loading is invalid, this demo shows how to load data in batches.
                                                                                                                                                            • +
                                                                                                                                                            • 2) This method applies to thousands of nodes must all display needs.
                                                                                                                                                            • +
                                                                                                                                                            • 3) This method doesn't solve the problem of slow loading, it will only make the final result appear more slowly, but can be limited to avoid browser suspended animation, and more nodes displayed slower.
                                                                                                                                                            • +
                                                                                                                                                            • 4) For at least several thousand nodes in one level case, another solution is to: pagination loading.
                                                                                                                                                              + async load log:
                                                                                                                                                              +
                                                                                                                                                              • +
                                                                                                                                                              +
                                                                                                                                                            • +
                                                                                                                                                            • 2, Explanation of setting

                                                                                                                                                              +
                                                                                                                                                                +
                                                                                                                                                              • Need to set the parameters in setting.async
                                                                                                                                                              • +
                                                                                                                                                              • Advised to turn off animation effects: setting.view.expandSpeed = "";
                                                                                                                                                              • +
                                                                                                                                                              • No other special configuration, the user can set their own requirements.
                                                                                                                                                              • +
                                                                                                                                                              +
                                                                                                                                                            • +
                                                                                                                                                            • 3, Explanation of treeNode

                                                                                                                                                              +
                                                                                                                                                                +
                                                                                                                                                              • No special requirements on the node data, the user can add custom attributes.
                                                                                                                                                              • +
                                                                                                                                                              +
                                                                                                                                                            • +
                                                                                                                                                            +
                                                                                                                                                            +
                                                                                                                                                            + + \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/bigdata/page.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/bigdata/page.html new file mode 100644 index 00000000..f8a4963f --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/bigdata/page.html @@ -0,0 +1,150 @@ + + + + ZTREE DEMO - big data page + + + + + + + + + + + + +

                                                                                                                                                            Loading Data By Pagination

                                                                                                                                                            +
                                                                                                                                                            [ File Path: bigdata/page.html ]
                                                                                                                                                            +
                                                                                                                                                            +
                                                                                                                                                            +
                                                                                                                                                              +
                                                                                                                                                              +
                                                                                                                                                              +
                                                                                                                                                                +
                                                                                                                                                              • 1, Explanation of large data load

                                                                                                                                                                +
                                                                                                                                                                  +
                                                                                                                                                                • 1) Pagination can be an effective solution to the large number of child nodes of the situation.
                                                                                                                                                                • +
                                                                                                                                                                • 2) Using custom method to display the pagination button.
                                                                                                                                                                • +
                                                                                                                                                                • 3) Pagination lead to the association of checkbox can not be achieved, only correction after show each page . Because of the time limitation, Demo does not deal with association of checkbox.
                                                                                                                                                                • +
                                                                                                                                                                • 4) The use of pagination, you can only get the current page node data from zTree. You can save the data after each page loading as the cache, according to the demand to determine the specific methods.
                                                                                                                                                                • + +
                                                                                                                                                                • 2, Explanation of setting

                                                                                                                                                                  +
                                                                                                                                                                    +
                                                                                                                                                                  • Need to set the parameters in setting.async
                                                                                                                                                                  • +
                                                                                                                                                                  • No other special configuration, the user can set their own requirements.
                                                                                                                                                                  • +
                                                                                                                                                                  +
                                                                                                                                                                • +
                                                                                                                                                                • 3, Explanation of treeNode

                                                                                                                                                                  +
                                                                                                                                                                    +
                                                                                                                                                                  • No special requirements on the node data, the user can add custom attributes.
                                                                                                                                                                  • +
                                                                                                                                                                  +
                                                                                                                                                                • +
                                                                                                                                                                +
                                                                                                                                                              +
                                                                                                                                                              + + \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/core/async.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/core/async.html new file mode 100644 index 00000000..9668fe66 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/core/async.html @@ -0,0 +1,70 @@ + + + + ZTREE DEMO - Async + + + + + + + + + + +

                                                                                                                                                              Dynamic Tree with Ajax

                                                                                                                                                              +
                                                                                                                                                              [ File Path: core/async.html ]
                                                                                                                                                              +
                                                                                                                                                              +
                                                                                                                                                              +
                                                                                                                                                                +
                                                                                                                                                                +
                                                                                                                                                                +
                                                                                                                                                                  +
                                                                                                                                                                • 1, Explanation of setting

                                                                                                                                                                  +
                                                                                                                                                                    +
                                                                                                                                                                  • For create dynamic tree with ajax, you need to set attributes in setting.async, see the API documentation for more related contents.
                                                                                                                                                                  • +
                                                                                                                                                                  +
                                                                                                                                                                • +
                                                                                                                                                                • 2, Explanation of treeNode

                                                                                                                                                                  +
                                                                                                                                                                    +
                                                                                                                                                                  • Dynamic tree with ajax doesn't need to make special treeNode node data, if use simple JSON data model, please set the attributes in setting.data.simple.
                                                                                                                                                                  • +
                                                                                                                                                                  • If ajax only to return node data in single level, you don't need to use simple JSON data model.
                                                                                                                                                                  • +
                                                                                                                                                                  +
                                                                                                                                                                • +
                                                                                                                                                                • 3、Other explanation

                                                                                                                                                                  +
                                                                                                                                                                    +
                                                                                                                                                                  • Monitoring autoParam and otherParam use firebug or the developer tools in browser.
                                                                                                                                                                  • +
                                                                                                                                                                  • This Demo only loading 4 level nodes (level = 3).
                                                                                                                                                                  • +
                                                                                                                                                                  • This Demo use 'dataFilter' to modify the name of the node.
                                                                                                                                                                  • +
                                                                                                                                                                  +
                                                                                                                                                                • +
                                                                                                                                                                +
                                                                                                                                                                +
                                                                                                                                                                + + \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/core/async_fun.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/core/async_fun.html new file mode 100644 index 00000000..37aea062 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/core/async_fun.html @@ -0,0 +1,144 @@ + + + + ZTREE DEMO - reAsyncChildNodes + + + + + + + + + + + +

                                                                                                                                                                Dynamic Tree - zTree methods

                                                                                                                                                                +
                                                                                                                                                                [ File Path: core/async_fun.html ]
                                                                                                                                                                +
                                                                                                                                                                +
                                                                                                                                                                +
                                                                                                                                                                  +
                                                                                                                                                                  +
                                                                                                                                                                  +
                                                                                                                                                                    +
                                                                                                                                                                  • 1, Explanation of reAsyncChildNodes

                                                                                                                                                                    +
                                                                                                                                                                      +
                                                                                                                                                                    • How to use zTreeObj.reAsyncChildNodes method, please see the API documentation.
                                                                                                                                                                    • +
                                                                                                                                                                    • This Demo can only select one parent node
                                                                                                                                                                      + Try: [ reload ]    [ append ]

                                                                                                                                                                      +
                                                                                                                                                                    • +
                                                                                                                                                                    • 'isSilent' parameter is only for the collapsed state of the parent node.
                                                                                                                                                                      + Try: [ Quietly reloaded ]    [ Quietly append ]
                                                                                                                                                                      + async log:
                                                                                                                                                                      +

                                                                                                                                                                        +
                                                                                                                                                                      • +
                                                                                                                                                                      +
                                                                                                                                                                    • +
                                                                                                                                                                    • 2, Explanation of setting

                                                                                                                                                                      +
                                                                                                                                                                        +
                                                                                                                                                                      • For useing reAsyncChildNodes method, you need to set attributes in setting.async, see the API documentation for more related contents.
                                                                                                                                                                      • +
                                                                                                                                                                      +
                                                                                                                                                                    • +
                                                                                                                                                                    • 3, Explanation of treeNode

                                                                                                                                                                      +
                                                                                                                                                                        +
                                                                                                                                                                      • Same as 'Dynamic Tree with Ajax'
                                                                                                                                                                      • +
                                                                                                                                                                      +
                                                                                                                                                                    • +
                                                                                                                                                                    • 4、Other explanation

                                                                                                                                                                      +
                                                                                                                                                                        +
                                                                                                                                                                      • Same as 'Dynamic Tree with Ajax'
                                                                                                                                                                      • +
                                                                                                                                                                      +
                                                                                                                                                                    • +
                                                                                                                                                                    +
                                                                                                                                                                    +
                                                                                                                                                                    + + \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/core/click.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/core/click.html new file mode 100644 index 00000000..4f0fa80e --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/core/click.html @@ -0,0 +1,107 @@ + + + + ZTREE DEMO - beforeClick / onClick + + + + + + + + + + +

                                                                                                                                                                    Control of Click Node

                                                                                                                                                                    +
                                                                                                                                                                    [ File Path: core/click.html ]
                                                                                                                                                                    +
                                                                                                                                                                    +
                                                                                                                                                                    +
                                                                                                                                                                      +
                                                                                                                                                                      +
                                                                                                                                                                      +
                                                                                                                                                                        +
                                                                                                                                                                      • 1, 'beforeClick / onClick' callback function

                                                                                                                                                                        +
                                                                                                                                                                          +
                                                                                                                                                                        • Use 'beforeClick / onClick' callback function can be achieved with the click on the various functions. This simple demo shows how to monitor the click event.
                                                                                                                                                                        • +
                                                                                                                                                                        • Try pressing the Ctrl key for multi-node selection and deselection.
                                                                                                                                                                          + click log:
                                                                                                                                                                          +

                                                                                                                                                                            +
                                                                                                                                                                          • +
                                                                                                                                                                          +
                                                                                                                                                                        • +
                                                                                                                                                                        • 2, Explanation of setting

                                                                                                                                                                          +
                                                                                                                                                                            +
                                                                                                                                                                          • You need to set attributes about setting.callback.beforeClick and setting.callback.onClick, see the API documentation for more related contents.
                                                                                                                                                                          • +
                                                                                                                                                                          +
                                                                                                                                                                        • +
                                                                                                                                                                        • 3, Explanation of treeNode

                                                                                                                                                                          +
                                                                                                                                                                            +
                                                                                                                                                                          • No special requirements on the node data, the user can add custom attributes.
                                                                                                                                                                          • +
                                                                                                                                                                          +
                                                                                                                                                                        • +
                                                                                                                                                                        +
                                                                                                                                                                        +
                                                                                                                                                                        + + \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/core/custom_font.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/core/custom_font.html new file mode 100644 index 00000000..e00253b2 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/core/custom_font.html @@ -0,0 +1,67 @@ + + + + ZTREE DEMO - Custom Font + + + + + + + + + + +

                                                                                                                                                                        Custom Fonts

                                                                                                                                                                        +
                                                                                                                                                                        [ File Path: core/custom_font.html ]
                                                                                                                                                                        +
                                                                                                                                                                        +
                                                                                                                                                                        +
                                                                                                                                                                          +
                                                                                                                                                                          +
                                                                                                                                                                          +
                                                                                                                                                                            +
                                                                                                                                                                          • 1, Explanation of setting

                                                                                                                                                                            +
                                                                                                                                                                              +
                                                                                                                                                                            • 1. For display custom fonts, you need to set setting.view.fontCss attribute, see the API documentation for more related contents.
                                                                                                                                                                            • +
                                                                                                                                                                            • 2. If you need the node name support the HTML, please set the 'setting.view.nameIsHTML' attribute, see the API documentation for more related contents.
                                                                                                                                                                            • +
                                                                                                                                                                            +
                                                                                                                                                                          • +
                                                                                                                                                                          • 2, Explanation of treeNode

                                                                                                                                                                            +
                                                                                                                                                                              +
                                                                                                                                                                            • Set the font does not require to special node data , but if used to differentiate between different types of nodes, the corresponding data can set custom attributes.
                                                                                                                                                                            • +
                                                                                                                                                                            • The css style of data stored in the nodes within this demo
                                                                                                                                                                            • +
                                                                                                                                                                            +
                                                                                                                                                                          • +
                                                                                                                                                                          +
                                                                                                                                                                          +
                                                                                                                                                                          + + \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/core/custom_icon.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/core/custom_icon.html new file mode 100644 index 00000000..17084e57 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/core/custom_icon.html @@ -0,0 +1,74 @@ + + + + ZTREE DEMO - Custom Icon + + + + + + + + + + +

                                                                                                                                                                          Custom Icon - icon

                                                                                                                                                                          +
                                                                                                                                                                          [ File Path: core/custom_icon.html ]
                                                                                                                                                                          +
                                                                                                                                                                          +
                                                                                                                                                                          +
                                                                                                                                                                            +
                                                                                                                                                                            +
                                                                                                                                                                            +
                                                                                                                                                                              +
                                                                                                                                                                            • 1, Explanation of setting

                                                                                                                                                                              +
                                                                                                                                                                                +
                                                                                                                                                                              • Custom icon does not require special configuration setting.
                                                                                                                                                                              • +
                                                                                                                                                                              +
                                                                                                                                                                            • +
                                                                                                                                                                            • 2, Explanation of treeNode

                                                                                                                                                                              +
                                                                                                                                                                                +
                                                                                                                                                                              • Use node data’s icon / iconOpen / iconClose attribute show custom icon.
                                                                                                                                                                              • +
                                                                                                                                                                              • See the API documentation for more related contents.
                                                                                                                                                                              • +
                                                                                                                                                                              +
                                                                                                                                                                            • +
                                                                                                                                                                            • 3、Other explanation

                                                                                                                                                                              +
                                                                                                                                                                                +
                                                                                                                                                                              • Because of the time limitation, demo uses png images, if you need transparent images in IE6 browser, make a gif image, or use a special 'css filter' on ie6 browser.
                                                                                                                                                                              • +
                                                                                                                                                                              +
                                                                                                                                                                            • +
                                                                                                                                                                            +
                                                                                                                                                                            +
                                                                                                                                                                            + + \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/core/custom_iconSkin.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/core/custom_iconSkin.html new file mode 100644 index 00000000..3e099300 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/core/custom_iconSkin.html @@ -0,0 +1,85 @@ + + + + ZTREE DEMO - Custom Icon Skin + + + + + + + + + + + +

                                                                                                                                                                            Custom Icon - iconSkin

                                                                                                                                                                            +
                                                                                                                                                                            [ File Path: core/custom_iconSkin.html ]
                                                                                                                                                                            +
                                                                                                                                                                            +
                                                                                                                                                                            +
                                                                                                                                                                              +
                                                                                                                                                                              +
                                                                                                                                                                              +
                                                                                                                                                                                +
                                                                                                                                                                              • 1, Explanation of setting

                                                                                                                                                                                +
                                                                                                                                                                                  +
                                                                                                                                                                                • Custom icon does not require special configuration setting.
                                                                                                                                                                                • +
                                                                                                                                                                                +
                                                                                                                                                                              • +
                                                                                                                                                                              • 2, Explanation of treeNode

                                                                                                                                                                                +
                                                                                                                                                                                  +
                                                                                                                                                                                • Use the node data iconSkin attributes and css show custom icon.
                                                                                                                                                                                • +
                                                                                                                                                                                • See the API documentation for more related contents.
                                                                                                                                                                                • +
                                                                                                                                                                                +
                                                                                                                                                                              • +
                                                                                                                                                                              • 3、Other explanation

                                                                                                                                                                                +
                                                                                                                                                                                  +
                                                                                                                                                                                • Because of the time limitation, demo uses png images, if you need transparent images in IE6 browser, make a gif image, or use a special 'css filter' on ie6 browser.
                                                                                                                                                                                • +
                                                                                                                                                                                +
                                                                                                                                                                              • +
                                                                                                                                                                              +
                                                                                                                                                                              +
                                                                                                                                                                              + + \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/core/expand.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/core/expand.html new file mode 100644 index 00000000..ca604741 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/core/expand.html @@ -0,0 +1,186 @@ + + + + ZTREE DEMO - beforeExpand / onExpand && beforeCollapse / onCollapse + + + + + + + + + + +

                                                                                                                                                                              Control of Expand Node

                                                                                                                                                                              +
                                                                                                                                                                              [ File Path: core/expand.html ]
                                                                                                                                                                              +
                                                                                                                                                                              +
                                                                                                                                                                              +
                                                                                                                                                                                +
                                                                                                                                                                                +
                                                                                                                                                                                +
                                                                                                                                                                                  +
                                                                                                                                                                                • 1, 'beforeCollapse / onCollapse'
                                                                                                                                                                                    'beforeExpand / onExpand' callback function

                                                                                                                                                                                  +
                                                                                                                                                                                    +
                                                                                                                                                                                  • Use 'beforeCollapse / onCollapse' and 'beforeExpand / onExpand' callback function can control whether to allow expand or collapse the parent node + . This simple demo shows how to monitor the collapse and expand event.
                                                                                                                                                                                  • +
                                                                                                                                                                                  • Try:
                                                                                                                                                                                    +      Whether trigger the callback when execution expandNode() method.
                                                                                                                                                                                    +     Single Node --[ expand ] +     [ collapse ] +     [ toggle ]
                                                                                                                                                                                    +     Single Node (including child) --[ expand ] +     [ collapse ]
                                                                                                                                                                                    +     All Nodes --[ expand All ] +     [ collapse All ]

                                                                                                                                                                                    +
                                                                                                                                                                                  • How to use zTreeObj.updateNode method, please see the API documentation.
                                                                                                                                                                                    + collapse / expand log:
                                                                                                                                                                                    +

                                                                                                                                                                                      +
                                                                                                                                                                                    • +
                                                                                                                                                                                    +
                                                                                                                                                                                  • +
                                                                                                                                                                                  • 2, Explanation of setting

                                                                                                                                                                                    +
                                                                                                                                                                                      +
                                                                                                                                                                                    • Set attributes about 'setting.callback.beforeCollapse / onCollapse / beforeExpand / onExpand', please see the API documentation for more related contents.
                                                                                                                                                                                    • +
                                                                                                                                                                                    • If you need to adjust the expand / collapse animation effects, please see the API documentation about setting.view.expandSpeed.
                                                                                                                                                                                    • +
                                                                                                                                                                                    +
                                                                                                                                                                                  • +
                                                                                                                                                                                  • 3, Explanation of treeNode

                                                                                                                                                                                    +
                                                                                                                                                                                      +
                                                                                                                                                                                    • No special requirements on the node data, the user can add custom attributes.
                                                                                                                                                                                    • +
                                                                                                                                                                                    +
                                                                                                                                                                                  • +
                                                                                                                                                                                  +
                                                                                                                                                                                  +
                                                                                                                                                                                  + + \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/core/noicon.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/core/noicon.html new file mode 100644 index 00000000..19a66648 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/core/noicon.html @@ -0,0 +1,93 @@ + + + + ZTREE DEMO - noIcon + + + + + + + + + + + +

                                                                                                                                                                                  Don't Show Icon

                                                                                                                                                                                  +
                                                                                                                                                                                  [ File Path: core/noicon.html ]
                                                                                                                                                                                  +
                                                                                                                                                                                  +
                                                                                                                                                                                  +
                                                                                                                                                                                    +
                                                                                                                                                                                    +
                                                                                                                                                                                    +
                                                                                                                                                                                      +
                                                                                                                                                                                    • 1, Explanation of setting

                                                                                                                                                                                      +
                                                                                                                                                                                        +
                                                                                                                                                                                      • This Demo using Function set to the parent node does not display the icon.
                                                                                                                                                                                      • +
                                                                                                                                                                                      • Whether to display the icon, you need to set setting.view.showIcon attribute, see the API documentation for more related contents.
                                                                                                                                                                                      • +
                                                                                                                                                                                      +
                                                                                                                                                                                    • +
                                                                                                                                                                                    • 2, Explanation of treeNode

                                                                                                                                                                                      +
                                                                                                                                                                                        +
                                                                                                                                                                                      • TreeNode data does not require special settings. If you need some node display icon, and some nodes are not displayed, you can add special attributes to the node data for identification.
                                                                                                                                                                                      • +
                                                                                                                                                                                      +
                                                                                                                                                                                    • +
                                                                                                                                                                                    +
                                                                                                                                                                                    +
                                                                                                                                                                                    + + \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/core/noline.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/core/noline.html new file mode 100644 index 00000000..d61792f7 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/core/noline.html @@ -0,0 +1,88 @@ + + + + ZTREE DEMO - noLine + + + + + + + + + + + +

                                                                                                                                                                                    Don't Show Line

                                                                                                                                                                                    +
                                                                                                                                                                                    [ File Path: core/noline.html ]
                                                                                                                                                                                    +
                                                                                                                                                                                    +
                                                                                                                                                                                    +
                                                                                                                                                                                      +
                                                                                                                                                                                      +
                                                                                                                                                                                      +
                                                                                                                                                                                        +
                                                                                                                                                                                      • 1, Explanation of setting

                                                                                                                                                                                        +
                                                                                                                                                                                          +
                                                                                                                                                                                        • Whether to display the line, you need to set setting.view.showLine attribute, see the API documentation for more related contents.
                                                                                                                                                                                        • +
                                                                                                                                                                                        +
                                                                                                                                                                                      • +
                                                                                                                                                                                      • 2, Explanation of treeNode

                                                                                                                                                                                        +
                                                                                                                                                                                          +
                                                                                                                                                                                        • TreeNode data does not require special settings
                                                                                                                                                                                        • +
                                                                                                                                                                                        +
                                                                                                                                                                                      • +
                                                                                                                                                                                      +
                                                                                                                                                                                      +
                                                                                                                                                                                      + + \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/core/otherMouse.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/core/otherMouse.html new file mode 100644 index 00000000..0e18a0c7 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/core/otherMouse.html @@ -0,0 +1,132 @@ + + + + ZTREE DEMO - Other Mouse Event + + + + + + + + + + +

                                                                                                                                                                                      Other Mouse Events for zTree

                                                                                                                                                                                      +
                                                                                                                                                                                      [ File Path: core/otherMouse.html ]
                                                                                                                                                                                      +
                                                                                                                                                                                      +
                                                                                                                                                                                      +
                                                                                                                                                                                        +
                                                                                                                                                                                        +
                                                                                                                                                                                        +
                                                                                                                                                                                          +
                                                                                                                                                                                        • 1, 'beforeMousedown / onMousedown / beforeMouseup / onMouseup / beforeRightClick / onRightClick' callback function

                                                                                                                                                                                          +
                                                                                                                                                                                            +
                                                                                                                                                                                          • zTree provide these types of mouse event callbacks, in order to facilitate the user to extend the functionality. And doesn't affect zTree normal function, This simple demo shows how to monitor the mousedown/mouseup/rightClick event.
                                                                                                                                                                                          • +
                                                                                                                                                                                          • Try clicking with the mouse on the zTree (left or right), by the way to see log.
                                                                                                                                                                                            + mousedown event log:
                                                                                                                                                                                            +

                                                                                                                                                                                              + mouseup event log:
                                                                                                                                                                                              +
                                                                                                                                                                                                + rightClick event log:
                                                                                                                                                                                                +

                                                                                                                                                                                                  +
                                                                                                                                                                                                • +
                                                                                                                                                                                                +
                                                                                                                                                                                              • +
                                                                                                                                                                                              • 2, Explanation of setting

                                                                                                                                                                                                +
                                                                                                                                                                                                  +
                                                                                                                                                                                                • Set attributes about 'setting.callback.beforeMousedown / onMousedown / beforeMouseup / onMouseup / beforeRightClick / onRightClick', please see the API documentation for more related contents.
                                                                                                                                                                                                • +
                                                                                                                                                                                                +
                                                                                                                                                                                              • +
                                                                                                                                                                                              • 3, Explanation of treeNode

                                                                                                                                                                                                +
                                                                                                                                                                                                  +
                                                                                                                                                                                                • No special requirements on the node data, the user can add custom attributes.
                                                                                                                                                                                                • +
                                                                                                                                                                                                +
                                                                                                                                                                                              • +
                                                                                                                                                                                              +
                                                                                                                                                                                              +
                                                                                                                                                                                              + + \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/core/searchNodes.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/core/searchNodes.html new file mode 100644 index 00000000..1d0695aa --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/core/searchNodes.html @@ -0,0 +1,173 @@ + + + + ZTREE DEMO - getNodeByParam / getNodesByParam / getNodesByParamFuzzy + + + + + + + + + + +

                                                                                                                                                                                              Search Nodes

                                                                                                                                                                                              +
                                                                                                                                                                                              [ File Path: core/searchNodes.html ]
                                                                                                                                                                                              +
                                                                                                                                                                                              +
                                                                                                                                                                                              +
                                                                                                                                                                                                +
                                                                                                                                                                                                +
                                                                                                                                                                                                +
                                                                                                                                                                                                  +
                                                                                                                                                                                                • 1, Explanation of getNodeByParam / getNodesByParam / getNodesByParamFuzzy

                                                                                                                                                                                                  +
                                                                                                                                                                                                    +
                                                                                                                                                                                                  • How to use ’zTreeObj.getNodeByParam / getNodesByParam / getNodesByParamFuzzy / getNodeByTId‘ method, please see the API documentation.
                                                                                                                                                                                                  • +
                                                                                                                                                                                                  • Try to search:
                                                                                                                                                                                                    + attribute( value ):
                                                                                                                                                                                                    + attribute( key ): name (string)
                                                                                                                                                                                                    + level (number) ... root node's level is 0
                                                                                                                                                                                                    + id (number)
                                                                                                                                                                                                    + method: getNodeByParam
                                                                                                                                                                                                    + getNodesByParam
                                                                                                                                                                                                    + getNodesByParamFuzzy (only string)
                                                                                                                                                                                                    + getNodesByFilter (see source: function filter)
                                                                                                                                                                                                    +

                                                                                                                                                                                                    +
                                                                                                                                                                                                  • +
                                                                                                                                                                                                  +
                                                                                                                                                                                                • +
                                                                                                                                                                                                • 2, Explanation of setting

                                                                                                                                                                                                  +
                                                                                                                                                                                                    +
                                                                                                                                                                                                  • Do not need to set the setting.
                                                                                                                                                                                                  • +
                                                                                                                                                                                                  +
                                                                                                                                                                                                • +
                                                                                                                                                                                                • 3, Explanation of treeNode

                                                                                                                                                                                                  +
                                                                                                                                                                                                    +
                                                                                                                                                                                                  • Note: Please ensure that the incoming value type is the same as type of attribute.
                                                                                                                                                                                                  • +
                                                                                                                                                                                                  +
                                                                                                                                                                                                • +
                                                                                                                                                                                                +
                                                                                                                                                                                                +
                                                                                                                                                                                                + + \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/core/simpleData.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/core/simpleData.html new file mode 100644 index 00000000..bf07831e --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/core/simpleData.html @@ -0,0 +1,100 @@ + + + + ZTREE DEMO - Simple Data + + + + + + + + + + +

                                                                                                                                                                                                Simple JSON Data

                                                                                                                                                                                                +
                                                                                                                                                                                                [ File Path: core/simpleData.html ]
                                                                                                                                                                                                +
                                                                                                                                                                                                +
                                                                                                                                                                                                +
                                                                                                                                                                                                  +
                                                                                                                                                                                                  +
                                                                                                                                                                                                  +
                                                                                                                                                                                                    +
                                                                                                                                                                                                  • 1, Explanation of setting

                                                                                                                                                                                                    +
                                                                                                                                                                                                      +
                                                                                                                                                                                                    • Must set setting.data.simple attributes, see the API documentation for more related contents.
                                                                                                                                                                                                    • +
                                                                                                                                                                                                    • The setting.view in API documentation is associated with the display of the zTree.
                                                                                                                                                                                                    • +
                                                                                                                                                                                                    • To change the 'name', 'children', 'title' attribute, please refer to the API documentation about 'setting.data.key'.
                                                                                                                                                                                                    • +
                                                                                                                                                                                                    +
                                                                                                                                                                                                  • +
                                                                                                                                                                                                  • 2, Explanation of treeNode

                                                                                                                                                                                                    +
                                                                                                                                                                                                      +
                                                                                                                                                                                                    • Id / pId that include parent-child relationship between nodes is needed if you use Simple model of the JSON data, and other attributes please refer to the instructions within setting.data.simple. +
                                                                                                                                                                                                      For example:
                                                                                                                                                                                                      +var nodes = [
                                                                                                                                                                                                      +	{id:1, pId:0, name: "pNode 01"},
                                                                                                                                                                                                      +	{id:11, pId:1, name: "child 01"},
                                                                                                                                                                                                      +	{id:12, pId:1, name: "child 02"}
                                                                                                                                                                                                      +];
                                                                                                                                                                                                    • +
                                                                                                                                                                                                    • To set nodes expanded by default, set treeNode.open attribute.
                                                                                                                                                                                                    • +
                                                                                                                                                                                                    • To get parent node which has no child node, set treeNode.isParent attribute.
                                                                                                                                                                                                    • +
                                                                                                                                                                                                    • Please refer to the API documentation "treeNode data details" to view other attributes description.
                                                                                                                                                                                                    • +
                                                                                                                                                                                                    +
                                                                                                                                                                                                  • +
                                                                                                                                                                                                  • 3、Other explanation

                                                                                                                                                                                                    +
                                                                                                                                                                                                      +
                                                                                                                                                                                                    • The simple JSON data model has been used almost everywhere, which can be learned easily.
                                                                                                                                                                                                    • +
                                                                                                                                                                                                    +
                                                                                                                                                                                                  • +
                                                                                                                                                                                                  +
                                                                                                                                                                                                  +
                                                                                                                                                                                                  + + \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/core/standardData.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/core/standardData.html new file mode 100644 index 00000000..909a63b0 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/core/standardData.html @@ -0,0 +1,106 @@ + + + + ZTREE DEMO - Standard Data + + + + + + + + + + +

                                                                                                                                                                                                  Standard JSON Data

                                                                                                                                                                                                  +
                                                                                                                                                                                                  [ File Path: core/standardData.html ]
                                                                                                                                                                                                  +
                                                                                                                                                                                                  +
                                                                                                                                                                                                  +
                                                                                                                                                                                                    +
                                                                                                                                                                                                    +
                                                                                                                                                                                                    +
                                                                                                                                                                                                      +
                                                                                                                                                                                                    • 1, Explanation of setting

                                                                                                                                                                                                      +
                                                                                                                                                                                                        +
                                                                                                                                                                                                      • No extrally setting needed for basic functions.
                                                                                                                                                                                                      • +
                                                                                                                                                                                                      • The setting.view in API documentation is associated with the display of the zTree.
                                                                                                                                                                                                      • +
                                                                                                                                                                                                      • To change the 'name', 'children', 'title' attribute, please refer to the API documentation about 'setting.data.key'.
                                                                                                                                                                                                      • +
                                                                                                                                                                                                      +
                                                                                                                                                                                                    • +
                                                                                                                                                                                                    • 2, Explanation of treeNode

                                                                                                                                                                                                      +
                                                                                                                                                                                                        +
                                                                                                                                                                                                      • Need to use nested JSON data that include parent-child relationship between nodes +
                                                                                                                                                                                                        For example:
                                                                                                                                                                                                        +var nodes = [
                                                                                                                                                                                                        +	{name: "pNode 01", children: [
                                                                                                                                                                                                        +		{name: "child 01"},
                                                                                                                                                                                                        +		{name: "child 02"}
                                                                                                                                                                                                        +	]}
                                                                                                                                                                                                        +];
                                                                                                                                                                                                        +
                                                                                                                                                                                                      • +
                                                                                                                                                                                                      • To set nodes expanded by default, set treeNode.open attribute.
                                                                                                                                                                                                      • +
                                                                                                                                                                                                      • No child nodes of parent node, set treeNode.isParent attribute.
                                                                                                                                                                                                      • +
                                                                                                                                                                                                      • Please refer to the API documentation "treeNode data details" to view other attributes description.
                                                                                                                                                                                                      • +
                                                                                                                                                                                                      +
                                                                                                                                                                                                    • +
                                                                                                                                                                                                    +
                                                                                                                                                                                                    +
                                                                                                                                                                                                    + + \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/core/update_fun.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/core/update_fun.html new file mode 100644 index 00000000..0909a34c --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/core/update_fun.html @@ -0,0 +1,143 @@ + + + + ZTREE DEMO - updateNode + + + + + + + + + + + +

                                                                                                                                                                                                    Update Node - zTree methods

                                                                                                                                                                                                    +
                                                                                                                                                                                                    [ File Path: core/update_fun.html ]
                                                                                                                                                                                                    +
                                                                                                                                                                                                    +
                                                                                                                                                                                                    +
                                                                                                                                                                                                      +
                                                                                                                                                                                                      +
                                                                                                                                                                                                      +
                                                                                                                                                                                                        +
                                                                                                                                                                                                      • 1, Explanation of updateNode

                                                                                                                                                                                                        + +
                                                                                                                                                                                                      • +
                                                                                                                                                                                                      • 2, Explanation of setting

                                                                                                                                                                                                        +
                                                                                                                                                                                                          +
                                                                                                                                                                                                        • Do not need to set the setting.
                                                                                                                                                                                                        • +
                                                                                                                                                                                                        • You can modify the node style with setting.view.fontCss.
                                                                                                                                                                                                        • +
                                                                                                                                                                                                        +
                                                                                                                                                                                                      • +
                                                                                                                                                                                                      • 3, Explanation of treeNode

                                                                                                                                                                                                        +
                                                                                                                                                                                                          +
                                                                                                                                                                                                        • In the API documentation has detail description about the 'zTreeObj.updateNode method'.
                                                                                                                                                                                                        • +
                                                                                                                                                                                                        +
                                                                                                                                                                                                      • +
                                                                                                                                                                                                      • 4、Other explanation

                                                                                                                                                                                                        +
                                                                                                                                                                                                          +
                                                                                                                                                                                                        • This demo only made ​by the core js, so does not include the checkbox update.
                                                                                                                                                                                                        • +
                                                                                                                                                                                                        +
                                                                                                                                                                                                      • +
                                                                                                                                                                                                      +
                                                                                                                                                                                                      +
                                                                                                                                                                                                      + + \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/core/url.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/core/url.html new file mode 100644 index 00000000..788b03f1 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/core/url.html @@ -0,0 +1,63 @@ + + + + ZTREE DEMO - url + + + + + + + + + + +

                                                                                                                                                                                                      Hyperlinks Demo

                                                                                                                                                                                                      +
                                                                                                                                                                                                      [ File Path: core/url.html ]
                                                                                                                                                                                                      +
                                                                                                                                                                                                      +
                                                                                                                                                                                                      +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        +
                                                                                                                                                                                                          +
                                                                                                                                                                                                        • 1, Explanation of setting

                                                                                                                                                                                                          +
                                                                                                                                                                                                            +
                                                                                                                                                                                                          • No extrally setting needed for basic functions.
                                                                                                                                                                                                          • +
                                                                                                                                                                                                          • If you need flexible control of hyperlinks to jump, please use the 'onClick' callback. See the API documentation for more related contents.
                                                                                                                                                                                                          • +
                                                                                                                                                                                                          +
                                                                                                                                                                                                        • +
                                                                                                                                                                                                        • 2, Explanation of treeNode

                                                                                                                                                                                                          +
                                                                                                                                                                                                            +
                                                                                                                                                                                                          • 1. the 'url' attribute is used to save the hyperlink's path.
                                                                                                                                                                                                          • +
                                                                                                                                                                                                          • 2. the 'target' attribute is used to save the hyperlink's target.
                                                                                                                                                                                                          • +
                                                                                                                                                                                                          • 3. the 'click' attribute is used to save the hyperlink's 'onclick' attribute.
                                                                                                                                                                                                          • +
                                                                                                                                                                                                          • Please refer to the API documentation "treeNode data details" to view other attributes description.
                                                                                                                                                                                                          • +
                                                                                                                                                                                                          +
                                                                                                                                                                                                        • +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        + + \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/excheck/checkbox.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/excheck/checkbox.html new file mode 100644 index 00000000..f2a1408a --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/excheck/checkbox.html @@ -0,0 +1,107 @@ + + + + ZTREE DEMO - checkbox + + + + + + + + + + + +

                                                                                                                                                                                                        Checkbox Operation

                                                                                                                                                                                                        +
                                                                                                                                                                                                        [ File Path: excheck/checkbox.html ]
                                                                                                                                                                                                        +
                                                                                                                                                                                                        +
                                                                                                                                                                                                        +
                                                                                                                                                                                                          +
                                                                                                                                                                                                          +
                                                                                                                                                                                                          +
                                                                                                                                                                                                            +
                                                                                                                                                                                                          • 1, Explanation of setting

                                                                                                                                                                                                            +
                                                                                                                                                                                                              +
                                                                                                                                                                                                            • Must set setting.check attributes, see the API documentation for more related contents.
                                                                                                                                                                                                            • +
                                                                                                                                                                                                            • Linkage relationship between parent and child nodes:
                                                                                                                                                                                                              + check: affect the parent + affect the child
                                                                                                                                                                                                              + uncheck: affect the parent + affect the child
                                                                                                                                                                                                              +

                                                                                                                                                                                                                +
                                                                                                                                                                                                              • +
                                                                                                                                                                                                              +
                                                                                                                                                                                                            • +
                                                                                                                                                                                                            • 2, Explanation of treeNode

                                                                                                                                                                                                              +
                                                                                                                                                                                                                +
                                                                                                                                                                                                              • 1), If you need to initialize the node is checked, please set treeNode.checked attribute. See the API documentation for more related contents.
                                                                                                                                                                                                              • +
                                                                                                                                                                                                              • 2), If you need to initialize the node's checkbox is disabled, please set treeNode.chkDisabled attribute. See the API documentation for more related contents and 'chkDisabled Demo'.
                                                                                                                                                                                                              • +
                                                                                                                                                                                                              • 3), If you need to initialize the node don't show checkbox, please set treeNode.nocheck attribute. See the API documentation for more related contents and 'nocheck Demo'.
                                                                                                                                                                                                              • +
                                                                                                                                                                                                              • 4), If you need to change 'checked' to other attribute, please set setting.data.key.checked attribute. See the API documentation for more related contents.
                                                                                                                                                                                                              • +
                                                                                                                                                                                                              • 5), By the way, please see the API documentation for 'treeNode.checkedOld / getCheckStatus / check_Child_State / check_Focus'.
                                                                                                                                                                                                              • +
                                                                                                                                                                                                              +
                                                                                                                                                                                                            • +
                                                                                                                                                                                                            +
                                                                                                                                                                                                            +
                                                                                                                                                                                                            + + \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/excheck/checkbox_chkDisabled.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/excheck/checkbox_chkDisabled.html new file mode 100644 index 00000000..1296e13b --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/excheck/checkbox_chkDisabled.html @@ -0,0 +1,111 @@ + + + + ZTREE DEMO - Checkbox chkDisabled + + + + + + + + + + + +

                                                                                                                                                                                                            Checkbox chkDisabled Demo

                                                                                                                                                                                                            +
                                                                                                                                                                                                            [ File Path: excheck/checkbox_chkDisabled.html ]
                                                                                                                                                                                                            +
                                                                                                                                                                                                            +
                                                                                                                                                                                                            +
                                                                                                                                                                                                              +
                                                                                                                                                                                                              +
                                                                                                                                                                                                              +
                                                                                                                                                                                                                +
                                                                                                                                                                                                              • 1, Explanation of 'setChkDisabled' method

                                                                                                                                                                                                                +
                                                                                                                                                                                                                  +
                                                                                                                                                                                                                • 'setChkDisabled' method can set the node's checkbox / radio to be disabled or abled. See the API documentation for more related contents.
                                                                                                                                                                                                                • +
                                                                                                                                                                                                                • Try:
                                                                                                                                                                                                                  + disabled: affect the parent + affect the child
                                                                                                                                                                                                                  + unDisabled: affect the parent + affect the child
                                                                                                                                                                                                                  +     [ be disabled ] +     [ be abled ]

                                                                                                                                                                                                                  +
                                                                                                                                                                                                                • +
                                                                                                                                                                                                                +
                                                                                                                                                                                                              • +
                                                                                                                                                                                                              • 2, Explanation of setting

                                                                                                                                                                                                                +
                                                                                                                                                                                                                  +
                                                                                                                                                                                                                • This Demo only shows how use the ‘chkDisabled’ attribute, detailed configuration information, please refer to 'Checkbox Operation'
                                                                                                                                                                                                                • +
                                                                                                                                                                                                                +
                                                                                                                                                                                                              • +
                                                                                                                                                                                                              • 3, Explanation of treeNode

                                                                                                                                                                                                                +
                                                                                                                                                                                                                  +
                                                                                                                                                                                                                • 1), If you need to initialize the node's checkbox is disabled, please set treeNode.chkDisabled attribute. See the API documentation for more related contents.
                                                                                                                                                                                                                • +
                                                                                                                                                                                                                • 2), By the way, please see the 'Checkbox Operation' Demo.
                                                                                                                                                                                                                • +
                                                                                                                                                                                                                +
                                                                                                                                                                                                              • +
                                                                                                                                                                                                              +
                                                                                                                                                                                                              +
                                                                                                                                                                                                              + + \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/excheck/checkbox_count.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/excheck/checkbox_count.html new file mode 100644 index 00000000..ae443905 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/excheck/checkbox_count.html @@ -0,0 +1,127 @@ + + + + ZTREE DEMO - getChangeCheckedNodes / getCheckedNodes + + + + + + + + + + + +

                                                                                                                                                                                                              Statistics Checkbox is Checked

                                                                                                                                                                                                              +
                                                                                                                                                                                                              [ File Path: excheck/checkbox_count.html ]
                                                                                                                                                                                                              +
                                                                                                                                                                                                              +
                                                                                                                                                                                                              +
                                                                                                                                                                                                                +
                                                                                                                                                                                                                +
                                                                                                                                                                                                                +
                                                                                                                                                                                                                  +
                                                                                                                                                                                                                • 1, Explanation of getChangeCheckedNodes / getCheckedNodes

                                                                                                                                                                                                                  +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                  • How to use zTreeObj.getChangeCheckedNodes / getCheckedNodes method, please see the API documentation.
                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                  • Check the checkbox, observe the number of changes:
                                                                                                                                                                                                                    +

                                                                                                                                                                                                                      +
                                                                                                                                                                                                                    • Total check node:
                                                                                                                                                                                                                    • +
                                                                                                                                                                                                                    • Total uncheck node:
                                                                                                                                                                                                                    • +
                                                                                                                                                                                                                    • Modify the state of checkbox:
                                                                                                                                                                                                                      + Compared with zTree initialization
                                                                                                                                                                                                                      + Compared with the last check
                                                                                                                                                                                                                    • +
                                                                                                                                                                                                                    • Total change the checkbox state of node:
                                                                                                                                                                                                                    • +

                                                                                                                                                                                                                    +
                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                  +
                                                                                                                                                                                                                • +
                                                                                                                                                                                                                • 2, Explanation of setting

                                                                                                                                                                                                                  +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                  • Same as 'Checkbox Operation'
                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                  +
                                                                                                                                                                                                                • +
                                                                                                                                                                                                                • 3, Explanation of treeNode

                                                                                                                                                                                                                  +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                  • Same as 'Checkbox Operation'
                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                  +
                                                                                                                                                                                                                • +
                                                                                                                                                                                                                +
                                                                                                                                                                                                                +
                                                                                                                                                                                                                + + \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/excheck/checkbox_fun.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/excheck/checkbox_fun.html new file mode 100644 index 00000000..0562fe64 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/excheck/checkbox_fun.html @@ -0,0 +1,172 @@ + + + + ZTREE DEMO - beforeCheck / onCheck + + + + + + + + + + + +

                                                                                                                                                                                                                Checkbox - zTree methods

                                                                                                                                                                                                                +
                                                                                                                                                                                                                [ File Path: excheck/checkbox_fun.html ]
                                                                                                                                                                                                                +
                                                                                                                                                                                                                +
                                                                                                                                                                                                                +
                                                                                                                                                                                                                  +
                                                                                                                                                                                                                  +
                                                                                                                                                                                                                  +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                  • 1, 'beforeCheck / onCheck' callback function

                                                                                                                                                                                                                    +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                    • Use 'beforeCheck / onCheck' callback function can control whether to allow changes to the node check state. This simple demo shows how to monitor the check event.
                                                                                                                                                                                                                    • +
                                                                                                                                                                                                                    • By the way also demonstrates how to use the 'checkNode / checkAllNodes' method triggers 'beforeCheck / onCheck' callback, Try:
                                                                                                                                                                                                                      +      setting.check.autoCheckTrigger: false
                                                                                                                                                                                                                      +      Whether trigger the callback when execution checkNode() method.
                                                                                                                                                                                                                      +     Node --[ check ] +     [ uncheck ] +     [ toggle ]
                                                                                                                                                                                                                      +     Node (relationships) --[ check ] +     [ uncheck ] +     [ toggle ]
                                                                                                                                                                                                                      +     All Nodes --[ check ] +     [ uncheck ]

                                                                                                                                                                                                                      +
                                                                                                                                                                                                                    • +
                                                                                                                                                                                                                    • How to use 'zTreeObj.checkNode / checkAllNodes' method, please see the API documentation.
                                                                                                                                                                                                                      + beforeCheck / onCheck log:
                                                                                                                                                                                                                      +

                                                                                                                                                                                                                        +
                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                    • +
                                                                                                                                                                                                                    • 2, Explanation of setting

                                                                                                                                                                                                                      +
                                                                                                                                                                                                                        +
                                                                                                                                                                                                                      • Same as 'Checkbox Operation'
                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                    • +
                                                                                                                                                                                                                    • 3, Explanation of treeNode

                                                                                                                                                                                                                      +
                                                                                                                                                                                                                        +
                                                                                                                                                                                                                      • Same as 'Checkbox Operation'
                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                    • +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    + + \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/excheck/checkbox_halfCheck.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/excheck/checkbox_halfCheck.html new file mode 100644 index 00000000..368cd5a9 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/excheck/checkbox_halfCheck.html @@ -0,0 +1,108 @@ + + + + ZTREE DEMO - Checkbox halfCheck + + + + + + + + + + + +

                                                                                                                                                                                                                    Checkbox halfCheck Demo

                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    [ File Path: excheck/checkbox_halfCheck.html ]
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                    +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                        +
                                                                                                                                                                                                                      • 1, Explanation of Demo

                                                                                                                                                                                                                        +
                                                                                                                                                                                                                          +
                                                                                                                                                                                                                        • This demo implements the check operation of the dynamic tree
                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                        • 1). After loaded child nodes, the parent node's 'halfCheck' attribute will be invalid immediately.
                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                        • 2). If you check the parent node, so will effect the child nodes's check status.
                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                        • 3). If you check the parent node, it's child node's 'halfCheck' attribute will be invalid.
                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                        +
                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                      • 2, Explanation of setting

                                                                                                                                                                                                                        +
                                                                                                                                                                                                                          +
                                                                                                                                                                                                                        • Half-checked functional don't need to configure any parameter. But it is accessibility, can not used alone. So please configure the parameters which you need.
                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                        +
                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                      • 3, Explanation of treeNode

                                                                                                                                                                                                                        +
                                                                                                                                                                                                                          +
                                                                                                                                                                                                                        • 1), Please set treeNode.halfCheck attribute, before zTree initialize. See the API documentation for more related contents.
                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                        • 2), By the way, please see the 'Checkbox Operation' Demo.
                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                        +
                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      + + \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/excheck/checkbox_nocheck.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/excheck/checkbox_nocheck.html new file mode 100644 index 00000000..8a20b842 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/excheck/checkbox_nocheck.html @@ -0,0 +1,95 @@ + + + + ZTREE DEMO - no checkbox + + + + + + + + + + + +

                                                                                                                                                                                                                      Checkbox nocheck Demo

                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      [ File Path: excheck/checkbox_nocheck.html ]
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                      +
                                                                                                                                                                                                                        +
                                                                                                                                                                                                                        +
                                                                                                                                                                                                                        +
                                                                                                                                                                                                                          +
                                                                                                                                                                                                                        • 1, Explanation of setting

                                                                                                                                                                                                                          +
                                                                                                                                                                                                                            +
                                                                                                                                                                                                                          • This Demo only shows how use the ‘nocheck’ attribute, detailed configuration information, please refer to 'Checkbox Operation'
                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                          • setting.check.nocheckInherit can set the child nodes to automatically inherit the parent node's 'nocheck' attribute. See the API documentation for more related contents.
                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                          • Try:
                                                                                                                                                                                                                            +     [ hide checkbox ] +     [ show checkbox ] +

                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                          +
                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                        • 2, Explanation of treeNode

                                                                                                                                                                                                                          +
                                                                                                                                                                                                                            +
                                                                                                                                                                                                                          • 1), If you need to initialize the node don't show checkbox, please set treeNode.nocheck attribute. See the API documentation for more related contents.
                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                          • 2), By the way, please see the 'Checkbox Operation' Demo.
                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                          +
                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                        +
                                                                                                                                                                                                                        +
                                                                                                                                                                                                                        + + \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/excheck/radio.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/excheck/radio.html new file mode 100644 index 00000000..f21c5bca --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/excheck/radio.html @@ -0,0 +1,97 @@ + + + + ZTREE DEMO - radio + + + + + + + + + + + +

                                                                                                                                                                                                                        Radio Operation

                                                                                                                                                                                                                        +
                                                                                                                                                                                                                        [ File Path: excheck/radio.html ]
                                                                                                                                                                                                                        +
                                                                                                                                                                                                                        +
                                                                                                                                                                                                                        +
                                                                                                                                                                                                                          +
                                                                                                                                                                                                                          +
                                                                                                                                                                                                                          +
                                                                                                                                                                                                                            +
                                                                                                                                                                                                                          • 1, Explanation of setting

                                                                                                                                                                                                                            +
                                                                                                                                                                                                                              +
                                                                                                                                                                                                                            • Must set setting.check attributes, see the API documentation for more related contents.
                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                            • group range of radio:
                                                                                                                                                                                                                              within the same level + within the whole tree
                                                                                                                                                                                                                              +

                                                                                                                                                                                                                                +
                                                                                                                                                                                                                              • +
                                                                                                                                                                                                                              +
                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                            • 2, Explanation of treeNode

                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                +
                                                                                                                                                                                                                              • 1), If you need to initialize the node is checked, please set treeNode.checked attribute. See the API documentation for more related contents.
                                                                                                                                                                                                                              • +
                                                                                                                                                                                                                              • 2), If you need to initialize the node don't show radio, please set treeNode.nocheck attribute. See the API documentation for more related contents.
                                                                                                                                                                                                                              • +
                                                                                                                                                                                                                              • 3), If you need to change 'checked' to other attribute, please set setting.data.key.checked attribute. See the API documentation for more related contents.
                                                                                                                                                                                                                              • +
                                                                                                                                                                                                                              • 4), By the way, please see the API documentation for 'treeNode.checkedOld / getCheckStatus / check_Child_State / check_Focus'.
                                                                                                                                                                                                                              • +
                                                                                                                                                                                                                              +
                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            + + \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/excheck/radio_chkDisabled.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/excheck/radio_chkDisabled.html new file mode 100644 index 00000000..08282d75 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/excheck/radio_chkDisabled.html @@ -0,0 +1,101 @@ + + + + ZTREE DEMO - Radio chkDisabled + + + + + + + + + + + +

                                                                                                                                                                                                                            Radio chkDisabled Demo

                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            [ File Path: excheck/radio_chkDisabled.html ]
                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            +
                                                                                                                                                                                                                            +
                                                                                                                                                                                                                              +
                                                                                                                                                                                                                              +
                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                +
                                                                                                                                                                                                                              • 1, Explanation of 'setChkDisabled' method

                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                • 'setChkDisabled' method can set the node's checkbox / radio to be disabled or abled. See the API documentation for more related contents.
                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                • Try:
                                                                                                                                                                                                                                  +     [ be disabled ] +     [ be abled ]

                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                +
                                                                                                                                                                                                                              • +
                                                                                                                                                                                                                              • 2, Explanation of setting

                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                • This Demo only shows how use the ‘nocheck’ attribute, detailed configuration information, please refer to 'Radio Operation'
                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                +
                                                                                                                                                                                                                              • +
                                                                                                                                                                                                                              • 3, Explanation of treeNode

                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                • 1), If you need to initialize the node don't show radio, please set treeNode.chkDisabled attribute. See the API documentation for more related contents.
                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                • 2), By the way, please see the 'Radio Operation' Demo.
                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                +
                                                                                                                                                                                                                              • +
                                                                                                                                                                                                                              +
                                                                                                                                                                                                                              +
                                                                                                                                                                                                                              + + \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/excheck/radio_fun.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/excheck/radio_fun.html new file mode 100644 index 00000000..9a32fc3d --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/excheck/radio_fun.html @@ -0,0 +1,151 @@ + + + + ZTREE DEMO - beforeCheck / onCheck + + + + + + + + + + + +

                                                                                                                                                                                                                              Radio - zTree methods

                                                                                                                                                                                                                              +
                                                                                                                                                                                                                              [ File Path: excheck/radio_fun.html ]
                                                                                                                                                                                                                              +
                                                                                                                                                                                                                              +
                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                • 1, 'beforeCheck / onCheck' callback function

                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                  • Use 'beforeCheck / onCheck' callback function can control whether to allow changes to the node check state. This simple demo shows how to monitor the check event.
                                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                                  • By the way also demonstrates how to use the 'checkNode' method triggers 'beforeCheck / onCheck' callback, Try:
                                                                                                                                                                                                                                    +      Whether trigger the callback when execution checkNode() method.
                                                                                                                                                                                                                                    +     [ check ] +     [ uncheck ]

                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                  • How to use 'zTreeObj.checkNode' method, please see the API documentation.
                                                                                                                                                                                                                                    + beforeCheck / onCheck log:
                                                                                                                                                                                                                                    +

                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                    • +
                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                                  • 2, Explanation of setting

                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                    • Same as 'Radio Operation'
                                                                                                                                                                                                                                    • +
                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                                  • 3, Explanation of treeNode

                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                    • Same as 'Radio Operation'
                                                                                                                                                                                                                                    • +
                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                  + + \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/excheck/radio_halfCheck.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/excheck/radio_halfCheck.html new file mode 100644 index 00000000..932e8376 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/excheck/radio_halfCheck.html @@ -0,0 +1,93 @@ + + + + ZTREE DEMO - Radio halfCheck + + + + + + + + + + + +

                                                                                                                                                                                                                                  Radio halfCheck Demo

                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                  [ File Path: excheck/radio_halfCheck.html ]
                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                    • 1, Explanation of Demo

                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                      • This demo implements the check operation of the dynamic tree
                                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                                      • 1). After loaded child nodes, the parent node's 'halfCheck' attribute will be invalid immediately.
                                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                                      • 2). If you check the parent node, will not effect the child nodes's check status.
                                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                                      • 3). If you check the parent node, it's child node's 'halfCheck' attribute will still be valid.
                                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                    • +
                                                                                                                                                                                                                                    • 2, Explanation of setting

                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                      • Half-checked functional don't need to configure any parameter. But it is accessibility, can not used alone. So please configure the parameters which you need.
                                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                    • +
                                                                                                                                                                                                                                    • 3, Explanation of treeNode

                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                      • 1), Please set treeNode.halfCheck attribute, before zTree initialize. See the API documentation for more related contents.
                                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                                      • 2), By the way, please see the 'Radio Operation' Demo.
                                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                    • +
                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                    + + \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/excheck/radio_nocheck.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/excheck/radio_nocheck.html new file mode 100644 index 00000000..e9e3b48b --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/excheck/radio_nocheck.html @@ -0,0 +1,77 @@ + + + + ZTREE DEMO - no radio + + + + + + + + + + + +

                                                                                                                                                                                                                                    Radio nocheck Demo

                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                    [ File Path: excheck/radio_nocheck.html ]
                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                      • 1, Explanation of setting

                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                        • This Demo only shows how use the ‘nocheck’ attribute, detailed configuration information, please refer to 'Radio Operation'
                                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                                        • setting.check.nocheckInherit can set the child nodes to automatically inherit the parent node's 'nocheck' attribute. See the API documentation for more related contents.
                                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                                      • 2, Explanation of treeNode

                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                        • 1), If you need to initialize the node don't show radio, please set treeNode.nocheck attribute. See the API documentation for more related contents.
                                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                                        • 2), By the way, please see the 'Radio Operation' Demo.
                                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                      + + \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/exedit/async_edit.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/exedit/async_edit.html new file mode 100644 index 00000000..26c6db9d --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/exedit/async_edit.html @@ -0,0 +1,120 @@ + + + + ZTREE DEMO - async & edit + + + + + + + + + + + + +

                                                                                                                                                                                                                                      Editing Dynamic Tree

                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                      [ File Path: exedit/async_edit.html ]
                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                        • 1, Explanation of editing dynamic tree

                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                          • 1) This Demo is based on the "Advanced Edit Nodes" to modify, and open to drag and drop functionality, can be compared with that demo.
                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                          • 2) At the same time set the editing mode and dynamic mode can be achieved editing dynamic tree.
                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                          • 3) zTree improved editing capabilities in dynamic mode, if the parent node hasn‘t loaded the child nodes, it will first load the child nodes before it add child node.
                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                                        • 2, Explanation of setting

                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                          • 1) Use editing features, please refer to "Normal Drag Node Operation" & "Basic Edit Nodes" demo of the instructions.
                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                          • 2) Use dynamic loading, please refer to "Dynamic Tree with Ajax" demo of the instructions.
                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                                        • 3, Explanation of treeNode

                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                          • No special requirements on the node data, please refer to "Dynamic Tree with Ajax" & "Normal Drag Node Operation" & "Basic Edit Nodes" demo of the instructions
                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                        + + \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/exedit/drag.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/exedit/drag.html new file mode 100644 index 00000000..30aff420 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/exedit/drag.html @@ -0,0 +1,136 @@ + + + + ZTREE DEMO - drag & drop + + + + + + + + + + + +

                                                                                                                                                                                                                                        Normal Drag Node Operation

                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                        [ File Path: exedit/drag.html ]
                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                          • 1, Explanation of setting

                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                            • This Demo only shows how to drag & drop nodes using the basic method and configure parameters.
                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                            • 1) Must set 'setting.edit' attributes, see the API documentation for more related contents.
                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                            • 2) If you want to use drag & drop callback, muse to set 'setting.callback.beforeDrag / onDrag / beforeDrop / onDrop' attributes, see the API documentation for more related contents.
                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                            • Basic settings:
                                                                                                                                                                                                                                              + can Copy + can Move
                                                                                                                                                                                                                                              +

                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                              • +
                                                                                                                                                                                                                                              • Position settings:
                                                                                                                                                                                                                                                + prev + inner + next
                                                                                                                                                                                                                                                +

                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                              • +
                                                                                                                                                                                                                                              • 2, Explanation of treeNode

                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                • No special requirements on the node data, the user can add custom attributes.
                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                              • +
                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                              + + \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/exedit/drag_fun.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/exedit/drag_fun.html new file mode 100644 index 00000000..1215ba28 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/exedit/drag_fun.html @@ -0,0 +1,180 @@ + + + + ZTREE DEMO - copyNode / moveNode + + + + + + + + + + + + +

                                                                                                                                                                                                                                              Move / Copy - zTree methods

                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                              [ File Path: exedit/drag_fun.html ]
                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                • 1, Explanation of 'copyNode / moveNode' method

                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                  • Use 'copyNode / moveNode' method can also be achieved copy / move nodes.
                                                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                                                  • Try to copy or cut node:
                                                                                                                                                                                                                                                    +     [ copy ] +     [ cut ] +     [ paste ]

                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                  • How to use 'zTreeObj.copyNode / moveNode' method, please see the API documentation.
                                                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                • 2, Explanation of setting

                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                  • Same as 'Normal Drag Node Operation'
                                                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                • 3, Explanation of treeNode

                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                  • Same as 'Normal Drag Node Operation'
                                                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                + + \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/exedit/drag_super.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/exedit/drag_super.html new file mode 100644 index 00000000..559f1ffe --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/exedit/drag_super.html @@ -0,0 +1,210 @@ + + + + ZTREE DEMO - beforeDrag / onDrag / beforeDrop / onDrop + + + + + + + + + + + +

                                                                                                                                                                                                                                                Advanced Drag Node Operation

                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                [ File Path: exedit/drag_super.html ]
                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                  • 1, 'beforeDrag / onDrag'
                                                                                                                                                                                                                                                      'beforeDrop / onDrop' callback function

                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                    • This Demo shows the configuration parameters to achieve a more flexible use of drag and drop rules, the operation can be compared with "Normal Drag Node Operation" example.
                                                                                                                                                                                                                                                    • +
                                                                                                                                                                                                                                                    • This Demo default allows copy & move.
                                                                                                                                                                                                                                                    • +
                                                                                                                                                                                                                                                    • This Demo set 'setting.edit.drag.prev / inner / next' as 'function', you can dynamically set according to the node, which can not use beforeDrop callback function, the effect of drag and drop will be better.
                                                                                                                                                                                                                                                    • +
                                                                                                                                                                                                                                                    • After be familiar with these configurations, I think you can design a more flexible and rational rules!
                                                                                                                                                                                                                                                      +      拖拽节点时自动展开父节点是否触发 callback
                                                                                                                                                                                                                                                      + drag / drop log:
                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                    • +
                                                                                                                                                                                                                                                    • 2, Explanation of setting

                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                      • Same as 'Normal Drag Node Operation'
                                                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                    • +
                                                                                                                                                                                                                                                    • 3, Explanation of treeNode

                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                      • Same as 'Normal Drag Node Operation'
                                                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                    • +
                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                    + + \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/exedit/edit.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/exedit/edit.html new file mode 100644 index 00000000..fd60f054 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/exedit/edit.html @@ -0,0 +1,115 @@ + + + + ZTREE DEMO - edit + + + + + + + + + + + +

                                                                                                                                                                                                                                                    Basic Edit Nodes

                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                    [ File Path: exedit/edit.html ]
                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                      • 1, Explanation of setting

                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                        • This Demo only shows how to edit nodes using the basic method and configure parameters.
                                                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                                                        • 1) Must set 'setting.edit' attributes, see the API documentation for more related contents.
                                                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                                                        • 2) If you want to use remove / rename callback, muse to set 'setting.callback.beforeRemove / onRemove / beforeRename / onRename' attributes, see the API documentation for more related contents.
                                                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                                                        • 3) zTree do not provide buttons for add nodes, please use the custom control methods 'addHoverDom / removeHoverDom' to achieve added functionality, see the API documentation for more related contents. Another way, you can see the demo named 'Advanced Edit Nodes'.
                                                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                                                        • Edit button setting:
                                                                                                                                                                                                                                                          + show remove button + show edit button
                                                                                                                                                                                                                                                          + title for remove:
                                                                                                                                                                                                                                                          + title for rename: +

                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                                                        • 2, Explanation of treeNode

                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                          • No special requirements on the node data, the user can add custom attributes.
                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                        + + \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/exedit/edit_fun.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/exedit/edit_fun.html new file mode 100644 index 00000000..09c471ea --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/exedit/edit_fun.html @@ -0,0 +1,194 @@ + + + + ZTREE DEMO - addNodes / editName / removeNode / removeChildNodes + + + + + + + + + + + +

                                                                                                                                                                                                                                                        Edit Nodes - zTree methods

                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                        [ File Path: exedit/edit_fun.html ]
                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                          • 1, Explanation of 'addNodes / editName / removeNode / removeChildNodes' method

                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                            • Use 'addNodes / editName / removeNode / removeChildNodes' method can also be achieved copy / move nodes.
                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                            • Method 'cancelEditName' is effective, only when edit the node name. Please use it when necessary, this demo doesn't show how to use the method.
                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                            • Use setting.data.keep.parent / leaf attribute, you can lock the parent node and leaf node.
                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                            • Try to edit node:
                                                                                                                                                                                                                                                              +      Whether trigger the callback when execution removeNode() method.
                                                                                                                                                                                                                                                              +     [ add parent node ] +     [ add leaf node ] +     [ edit name ]
                                                                                                                                                                                                                                                              +     [ remove node ] +     [ make child nodes to empty ]
                                                                                                                                                                                                                                                              + remove log:
                                                                                                                                                                                                                                                              +

                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                              • +
                                                                                                                                                                                                                                                              • How to use 'zTreeObj.addNodes / cancelEditName / editName / removeNode / removeChildNodes' method, please see the API documentation.
                                                                                                                                                                                                                                                              • +
                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                            • 2, Explanation of setting

                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                              • Same as 'Basic Edit Nodes'
                                                                                                                                                                                                                                                              • +
                                                                                                                                                                                                                                                              • Lock the parent / leaf node status, need to set setting.data.keep.parent / leaf attribute, see the API documentation for more related contents
                                                                                                                                                                                                                                                              • +
                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                            • 3, Explanation of treeNode

                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                              • Same as 'Basic Edit Nodes'
                                                                                                                                                                                                                                                              • +
                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                            + + \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/exedit/edit_super.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/exedit/edit_super.html new file mode 100644 index 00000000..c00286db --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/exedit/edit_super.html @@ -0,0 +1,183 @@ + + + + ZTREE DEMO - beforeEditName / beforeRemove / onRemove / beforeRename / onRename + + + + + + + + + + + + +

                                                                                                                                                                                                                                                            Advanced Edit Nodes

                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                            [ File Path: exedit/edit_super.html ]
                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                              • 1, 'beforeDrag / onDrag'
                                                                                                                                                                                                                                                                  'beforeEditName'
                                                                                                                                                                                                                                                                  'beforeRemove / onRemove'
                                                                                                                                                                                                                                                                  'beforeRename / onRename' callback function

                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                • This demo shows the use of custom controls, the callback function to enhance the user experience, the operation can be compared with "Basic Edit Nodes" example.
                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                • This demo achieve the Add nodes button.
                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                • This demo achieve the confirmation when deleting node.
                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                • This demo use the 'showRenameBtn' to hide the rename button, when the treeNode's isLastNode = true
                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                • This demo use the 'showRemoveBtn' to hide the delete button, when the treeNode's isFirstNode = true
                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                • Can use 'beforeEditName' callback trigger custom editing.
                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                • After be familiar with these configurations, I think you can design a more flexible and rational rules!
                                                                                                                                                                                                                                                                  +      Whether select all text, when edit node's name.
                                                                                                                                                                                                                                                                  + remove / rename log:  RED is cancel edit (v3.5.13+)
                                                                                                                                                                                                                                                                  +

                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                • 2, Explanation of setting

                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                  • Same as 'Basic Edit Nodes'
                                                                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                • 3, Explanation of treeNode

                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                  • Same as 'Basic Edit Nodes'
                                                                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                + + \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/exedit/multiTree.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/exedit/multiTree.html new file mode 100644 index 00000000..b078f1b7 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/exedit/multiTree.html @@ -0,0 +1,94 @@ + + + + ZTREE DEMO - multiTree + + + + + + + + + + + +

                                                                                                                                                                                                                                                                Multiple Trees

                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                [ File Path: exedit/multiTree.html ]
                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                • 1, Explanation of setting

                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                  • zTree enables drag and drop nodes between multiple trees, only need to create two draggable tree can be. And you can use the callback function and zTree method achieve a more complex operating rules, here is only the basic demo.
                                                                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                                                                  • On the 'setting' configuration information please refer to drag and drop, edit, etc. demo's instructions
                                                                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                • 2, Explanation of treeNode

                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                  • No special requirements on the node data, the user can add custom attributes.
                                                                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                    + + \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/exhide/checkbox.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/exhide/checkbox.html new file mode 100644 index 00000000..759701ac --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/exhide/checkbox.html @@ -0,0 +1,161 @@ + + + + ZTREE DEMO - Hide With Checkbox Mode + + + + + + + + + + + + +

                                                                                                                                                                                                                                                                    Hide With Checkbox Mode

                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                    [ File Path: exhide/checkbox.html ]
                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                      • 1, Explanation of setting

                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                        • Use the freature which to hide nodes, you don't need to set any attributes.
                                                                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                                                                      • 2, Explanation of treeNode

                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                        • Before you init zTree, set treeNode.isHidden = true, and you can hide the node.
                                                                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                                                                        • Hide or show the nodes:
                                                                                                                                                                                                                                                                          + Try: [ Hide the nodes which be selected ]
                                                                                                                                                                                                                                                                          +     [ Show all of the nodes which be hidden ]
                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                          • Total nodes which 'isHidden' attribute is true:
                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                          • Total hidden nodes:
                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                          • Total check nodes: +   Total uncheck nodes:
                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                          • After hide nodes, you can see the 'isFirstNode' and 'isLastNode' attributes on the nodes which still be shown.
                                                                                                                                                                                                                                                                          • +

                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                                                                      • 3、Other explanation

                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                        • Hide nodes will effect the 'isFirstNode' and 'isLastNode' attributes, but will not effect the 'getPreNode()' and 'getNextNode()' method.
                                                                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                      + + \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/exhide/common.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/exhide/common.html new file mode 100644 index 00000000..9d660a90 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/exhide/common.html @@ -0,0 +1,126 @@ + + + + ZTREE DEMO - Hide Ordinary Node + + + + + + + + + + + +

                                                                                                                                                                                                                                                                      Hide Ordinary Node

                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                      [ File Path: exhide/common.html ]
                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                        • 1, Explanation of setting

                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                          • Use this freature, you don't need to set any attributes.
                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                                                                        • 2, Explanation of treeNode

                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                          • Before you init zTree, set treeNode.isHidden = true, and you can hide the node.
                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                          • Hide or show the nodes:

                                                                                                                                                                                                                                                                            + Try: [ Hide the nodes which be selected ]
                                                                                                                                                                                                                                                                            +     [ Show all of the nodes which be hidden ]

                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                            • Total hidden nodes ('isHidden' is true):
                                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                                            • After hide nodes, you can see the 'isFirstNode' and 'isLastNode' attributes on the nodes which still be shown.
                                                                                                                                                                                                                                                                            • +

                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                                                                        • 3、Other explanation

                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                          • Hide nodes will effect the 'isFirstNode' and 'isLastNode' attributes, but will not effect the 'getPreNode()' and 'getNextNode()' method.
                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                        + + \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/exhide/radio.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/exhide/radio.html new file mode 100644 index 00000000..639d69c2 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/exhide/radio.html @@ -0,0 +1,162 @@ + + + + ZTREE DEMO - Hide With Radio Mode + + + + + + + + + + + + +

                                                                                                                                                                                                                                                                        Hide With Radio Mode

                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                        [ File Path: exhide/radio.html ]
                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                          • 1, Explanation of setting

                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                            • Use the freature which to hide nodes, you don't need to set any attributes.
                                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                          • 2, Explanation of treeNode

                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                            • Before you init zTree, set treeNode.isHidden = true, and you can hide the node.
                                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                                            • Hide or show the nodes:
                                                                                                                                                                                                                                                                              + Try: [ Hide the nodes which be selected ]
                                                                                                                                                                                                                                                                              +     [ Show all of the nodes which be hidden ]
                                                                                                                                                                                                                                                                              +

                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                              • Total nodes which 'isHidden' attribute is true:
                                                                                                                                                                                                                                                                              • +
                                                                                                                                                                                                                                                                              • Total hidden nodes:
                                                                                                                                                                                                                                                                              • +
                                                                                                                                                                                                                                                                              • Total check nodes: +   Total uncheck nodes:
                                                                                                                                                                                                                                                                              • +
                                                                                                                                                                                                                                                                              • After hide nodes, you can see the 'isFirstNode' and 'isLastNode' attributes on the nodes which still be shown.
                                                                                                                                                                                                                                                                              • +

                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                          • 3、Other explanation

                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                            • Hide nodes will effect the 'isFirstNode' and 'isLastNode' attributes, but will not effect the 'getPreNode()' and 'getNextNode()' method.
                                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                          + + \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/index.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/index.html new file mode 100644 index 00000000..1d10fddb --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/index.html @@ -0,0 +1,157 @@ + + + + ZTREE DEMO + + + + + + + + + + + + + + +
                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                            + + + diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/super/asyncForAll.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/super/asyncForAll.html new file mode 100644 index 00000000..eea4a9bc --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/super/asyncForAll.html @@ -0,0 +1,192 @@ + + + + ZTREE DEMO - async for All + + + + + + + + + + +

                                                                                                                                                                                                                                                                            Expand All Nodes with Async

                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                            [ File Path: super/asyncForAll.html ]
                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                              • Explanation of implementation method

                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                • Using 'onAsyncSuccess' / 'onAsyncError' callback and 'reAsyncChildNodes' or 'expandNode' method, you will achieve all functionalities.
                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                • Note: If there are large amount parent nodes, please use delay to avoid excessive asynchronous process.
                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                • Recommendation: please use the debugging tools to view the ajax loading process with network.
                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                • Demonstrate operation +

                                                                                                                                                                                                                                                                                  + [ Expand All Nodes ]        + [ Load all nodes (don't expand) ]

                                                                                                                                                                                                                                                                                  + [ Reset zTree ]

                                                                                                                                                                                                                                                                                  +

                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                              • +
                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                              + + \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/super/checkbox_radio.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/super/checkbox_radio.html new file mode 100644 index 00000000..87ce15d6 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/super/checkbox_radio.html @@ -0,0 +1,116 @@ + + + + ZTREE DEMO - checkbox & radio + + + + + + + + + + + +

                                                                                                                                                                                                                                                                              Checkbox / Radio Coexistence

                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                              [ File Path: super/checkbox_radio.html ]
                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                • Explanation of implementation method

                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                  • zTree default checkbox and radio can not coexist, but can be used the custom DOM features to achieve this requirement, refer to the "Adding Custom DOM".
                                                                                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                                                                                  • For checkbox / radio association rules of the parent nodes and child nodes, according to the needs to develop its own rules.
                                                                                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                + + \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/super/diydom.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/super/diydom.html new file mode 100644 index 00000000..07649d2f --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/super/diydom.html @@ -0,0 +1,177 @@ + + + + ZTREE DEMO - addHoverDom / removeHoverDom / addDiyDom + + + + + + + + + + + + +

                                                                                                                                                                                                                                                                                Adding Custom DOM

                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                [ File Path: super/diydom.html ]
                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                  • 1, Explanation of implementation method

                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                    • Use 'setting.view.addHoverDom / removeHoverDom / addDiyDom' attributes can easily display custom DOM.
                                                                                                                                                                                                                                                                                    • +
                                                                                                                                                                                                                                                                                    • Adding custom DOM, is important to understand zTree node object naming rules to ensure the normal controls add DOM.
                                                                                                                                                                                                                                                                                    • +
                                                                                                                                                                                                                                                                                    • If you add the browser's default ’select / checkbox / radio‘ DOM, please adjust the css, to ensure correctly display zTree.
                                                                                                                                                                                                                                                                                    • +
                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                                                                                  • 2, Explanation of setting

                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                    • Set 'setting.view.addHoverDom / removeHoverDom / addDiyDom' attributes, see the API documentation for more related contents.
                                                                                                                                                                                                                                                                                    • +
                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                                                                                  • 3, Explanation of treeNode

                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                    • No special requirements on the node data, the user can add custom attributes.
                                                                                                                                                                                                                                                                                    • +
                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                  + + \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/super/dragWithOther.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/super/dragWithOther.html new file mode 100644 index 00000000..31426c3c --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/super/dragWithOther.html @@ -0,0 +1,234 @@ + + + + ZTREE DEMO - drag with other DOM + + + + + + + + + + + + +

                                                                                                                                                                                                                                                                                  Drag With Other DOMs

                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                  [ File Path: super/dragWithOther.html ]
                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                    • Explanation of implementation method

                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                      • zTree v3.2 modified the event object in onDrag/onDrop, thus the nodes can be draged to other DOMs easily.
                                                                                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                                                                                      • To drag other DOMS to zTree, you need to build the drag codes by yourself.
                                                                                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                                                                                      • This is just a simple Demo. If you need more features, please build more complicated codes.
                                                                                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                    • +
                                                                                                                                                                                                                                                                                    • Please drag and drop the following content to the tree node

                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                      TreeGrassFlower
                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                      TigerBearLion
                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                      + You can drag the nodes of level 2 to the above layer. +
                                                                                                                                                                                                                                                                                    • +
                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                    + + \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/super/left_menu.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/super/left_menu.html new file mode 100644 index 00000000..7dfe588d --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/super/left_menu.html @@ -0,0 +1,152 @@ + + + + ZTREE DEMO - left_menu + + + + + + + + + + + +

                                                                                                                                                                                                                                                                                    Left Menu

                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                    [ File Path: super/left_menu.html ]
                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                      • Explanation of implementation method

                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                        • The menu in the Demo's Web page is to use zTree to achieve, is to use css set interface, use the configuration 'setting' to achieve features, this demo achieve a simple example of the left menu, you can view the source code of Demo's Web Page for in-depth study.
                                                                                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                                                                                        • 1. According to your needs to modify the css, for example: the menu style on this Demo and Demo's Web page not the same.
                                                                                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                                                                                        • 2. Main configuration:
                                                                                                                                                                                                                                                                                          +     setting.view.showIcon / showLine / selectedMulti / dblClickExpand
                                                                                                                                                                                                                                                                                          +     setting.callback.onNodeCreated / beforeClick / onClick +
                                                                                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                                                                                        • 3. If need to keep single path, please refer to the source code of "Keep Single Path" Demo.
                                                                                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                                                                                        • 4. Other auxiliary rules, please write code based on your needs.
                                                                                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                      • +
                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                      + + diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/super/left_menuForOutLook.gif b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/super/left_menuForOutLook.gif new file mode 100644 index 0000000000000000000000000000000000000000..c252f0f831be3f4672142caf7cb148e14eeb466b GIT binary patch literal 216 zcmZ?wbhEHbRAW$M*v!H3_3PKl%F3Reo=uxJH8nLodh{qiKR+!k?f?J(4A_9;PZmZ7 z1`Y-tkR-?q29{QVlb);hTD(5H`+tH)UrMIZ5l4o32mBZg9(}d@s?gnw+SAwB_!k`h zeY0bKEZ6dsa~ylqzO)Ehth}+N?DX5J{SP)QPq2{Sk~MMLt2f^=pS#l8Y_s7vuerhf z$#-&UGaDppGuq^s+1VMTYMEP_EBjKr>q;ihm|QcnhOvCg?3j+ErOTGDkQHRG1^`@{ BRUH5T literal 0 HcmV?d00001 diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/super/left_menuForOutLook.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/super/left_menuForOutLook.html new file mode 100644 index 00000000..8f7ddff0 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/super/left_menuForOutLook.html @@ -0,0 +1,136 @@ + + + + ZTREE DEMO - left_menu for Outlook + + + + + + + + + + +

                                                                                                                                                                                                                                                                                      Left Menu Like OutLook Style

                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                      [ File Path: super/left_menuForOutLook.html ]
                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                        • Explanation of implementation method

                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                          • I make one left menu which resembles outlook.com, so share to everyone.
                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                          • 1. Please note that the css code of the source of this page.
                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                          • 2. Please note that the javascript code of the source of this page, especially the switch button is moved into the <a> tag when 'addDiyDom' callback be called
                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                          • 3. Use the method of add zTree class name to implement the switch button be hidden or showing.
                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                          • 4. Other auxiliary rules, please write code based on your needs.
                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                          • 5. The current rule description:
                                                                                                                                                                                                                                                                                            +   Click the root node can control the parent node be expanded or collapsed;
                                                                                                                                                                                                                                                                                            +   The parent nodes without root only are only clicked the arrow icon can control be expanded or collapsed;br/> +
                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                        + + diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/super/left_menuForOutLook.png b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/super/left_menuForOutLook.png new file mode 100644 index 0000000000000000000000000000000000000000..36e8acfa3b6cb44f8aa25a339c2fdeb799c108df GIT binary patch literal 421 zcmV;W0b2fvP)Wz za9s|VFMy%u%#2cSX{jWBz4B_Ls5Ok;;ndBs+K8C{*N-`1KAb85wIqX~V{C)<2eLDA zp`^hIn1BhGfbr%q?K*x7{&3B8+Gyt6o!<#fjBjcXRVYvG@p~wbHbYUy7d!za5ocfeYT)_So>?yzikFK{^(}AmD P00000NkvXXu0mjfHrBKf literal 0 HcmV?d00001 diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/super/oneclick.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/super/oneclick.html new file mode 100644 index 00000000..9679ec33 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/super/oneclick.html @@ -0,0 +1,87 @@ + + + + ZTREE DEMO - one click + + + + + + + + + + + +

                                                                                                                                                                                                                                                                                        Click to Expand Node

                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                        [ File Path: super/oneclick.html ]
                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                          • Explanation of implementation method

                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                            • zTree not provide a default click to expand node feature, but can use the onClick callback functions to easily implement this feature.
                                                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                                                            • In order to avoid conflict with the double-clicking, I recommended to turn off double-clicking expand node function, please set setting.view.dblClickExpand = false
                                                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                                                            • You can hide all the +/- switch, please see the page source, see the css.
                                                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                                                            • If you do not show + / - switch, then please set 'setting.view.showLine = false' to hide line.
                                                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                          + + \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/super/oneroot.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/super/oneroot.html new file mode 100644 index 00000000..9d7eb53b --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/super/oneroot.html @@ -0,0 +1,79 @@ + + + + ZTREE DEMO - one root + + + + + + + + + + + +

                                                                                                                                                                                                                                                                                          Freeze the Root Node

                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                          [ File Path: demo/super/oneroot.html ]
                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                            • Explanation of implementation method

                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                              • For only one root, and do not show +/- switch needs need to modify the css, and set the setting.
                                                                                                                                                                                                                                                                                              • +
                                                                                                                                                                                                                                                                                              • zTree v3.x can be for a given level, set the style, check out the page source, see the css.
                                                                                                                                                                                                                                                                                              • +
                                                                                                                                                                                                                                                                                              • Set setting.view.dblClickExpand to Function, you can turn off double-clicking for expand the root node.
                                                                                                                                                                                                                                                                                              • +
                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                            • +
                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                            + + \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/super/rightClickMenu.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/super/rightClickMenu.html new file mode 100644 index 00000000..06e640cc --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/super/rightClickMenu.html @@ -0,0 +1,168 @@ + + + + ZTREE DEMO - select menu + + + + + + + + + + + + +

                                                                                                                                                                                                                                                                                            Right-click Menu

                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                            [ File Path: super/rightClickMenu.html ]
                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                              • Explanation of implementation method

                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                • Use 'beforeRightClick / onRightClick' callback function achieve right-click menu.
                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                • Demo's menu is ugly, you can use a custom menu fine style.
                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                              • +
                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                              • Add Node
                                                                                                                                                                                                                                                                                              • +
                                                                                                                                                                                                                                                                                              • Delete Node
                                                                                                                                                                                                                                                                                              • +
                                                                                                                                                                                                                                                                                              • Check Node
                                                                                                                                                                                                                                                                                              • +
                                                                                                                                                                                                                                                                                              • Uncheck Node
                                                                                                                                                                                                                                                                                              • +
                                                                                                                                                                                                                                                                                              • Resume zTree
                                                                                                                                                                                                                                                                                              • +
                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                              + + \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/super/select_menu.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/super/select_menu.html new file mode 100644 index 00000000..6423f6ec --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/super/select_menu.html @@ -0,0 +1,124 @@ + + + + ZTREE DEMO - select menu + + + + + + + + + + + +

                                                                                                                                                                                                                                                                                              Drop-down Menu

                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                              [ File Path: super/select_menu.html ]
                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                              •   Press Ctrl key to select multiple cities
                                                                                                                                                                                                                                                                                              • +
                                                                                                                                                                                                                                                                                              •   city: +  select
                                                                                                                                                                                                                                                                                              • +
                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                              • Explanation of implementation method

                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                • Achieve this drop-down menu, it is relatively easy, you only need to control zTree Hide / Show, and location.
                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                • Use zTree v3.x, you can select multiple nodes, so the multi-selection is also easy.
                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                • Use the configuration parameters setting, fully meet the needs of most of the functionality.
                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                              • +
                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                              + + + + \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/super/select_menu_checkbox.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/super/select_menu_checkbox.html new file mode 100644 index 00000000..06b50d29 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/super/select_menu_checkbox.html @@ -0,0 +1,126 @@ + + + + ZTREE DEMO - checkbox select menu + + + + + + + + + + + + +

                                                                                                                                                                                                                                                                                              Drop-down Menu with checkbox

                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                              [ File Path: super/select_menu_checkbox.html ]
                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                              •   Check the checkbox to select or click the node
                                                                                                                                                                                                                                                                                              • +
                                                                                                                                                                                                                                                                                              •   Test: +  select
                                                                                                                                                                                                                                                                                              • +
                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                              • Explanation of implementation method

                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                • You can achieve multi-selected drop-down menu with checkbox.
                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                • This Demo is mainly used for compare with other drop-down menu.
                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                              • +
                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                              + + + + \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/super/select_menu_radio.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/super/select_menu_radio.html new file mode 100644 index 00000000..7e9e9d1a --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/super/select_menu_radio.html @@ -0,0 +1,127 @@ + + + + ZTREE DEMO - radio select menu + + + + + + + + + + + + +

                                                                                                                                                                                                                                                                                              Drop-down Menu with radio

                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                              [ File Path: super/select_menu_radio.html ]
                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                              •   Check the radio to select or click the node
                                                                                                                                                                                                                                                                                              • +
                                                                                                                                                                                                                                                                                              •   Test: +  select
                                                                                                                                                                                                                                                                                              • +
                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                              • Explanation of implementation method

                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                • You can achieve single-selected drop-down menu with radio.
                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                • This Demo is mainly used for compare with other drop-down menu.
                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                              • +
                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                              + + + + \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/super/singlepath.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/super/singlepath.html new file mode 100644 index 00000000..f48499d9 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/demo/en/super/singlepath.html @@ -0,0 +1,150 @@ + + + + ZTREE DEMO - single path + + + + + + + + + + + +

                                                                                                                                                                                                                                                                                              Keep Single Path

                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                              [ File Path: super/singlepath.html ]
                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                • Explanation of implementation method

                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                    +
                                                                                                                                                                                                                                                                                                  • This Demo is the transformation from "Click to Expand Node" demo​​, tree only expand single path.
                                                                                                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                                                                                                  • Use 'setting.callback.beforeExpand / onExpand' callback function to achieve rules about expand
                                                                                                                                                                                                                                                                                                  • +
                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                • +
                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                + + \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/js/jquery-1.4.4.min.js b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/js/jquery-1.4.4.min.js new file mode 100644 index 00000000..8f3ca2e2 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/js/jquery-1.4.4.min.js @@ -0,0 +1,167 @@ +/*! + * jQuery JavaScript Library v1.4.4 + * http://jquery.com/ + * + * Copyright 2010, John Resig + * Dual licensed under the MIT or GPL Version 2 licenses. + * http://jquery.org/license + * + * Includes Sizzle.js + * http://sizzlejs.com/ + * Copyright 2010, The Dojo Foundation + * Released under the MIT, BSD, and GPL Licenses. + * + * Date: Thu Nov 11 19:04:53 2010 -0500 + */ +(function(E,B){function ka(a,b,d){if(d===B&&a.nodeType===1){d=a.getAttribute("data-"+b);if(typeof d==="string"){try{d=d==="true"?true:d==="false"?false:d==="null"?null:!c.isNaN(d)?parseFloat(d):Ja.test(d)?c.parseJSON(d):d}catch(e){}c.data(a,b,d)}else d=B}return d}function U(){return false}function ca(){return true}function la(a,b,d){d[0].type=a;return c.event.handle.apply(b,d)}function Ka(a){var b,d,e,f,h,l,k,o,x,r,A,C=[];f=[];h=c.data(this,this.nodeType?"events":"__events__");if(typeof h==="function")h= +h.events;if(!(a.liveFired===this||!h||!h.live||a.button&&a.type==="click")){if(a.namespace)A=RegExp("(^|\\.)"+a.namespace.split(".").join("\\.(?:.*\\.)?")+"(\\.|$)");a.liveFired=this;var J=h.live.slice(0);for(k=0;kd)break;a.currentTarget=f.elem;a.data=f.handleObj.data;a.handleObj=f.handleObj;A=f.handleObj.origHandler.apply(f.elem,arguments);if(A===false||a.isPropagationStopped()){d=f.level;if(A===false)b=false;if(a.isImmediatePropagationStopped())break}}return b}}function Y(a,b){return(a&&a!=="*"?a+".":"")+b.replace(La, +"`").replace(Ma,"&")}function ma(a,b,d){if(c.isFunction(b))return c.grep(a,function(f,h){return!!b.call(f,h,f)===d});else if(b.nodeType)return c.grep(a,function(f){return f===b===d});else if(typeof b==="string"){var e=c.grep(a,function(f){return f.nodeType===1});if(Na.test(b))return c.filter(b,e,!d);else b=c.filter(b,e)}return c.grep(a,function(f){return c.inArray(f,b)>=0===d})}function na(a,b){var d=0;b.each(function(){if(this.nodeName===(a[d]&&a[d].nodeName)){var e=c.data(a[d++]),f=c.data(this, +e);if(e=e&&e.events){delete f.handle;f.events={};for(var h in e)for(var l in e[h])c.event.add(this,h,e[h][l],e[h][l].data)}}})}function Oa(a,b){b.src?c.ajax({url:b.src,async:false,dataType:"script"}):c.globalEval(b.text||b.textContent||b.innerHTML||"");b.parentNode&&b.parentNode.removeChild(b)}function oa(a,b,d){var e=b==="width"?a.offsetWidth:a.offsetHeight;if(d==="border")return e;c.each(b==="width"?Pa:Qa,function(){d||(e-=parseFloat(c.css(a,"padding"+this))||0);if(d==="margin")e+=parseFloat(c.css(a, +"margin"+this))||0;else e-=parseFloat(c.css(a,"border"+this+"Width"))||0});return e}function da(a,b,d,e){if(c.isArray(b)&&b.length)c.each(b,function(f,h){d||Ra.test(a)?e(a,h):da(a+"["+(typeof h==="object"||c.isArray(h)?f:"")+"]",h,d,e)});else if(!d&&b!=null&&typeof b==="object")c.isEmptyObject(b)?e(a,""):c.each(b,function(f,h){da(a+"["+f+"]",h,d,e)});else e(a,b)}function S(a,b){var d={};c.each(pa.concat.apply([],pa.slice(0,b)),function(){d[this]=a});return d}function qa(a){if(!ea[a]){var b=c("<"+ +a+">").appendTo("body"),d=b.css("display");b.remove();if(d==="none"||d==="")d="block";ea[a]=d}return ea[a]}function fa(a){return c.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:false}var t=E.document,c=function(){function a(){if(!b.isReady){try{t.documentElement.doScroll("left")}catch(j){setTimeout(a,1);return}b.ready()}}var b=function(j,s){return new b.fn.init(j,s)},d=E.jQuery,e=E.$,f,h=/^(?:[^<]*(<[\w\W]+>)[^>]*$|#([\w\-]+)$)/,l=/\S/,k=/^\s+/,o=/\s+$/,x=/\W/,r=/\d/,A=/^<(\w+)\s*\/?>(?:<\/\1>)?$/, +C=/^[\],:{}\s]*$/,J=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,w=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,I=/(?:^|:|,)(?:\s*\[)+/g,L=/(webkit)[ \/]([\w.]+)/,g=/(opera)(?:.*version)?[ \/]([\w.]+)/,i=/(msie) ([\w.]+)/,n=/(mozilla)(?:.*? rv:([\w.]+))?/,m=navigator.userAgent,p=false,q=[],u,y=Object.prototype.toString,F=Object.prototype.hasOwnProperty,M=Array.prototype.push,N=Array.prototype.slice,O=String.prototype.trim,D=Array.prototype.indexOf,R={};b.fn=b.prototype={init:function(j, +s){var v,z,H;if(!j)return this;if(j.nodeType){this.context=this[0]=j;this.length=1;return this}if(j==="body"&&!s&&t.body){this.context=t;this[0]=t.body;this.selector="body";this.length=1;return this}if(typeof j==="string")if((v=h.exec(j))&&(v[1]||!s))if(v[1]){H=s?s.ownerDocument||s:t;if(z=A.exec(j))if(b.isPlainObject(s)){j=[t.createElement(z[1])];b.fn.attr.call(j,s,true)}else j=[H.createElement(z[1])];else{z=b.buildFragment([v[1]],[H]);j=(z.cacheable?z.fragment.cloneNode(true):z.fragment).childNodes}return b.merge(this, +j)}else{if((z=t.getElementById(v[2]))&&z.parentNode){if(z.id!==v[2])return f.find(j);this.length=1;this[0]=z}this.context=t;this.selector=j;return this}else if(!s&&!x.test(j)){this.selector=j;this.context=t;j=t.getElementsByTagName(j);return b.merge(this,j)}else return!s||s.jquery?(s||f).find(j):b(s).find(j);else if(b.isFunction(j))return f.ready(j);if(j.selector!==B){this.selector=j.selector;this.context=j.context}return b.makeArray(j,this)},selector:"",jquery:"1.4.4",length:0,size:function(){return this.length}, +toArray:function(){return N.call(this,0)},get:function(j){return j==null?this.toArray():j<0?this.slice(j)[0]:this[j]},pushStack:function(j,s,v){var z=b();b.isArray(j)?M.apply(z,j):b.merge(z,j);z.prevObject=this;z.context=this.context;if(s==="find")z.selector=this.selector+(this.selector?" ":"")+v;else if(s)z.selector=this.selector+"."+s+"("+v+")";return z},each:function(j,s){return b.each(this,j,s)},ready:function(j){b.bindReady();if(b.isReady)j.call(t,b);else q&&q.push(j);return this},eq:function(j){return j=== +-1?this.slice(j):this.slice(j,+j+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(N.apply(this,arguments),"slice",N.call(arguments).join(","))},map:function(j){return this.pushStack(b.map(this,function(s,v){return j.call(s,v,s)}))},end:function(){return this.prevObject||b(null)},push:M,sort:[].sort,splice:[].splice};b.fn.init.prototype=b.fn;b.extend=b.fn.extend=function(){var j,s,v,z,H,G=arguments[0]||{},K=1,Q=arguments.length,ga=false; +if(typeof G==="boolean"){ga=G;G=arguments[1]||{};K=2}if(typeof G!=="object"&&!b.isFunction(G))G={};if(Q===K){G=this;--K}for(;K0))if(q){var s=0,v=q;for(q=null;j=v[s++];)j.call(t,b);b.fn.trigger&&b(t).trigger("ready").unbind("ready")}}},bindReady:function(){if(!p){p=true;if(t.readyState==="complete")return setTimeout(b.ready,1);if(t.addEventListener){t.addEventListener("DOMContentLoaded",u,false);E.addEventListener("load",b.ready,false)}else if(t.attachEvent){t.attachEvent("onreadystatechange",u);E.attachEvent("onload", +b.ready);var j=false;try{j=E.frameElement==null}catch(s){}t.documentElement.doScroll&&j&&a()}}},isFunction:function(j){return b.type(j)==="function"},isArray:Array.isArray||function(j){return b.type(j)==="array"},isWindow:function(j){return j&&typeof j==="object"&&"setInterval"in j},isNaN:function(j){return j==null||!r.test(j)||isNaN(j)},type:function(j){return j==null?String(j):R[y.call(j)]||"object"},isPlainObject:function(j){if(!j||b.type(j)!=="object"||j.nodeType||b.isWindow(j))return false;if(j.constructor&& +!F.call(j,"constructor")&&!F.call(j.constructor.prototype,"isPrototypeOf"))return false;for(var s in j);return s===B||F.call(j,s)},isEmptyObject:function(j){for(var s in j)return false;return true},error:function(j){throw j;},parseJSON:function(j){if(typeof j!=="string"||!j)return null;j=b.trim(j);if(C.test(j.replace(J,"@").replace(w,"]").replace(I,"")))return E.JSON&&E.JSON.parse?E.JSON.parse(j):(new Function("return "+j))();else b.error("Invalid JSON: "+j)},noop:function(){},globalEval:function(j){if(j&& +l.test(j)){var s=t.getElementsByTagName("head")[0]||t.documentElement,v=t.createElement("script");v.type="text/javascript";if(b.support.scriptEval)v.appendChild(t.createTextNode(j));else v.text=j;s.insertBefore(v,s.firstChild);s.removeChild(v)}},nodeName:function(j,s){return j.nodeName&&j.nodeName.toUpperCase()===s.toUpperCase()},each:function(j,s,v){var z,H=0,G=j.length,K=G===B||b.isFunction(j);if(v)if(K)for(z in j){if(s.apply(j[z],v)===false)break}else for(;H
                                                                                                                                                                                                                                                                                                a";var f=d.getElementsByTagName("*"),h=d.getElementsByTagName("a")[0],l=t.createElement("select"), +k=l.appendChild(t.createElement("option"));if(!(!f||!f.length||!h)){c.support={leadingWhitespace:d.firstChild.nodeType===3,tbody:!d.getElementsByTagName("tbody").length,htmlSerialize:!!d.getElementsByTagName("link").length,style:/red/.test(h.getAttribute("style")),hrefNormalized:h.getAttribute("href")==="/a",opacity:/^0.55$/.test(h.style.opacity),cssFloat:!!h.style.cssFloat,checkOn:d.getElementsByTagName("input")[0].value==="on",optSelected:k.selected,deleteExpando:true,optDisabled:false,checkClone:false, +scriptEval:false,noCloneEvent:true,boxModel:null,inlineBlockNeedsLayout:false,shrinkWrapBlocks:false,reliableHiddenOffsets:true};l.disabled=true;c.support.optDisabled=!k.disabled;b.type="text/javascript";try{b.appendChild(t.createTextNode("window."+e+"=1;"))}catch(o){}a.insertBefore(b,a.firstChild);if(E[e]){c.support.scriptEval=true;delete E[e]}try{delete b.test}catch(x){c.support.deleteExpando=false}a.removeChild(b);if(d.attachEvent&&d.fireEvent){d.attachEvent("onclick",function r(){c.support.noCloneEvent= +false;d.detachEvent("onclick",r)});d.cloneNode(true).fireEvent("onclick")}d=t.createElement("div");d.innerHTML="";a=t.createDocumentFragment();a.appendChild(d.firstChild);c.support.checkClone=a.cloneNode(true).cloneNode(true).lastChild.checked;c(function(){var r=t.createElement("div");r.style.width=r.style.paddingLeft="1px";t.body.appendChild(r);c.boxModel=c.support.boxModel=r.offsetWidth===2;if("zoom"in r.style){r.style.display="inline";r.style.zoom= +1;c.support.inlineBlockNeedsLayout=r.offsetWidth===2;r.style.display="";r.innerHTML="
                                                                                                                                                                                                                                                                                                ";c.support.shrinkWrapBlocks=r.offsetWidth!==2}r.innerHTML="
                                                                                                                                                                                                                                                                                                t
                                                                                                                                                                                                                                                                                                ";var A=r.getElementsByTagName("td");c.support.reliableHiddenOffsets=A[0].offsetHeight===0;A[0].style.display="";A[1].style.display="none";c.support.reliableHiddenOffsets=c.support.reliableHiddenOffsets&&A[0].offsetHeight===0;r.innerHTML="";t.body.removeChild(r).style.display= +"none"});a=function(r){var A=t.createElement("div");r="on"+r;var C=r in A;if(!C){A.setAttribute(r,"return;");C=typeof A[r]==="function"}return C};c.support.submitBubbles=a("submit");c.support.changeBubbles=a("change");a=b=d=f=h=null}})();var ra={},Ja=/^(?:\{.*\}|\[.*\])$/;c.extend({cache:{},uuid:0,expando:"jQuery"+c.now(),noData:{embed:true,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:true},data:function(a,b,d){if(c.acceptData(a)){a=a==E?ra:a;var e=a.nodeType,f=e?a[c.expando]:null,h= +c.cache;if(!(e&&!f&&typeof b==="string"&&d===B)){if(e)f||(a[c.expando]=f=++c.uuid);else h=a;if(typeof b==="object")if(e)h[f]=c.extend(h[f],b);else c.extend(h,b);else if(e&&!h[f])h[f]={};a=e?h[f]:h;if(d!==B)a[b]=d;return typeof b==="string"?a[b]:a}}},removeData:function(a,b){if(c.acceptData(a)){a=a==E?ra:a;var d=a.nodeType,e=d?a[c.expando]:a,f=c.cache,h=d?f[e]:e;if(b){if(h){delete h[b];d&&c.isEmptyObject(h)&&c.removeData(a)}}else if(d&&c.support.deleteExpando)delete a[c.expando];else if(a.removeAttribute)a.removeAttribute(c.expando); +else if(d)delete f[e];else for(var l in a)delete a[l]}},acceptData:function(a){if(a.nodeName){var b=c.noData[a.nodeName.toLowerCase()];if(b)return!(b===true||a.getAttribute("classid")!==b)}return true}});c.fn.extend({data:function(a,b){var d=null;if(typeof a==="undefined"){if(this.length){var e=this[0].attributes,f;d=c.data(this[0]);for(var h=0,l=e.length;h-1)return true;return false},val:function(a){if(!arguments.length){var b=this[0];if(b){if(c.nodeName(b,"option")){var d=b.attributes.value;return!d||d.specified?b.value:b.text}if(c.nodeName(b,"select")){var e=b.selectedIndex;d=[];var f=b.options;b=b.type==="select-one"; +if(e<0)return null;var h=b?e:0;for(e=b?e+1:f.length;h=0;else if(c.nodeName(this,"select")){var A=c.makeArray(r);c("option",this).each(function(){this.selected=c.inArray(c(this).val(),A)>=0});if(!A.length)this.selectedIndex=-1}else this.value=r}})}});c.extend({attrFn:{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true}, +attr:function(a,b,d,e){if(!a||a.nodeType===3||a.nodeType===8)return B;if(e&&b in c.attrFn)return c(a)[b](d);e=a.nodeType!==1||!c.isXMLDoc(a);var f=d!==B;b=e&&c.props[b]||b;var h=Ta.test(b);if((b in a||a[b]!==B)&&e&&!h){if(f){b==="type"&&Ua.test(a.nodeName)&&a.parentNode&&c.error("type property can't be changed");if(d===null)a.nodeType===1&&a.removeAttribute(b);else a[b]=d}if(c.nodeName(a,"form")&&a.getAttributeNode(b))return a.getAttributeNode(b).nodeValue;if(b==="tabIndex")return(b=a.getAttributeNode("tabIndex"))&& +b.specified?b.value:Va.test(a.nodeName)||Wa.test(a.nodeName)&&a.href?0:B;return a[b]}if(!c.support.style&&e&&b==="style"){if(f)a.style.cssText=""+d;return a.style.cssText}f&&a.setAttribute(b,""+d);if(!a.attributes[b]&&a.hasAttribute&&!a.hasAttribute(b))return B;a=!c.support.hrefNormalized&&e&&h?a.getAttribute(b,2):a.getAttribute(b);return a===null?B:a}});var X=/\.(.*)$/,ia=/^(?:textarea|input|select)$/i,La=/\./g,Ma=/ /g,Xa=/[^\w\s.|`]/g,Ya=function(a){return a.replace(Xa,"\\$&")},ua={focusin:0,focusout:0}; +c.event={add:function(a,b,d,e){if(!(a.nodeType===3||a.nodeType===8)){if(c.isWindow(a)&&a!==E&&!a.frameElement)a=E;if(d===false)d=U;else if(!d)return;var f,h;if(d.handler){f=d;d=f.handler}if(!d.guid)d.guid=c.guid++;if(h=c.data(a)){var l=a.nodeType?"events":"__events__",k=h[l],o=h.handle;if(typeof k==="function"){o=k.handle;k=k.events}else if(!k){a.nodeType||(h[l]=h=function(){});h.events=k={}}if(!o)h.handle=o=function(){return typeof c!=="undefined"&&!c.event.triggered?c.event.handle.apply(o.elem, +arguments):B};o.elem=a;b=b.split(" ");for(var x=0,r;l=b[x++];){h=f?c.extend({},f):{handler:d,data:e};if(l.indexOf(".")>-1){r=l.split(".");l=r.shift();h.namespace=r.slice(0).sort().join(".")}else{r=[];h.namespace=""}h.type=l;if(!h.guid)h.guid=d.guid;var A=k[l],C=c.event.special[l]||{};if(!A){A=k[l]=[];if(!C.setup||C.setup.call(a,e,r,o)===false)if(a.addEventListener)a.addEventListener(l,o,false);else a.attachEvent&&a.attachEvent("on"+l,o)}if(C.add){C.add.call(a,h);if(!h.handler.guid)h.handler.guid= +d.guid}A.push(h);c.event.global[l]=true}a=null}}},global:{},remove:function(a,b,d,e){if(!(a.nodeType===3||a.nodeType===8)){if(d===false)d=U;var f,h,l=0,k,o,x,r,A,C,J=a.nodeType?"events":"__events__",w=c.data(a),I=w&&w[J];if(w&&I){if(typeof I==="function"){w=I;I=I.events}if(b&&b.type){d=b.handler;b=b.type}if(!b||typeof b==="string"&&b.charAt(0)==="."){b=b||"";for(f in I)c.event.remove(a,f+b)}else{for(b=b.split(" ");f=b[l++];){r=f;k=f.indexOf(".")<0;o=[];if(!k){o=f.split(".");f=o.shift();x=RegExp("(^|\\.)"+ +c.map(o.slice(0).sort(),Ya).join("\\.(?:.*\\.)?")+"(\\.|$)")}if(A=I[f])if(d){r=c.event.special[f]||{};for(h=e||0;h=0){a.type=f=f.slice(0,-1);a.exclusive=true}if(!d){a.stopPropagation();c.event.global[f]&&c.each(c.cache,function(){this.events&&this.events[f]&&c.event.trigger(a,b,this.handle.elem)})}if(!d||d.nodeType===3||d.nodeType=== +8)return B;a.result=B;a.target=d;b=c.makeArray(b);b.unshift(a)}a.currentTarget=d;(e=d.nodeType?c.data(d,"handle"):(c.data(d,"__events__")||{}).handle)&&e.apply(d,b);e=d.parentNode||d.ownerDocument;try{if(!(d&&d.nodeName&&c.noData[d.nodeName.toLowerCase()]))if(d["on"+f]&&d["on"+f].apply(d,b)===false){a.result=false;a.preventDefault()}}catch(h){}if(!a.isPropagationStopped()&&e)c.event.trigger(a,b,e,true);else if(!a.isDefaultPrevented()){var l;e=a.target;var k=f.replace(X,""),o=c.nodeName(e,"a")&&k=== +"click",x=c.event.special[k]||{};if((!x._default||x._default.call(d,a)===false)&&!o&&!(e&&e.nodeName&&c.noData[e.nodeName.toLowerCase()])){try{if(e[k]){if(l=e["on"+k])e["on"+k]=null;c.event.triggered=true;e[k]()}}catch(r){}if(l)e["on"+k]=l;c.event.triggered=false}}},handle:function(a){var b,d,e,f;d=[];var h=c.makeArray(arguments);a=h[0]=c.event.fix(a||E.event);a.currentTarget=this;b=a.type.indexOf(".")<0&&!a.exclusive;if(!b){e=a.type.split(".");a.type=e.shift();d=e.slice(0).sort();e=RegExp("(^|\\.)"+ +d.join("\\.(?:.*\\.)?")+"(\\.|$)")}a.namespace=a.namespace||d.join(".");f=c.data(this,this.nodeType?"events":"__events__");if(typeof f==="function")f=f.events;d=(f||{})[a.type];if(f&&d){d=d.slice(0);f=0;for(var l=d.length;f-1?c.map(a.options,function(e){return e.selected}).join("-"):"";else if(a.nodeName.toLowerCase()==="select")d=a.selectedIndex;return d},Z=function(a,b){var d=a.target,e,f;if(!(!ia.test(d.nodeName)||d.readOnly)){e=c.data(d,"_change_data");f=xa(d);if(a.type!=="focusout"||d.type!=="radio")c.data(d,"_change_data",f);if(!(e===B||f===e))if(e!=null||f){a.type="change";a.liveFired= +B;return c.event.trigger(a,b,d)}}};c.event.special.change={filters:{focusout:Z,beforedeactivate:Z,click:function(a){var b=a.target,d=b.type;if(d==="radio"||d==="checkbox"||b.nodeName.toLowerCase()==="select")return Z.call(this,a)},keydown:function(a){var b=a.target,d=b.type;if(a.keyCode===13&&b.nodeName.toLowerCase()!=="textarea"||a.keyCode===32&&(d==="checkbox"||d==="radio")||d==="select-multiple")return Z.call(this,a)},beforeactivate:function(a){a=a.target;c.data(a,"_change_data",xa(a))}},setup:function(){if(this.type=== +"file")return false;for(var a in V)c.event.add(this,a+".specialChange",V[a]);return ia.test(this.nodeName)},teardown:function(){c.event.remove(this,".specialChange");return ia.test(this.nodeName)}};V=c.event.special.change.filters;V.focus=V.beforeactivate}t.addEventListener&&c.each({focus:"focusin",blur:"focusout"},function(a,b){function d(e){e=c.event.fix(e);e.type=b;return c.event.trigger(e,null,e.target)}c.event.special[b]={setup:function(){ua[b]++===0&&t.addEventListener(a,d,true)},teardown:function(){--ua[b]=== +0&&t.removeEventListener(a,d,true)}}});c.each(["bind","one"],function(a,b){c.fn[b]=function(d,e,f){if(typeof d==="object"){for(var h in d)this[b](h,e,d[h],f);return this}if(c.isFunction(e)||e===false){f=e;e=B}var l=b==="one"?c.proxy(f,function(o){c(this).unbind(o,l);return f.apply(this,arguments)}):f;if(d==="unload"&&b!=="one")this.one(d,e,f);else{h=0;for(var k=this.length;h0?this.bind(b,d,e):this.trigger(b)};if(c.attrFn)c.attrFn[b]=true});E.attachEvent&&!E.addEventListener&&c(E).bind("unload",function(){for(var a in c.cache)if(c.cache[a].handle)try{c.event.remove(c.cache[a].handle.elem)}catch(b){}}); +(function(){function a(g,i,n,m,p,q){p=0;for(var u=m.length;p0){F=y;break}}y=y[g]}m[p]=F}}}var d=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,e=0,f=Object.prototype.toString,h=false,l=true;[0,0].sort(function(){l=false;return 0});var k=function(g,i,n,m){n=n||[];var p=i=i||t;if(i.nodeType!==1&&i.nodeType!==9)return[];if(!g||typeof g!=="string")return n;var q,u,y,F,M,N=true,O=k.isXML(i),D=[],R=g;do{d.exec("");if(q=d.exec(R)){R=q[3];D.push(q[1]);if(q[2]){F=q[3]; +break}}}while(q);if(D.length>1&&x.exec(g))if(D.length===2&&o.relative[D[0]])u=L(D[0]+D[1],i);else for(u=o.relative[D[0]]?[i]:k(D.shift(),i);D.length;){g=D.shift();if(o.relative[g])g+=D.shift();u=L(g,u)}else{if(!m&&D.length>1&&i.nodeType===9&&!O&&o.match.ID.test(D[0])&&!o.match.ID.test(D[D.length-1])){q=k.find(D.shift(),i,O);i=q.expr?k.filter(q.expr,q.set)[0]:q.set[0]}if(i){q=m?{expr:D.pop(),set:C(m)}:k.find(D.pop(),D.length===1&&(D[0]==="~"||D[0]==="+")&&i.parentNode?i.parentNode:i,O);u=q.expr?k.filter(q.expr, +q.set):q.set;if(D.length>0)y=C(u);else N=false;for(;D.length;){q=M=D.pop();if(o.relative[M])q=D.pop();else M="";if(q==null)q=i;o.relative[M](y,q,O)}}else y=[]}y||(y=u);y||k.error(M||g);if(f.call(y)==="[object Array]")if(N)if(i&&i.nodeType===1)for(g=0;y[g]!=null;g++){if(y[g]&&(y[g]===true||y[g].nodeType===1&&k.contains(i,y[g])))n.push(u[g])}else for(g=0;y[g]!=null;g++)y[g]&&y[g].nodeType===1&&n.push(u[g]);else n.push.apply(n,y);else C(y,n);if(F){k(F,p,n,m);k.uniqueSort(n)}return n};k.uniqueSort=function(g){if(w){h= +l;g.sort(w);if(h)for(var i=1;i0};k.find=function(g,i,n){var m;if(!g)return[];for(var p=0,q=o.order.length;p":function(g,i){var n,m=typeof i==="string",p=0,q=g.length;if(m&&!/\W/.test(i))for(i=i.toLowerCase();p=0))n||m.push(u);else if(n)i[q]=false;return false},ID:function(g){return g[1].replace(/\\/g,"")},TAG:function(g){return g[1].toLowerCase()},CHILD:function(g){if(g[1]==="nth"){var i=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(g[2]==="even"&&"2n"||g[2]==="odd"&&"2n+1"||!/\D/.test(g[2])&&"0n+"+g[2]||g[2]);g[2]=i[1]+(i[2]||1)-0;g[3]=i[3]-0}g[0]=e++;return g},ATTR:function(g,i,n, +m,p,q){i=g[1].replace(/\\/g,"");if(!q&&o.attrMap[i])g[1]=o.attrMap[i];if(g[2]==="~=")g[4]=" "+g[4]+" ";return g},PSEUDO:function(g,i,n,m,p){if(g[1]==="not")if((d.exec(g[3])||"").length>1||/^\w/.test(g[3]))g[3]=k(g[3],null,null,i);else{g=k.filter(g[3],i,n,true^p);n||m.push.apply(m,g);return false}else if(o.match.POS.test(g[0])||o.match.CHILD.test(g[0]))return true;return g},POS:function(g){g.unshift(true);return g}},filters:{enabled:function(g){return g.disabled===false&&g.type!=="hidden"},disabled:function(g){return g.disabled=== +true},checked:function(g){return g.checked===true},selected:function(g){return g.selected===true},parent:function(g){return!!g.firstChild},empty:function(g){return!g.firstChild},has:function(g,i,n){return!!k(n[3],g).length},header:function(g){return/h\d/i.test(g.nodeName)},text:function(g){return"text"===g.type},radio:function(g){return"radio"===g.type},checkbox:function(g){return"checkbox"===g.type},file:function(g){return"file"===g.type},password:function(g){return"password"===g.type},submit:function(g){return"submit"=== +g.type},image:function(g){return"image"===g.type},reset:function(g){return"reset"===g.type},button:function(g){return"button"===g.type||g.nodeName.toLowerCase()==="button"},input:function(g){return/input|select|textarea|button/i.test(g.nodeName)}},setFilters:{first:function(g,i){return i===0},last:function(g,i,n,m){return i===m.length-1},even:function(g,i){return i%2===0},odd:function(g,i){return i%2===1},lt:function(g,i,n){return in[3]-0},nth:function(g,i,n){return n[3]- +0===i},eq:function(g,i,n){return n[3]-0===i}},filter:{PSEUDO:function(g,i,n,m){var p=i[1],q=o.filters[p];if(q)return q(g,n,i,m);else if(p==="contains")return(g.textContent||g.innerText||k.getText([g])||"").indexOf(i[3])>=0;else if(p==="not"){i=i[3];n=0;for(m=i.length;n=0}},ID:function(g,i){return g.nodeType===1&&g.getAttribute("id")===i},TAG:function(g,i){return i==="*"&&g.nodeType===1||g.nodeName.toLowerCase()=== +i},CLASS:function(g,i){return(" "+(g.className||g.getAttribute("class"))+" ").indexOf(i)>-1},ATTR:function(g,i){var n=i[1];n=o.attrHandle[n]?o.attrHandle[n](g):g[n]!=null?g[n]:g.getAttribute(n);var m=n+"",p=i[2],q=i[4];return n==null?p==="!=":p==="="?m===q:p==="*="?m.indexOf(q)>=0:p==="~="?(" "+m+" ").indexOf(q)>=0:!q?m&&n!==false:p==="!="?m!==q:p==="^="?m.indexOf(q)===0:p==="$="?m.substr(m.length-q.length)===q:p==="|="?m===q||m.substr(0,q.length+1)===q+"-":false},POS:function(g,i,n,m){var p=o.setFilters[i[2]]; +if(p)return p(g,n,i,m)}}},x=o.match.POS,r=function(g,i){return"\\"+(i-0+1)},A;for(A in o.match){o.match[A]=RegExp(o.match[A].source+/(?![^\[]*\])(?![^\(]*\))/.source);o.leftMatch[A]=RegExp(/(^(?:.|\r|\n)*?)/.source+o.match[A].source.replace(/\\(\d+)/g,r))}var C=function(g,i){g=Array.prototype.slice.call(g,0);if(i){i.push.apply(i,g);return i}return g};try{Array.prototype.slice.call(t.documentElement.childNodes,0)}catch(J){C=function(g,i){var n=0,m=i||[];if(f.call(g)==="[object Array]")Array.prototype.push.apply(m, +g);else if(typeof g.length==="number")for(var p=g.length;n";n.insertBefore(g,n.firstChild);if(t.getElementById(i)){o.find.ID=function(m,p,q){if(typeof p.getElementById!=="undefined"&&!q)return(p=p.getElementById(m[1]))?p.id===m[1]||typeof p.getAttributeNode!=="undefined"&&p.getAttributeNode("id").nodeValue===m[1]?[p]:B:[]};o.filter.ID=function(m,p){var q=typeof m.getAttributeNode!=="undefined"&&m.getAttributeNode("id");return m.nodeType===1&&q&&q.nodeValue===p}}n.removeChild(g); +n=g=null})();(function(){var g=t.createElement("div");g.appendChild(t.createComment(""));if(g.getElementsByTagName("*").length>0)o.find.TAG=function(i,n){var m=n.getElementsByTagName(i[1]);if(i[1]==="*"){for(var p=[],q=0;m[q];q++)m[q].nodeType===1&&p.push(m[q]);m=p}return m};g.innerHTML="";if(g.firstChild&&typeof g.firstChild.getAttribute!=="undefined"&&g.firstChild.getAttribute("href")!=="#")o.attrHandle.href=function(i){return i.getAttribute("href",2)};g=null})();t.querySelectorAll&& +function(){var g=k,i=t.createElement("div");i.innerHTML="

                                                                                                                                                                                                                                                                                                ";if(!(i.querySelectorAll&&i.querySelectorAll(".TEST").length===0)){k=function(m,p,q,u){p=p||t;m=m.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!u&&!k.isXML(p))if(p.nodeType===9)try{return C(p.querySelectorAll(m),q)}catch(y){}else if(p.nodeType===1&&p.nodeName.toLowerCase()!=="object"){var F=p.getAttribute("id"),M=F||"__sizzle__";F||p.setAttribute("id",M);try{return C(p.querySelectorAll("#"+M+" "+m),q)}catch(N){}finally{F|| +p.removeAttribute("id")}}return g(m,p,q,u)};for(var n in g)k[n]=g[n];i=null}}();(function(){var g=t.documentElement,i=g.matchesSelector||g.mozMatchesSelector||g.webkitMatchesSelector||g.msMatchesSelector,n=false;try{i.call(t.documentElement,"[test!='']:sizzle")}catch(m){n=true}if(i)k.matchesSelector=function(p,q){q=q.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!k.isXML(p))try{if(n||!o.match.PSEUDO.test(q)&&!/!=/.test(q))return i.call(p,q)}catch(u){}return k(q,null,null,[p]).length>0}})();(function(){var g= +t.createElement("div");g.innerHTML="
                                                                                                                                                                                                                                                                                                ";if(!(!g.getElementsByClassName||g.getElementsByClassName("e").length===0)){g.lastChild.className="e";if(g.getElementsByClassName("e").length!==1){o.order.splice(1,0,"CLASS");o.find.CLASS=function(i,n,m){if(typeof n.getElementsByClassName!=="undefined"&&!m)return n.getElementsByClassName(i[1])};g=null}}})();k.contains=t.documentElement.contains?function(g,i){return g!==i&&(g.contains?g.contains(i):true)}:t.documentElement.compareDocumentPosition? +function(g,i){return!!(g.compareDocumentPosition(i)&16)}:function(){return false};k.isXML=function(g){return(g=(g?g.ownerDocument||g:0).documentElement)?g.nodeName!=="HTML":false};var L=function(g,i){for(var n,m=[],p="",q=i.nodeType?[i]:i;n=o.match.PSEUDO.exec(g);){p+=n[0];g=g.replace(o.match.PSEUDO,"")}g=o.relative[g]?g+"*":g;n=0;for(var u=q.length;n0)for(var h=d;h0},closest:function(a,b){var d=[],e,f,h=this[0];if(c.isArray(a)){var l,k={},o=1;if(h&&a.length){e=0;for(f=a.length;e-1:c(h).is(e))d.push({selector:l,elem:h,level:o})}h= +h.parentNode;o++}}return d}l=cb.test(a)?c(a,b||this.context):null;e=0;for(f=this.length;e-1:c.find.matchesSelector(h,a)){d.push(h);break}else{h=h.parentNode;if(!h||!h.ownerDocument||h===b)break}d=d.length>1?c.unique(d):d;return this.pushStack(d,"closest",a)},index:function(a){if(!a||typeof a==="string")return c.inArray(this[0],a?c(a):this.parent().children());return c.inArray(a.jquery?a[0]:a,this)},add:function(a,b){var d=typeof a==="string"?c(a,b||this.context): +c.makeArray(a),e=c.merge(this.get(),d);return this.pushStack(!d[0]||!d[0].parentNode||d[0].parentNode.nodeType===11||!e[0]||!e[0].parentNode||e[0].parentNode.nodeType===11?e:c.unique(e))},andSelf:function(){return this.add(this.prevObject)}});c.each({parent:function(a){return(a=a.parentNode)&&a.nodeType!==11?a:null},parents:function(a){return c.dir(a,"parentNode")},parentsUntil:function(a,b,d){return c.dir(a,"parentNode",d)},next:function(a){return c.nth(a,2,"nextSibling")},prev:function(a){return c.nth(a, +2,"previousSibling")},nextAll:function(a){return c.dir(a,"nextSibling")},prevAll:function(a){return c.dir(a,"previousSibling")},nextUntil:function(a,b,d){return c.dir(a,"nextSibling",d)},prevUntil:function(a,b,d){return c.dir(a,"previousSibling",d)},siblings:function(a){return c.sibling(a.parentNode.firstChild,a)},children:function(a){return c.sibling(a.firstChild)},contents:function(a){return c.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:c.makeArray(a.childNodes)}},function(a, +b){c.fn[a]=function(d,e){var f=c.map(this,b,d);Za.test(a)||(e=d);if(e&&typeof e==="string")f=c.filter(e,f);f=this.length>1?c.unique(f):f;if((this.length>1||ab.test(e))&&$a.test(a))f=f.reverse();return this.pushStack(f,a,bb.call(arguments).join(","))}});c.extend({filter:function(a,b,d){if(d)a=":not("+a+")";return b.length===1?c.find.matchesSelector(b[0],a)?[b[0]]:[]:c.find.matches(a,b)},dir:function(a,b,d){var e=[];for(a=a[b];a&&a.nodeType!==9&&(d===B||a.nodeType!==1||!c(a).is(d));){a.nodeType===1&& +e.push(a);a=a[b]}return e},nth:function(a,b,d){b=b||1;for(var e=0;a;a=a[d])if(a.nodeType===1&&++e===b)break;return a},sibling:function(a,b){for(var d=[];a;a=a.nextSibling)a.nodeType===1&&a!==b&&d.push(a);return d}});var za=/ jQuery\d+="(?:\d+|null)"/g,$=/^\s+/,Aa=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,Ba=/<([\w:]+)/,db=/\s]+\/)>/g,P={option:[1, +""],legend:[1,"
                                                                                                                                                                                                                                                                                                ","
                                                                                                                                                                                                                                                                                                "],thead:[1,"","
                                                                                                                                                                                                                                                                                                "],tr:[2,"","
                                                                                                                                                                                                                                                                                                "],td:[3,"","
                                                                                                                                                                                                                                                                                                "],col:[2,"","
                                                                                                                                                                                                                                                                                                "],area:[1,"",""],_default:[0,"",""]};P.optgroup=P.option;P.tbody=P.tfoot=P.colgroup=P.caption=P.thead;P.th=P.td;if(!c.support.htmlSerialize)P._default=[1,"div
                                                                                                                                                                                                                                                                                                ","
                                                                                                                                                                                                                                                                                                "];c.fn.extend({text:function(a){if(c.isFunction(a))return this.each(function(b){var d= +c(this);d.text(a.call(this,b,d.text()))});if(typeof a!=="object"&&a!==B)return this.empty().append((this[0]&&this[0].ownerDocument||t).createTextNode(a));return c.text(this)},wrapAll:function(a){if(c.isFunction(a))return this.each(function(d){c(this).wrapAll(a.call(this,d))});if(this[0]){var b=c(a,this[0].ownerDocument).eq(0).clone(true);this[0].parentNode&&b.insertBefore(this[0]);b.map(function(){for(var d=this;d.firstChild&&d.firstChild.nodeType===1;)d=d.firstChild;return d}).append(this)}return this}, +wrapInner:function(a){if(c.isFunction(a))return this.each(function(b){c(this).wrapInner(a.call(this,b))});return this.each(function(){var b=c(this),d=b.contents();d.length?d.wrapAll(a):b.append(a)})},wrap:function(a){return this.each(function(){c(this).wrapAll(a)})},unwrap:function(){return this.parent().each(function(){c.nodeName(this,"body")||c(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,true,function(a){this.nodeType===1&&this.appendChild(a)})}, +prepend:function(){return this.domManip(arguments,true,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(b){this.parentNode.insertBefore(b,this)});else if(arguments.length){var a=c(arguments[0]);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(b){this.parentNode.insertBefore(b, +this.nextSibling)});else if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,c(arguments[0]).toArray());return a}},remove:function(a,b){for(var d=0,e;(e=this[d])!=null;d++)if(!a||c.filter(a,[e]).length){if(!b&&e.nodeType===1){c.cleanData(e.getElementsByTagName("*"));c.cleanData([e])}e.parentNode&&e.parentNode.removeChild(e)}return this},empty:function(){for(var a=0,b;(b=this[a])!=null;a++)for(b.nodeType===1&&c.cleanData(b.getElementsByTagName("*"));b.firstChild;)b.removeChild(b.firstChild); +return this},clone:function(a){var b=this.map(function(){if(!c.support.noCloneEvent&&!c.isXMLDoc(this)){var d=this.outerHTML,e=this.ownerDocument;if(!d){d=e.createElement("div");d.appendChild(this.cloneNode(true));d=d.innerHTML}return c.clean([d.replace(za,"").replace(fb,'="$1">').replace($,"")],e)[0]}else return this.cloneNode(true)});if(a===true){na(this,b);na(this.find("*"),b.find("*"))}return b},html:function(a){if(a===B)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(za,""):null; +else if(typeof a==="string"&&!Ca.test(a)&&(c.support.leadingWhitespace||!$.test(a))&&!P[(Ba.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(Aa,"<$1>");try{for(var b=0,d=this.length;b0||e.cacheable||this.length>1?h.cloneNode(true):h)}k.length&&c.each(k,Oa)}return this}});c.buildFragment=function(a,b,d){var e,f,h;b=b&&b[0]?b[0].ownerDocument||b[0]:t;if(a.length===1&&typeof a[0]==="string"&&a[0].length<512&&b===t&&!Ca.test(a[0])&&(c.support.checkClone||!Da.test(a[0]))){f=true;if(h=c.fragments[a[0]])if(h!==1)e=h}if(!e){e=b.createDocumentFragment();c.clean(a,b,e,d)}if(f)c.fragments[a[0]]=h?e:1;return{fragment:e,cacheable:f}};c.fragments={};c.each({appendTo:"append", +prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){c.fn[a]=function(d){var e=[];d=c(d);var f=this.length===1&&this[0].parentNode;if(f&&f.nodeType===11&&f.childNodes.length===1&&d.length===1){d[b](this[0]);return this}else{f=0;for(var h=d.length;f0?this.clone(true):this).get();c(d[f])[b](l);e=e.concat(l)}return this.pushStack(e,a,d.selector)}}});c.extend({clean:function(a,b,d,e){b=b||t;if(typeof b.createElement==="undefined")b=b.ownerDocument|| +b[0]&&b[0].ownerDocument||t;for(var f=[],h=0,l;(l=a[h])!=null;h++){if(typeof l==="number")l+="";if(l){if(typeof l==="string"&&!eb.test(l))l=b.createTextNode(l);else if(typeof l==="string"){l=l.replace(Aa,"<$1>");var k=(Ba.exec(l)||["",""])[1].toLowerCase(),o=P[k]||P._default,x=o[0],r=b.createElement("div");for(r.innerHTML=o[1]+l+o[2];x--;)r=r.lastChild;if(!c.support.tbody){x=db.test(l);k=k==="table"&&!x?r.firstChild&&r.firstChild.childNodes:o[1]===""&&!x?r.childNodes:[];for(o=k.length- +1;o>=0;--o)c.nodeName(k[o],"tbody")&&!k[o].childNodes.length&&k[o].parentNode.removeChild(k[o])}!c.support.leadingWhitespace&&$.test(l)&&r.insertBefore(b.createTextNode($.exec(l)[0]),r.firstChild);l=r.childNodes}if(l.nodeType)f.push(l);else f=c.merge(f,l)}}if(d)for(h=0;f[h];h++)if(e&&c.nodeName(f[h],"script")&&(!f[h].type||f[h].type.toLowerCase()==="text/javascript"))e.push(f[h].parentNode?f[h].parentNode.removeChild(f[h]):f[h]);else{f[h].nodeType===1&&f.splice.apply(f,[h+1,0].concat(c.makeArray(f[h].getElementsByTagName("script")))); +d.appendChild(f[h])}return f},cleanData:function(a){for(var b,d,e=c.cache,f=c.event.special,h=c.support.deleteExpando,l=0,k;(k=a[l])!=null;l++)if(!(k.nodeName&&c.noData[k.nodeName.toLowerCase()]))if(d=k[c.expando]){if((b=e[d])&&b.events)for(var o in b.events)f[o]?c.event.remove(k,o):c.removeEvent(k,o,b.handle);if(h)delete k[c.expando];else k.removeAttribute&&k.removeAttribute(c.expando);delete e[d]}}});var Ea=/alpha\([^)]*\)/i,gb=/opacity=([^)]*)/,hb=/-([a-z])/ig,ib=/([A-Z])/g,Fa=/^-?\d+(?:px)?$/i, +jb=/^-?\d/,kb={position:"absolute",visibility:"hidden",display:"block"},Pa=["Left","Right"],Qa=["Top","Bottom"],W,Ga,aa,lb=function(a,b){return b.toUpperCase()};c.fn.css=function(a,b){if(arguments.length===2&&b===B)return this;return c.access(this,a,b,true,function(d,e,f){return f!==B?c.style(d,e,f):c.css(d,e)})};c.extend({cssHooks:{opacity:{get:function(a,b){if(b){var d=W(a,"opacity","opacity");return d===""?"1":d}else return a.style.opacity}}},cssNumber:{zIndex:true,fontWeight:true,opacity:true, +zoom:true,lineHeight:true},cssProps:{"float":c.support.cssFloat?"cssFloat":"styleFloat"},style:function(a,b,d,e){if(!(!a||a.nodeType===3||a.nodeType===8||!a.style)){var f,h=c.camelCase(b),l=a.style,k=c.cssHooks[h];b=c.cssProps[h]||h;if(d!==B){if(!(typeof d==="number"&&isNaN(d)||d==null)){if(typeof d==="number"&&!c.cssNumber[h])d+="px";if(!k||!("set"in k)||(d=k.set(a,d))!==B)try{l[b]=d}catch(o){}}}else{if(k&&"get"in k&&(f=k.get(a,false,e))!==B)return f;return l[b]}}},css:function(a,b,d){var e,f=c.camelCase(b), +h=c.cssHooks[f];b=c.cssProps[f]||f;if(h&&"get"in h&&(e=h.get(a,true,d))!==B)return e;else if(W)return W(a,b,f)},swap:function(a,b,d){var e={},f;for(f in b){e[f]=a.style[f];a.style[f]=b[f]}d.call(a);for(f in b)a.style[f]=e[f]},camelCase:function(a){return a.replace(hb,lb)}});c.curCSS=c.css;c.each(["height","width"],function(a,b){c.cssHooks[b]={get:function(d,e,f){var h;if(e){if(d.offsetWidth!==0)h=oa(d,b,f);else c.swap(d,kb,function(){h=oa(d,b,f)});if(h<=0){h=W(d,b,b);if(h==="0px"&&aa)h=aa(d,b,b); +if(h!=null)return h===""||h==="auto"?"0px":h}if(h<0||h==null){h=d.style[b];return h===""||h==="auto"?"0px":h}return typeof h==="string"?h:h+"px"}},set:function(d,e){if(Fa.test(e)){e=parseFloat(e);if(e>=0)return e+"px"}else return e}}});if(!c.support.opacity)c.cssHooks.opacity={get:function(a,b){return gb.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?parseFloat(RegExp.$1)/100+"":b?"1":""},set:function(a,b){var d=a.style;d.zoom=1;var e=c.isNaN(b)?"":"alpha(opacity="+b*100+")",f= +d.filter||"";d.filter=Ea.test(f)?f.replace(Ea,e):d.filter+" "+e}};if(t.defaultView&&t.defaultView.getComputedStyle)Ga=function(a,b,d){var e;d=d.replace(ib,"-$1").toLowerCase();if(!(b=a.ownerDocument.defaultView))return B;if(b=b.getComputedStyle(a,null)){e=b.getPropertyValue(d);if(e===""&&!c.contains(a.ownerDocument.documentElement,a))e=c.style(a,d)}return e};if(t.documentElement.currentStyle)aa=function(a,b){var d,e,f=a.currentStyle&&a.currentStyle[b],h=a.style;if(!Fa.test(f)&&jb.test(f)){d=h.left; +e=a.runtimeStyle.left;a.runtimeStyle.left=a.currentStyle.left;h.left=b==="fontSize"?"1em":f||0;f=h.pixelLeft+"px";h.left=d;a.runtimeStyle.left=e}return f===""?"auto":f};W=Ga||aa;if(c.expr&&c.expr.filters){c.expr.filters.hidden=function(a){var b=a.offsetHeight;return a.offsetWidth===0&&b===0||!c.support.reliableHiddenOffsets&&(a.style.display||c.css(a,"display"))==="none"};c.expr.filters.visible=function(a){return!c.expr.filters.hidden(a)}}var mb=c.now(),nb=/)<[^<]*)*<\/script>/gi, +ob=/^(?:select|textarea)/i,pb=/^(?:color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,qb=/^(?:GET|HEAD)$/,Ra=/\[\]$/,T=/\=\?(&|$)/,ja=/\?/,rb=/([?&])_=[^&]*/,sb=/^(\w+:)?\/\/([^\/?#]+)/,tb=/%20/g,ub=/#.*$/,Ha=c.fn.load;c.fn.extend({load:function(a,b,d){if(typeof a!=="string"&&Ha)return Ha.apply(this,arguments);else if(!this.length)return this;var e=a.indexOf(" ");if(e>=0){var f=a.slice(e,a.length);a=a.slice(0,e)}e="GET";if(b)if(c.isFunction(b)){d=b;b=null}else if(typeof b=== +"object"){b=c.param(b,c.ajaxSettings.traditional);e="POST"}var h=this;c.ajax({url:a,type:e,dataType:"html",data:b,complete:function(l,k){if(k==="success"||k==="notmodified")h.html(f?c("
                                                                                                                                                                                                                                                                                                ").append(l.responseText.replace(nb,"")).find(f):l.responseText);d&&h.each(d,[l.responseText,k,l])}});return this},serialize:function(){return c.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?c.makeArray(this.elements):this}).filter(function(){return this.name&& +!this.disabled&&(this.checked||ob.test(this.nodeName)||pb.test(this.type))}).map(function(a,b){var d=c(this).val();return d==null?null:c.isArray(d)?c.map(d,function(e){return{name:b.name,value:e}}):{name:b.name,value:d}}).get()}});c.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){c.fn[b]=function(d){return this.bind(b,d)}});c.extend({get:function(a,b,d,e){if(c.isFunction(b)){e=e||d;d=b;b=null}return c.ajax({type:"GET",url:a,data:b,success:d,dataType:e})}, +getScript:function(a,b){return c.get(a,null,b,"script")},getJSON:function(a,b,d){return c.get(a,b,d,"json")},post:function(a,b,d,e){if(c.isFunction(b)){e=e||d;d=b;b={}}return c.ajax({type:"POST",url:a,data:b,success:d,dataType:e})},ajaxSetup:function(a){c.extend(c.ajaxSettings,a)},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:function(){return new E.XMLHttpRequest},accepts:{xml:"application/xml, text/xml",html:"text/html", +script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},ajax:function(a){var b=c.extend(true,{},c.ajaxSettings,a),d,e,f,h=b.type.toUpperCase(),l=qb.test(h);b.url=b.url.replace(ub,"");b.context=a&&a.context!=null?a.context:b;if(b.data&&b.processData&&typeof b.data!=="string")b.data=c.param(b.data,b.traditional);if(b.dataType==="jsonp"){if(h==="GET")T.test(b.url)||(b.url+=(ja.test(b.url)?"&":"?")+(b.jsonp||"callback")+"=?");else if(!b.data|| +!T.test(b.data))b.data=(b.data?b.data+"&":"")+(b.jsonp||"callback")+"=?";b.dataType="json"}if(b.dataType==="json"&&(b.data&&T.test(b.data)||T.test(b.url))){d=b.jsonpCallback||"jsonp"+mb++;if(b.data)b.data=(b.data+"").replace(T,"="+d+"$1");b.url=b.url.replace(T,"="+d+"$1");b.dataType="script";var k=E[d];E[d]=function(m){if(c.isFunction(k))k(m);else{E[d]=B;try{delete E[d]}catch(p){}}f=m;c.handleSuccess(b,w,e,f);c.handleComplete(b,w,e,f);r&&r.removeChild(A)}}if(b.dataType==="script"&&b.cache===null)b.cache= +false;if(b.cache===false&&l){var o=c.now(),x=b.url.replace(rb,"$1_="+o);b.url=x+(x===b.url?(ja.test(b.url)?"&":"?")+"_="+o:"")}if(b.data&&l)b.url+=(ja.test(b.url)?"&":"?")+b.data;b.global&&c.active++===0&&c.event.trigger("ajaxStart");o=(o=sb.exec(b.url))&&(o[1]&&o[1].toLowerCase()!==location.protocol||o[2].toLowerCase()!==location.host);if(b.dataType==="script"&&h==="GET"&&o){var r=t.getElementsByTagName("head")[0]||t.documentElement,A=t.createElement("script");if(b.scriptCharset)A.charset=b.scriptCharset; +A.src=b.url;if(!d){var C=false;A.onload=A.onreadystatechange=function(){if(!C&&(!this.readyState||this.readyState==="loaded"||this.readyState==="complete")){C=true;c.handleSuccess(b,w,e,f);c.handleComplete(b,w,e,f);A.onload=A.onreadystatechange=null;r&&A.parentNode&&r.removeChild(A)}}}r.insertBefore(A,r.firstChild);return B}var J=false,w=b.xhr();if(w){b.username?w.open(h,b.url,b.async,b.username,b.password):w.open(h,b.url,b.async);try{if(b.data!=null&&!l||a&&a.contentType)w.setRequestHeader("Content-Type", +b.contentType);if(b.ifModified){c.lastModified[b.url]&&w.setRequestHeader("If-Modified-Since",c.lastModified[b.url]);c.etag[b.url]&&w.setRequestHeader("If-None-Match",c.etag[b.url])}o||w.setRequestHeader("X-Requested-With","XMLHttpRequest");w.setRequestHeader("Accept",b.dataType&&b.accepts[b.dataType]?b.accepts[b.dataType]+", */*; q=0.01":b.accepts._default)}catch(I){}if(b.beforeSend&&b.beforeSend.call(b.context,w,b)===false){b.global&&c.active--===1&&c.event.trigger("ajaxStop");w.abort();return false}b.global&& +c.triggerGlobal(b,"ajaxSend",[w,b]);var L=w.onreadystatechange=function(m){if(!w||w.readyState===0||m==="abort"){J||c.handleComplete(b,w,e,f);J=true;if(w)w.onreadystatechange=c.noop}else if(!J&&w&&(w.readyState===4||m==="timeout")){J=true;w.onreadystatechange=c.noop;e=m==="timeout"?"timeout":!c.httpSuccess(w)?"error":b.ifModified&&c.httpNotModified(w,b.url)?"notmodified":"success";var p;if(e==="success")try{f=c.httpData(w,b.dataType,b)}catch(q){e="parsererror";p=q}if(e==="success"||e==="notmodified")d|| +c.handleSuccess(b,w,e,f);else c.handleError(b,w,e,p);d||c.handleComplete(b,w,e,f);m==="timeout"&&w.abort();if(b.async)w=null}};try{var g=w.abort;w.abort=function(){w&&Function.prototype.call.call(g,w);L("abort")}}catch(i){}b.async&&b.timeout>0&&setTimeout(function(){w&&!J&&L("timeout")},b.timeout);try{w.send(l||b.data==null?null:b.data)}catch(n){c.handleError(b,w,null,n);c.handleComplete(b,w,e,f)}b.async||L();return w}},param:function(a,b){var d=[],e=function(h,l){l=c.isFunction(l)?l():l;d[d.length]= +encodeURIComponent(h)+"="+encodeURIComponent(l)};if(b===B)b=c.ajaxSettings.traditional;if(c.isArray(a)||a.jquery)c.each(a,function(){e(this.name,this.value)});else for(var f in a)da(f,a[f],b,e);return d.join("&").replace(tb,"+")}});c.extend({active:0,lastModified:{},etag:{},handleError:function(a,b,d,e){a.error&&a.error.call(a.context,b,d,e);a.global&&c.triggerGlobal(a,"ajaxError",[b,a,e])},handleSuccess:function(a,b,d,e){a.success&&a.success.call(a.context,e,d,b);a.global&&c.triggerGlobal(a,"ajaxSuccess", +[b,a])},handleComplete:function(a,b,d){a.complete&&a.complete.call(a.context,b,d);a.global&&c.triggerGlobal(a,"ajaxComplete",[b,a]);a.global&&c.active--===1&&c.event.trigger("ajaxStop")},triggerGlobal:function(a,b,d){(a.context&&a.context.url==null?c(a.context):c.event).trigger(b,d)},httpSuccess:function(a){try{return!a.status&&location.protocol==="file:"||a.status>=200&&a.status<300||a.status===304||a.status===1223}catch(b){}return false},httpNotModified:function(a,b){var d=a.getResponseHeader("Last-Modified"), +e=a.getResponseHeader("Etag");if(d)c.lastModified[b]=d;if(e)c.etag[b]=e;return a.status===304},httpData:function(a,b,d){var e=a.getResponseHeader("content-type")||"",f=b==="xml"||!b&&e.indexOf("xml")>=0;a=f?a.responseXML:a.responseText;f&&a.documentElement.nodeName==="parsererror"&&c.error("parsererror");if(d&&d.dataFilter)a=d.dataFilter(a,b);if(typeof a==="string")if(b==="json"||!b&&e.indexOf("json")>=0)a=c.parseJSON(a);else if(b==="script"||!b&&e.indexOf("javascript")>=0)c.globalEval(a);return a}}); +if(E.ActiveXObject)c.ajaxSettings.xhr=function(){if(E.location.protocol!=="file:")try{return new E.XMLHttpRequest}catch(a){}try{return new E.ActiveXObject("Microsoft.XMLHTTP")}catch(b){}};c.support.ajax=!!c.ajaxSettings.xhr();var ea={},vb=/^(?:toggle|show|hide)$/,wb=/^([+\-]=)?([\d+.\-]+)(.*)$/,ba,pa=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];c.fn.extend({show:function(a,b,d){if(a||a===0)return this.animate(S("show", +3),a,b,d);else{d=0;for(var e=this.length;d=0;e--)if(d[e].elem===this){b&&d[e](true);d.splice(e,1)}});b||this.dequeue();return this}});c.each({slideDown:S("show",1),slideUp:S("hide",1),slideToggle:S("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(a,b){c.fn[a]=function(d,e,f){return this.animate(b, +d,e,f)}});c.extend({speed:function(a,b,d){var e=a&&typeof a==="object"?c.extend({},a):{complete:d||!d&&b||c.isFunction(a)&&a,duration:a,easing:d&&b||b&&!c.isFunction(b)&&b};e.duration=c.fx.off?0:typeof e.duration==="number"?e.duration:e.duration in c.fx.speeds?c.fx.speeds[e.duration]:c.fx.speeds._default;e.old=e.complete;e.complete=function(){e.queue!==false&&c(this).dequeue();c.isFunction(e.old)&&e.old.call(this)};return e},easing:{linear:function(a,b,d,e){return d+e*a},swing:function(a,b,d,e){return(-Math.cos(a* +Math.PI)/2+0.5)*e+d}},timers:[],fx:function(a,b,d){this.options=b;this.elem=a;this.prop=d;if(!b.orig)b.orig={}}});c.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this);(c.fx.step[this.prop]||c.fx.step._default)(this)},cur:function(){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null))return this.elem[this.prop];var a=parseFloat(c.css(this.elem,this.prop));return a&&a>-1E4?a:0},custom:function(a,b,d){function e(l){return f.step(l)} +var f=this,h=c.fx;this.startTime=c.now();this.start=a;this.end=b;this.unit=d||this.unit||"px";this.now=this.start;this.pos=this.state=0;e.elem=this.elem;if(e()&&c.timers.push(e)&&!ba)ba=setInterval(h.tick,h.interval)},show:function(){this.options.orig[this.prop]=c.style(this.elem,this.prop);this.options.show=true;this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur());c(this.elem).show()},hide:function(){this.options.orig[this.prop]=c.style(this.elem,this.prop);this.options.hide=true; +this.custom(this.cur(),0)},step:function(a){var b=c.now(),d=true;if(a||b>=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;for(var e in this.options.curAnim)if(this.options.curAnim[e]!==true)d=false;if(d){if(this.options.overflow!=null&&!c.support.shrinkWrapBlocks){var f=this.elem,h=this.options;c.each(["","X","Y"],function(k,o){f.style["overflow"+o]=h.overflow[k]})}this.options.hide&&c(this.elem).hide();if(this.options.hide|| +this.options.show)for(var l in this.options.curAnim)c.style(this.elem,l,this.options.orig[l]);this.options.complete.call(this.elem)}return false}else{a=b-this.startTime;this.state=a/this.options.duration;b=this.options.easing||(c.easing.swing?"swing":"linear");this.pos=c.easing[this.options.specialEasing&&this.options.specialEasing[this.prop]||b](this.state,a,0,1,this.options.duration);this.now=this.start+(this.end-this.start)*this.pos;this.update()}return true}};c.extend(c.fx,{tick:function(){for(var a= +c.timers,b=0;b-1;e={};var x={};if(o)x=f.position();l=o?x.top:parseInt(l,10)||0;k=o?x.left:parseInt(k,10)||0;if(c.isFunction(b))b=b.call(a,d,h);if(b.top!=null)e.top=b.top-h.top+l;if(b.left!=null)e.left=b.left-h.left+k;"using"in b?b.using.call(a, +e):f.css(e)}};c.fn.extend({position:function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),d=this.offset(),e=Ia.test(b[0].nodeName)?{top:0,left:0}:b.offset();d.top-=parseFloat(c.css(a,"marginTop"))||0;d.left-=parseFloat(c.css(a,"marginLeft"))||0;e.top+=parseFloat(c.css(b[0],"borderTopWidth"))||0;e.left+=parseFloat(c.css(b[0],"borderLeftWidth"))||0;return{top:d.top-e.top,left:d.left-e.left}},offsetParent:function(){return this.map(function(){for(var a=this.offsetParent||t.body;a&&!Ia.test(a.nodeName)&& +c.css(a,"position")==="static";)a=a.offsetParent;return a})}});c.each(["Left","Top"],function(a,b){var d="scroll"+b;c.fn[d]=function(e){var f=this[0],h;if(!f)return null;if(e!==B)return this.each(function(){if(h=fa(this))h.scrollTo(!a?e:c(h).scrollLeft(),a?e:c(h).scrollTop());else this[d]=e});else return(h=fa(f))?"pageXOffset"in h?h[a?"pageYOffset":"pageXOffset"]:c.support.boxModel&&h.document.documentElement[d]||h.document.body[d]:f[d]}});c.each(["Height","Width"],function(a,b){var d=b.toLowerCase(); +c.fn["inner"+b]=function(){return this[0]?parseFloat(c.css(this[0],d,"padding")):null};c.fn["outer"+b]=function(e){return this[0]?parseFloat(c.css(this[0],d,e?"margin":"border")):null};c.fn[d]=function(e){var f=this[0];if(!f)return e==null?null:this;if(c.isFunction(e))return this.each(function(l){var k=c(this);k[d](e.call(this,l,k[d]()))});if(c.isWindow(f))return f.document.compatMode==="CSS1Compat"&&f.document.documentElement["client"+b]||f.document.body["client"+b];else if(f.nodeType===9)return Math.max(f.documentElement["client"+ +b],f.body["scroll"+b],f.documentElement["scroll"+b],f.body["offset"+b],f.documentElement["offset"+b]);else if(e===B){f=c.css(f,d);var h=parseFloat(f);return c.isNaN(h)?f:h}else return this.css(d,typeof e==="string"?e:e+"px")}})})(window); diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/js/jquery.ztree.all-3.5.js b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/js/jquery.ztree.all-3.5.js new file mode 100644 index 00000000..f4342937 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/js/jquery.ztree.all-3.5.js @@ -0,0 +1,3487 @@ + +/* + * JQuery zTree core v3.5.15 + * http://zTree.me/ + * + * Copyright (c) 2010 Hunter.z + * + * Licensed same as jquery - MIT License + * http://www.opensource.org/licenses/mit-license.php + * + * email: hunter.z@263.net + * Date: 2013-10-15 + */ +(function($){ + var settings = {}, roots = {}, caches = {}, + //default consts of core + _consts = { + className: { + BUTTON: "button", + LEVEL: "level", + ICO_LOADING: "ico_loading", + SWITCH: "switch" + }, + event: { + NODECREATED: "ztree_nodeCreated", + CLICK: "ztree_click", + EXPAND: "ztree_expand", + COLLAPSE: "ztree_collapse", + ASYNC_SUCCESS: "ztree_async_success", + ASYNC_ERROR: "ztree_async_error" + }, + id: { + A: "_a", + ICON: "_ico", + SPAN: "_span", + SWITCH: "_switch", + UL: "_ul" + }, + line: { + ROOT: "root", + ROOTS: "roots", + CENTER: "center", + BOTTOM: "bottom", + NOLINE: "noline", + LINE: "line" + }, + folder: { + OPEN: "open", + CLOSE: "close", + DOCU: "docu" + }, + node: { + CURSELECTED: "curSelectedNode" + } + }, + //default setting of core + _setting = { + treeId: "", + treeObj: null, + view: { + addDiyDom: null, + autoCancelSelected: true, + dblClickExpand: true, + expandSpeed: "fast", + fontCss: {}, + nameIsHTML: false, + selectedMulti: true, + showIcon: true, + showLine: true, + showTitle: true, + txtSelectedEnable: false + }, + data: { + key: { + children: "children", + name: "name", + title: "", + url: "url" + }, + simpleData: { + enable: false, + idKey: "id", + pIdKey: "pId", + rootPId: null + }, + keep: { + parent: false, + leaf: false + } + }, + async: { + enable: false, + contentType: "application/x-www-form-urlencoded", + type: "post", + dataType: "text", + url: "", + autoParam: [], + otherParam: [], + dataFilter: null + }, + callback: { + beforeAsync:null, + beforeClick:null, + beforeDblClick:null, + beforeRightClick:null, + beforeMouseDown:null, + beforeMouseUp:null, + beforeExpand:null, + beforeCollapse:null, + beforeRemove:null, + + onAsyncError:null, + onAsyncSuccess:null, + onNodeCreated:null, + onClick:null, + onDblClick:null, + onRightClick:null, + onMouseDown:null, + onMouseUp:null, + onExpand:null, + onCollapse:null, + onRemove:null + } + }, + //default root of core + //zTree use root to save full data + _initRoot = function (setting) { + var r = data.getRoot(setting); + if (!r) { + r = {}; + data.setRoot(setting, r); + } + r[setting.data.key.children] = []; + r.expandTriggerFlag = false; + r.curSelectedList = []; + r.noSelection = true; + r.createdNodes = []; + r.zId = 0; + r._ver = (new Date()).getTime(); + }, + //default cache of core + _initCache = function(setting) { + var c = data.getCache(setting); + if (!c) { + c = {}; + data.setCache(setting, c); + } + c.nodes = []; + c.doms = []; + }, + //default bindEvent of core + _bindEvent = function(setting) { + var o = setting.treeObj, + c = consts.event; + o.bind(c.NODECREATED, function (event, treeId, node) { + tools.apply(setting.callback.onNodeCreated, [event, treeId, node]); + }); + + o.bind(c.CLICK, function (event, srcEvent, treeId, node, clickFlag) { + tools.apply(setting.callback.onClick, [srcEvent, treeId, node, clickFlag]); + }); + + o.bind(c.EXPAND, function (event, treeId, node) { + tools.apply(setting.callback.onExpand, [event, treeId, node]); + }); + + o.bind(c.COLLAPSE, function (event, treeId, node) { + tools.apply(setting.callback.onCollapse, [event, treeId, node]); + }); + + o.bind(c.ASYNC_SUCCESS, function (event, treeId, node, msg) { + tools.apply(setting.callback.onAsyncSuccess, [event, treeId, node, msg]); + }); + + o.bind(c.ASYNC_ERROR, function (event, treeId, node, XMLHttpRequest, textStatus, errorThrown) { + tools.apply(setting.callback.onAsyncError, [event, treeId, node, XMLHttpRequest, textStatus, errorThrown]); + }); + }, + _unbindEvent = function(setting) { + var o = setting.treeObj, + c = consts.event; + o.unbind(c.NODECREATED) + .unbind(c.CLICK) + .unbind(c.EXPAND) + .unbind(c.COLLAPSE) + .unbind(c.ASYNC_SUCCESS) + .unbind(c.ASYNC_ERROR); + }, + //default event proxy of core + _eventProxy = function(event) { + var target = event.target, + setting = data.getSetting(event.data.treeId), + tId = "", node = null, + nodeEventType = "", treeEventType = "", + nodeEventCallback = null, treeEventCallback = null, + tmp = null; + + if (tools.eqs(event.type, "mousedown")) { + treeEventType = "mousedown"; + } else if (tools.eqs(event.type, "mouseup")) { + treeEventType = "mouseup"; + } else if (tools.eqs(event.type, "contextmenu")) { + treeEventType = "contextmenu"; + } else if (tools.eqs(event.type, "click")) { + if (tools.eqs(target.tagName, "span") && target.getAttribute("treeNode"+ consts.id.SWITCH) !== null) { + tId = tools.getNodeMainDom(target).id; + nodeEventType = "switchNode"; + } else { + tmp = tools.getMDom(setting, target, [{tagName:"a", attrName:"treeNode"+consts.id.A}]); + if (tmp) { + tId = tools.getNodeMainDom(tmp).id; + nodeEventType = "clickNode"; + } + } + } else if (tools.eqs(event.type, "dblclick")) { + treeEventType = "dblclick"; + tmp = tools.getMDom(setting, target, [{tagName:"a", attrName:"treeNode"+consts.id.A}]); + if (tmp) { + tId = tools.getNodeMainDom(tmp).id; + nodeEventType = "switchNode"; + } + } + if (treeEventType.length > 0 && tId.length == 0) { + tmp = tools.getMDom(setting, target, [{tagName:"a", attrName:"treeNode"+consts.id.A}]); + if (tmp) {tId = tools.getNodeMainDom(tmp).id;} + } + // event to node + if (tId.length>0) { + node = data.getNodeCache(setting, tId); + switch (nodeEventType) { + case "switchNode" : + if (!node.isParent) { + nodeEventType = ""; + } else if (tools.eqs(event.type, "click") + || (tools.eqs(event.type, "dblclick") && tools.apply(setting.view.dblClickExpand, [setting.treeId, node], setting.view.dblClickExpand))) { + nodeEventCallback = handler.onSwitchNode; + } else { + nodeEventType = ""; + } + break; + case "clickNode" : + nodeEventCallback = handler.onClickNode; + break; + } + } + // event to zTree + switch (treeEventType) { + case "mousedown" : + treeEventCallback = handler.onZTreeMousedown; + break; + case "mouseup" : + treeEventCallback = handler.onZTreeMouseup; + break; + case "dblclick" : + treeEventCallback = handler.onZTreeDblclick; + break; + case "contextmenu" : + treeEventCallback = handler.onZTreeContextmenu; + break; + } + var proxyResult = { + stop: false, + node: node, + nodeEventType: nodeEventType, + nodeEventCallback: nodeEventCallback, + treeEventType: treeEventType, + treeEventCallback: treeEventCallback + }; + return proxyResult + }, + //default init node of core + _initNode = function(setting, level, n, parentNode, isFirstNode, isLastNode, openFlag) { + if (!n) return; + var r = data.getRoot(setting), + childKey = setting.data.key.children; + n.level = level; + n.tId = setting.treeId + "_" + (++r.zId); + n.parentTId = parentNode ? parentNode.tId : null; + n.open = (typeof n.open == "string") ? tools.eqs(n.open, "true") : !!n.open; + if (n[childKey] && n[childKey].length > 0) { + n.isParent = true; + n.zAsync = true; + } else { + n.isParent = (typeof n.isParent == "string") ? tools.eqs(n.isParent, "true") : !!n.isParent; + n.open = (n.isParent && !setting.async.enable) ? n.open : false; + n.zAsync = !n.isParent; + } + n.isFirstNode = isFirstNode; + n.isLastNode = isLastNode; + n.getParentNode = function() {return data.getNodeCache(setting, n.parentTId);}; + n.getPreNode = function() {return data.getPreNode(setting, n);}; + n.getNextNode = function() {return data.getNextNode(setting, n);}; + n.isAjaxing = false; + data.fixPIdKeyValue(setting, n); + }, + _init = { + bind: [_bindEvent], + unbind: [_unbindEvent], + caches: [_initCache], + nodes: [_initNode], + proxys: [_eventProxy], + roots: [_initRoot], + beforeA: [], + afterA: [], + innerBeforeA: [], + innerAfterA: [], + zTreeTools: [] + }, + //method of operate data + data = { + addNodeCache: function(setting, node) { + data.getCache(setting).nodes[data.getNodeCacheId(node.tId)] = node; + }, + getNodeCacheId: function(tId) { + return tId.substring(tId.lastIndexOf("_")+1); + }, + addAfterA: function(afterA) { + _init.afterA.push(afterA); + }, + addBeforeA: function(beforeA) { + _init.beforeA.push(beforeA); + }, + addInnerAfterA: function(innerAfterA) { + _init.innerAfterA.push(innerAfterA); + }, + addInnerBeforeA: function(innerBeforeA) { + _init.innerBeforeA.push(innerBeforeA); + }, + addInitBind: function(bindEvent) { + _init.bind.push(bindEvent); + }, + addInitUnBind: function(unbindEvent) { + _init.unbind.push(unbindEvent); + }, + addInitCache: function(initCache) { + _init.caches.push(initCache); + }, + addInitNode: function(initNode) { + _init.nodes.push(initNode); + }, + addInitProxy: function(initProxy, isFirst) { + if (!!isFirst) { + _init.proxys.splice(0,0,initProxy); + } else { + _init.proxys.push(initProxy); + } + }, + addInitRoot: function(initRoot) { + _init.roots.push(initRoot); + }, + addNodesData: function(setting, parentNode, nodes) { + var childKey = setting.data.key.children; + if (!parentNode[childKey]) parentNode[childKey] = []; + if (parentNode[childKey].length > 0) { + parentNode[childKey][parentNode[childKey].length - 1].isLastNode = false; + view.setNodeLineIcos(setting, parentNode[childKey][parentNode[childKey].length - 1]); + } + parentNode.isParent = true; + parentNode[childKey] = parentNode[childKey].concat(nodes); + }, + addSelectedNode: function(setting, node) { + var root = data.getRoot(setting); + if (!data.isSelectedNode(setting, node)) { + root.curSelectedList.push(node); + } + }, + addCreatedNode: function(setting, node) { + if (!!setting.callback.onNodeCreated || !!setting.view.addDiyDom) { + var root = data.getRoot(setting); + root.createdNodes.push(node); + } + }, + addZTreeTools: function(zTreeTools) { + _init.zTreeTools.push(zTreeTools); + }, + exSetting: function(s) { + $.extend(true, _setting, s); + }, + fixPIdKeyValue: function(setting, node) { + if (setting.data.simpleData.enable) { + node[setting.data.simpleData.pIdKey] = node.parentTId ? node.getParentNode()[setting.data.simpleData.idKey] : setting.data.simpleData.rootPId; + } + }, + getAfterA: function(setting, node, array) { + for (var i=0, j=_init.afterA.length; i-1) { + result.push(nodes[i]); + } + result = result.concat(data.getNodesByParamFuzzy(setting, nodes[i][childKey], key, value)); + } + return result; + }, + getNodesByFilter: function(setting, nodes, filter, isSingle, invokeParam) { + if (!nodes) return (isSingle ? null : []); + var childKey = setting.data.key.children, + result = isSingle ? null : []; + for (var i = 0, l = nodes.length; i < l; i++) { + if (tools.apply(filter, [nodes[i], invokeParam], false)) { + if (isSingle) {return nodes[i];} + result.push(nodes[i]); + } + var tmpResult = data.getNodesByFilter(setting, nodes[i][childKey], filter, isSingle, invokeParam); + if (isSingle && !!tmpResult) {return tmpResult;} + result = isSingle ? tmpResult : result.concat(tmpResult); + } + return result; + }, + getPreNode: function(setting, node) { + if (!node) return null; + var childKey = setting.data.key.children, + p = node.parentTId ? node.getParentNode() : data.getRoot(setting); + for (var i=0, l=p[childKey].length; i 0))); + }, + clone: function (obj){ + if (obj === null) return null; + var o = tools.isArray(obj) ? [] : {}; + for(var i in obj){ + o[i] = (obj[i] instanceof Date) ? new Date(obj[i].getTime()) : (typeof obj[i] === "object" ? arguments.callee(obj[i]) : obj[i]); + } + return o; + }, + eqs: function(str1, str2) { + return str1.toLowerCase() === str2.toLowerCase(); + }, + isArray: function(arr) { + return Object.prototype.toString.apply(arr) === "[object Array]"; + }, + $: function(node, exp, setting) { + if (!!exp && typeof exp != "string") { + setting = exp; + exp = ""; + } + if (typeof node == "string") { + return $(node, setting ? setting.treeObj.get(0).ownerDocument : null); + } else { + return $("#" + node.tId + exp, setting ? setting.treeObj : null); + } + }, + getMDom: function (setting, curDom, targetExpr) { + if (!curDom) return null; + while (curDom && curDom.id !== setting.treeId) { + for (var i=0, l=targetExpr.length; curDom.tagName && i 0 ); + }, + uCanDo: function(setting, e) { + return true; + } + }, + //method of operate ztree dom + view = { + addNodes: function(setting, parentNode, newNodes, isSilent) { + if (setting.data.keep.leaf && parentNode && !parentNode.isParent) { + return; + } + if (!tools.isArray(newNodes)) { + newNodes = [newNodes]; + } + if (setting.data.simpleData.enable) { + newNodes = data.transformTozTreeFormat(setting, newNodes); + } + if (parentNode) { + var target_switchObj = $$(parentNode, consts.id.SWITCH, setting), + target_icoObj = $$(parentNode, consts.id.ICON, setting), + target_ulObj = $$(parentNode, consts.id.UL, setting); + + if (!parentNode.open) { + view.replaceSwitchClass(parentNode, target_switchObj, consts.folder.CLOSE); + view.replaceIcoClass(parentNode, target_icoObj, consts.folder.CLOSE); + parentNode.open = false; + target_ulObj.css({ + "display": "none" + }); + } + + data.addNodesData(setting, parentNode, newNodes); + view.createNodes(setting, parentNode.level + 1, newNodes, parentNode); + if (!isSilent) { + view.expandCollapseParentNode(setting, parentNode, true); + } + } else { + data.addNodesData(setting, data.getRoot(setting), newNodes); + view.createNodes(setting, 0, newNodes, null); + } + }, + appendNodes: function(setting, level, nodes, parentNode, initFlag, openFlag) { + if (!nodes) return []; + var html = [], + childKey = setting.data.key.children; + for (var i = 0, l = nodes.length; i < l; i++) { + var node = nodes[i]; + if (initFlag) { + var tmpPNode = (parentNode) ? parentNode: data.getRoot(setting), + tmpPChild = tmpPNode[childKey], + isFirstNode = ((tmpPChild.length == nodes.length) && (i == 0)), + isLastNode = (i == (nodes.length - 1)); + data.initNode(setting, level, node, parentNode, isFirstNode, isLastNode, openFlag); + data.addNodeCache(setting, node); + } + + var childHtml = []; + if (node[childKey] && node[childKey].length > 0) { + //make child html first, because checkType + childHtml = view.appendNodes(setting, level + 1, node[childKey], node, initFlag, openFlag && node.open); + } + if (openFlag) { + + view.makeDOMNodeMainBefore(html, setting, node); + view.makeDOMNodeLine(html, setting, node); + data.getBeforeA(setting, node, html); + view.makeDOMNodeNameBefore(html, setting, node); + data.getInnerBeforeA(setting, node, html); + view.makeDOMNodeIcon(html, setting, node); + data.getInnerAfterA(setting, node, html); + view.makeDOMNodeNameAfter(html, setting, node); + data.getAfterA(setting, node, html); + if (node.isParent && node.open) { + view.makeUlHtml(setting, node, html, childHtml.join('')); + } + view.makeDOMNodeMainAfter(html, setting, node); + data.addCreatedNode(setting, node); + } + } + return html; + }, + appendParentULDom: function(setting, node) { + var html = [], + nObj = $$(node, setting); + if (!nObj.get(0) && !!node.parentTId) { + view.appendParentULDom(setting, node.getParentNode()); + nObj = $$(node, setting); + } + var ulObj = $$(node, consts.id.UL, setting); + if (ulObj.get(0)) { + ulObj.remove(); + } + var childKey = setting.data.key.children, + childHtml = view.appendNodes(setting, node.level+1, node[childKey], node, false, true); + view.makeUlHtml(setting, node, html, childHtml.join('')); + nObj.append(html.join('')); + }, + asyncNode: function(setting, node, isSilent, callback) { + var i, l; + if (node && !node.isParent) { + tools.apply(callback); + return false; + } else if (node && node.isAjaxing) { + return false; + } else if (tools.apply(setting.callback.beforeAsync, [setting.treeId, node], true) == false) { + tools.apply(callback); + return false; + } + if (node) { + node.isAjaxing = true; + var icoObj = $$(node, consts.id.ICON, setting); + icoObj.attr({"style":"", "class":consts.className.BUTTON + " " + consts.className.ICO_LOADING}); + } + + var tmpParam = {}; + for (i = 0, l = setting.async.autoParam.length; node && i < l; i++) { + var pKey = setting.async.autoParam[i].split("="), spKey = pKey; + if (pKey.length>1) { + spKey = pKey[1]; + pKey = pKey[0]; + } + tmpParam[spKey] = node[pKey]; + } + if (tools.isArray(setting.async.otherParam)) { + for (i = 0, l = setting.async.otherParam.length; i < l; i += 2) { + tmpParam[setting.async.otherParam[i]] = setting.async.otherParam[i + 1]; + } + } else { + for (var p in setting.async.otherParam) { + tmpParam[p] = setting.async.otherParam[p]; + } + } + + var _tmpV = data.getRoot(setting)._ver; + $.ajax({ + contentType: setting.async.contentType, + type: setting.async.type, + url: tools.apply(setting.async.url, [setting.treeId, node], setting.async.url), + data: tmpParam, + dataType: setting.async.dataType, + success: function(msg) { + if (_tmpV != data.getRoot(setting)._ver) { + return; + } + var newNodes = []; + try { + if (!msg || msg.length == 0) { + newNodes = []; + } else if (typeof msg == "string") { + newNodes = eval("(" + msg + ")"); + } else { + newNodes = msg; + } + } catch(err) { + newNodes = msg; + } + + if (node) { + node.isAjaxing = null; + node.zAsync = true; + } + view.setNodeLineIcos(setting, node); + if (newNodes && newNodes !== "") { + newNodes = tools.apply(setting.async.dataFilter, [setting.treeId, node, newNodes], newNodes); + view.addNodes(setting, node, !!newNodes ? tools.clone(newNodes) : [], !!isSilent); + } else { + view.addNodes(setting, node, [], !!isSilent); + } + setting.treeObj.trigger(consts.event.ASYNC_SUCCESS, [setting.treeId, node, msg]); + tools.apply(callback); + }, + error: function(XMLHttpRequest, textStatus, errorThrown) { + if (_tmpV != data.getRoot(setting)._ver) { + return; + } + if (node) node.isAjaxing = null; + view.setNodeLineIcos(setting, node); + setting.treeObj.trigger(consts.event.ASYNC_ERROR, [setting.treeId, node, XMLHttpRequest, textStatus, errorThrown]); + } + }); + return true; + }, + cancelPreSelectedNode: function (setting, node) { + var list = data.getRoot(setting).curSelectedList; + for (var i=0, j=list.length-1; j>=i; j--) { + if (!node || node === list[j]) { + $$(list[j], consts.id.A, setting).removeClass(consts.node.CURSELECTED); + if (node) { + data.removeSelectedNode(setting, node); + break; + } + } + } + if (!node) data.getRoot(setting).curSelectedList = []; + }, + createNodeCallback: function(setting) { + if (!!setting.callback.onNodeCreated || !!setting.view.addDiyDom) { + var root = data.getRoot(setting); + while (root.createdNodes.length>0) { + var node = root.createdNodes.shift(); + tools.apply(setting.view.addDiyDom, [setting.treeId, node]); + if (!!setting.callback.onNodeCreated) { + setting.treeObj.trigger(consts.event.NODECREATED, [setting.treeId, node]); + } + } + } + }, + createNodes: function(setting, level, nodes, parentNode) { + if (!nodes || nodes.length == 0) return; + var root = data.getRoot(setting), + childKey = setting.data.key.children, + openFlag = !parentNode || parentNode.open || !!$$(parentNode[childKey][0], setting).get(0); + root.createdNodes = []; + var zTreeHtml = view.appendNodes(setting, level, nodes, parentNode, true, openFlag); + if (!parentNode) { + setting.treeObj.append(zTreeHtml.join('')); + } else { + var ulObj = $$(parentNode, consts.id.UL, setting); + if (ulObj.get(0)) { + ulObj.append(zTreeHtml.join('')); + } + } + view.createNodeCallback(setting); + }, + destroy: function(setting) { + if (!setting) return; + data.initCache(setting); + data.initRoot(setting); + event.unbindTree(setting); + event.unbindEvent(setting); + setting.treeObj.empty(); + }, + expandCollapseNode: function(setting, node, expandFlag, animateFlag, callback) { + var root = data.getRoot(setting), + childKey = setting.data.key.children; + if (!node) { + tools.apply(callback, []); + return; + } + if (root.expandTriggerFlag) { + var _callback = callback; + callback = function(){ + if (_callback) _callback(); + if (node.open) { + setting.treeObj.trigger(consts.event.EXPAND, [setting.treeId, node]); + } else { + setting.treeObj.trigger(consts.event.COLLAPSE, [setting.treeId, node]); + } + }; + root.expandTriggerFlag = false; + } + if (!node.open && node.isParent && ((!$$(node, consts.id.UL, setting).get(0)) || (node[childKey] && node[childKey].length>0 && !$$(node[childKey][0], setting).get(0)))) { + view.appendParentULDom(setting, node); + view.createNodeCallback(setting); + } + if (node.open == expandFlag) { + tools.apply(callback, []); + return; + } + var ulObj = $$(node, consts.id.UL, setting), + switchObj = $$(node, consts.id.SWITCH, setting), + icoObj = $$(node, consts.id.ICON, setting); + + if (node.isParent) { + node.open = !node.open; + if (node.iconOpen && node.iconClose) { + icoObj.attr("style", view.makeNodeIcoStyle(setting, node)); + } + + if (node.open) { + view.replaceSwitchClass(node, switchObj, consts.folder.OPEN); + view.replaceIcoClass(node, icoObj, consts.folder.OPEN); + if (animateFlag == false || setting.view.expandSpeed == "") { + ulObj.show(); + tools.apply(callback, []); + } else { + if (node[childKey] && node[childKey].length > 0) { + ulObj.slideDown(setting.view.expandSpeed, callback); + } else { + ulObj.show(); + tools.apply(callback, []); + } + } + } else { + view.replaceSwitchClass(node, switchObj, consts.folder.CLOSE); + view.replaceIcoClass(node, icoObj, consts.folder.CLOSE); + if (animateFlag == false || setting.view.expandSpeed == "" || !(node[childKey] && node[childKey].length > 0)) { + ulObj.hide(); + tools.apply(callback, []); + } else { + ulObj.slideUp(setting.view.expandSpeed, callback); + } + } + } else { + tools.apply(callback, []); + } + }, + expandCollapseParentNode: function(setting, node, expandFlag, animateFlag, callback) { + if (!node) return; + if (!node.parentTId) { + view.expandCollapseNode(setting, node, expandFlag, animateFlag, callback); + return; + } else { + view.expandCollapseNode(setting, node, expandFlag, animateFlag); + } + if (node.parentTId) { + view.expandCollapseParentNode(setting, node.getParentNode(), expandFlag, animateFlag, callback); + } + }, + expandCollapseSonNode: function(setting, node, expandFlag, animateFlag, callback) { + var root = data.getRoot(setting), + childKey = setting.data.key.children, + treeNodes = (node) ? node[childKey]: root[childKey], + selfAnimateSign = (node) ? false : animateFlag, + expandTriggerFlag = data.getRoot(setting).expandTriggerFlag; + data.getRoot(setting).expandTriggerFlag = false; + if (treeNodes) { + for (var i = 0, l = treeNodes.length; i < l; i++) { + if (treeNodes[i]) view.expandCollapseSonNode(setting, treeNodes[i], expandFlag, selfAnimateSign); + } + } + data.getRoot(setting).expandTriggerFlag = expandTriggerFlag; + view.expandCollapseNode(setting, node, expandFlag, animateFlag, callback ); + }, + makeDOMNodeIcon: function(html, setting, node) { + var nameStr = data.getNodeName(setting, node), + name = setting.view.nameIsHTML ? nameStr : nameStr.replace(/&/g,'&').replace(//g,'>'); + html.push("",name,""); + }, + makeDOMNodeLine: function(html, setting, node) { + html.push(""); + }, + makeDOMNodeMainAfter: function(html, setting, node) { + html.push(""); + }, + makeDOMNodeMainBefore: function(html, setting, node) { + html.push("
                                                                                                                                                                                                                                                                                              • "); + }, + makeDOMNodeNameAfter: function(html, setting, node) { + html.push(""); + }, + makeDOMNodeNameBefore: function(html, setting, node) { + var title = data.getNodeTitle(setting, node), + url = view.makeNodeUrl(setting, node), + fontcss = view.makeNodeFontCss(setting, node), + fontStyle = []; + for (var f in fontcss) { + fontStyle.push(f, ":", fontcss[f], ";"); + } + html.push(" 0) ? "href='" + url + "'" : ""), " target='",view.makeNodeTarget(node),"' style='", fontStyle.join(''), + "'"); + if (tools.apply(setting.view.showTitle, [setting.treeId, node], setting.view.showTitle) && title) {html.push("title='", title.replace(/'/g,"'").replace(//g,'>'),"'");} + html.push(">"); + }, + makeNodeFontCss: function(setting, node) { + var fontCss = tools.apply(setting.view.fontCss, [setting.treeId, node], setting.view.fontCss); + return (fontCss && ((typeof fontCss) != "function")) ? fontCss : {}; + }, + makeNodeIcoClass: function(setting, node) { + var icoCss = ["ico"]; + if (!node.isAjaxing) { + icoCss[0] = (node.iconSkin ? node.iconSkin + "_" : "") + icoCss[0]; + if (node.isParent) { + icoCss.push(node.open ? consts.folder.OPEN : consts.folder.CLOSE); + } else { + icoCss.push(consts.folder.DOCU); + } + } + return consts.className.BUTTON + " " + icoCss.join('_'); + }, + makeNodeIcoStyle: function(setting, node) { + var icoStyle = []; + if (!node.isAjaxing) { + var icon = (node.isParent && node.iconOpen && node.iconClose) ? (node.open ? node.iconOpen : node.iconClose) : node.icon; + if (icon) icoStyle.push("background:url(", icon, ") 0 0 no-repeat;"); + if (setting.view.showIcon == false || !tools.apply(setting.view.showIcon, [setting.treeId, node], true)) { + icoStyle.push("width:0px;height:0px;"); + } + } + return icoStyle.join(''); + }, + makeNodeLineClass: function(setting, node) { + var lineClass = []; + if (setting.view.showLine) { + if (node.level == 0 && node.isFirstNode && node.isLastNode) { + lineClass.push(consts.line.ROOT); + } else if (node.level == 0 && node.isFirstNode) { + lineClass.push(consts.line.ROOTS); + } else if (node.isLastNode) { + lineClass.push(consts.line.BOTTOM); + } else { + lineClass.push(consts.line.CENTER); + } + } else { + lineClass.push(consts.line.NOLINE); + } + if (node.isParent) { + lineClass.push(node.open ? consts.folder.OPEN : consts.folder.CLOSE); + } else { + lineClass.push(consts.folder.DOCU); + } + return view.makeNodeLineClassEx(node) + lineClass.join('_'); + }, + makeNodeLineClassEx: function(node) { + return consts.className.BUTTON + " " + consts.className.LEVEL + node.level + " " + consts.className.SWITCH + " "; + }, + makeNodeTarget: function(node) { + return (node.target || "_blank"); + }, + makeNodeUrl: function(setting, node) { + var urlKey = setting.data.key.url; + return node[urlKey] ? node[urlKey] : null; + }, + makeUlHtml: function(setting, node, html, content) { + html.push("
                                                                                                                                                                                                                                                                                                  "); + html.push(content); + html.push("
                                                                                                                                                                                                                                                                                                "); + }, + makeUlLineClass: function(setting, node) { + return ((setting.view.showLine && !node.isLastNode) ? consts.line.LINE : ""); + }, + removeChildNodes: function(setting, node) { + if (!node) return; + var childKey = setting.data.key.children, + nodes = node[childKey]; + if (!nodes) return; + + for (var i = 0, l = nodes.length; i < l; i++) { + data.removeNodeCache(setting, nodes[i]); + } + data.removeSelectedNode(setting); + delete node[childKey]; + + if (!setting.data.keep.parent) { + node.isParent = false; + node.open = false; + var tmp_switchObj = $$(node, consts.id.SWITCH, setting), + tmp_icoObj = $$(node, consts.id.ICON, setting); + view.replaceSwitchClass(node, tmp_switchObj, consts.folder.DOCU); + view.replaceIcoClass(node, tmp_icoObj, consts.folder.DOCU); + $$(node, consts.id.UL, setting).remove(); + } else { + $$(node, consts.id.UL, setting).empty(); + } + }, + setFirstNode: function(setting, parentNode) { + var childKey = setting.data.key.children, childLength = parentNode[childKey].length; + if ( childLength > 0) { + parentNode[childKey][0].isFirstNode = true; + } + }, + setLastNode: function(setting, parentNode) { + var childKey = setting.data.key.children, childLength = parentNode[childKey].length; + if ( childLength > 0) { + parentNode[childKey][childLength - 1].isLastNode = true; + } + }, + removeNode: function(setting, node) { + var root = data.getRoot(setting), + childKey = setting.data.key.children, + parentNode = (node.parentTId) ? node.getParentNode() : root; + + node.isFirstNode = false; + node.isLastNode = false; + node.getPreNode = function() {return null;}; + node.getNextNode = function() {return null;}; + + if (!data.getNodeCache(setting, node.tId)) { + return; + } + + $$(node, setting).remove(); + data.removeNodeCache(setting, node); + data.removeSelectedNode(setting, node); + + for (var i = 0, l = parentNode[childKey].length; i < l; i++) { + if (parentNode[childKey][i].tId == node.tId) { + parentNode[childKey].splice(i, 1); + break; + } + } + view.setFirstNode(setting, parentNode); + view.setLastNode(setting, parentNode); + + var tmp_ulObj,tmp_switchObj,tmp_icoObj, + childLength = parentNode[childKey].length; + + //repair nodes old parent + if (!setting.data.keep.parent && childLength == 0) { + //old parentNode has no child nodes + parentNode.isParent = false; + parentNode.open = false; + tmp_ulObj = $$(parentNode, consts.id.UL, setting); + tmp_switchObj = $$(parentNode, consts.id.SWITCH, setting); + tmp_icoObj = $$(parentNode, consts.id.ICON, setting); + view.replaceSwitchClass(parentNode, tmp_switchObj, consts.folder.DOCU); + view.replaceIcoClass(parentNode, tmp_icoObj, consts.folder.DOCU); + tmp_ulObj.css("display", "none"); + + } else if (setting.view.showLine && childLength > 0) { + //old parentNode has child nodes + var newLast = parentNode[childKey][childLength - 1]; + tmp_ulObj = $$(newLast, consts.id.UL, setting); + tmp_switchObj = $$(newLast, consts.id.SWITCH, setting); + tmp_icoObj = $$(newLast, consts.id.ICON, setting); + if (parentNode == root) { + if (parentNode[childKey].length == 1) { + //node was root, and ztree has only one root after move node + view.replaceSwitchClass(newLast, tmp_switchObj, consts.line.ROOT); + } else { + var tmp_first_switchObj = $$(parentNode[childKey][0], consts.id.SWITCH, setting); + view.replaceSwitchClass(parentNode[childKey][0], tmp_first_switchObj, consts.line.ROOTS); + view.replaceSwitchClass(newLast, tmp_switchObj, consts.line.BOTTOM); + } + } else { + view.replaceSwitchClass(newLast, tmp_switchObj, consts.line.BOTTOM); + } + tmp_ulObj.removeClass(consts.line.LINE); + } + }, + replaceIcoClass: function(node, obj, newName) { + if (!obj || node.isAjaxing) return; + var tmpName = obj.attr("class"); + if (tmpName == undefined) return; + var tmpList = tmpName.split("_"); + switch (newName) { + case consts.folder.OPEN: + case consts.folder.CLOSE: + case consts.folder.DOCU: + tmpList[tmpList.length-1] = newName; + break; + } + obj.attr("class", tmpList.join("_")); + }, + replaceSwitchClass: function(node, obj, newName) { + if (!obj) return; + var tmpName = obj.attr("class"); + if (tmpName == undefined) return; + var tmpList = tmpName.split("_"); + switch (newName) { + case consts.line.ROOT: + case consts.line.ROOTS: + case consts.line.CENTER: + case consts.line.BOTTOM: + case consts.line.NOLINE: + tmpList[0] = view.makeNodeLineClassEx(node) + newName; + break; + case consts.folder.OPEN: + case consts.folder.CLOSE: + case consts.folder.DOCU: + tmpList[1] = newName; + break; + } + obj.attr("class", tmpList.join("_")); + if (newName !== consts.folder.DOCU) { + obj.removeAttr("disabled"); + } else { + obj.attr("disabled", "disabled"); + } + }, + selectNode: function(setting, node, addFlag) { + if (!addFlag) { + view.cancelPreSelectedNode(setting); + } + $$(node, consts.id.A, setting).addClass(consts.node.CURSELECTED); + data.addSelectedNode(setting, node); + }, + setNodeFontCss: function(setting, treeNode) { + var aObj = $$(treeNode, consts.id.A, setting), + fontCss = view.makeNodeFontCss(setting, treeNode); + if (fontCss) { + aObj.css(fontCss); + } + }, + setNodeLineIcos: function(setting, node) { + if (!node) return; + var switchObj = $$(node, consts.id.SWITCH, setting), + ulObj = $$(node, consts.id.UL, setting), + icoObj = $$(node, consts.id.ICON, setting), + ulLine = view.makeUlLineClass(setting, node); + if (ulLine.length==0) { + ulObj.removeClass(consts.line.LINE); + } else { + ulObj.addClass(ulLine); + } + switchObj.attr("class", view.makeNodeLineClass(setting, node)); + if (node.isParent) { + switchObj.removeAttr("disabled"); + } else { + switchObj.attr("disabled", "disabled"); + } + icoObj.removeAttr("style"); + icoObj.attr("style", view.makeNodeIcoStyle(setting, node)); + icoObj.attr("class", view.makeNodeIcoClass(setting, node)); + }, + setNodeName: function(setting, node) { + var title = data.getNodeTitle(setting, node), + nObj = $$(node, consts.id.SPAN, setting); + nObj.empty(); + if (setting.view.nameIsHTML) { + nObj.html(data.getNodeName(setting, node)); + } else { + nObj.text(data.getNodeName(setting, node)); + } + if (tools.apply(setting.view.showTitle, [setting.treeId, node], setting.view.showTitle)) { + var aObj = $$(node, consts.id.A, setting); + aObj.attr("title", !title ? "" : title); + } + }, + setNodeTarget: function(setting, node) { + var aObj = $$(node, consts.id.A, setting); + aObj.attr("target", view.makeNodeTarget(node)); + }, + setNodeUrl: function(setting, node) { + var aObj = $$(node, consts.id.A, setting), + url = view.makeNodeUrl(setting, node); + if (url == null || url.length == 0) { + aObj.removeAttr("href"); + } else { + aObj.attr("href", url); + } + }, + switchNode: function(setting, node) { + if (node.open || !tools.canAsync(setting, node)) { + view.expandCollapseNode(setting, node, !node.open); + } else if (setting.async.enable) { + if (!view.asyncNode(setting, node)) { + view.expandCollapseNode(setting, node, !node.open); + return; + } + } else if (node) { + view.expandCollapseNode(setting, node, !node.open); + } + } + }; + // zTree defind + $.fn.zTree = { + consts : _consts, + _z : { + tools: tools, + view: view, + event: event, + data: data + }, + getZTreeObj: function(treeId) { + var o = data.getZTreeTools(treeId); + return o ? o : null; + }, + destroy: function(treeId) { + if (!!treeId && treeId.length > 0) { + view.destroy(data.getSetting(treeId)); + } else { + for(var s in settings) { + view.destroy(settings[s]); + } + } + }, + init: function(obj, zSetting, zNodes) { + var setting = tools.clone(_setting); + $.extend(true, setting, zSetting); + setting.treeId = obj.attr("id"); + setting.treeObj = obj; + setting.treeObj.empty(); + settings[setting.treeId] = setting; + //For some older browser,(e.g., ie6) + if(typeof document.body.style.maxHeight === "undefined") { + setting.view.expandSpeed = ""; + } + data.initRoot(setting); + var root = data.getRoot(setting), + childKey = setting.data.key.children; + zNodes = zNodes ? tools.clone(tools.isArray(zNodes)? zNodes : [zNodes]) : []; + if (setting.data.simpleData.enable) { + root[childKey] = data.transformTozTreeFormat(setting, zNodes); + } else { + root[childKey] = zNodes; + } + + data.initCache(setting); + event.unbindTree(setting); + event.bindTree(setting); + event.unbindEvent(setting); + event.bindEvent(setting); + + var zTreeTools = { + setting : setting, + addNodes : function(parentNode, newNodes, isSilent) { + if (!newNodes) return null; + if (!parentNode) parentNode = null; + if (parentNode && !parentNode.isParent && setting.data.keep.leaf) return null; + var xNewNodes = tools.clone(tools.isArray(newNodes)? newNodes: [newNodes]); + function addCallback() { + view.addNodes(setting, parentNode, xNewNodes, (isSilent==true)); + } + + if (tools.canAsync(setting, parentNode)) { + view.asyncNode(setting, parentNode, isSilent, addCallback); + } else { + addCallback(); + } + return xNewNodes; + }, + cancelSelectedNode : function(node) { + view.cancelPreSelectedNode(setting, node); + }, + destroy : function() { + view.destroy(setting); + }, + expandAll : function(expandFlag) { + expandFlag = !!expandFlag; + view.expandCollapseSonNode(setting, null, expandFlag, true); + return expandFlag; + }, + expandNode : function(node, expandFlag, sonSign, focus, callbackFlag) { + if (!node || !node.isParent) return null; + if (expandFlag !== true && expandFlag !== false) { + expandFlag = !node.open; + } + callbackFlag = !!callbackFlag; + + if (callbackFlag && expandFlag && (tools.apply(setting.callback.beforeExpand, [setting.treeId, node], true) == false)) { + return null; + } else if (callbackFlag && !expandFlag && (tools.apply(setting.callback.beforeCollapse, [setting.treeId, node], true) == false)) { + return null; + } + if (expandFlag && node.parentTId) { + view.expandCollapseParentNode(setting, node.getParentNode(), expandFlag, false); + } + if (expandFlag === node.open && !sonSign) { + return null; + } + + data.getRoot(setting).expandTriggerFlag = callbackFlag; + if (!tools.canAsync(setting, node) && sonSign) { + view.expandCollapseSonNode(setting, node, expandFlag, true, function() { + if (focus !== false) {try{$$(node, setting).focus().blur();}catch(e){}} + }); + } else { + node.open = !expandFlag; + view.switchNode(this.setting, node); + if (focus !== false) {try{$$(node, setting).focus().blur();}catch(e){}} + } + return expandFlag; + }, + getNodes : function() { + return data.getNodes(setting); + }, + getNodeByParam : function(key, value, parentNode) { + if (!key) return null; + return data.getNodeByParam(setting, parentNode?parentNode[setting.data.key.children]:data.getNodes(setting), key, value); + }, + getNodeByTId : function(tId) { + return data.getNodeCache(setting, tId); + }, + getNodesByParam : function(key, value, parentNode) { + if (!key) return null; + return data.getNodesByParam(setting, parentNode?parentNode[setting.data.key.children]:data.getNodes(setting), key, value); + }, + getNodesByParamFuzzy : function(key, value, parentNode) { + if (!key) return null; + return data.getNodesByParamFuzzy(setting, parentNode?parentNode[setting.data.key.children]:data.getNodes(setting), key, value); + }, + getNodesByFilter: function(filter, isSingle, parentNode, invokeParam) { + isSingle = !!isSingle; + if (!filter || (typeof filter != "function")) return (isSingle ? null : []); + return data.getNodesByFilter(setting, parentNode?parentNode[setting.data.key.children]:data.getNodes(setting), filter, isSingle, invokeParam); + }, + getNodeIndex : function(node) { + if (!node) return null; + var childKey = setting.data.key.children, + parentNode = (node.parentTId) ? node.getParentNode() : data.getRoot(setting); + for (var i=0, l = parentNode[childKey].length; i < l; i++) { + if (parentNode[childKey][i] == node) return i; + } + return -1; + }, + getSelectedNodes : function() { + var r = [], list = data.getRoot(setting).curSelectedList; + for (var i=0, l=list.length; i 0) { + view.createNodes(setting, 0, root[childKey]); + } else if (setting.async.enable && setting.async.url && setting.async.url !== '') { + view.asyncNode(setting); + } + return zTreeTools; + } + }; + + var zt = $.fn.zTree, + $$ = tools.$, + consts = zt.consts; +})(jQuery); +/* + * JQuery zTree excheck v3.5.15 + * http://zTree.me/ + * + * Copyright (c) 2010 Hunter.z + * + * Licensed same as jquery - MIT License + * http://www.opensource.org/licenses/mit-license.php + * + * email: hunter.z@263.net + * Date: 2013-10-15 + */ +(function($){ + //default consts of excheck + var _consts = { + event: { + CHECK: "ztree_check" + }, + id: { + CHECK: "_check" + }, + checkbox: { + STYLE: "checkbox", + DEFAULT: "chk", + DISABLED: "disable", + FALSE: "false", + TRUE: "true", + FULL: "full", + PART: "part", + FOCUS: "focus" + }, + radio: { + STYLE: "radio", + TYPE_ALL: "all", + TYPE_LEVEL: "level" + } + }, + //default setting of excheck + _setting = { + check: { + enable: false, + autoCheckTrigger: false, + chkStyle: _consts.checkbox.STYLE, + nocheckInherit: false, + chkDisabledInherit: false, + radioType: _consts.radio.TYPE_LEVEL, + chkboxType: { + "Y": "ps", + "N": "ps" + } + }, + data: { + key: { + checked: "checked" + } + }, + callback: { + beforeCheck:null, + onCheck:null + } + }, + //default root of excheck + _initRoot = function (setting) { + var r = data.getRoot(setting); + r.radioCheckedList = []; + }, + //default cache of excheck + _initCache = function(treeId) {}, + //default bind event of excheck + _bindEvent = function(setting) { + var o = setting.treeObj, + c = consts.event; + o.bind(c.CHECK, function (event, srcEvent, treeId, node) { + tools.apply(setting.callback.onCheck, [!!srcEvent?srcEvent : event, treeId, node]); + }); + }, + _unbindEvent = function(setting) { + var o = setting.treeObj, + c = consts.event; + o.unbind(c.CHECK); + }, + //default event proxy of excheck + _eventProxy = function(e) { + var target = e.target, + setting = data.getSetting(e.data.treeId), + tId = "", node = null, + nodeEventType = "", treeEventType = "", + nodeEventCallback = null, treeEventCallback = null; + + if (tools.eqs(e.type, "mouseover")) { + if (setting.check.enable && tools.eqs(target.tagName, "span") && target.getAttribute("treeNode"+ consts.id.CHECK) !== null) { + tId = tools.getNodeMainDom(target).id; + nodeEventType = "mouseoverCheck"; + } + } else if (tools.eqs(e.type, "mouseout")) { + if (setting.check.enable && tools.eqs(target.tagName, "span") && target.getAttribute("treeNode"+ consts.id.CHECK) !== null) { + tId = tools.getNodeMainDom(target).id; + nodeEventType = "mouseoutCheck"; + } + } else if (tools.eqs(e.type, "click")) { + if (setting.check.enable && tools.eqs(target.tagName, "span") && target.getAttribute("treeNode"+ consts.id.CHECK) !== null) { + tId = tools.getNodeMainDom(target).id; + nodeEventType = "checkNode"; + } + } + if (tId.length>0) { + node = data.getNodeCache(setting, tId); + switch (nodeEventType) { + case "checkNode" : + nodeEventCallback = _handler.onCheckNode; + break; + case "mouseoverCheck" : + nodeEventCallback = _handler.onMouseoverCheck; + break; + case "mouseoutCheck" : + nodeEventCallback = _handler.onMouseoutCheck; + break; + } + } + var proxyResult = { + stop: nodeEventType === "checkNode", + node: node, + nodeEventType: nodeEventType, + nodeEventCallback: nodeEventCallback, + treeEventType: treeEventType, + treeEventCallback: treeEventCallback + }; + return proxyResult + }, + //default init node of excheck + _initNode = function(setting, level, n, parentNode, isFirstNode, isLastNode, openFlag) { + if (!n) return; + var checkedKey = setting.data.key.checked; + if (typeof n[checkedKey] == "string") n[checkedKey] = tools.eqs(n[checkedKey], "true"); + n[checkedKey] = !!n[checkedKey]; + n.checkedOld = n[checkedKey]; + if (typeof n.nocheck == "string") n.nocheck = tools.eqs(n.nocheck, "true"); + n.nocheck = !!n.nocheck || (setting.check.nocheckInherit && parentNode && !!parentNode.nocheck); + if (typeof n.chkDisabled == "string") n.chkDisabled = tools.eqs(n.chkDisabled, "true"); + n.chkDisabled = !!n.chkDisabled || (setting.check.chkDisabledInherit && parentNode && !!parentNode.chkDisabled); + if (typeof n.halfCheck == "string") n.halfCheck = tools.eqs(n.halfCheck, "true"); + n.halfCheck = !!n.halfCheck; + n.check_Child_State = -1; + n.check_Focus = false; + n.getCheckStatus = function() {return data.getCheckStatus(setting, n);}; + + if (setting.check.chkStyle == consts.radio.STYLE && setting.check.radioType == consts.radio.TYPE_ALL && n[checkedKey] ) { + var r = data.getRoot(setting); + r.radioCheckedList.push(n); + } + }, + //add dom for check + _beforeA = function(setting, node, html) { + var checkedKey = setting.data.key.checked; + if (setting.check.enable) { + data.makeChkFlag(setting, node); + html.push(""); + } + }, + //update zTreeObj, add method of check + _zTreeTools = function(setting, zTreeTools) { + zTreeTools.checkNode = function(node, checked, checkTypeFlag, callbackFlag) { + var checkedKey = setting.data.key.checked; + if (node.chkDisabled === true) return; + if (checked !== true && checked !== false) { + checked = !node[checkedKey]; + } + callbackFlag = !!callbackFlag; + + if (node[checkedKey] === checked && !checkTypeFlag) { + return; + } else if (callbackFlag && tools.apply(this.setting.callback.beforeCheck, [setting.treeId, node], true) == false) { + return; + } + if (tools.uCanDo(this.setting) && setting.check.enable && node.nocheck !== true) { + node[checkedKey] = checked; + var checkObj = $$(node, consts.id.CHECK, setting); + if (checkTypeFlag || setting.check.chkStyle === consts.radio.STYLE) view.checkNodeRelation(setting, node); + view.setChkClass(setting, checkObj, node); + view.repairParentChkClassWithSelf(setting, node); + if (callbackFlag) { + setting.treeObj.trigger(consts.event.CHECK, [null, setting.treeId, node]); + } + } + } + + zTreeTools.checkAllNodes = function(checked) { + view.repairAllChk(setting, !!checked); + } + + zTreeTools.getCheckedNodes = function(checked) { + var childKey = setting.data.key.children; + checked = (checked !== false); + return data.getTreeCheckedNodes(setting, data.getRoot(setting)[childKey], checked); + } + + zTreeTools.getChangeCheckedNodes = function() { + var childKey = setting.data.key.children; + return data.getTreeChangeCheckedNodes(setting, data.getRoot(setting)[childKey]); + } + + zTreeTools.setChkDisabled = function(node, disabled, inheritParent, inheritChildren) { + disabled = !!disabled; + inheritParent = !!inheritParent; + inheritChildren = !!inheritChildren; + view.repairSonChkDisabled(setting, node, disabled, inheritChildren); + view.repairParentChkDisabled(setting, node.getParentNode(), disabled, inheritParent); + } + + var _updateNode = zTreeTools.updateNode; + zTreeTools.updateNode = function(node, checkTypeFlag) { + if (_updateNode) _updateNode.apply(zTreeTools, arguments); + if (!node || !setting.check.enable) return; + var nObj = $$(node, setting); + if (nObj.get(0) && tools.uCanDo(setting)) { + var checkObj = $$(node, consts.id.CHECK, setting); + if (checkTypeFlag == true || setting.check.chkStyle === consts.radio.STYLE) view.checkNodeRelation(setting, node); + view.setChkClass(setting, checkObj, node); + view.repairParentChkClassWithSelf(setting, node); + } + } + }, + //method of operate data + _data = { + getRadioCheckedList: function(setting) { + var checkedList = data.getRoot(setting).radioCheckedList; + for (var i=0, j=checkedList.length; i -1 && node.check_Child_State < 2) : (node.check_Child_State > 0))) + }; + return r; + }, + getTreeCheckedNodes: function(setting, nodes, checked, results) { + if (!nodes) return []; + var childKey = setting.data.key.children, + checkedKey = setting.data.key.checked, + onlyOne = (checked && setting.check.chkStyle == consts.radio.STYLE && setting.check.radioType == consts.radio.TYPE_ALL); + results = !results ? [] : results; + for (var i = 0, l = nodes.length; i < l; i++) { + if (nodes[i].nocheck !== true && nodes[i].chkDisabled !== true && nodes[i][checkedKey] == checked) { + results.push(nodes[i]); + if(onlyOne) { + break; + } + } + data.getTreeCheckedNodes(setting, nodes[i][childKey], checked, results); + if(onlyOne && results.length > 0) { + break; + } + } + return results; + }, + getTreeChangeCheckedNodes: function(setting, nodes, results) { + if (!nodes) return []; + var childKey = setting.data.key.children, + checkedKey = setting.data.key.checked; + results = !results ? [] : results; + for (var i = 0, l = nodes.length; i < l; i++) { + if (nodes[i].nocheck !== true && nodes[i].chkDisabled !== true && nodes[i][checkedKey] != nodes[i].checkedOld) { + results.push(nodes[i]); + } + data.getTreeChangeCheckedNodes(setting, nodes[i][childKey], results); + } + return results; + }, + makeChkFlag: function(setting, node) { + if (!node) return; + var childKey = setting.data.key.children, + checkedKey = setting.data.key.checked, + chkFlag = -1; + if (node[childKey]) { + for (var i = 0, l = node[childKey].length; i < l; i++) { + var cNode = node[childKey][i]; + var tmp = -1; + if (setting.check.chkStyle == consts.radio.STYLE) { + if (cNode.nocheck === true || cNode.chkDisabled === true) { + tmp = cNode.check_Child_State; + } else if (cNode.halfCheck === true) { + tmp = 2; + } else if (cNode[checkedKey]) { + tmp = 2; + } else { + tmp = cNode.check_Child_State > 0 ? 2:0; + } + if (tmp == 2) { + chkFlag = 2; break; + } else if (tmp == 0){ + chkFlag = 0; + } + } else if (setting.check.chkStyle == consts.checkbox.STYLE) { + if (cNode.nocheck === true || cNode.chkDisabled === true) { + tmp = cNode.check_Child_State; + } else if (cNode.halfCheck === true) { + tmp = 1; + } else if (cNode[checkedKey] ) { + tmp = (cNode.check_Child_State === -1 || cNode.check_Child_State === 2) ? 2 : 1; + } else { + tmp = (cNode.check_Child_State > 0) ? 1 : 0; + } + if (tmp === 1) { + chkFlag = 1; break; + } else if (tmp === 2 && chkFlag > -1 && i > 0 && tmp !== chkFlag) { + chkFlag = 1; break; + } else if (chkFlag === 2 && tmp > -1 && tmp < 2) { + chkFlag = 1; break; + } else if (tmp > -1) { + chkFlag = tmp; + } + } + } + } + node.check_Child_State = chkFlag; + } + }, + //method of event proxy + _event = { + + }, + //method of event handler + _handler = { + onCheckNode: function (event, node) { + if (node.chkDisabled === true) return false; + var setting = data.getSetting(event.data.treeId), + checkedKey = setting.data.key.checked; + if (tools.apply(setting.callback.beforeCheck, [setting.treeId, node], true) == false) return true; + node[checkedKey] = !node[checkedKey]; + view.checkNodeRelation(setting, node); + var checkObj = $$(node, consts.id.CHECK, setting); + view.setChkClass(setting, checkObj, node); + view.repairParentChkClassWithSelf(setting, node); + setting.treeObj.trigger(consts.event.CHECK, [event, setting.treeId, node]); + return true; + }, + onMouseoverCheck: function(event, node) { + if (node.chkDisabled === true) return false; + var setting = data.getSetting(event.data.treeId), + checkObj = $$(node, consts.id.CHECK, setting); + node.check_Focus = true; + view.setChkClass(setting, checkObj, node); + return true; + }, + onMouseoutCheck: function(event, node) { + if (node.chkDisabled === true) return false; + var setting = data.getSetting(event.data.treeId), + checkObj = $$(node, consts.id.CHECK, setting); + node.check_Focus = false; + view.setChkClass(setting, checkObj, node); + return true; + } + }, + //method of tools for zTree + _tools = { + + }, + //method of operate ztree dom + _view = { + checkNodeRelation: function(setting, node) { + var pNode, i, l, + childKey = setting.data.key.children, + checkedKey = setting.data.key.checked, + r = consts.radio; + if (setting.check.chkStyle == r.STYLE) { + var checkedList = data.getRadioCheckedList(setting); + if (node[checkedKey]) { + if (setting.check.radioType == r.TYPE_ALL) { + for (i = checkedList.length-1; i >= 0; i--) { + pNode = checkedList[i]; + pNode[checkedKey] = false; + checkedList.splice(i, 1); + + view.setChkClass(setting, $$(pNode, consts.id.CHECK, setting), pNode); + if (pNode.parentTId != node.parentTId) { + view.repairParentChkClassWithSelf(setting, pNode); + } + } + checkedList.push(node); + } else { + var parentNode = (node.parentTId) ? node.getParentNode() : data.getRoot(setting); + for (i = 0, l = parentNode[childKey].length; i < l; i++) { + pNode = parentNode[childKey][i]; + if (pNode[checkedKey] && pNode != node) { + pNode[checkedKey] = false; + view.setChkClass(setting, $$(pNode, consts.id.CHECK, setting), pNode); + } + } + } + } else if (setting.check.radioType == r.TYPE_ALL) { + for (i = 0, l = checkedList.length; i < l; i++) { + if (node == checkedList[i]) { + checkedList.splice(i, 1); + break; + } + } + } + + } else { + if (node[checkedKey] && (!node[childKey] || node[childKey].length==0 || setting.check.chkboxType.Y.indexOf("s") > -1)) { + view.setSonNodeCheckBox(setting, node, true); + } + if (!node[checkedKey] && (!node[childKey] || node[childKey].length==0 || setting.check.chkboxType.N.indexOf("s") > -1)) { + view.setSonNodeCheckBox(setting, node, false); + } + if (node[checkedKey] && setting.check.chkboxType.Y.indexOf("p") > -1) { + view.setParentNodeCheckBox(setting, node, true); + } + if (!node[checkedKey] && setting.check.chkboxType.N.indexOf("p") > -1) { + view.setParentNodeCheckBox(setting, node, false); + } + } + }, + makeChkClass: function(setting, node) { + var checkedKey = setting.data.key.checked, + c = consts.checkbox, r = consts.radio, + fullStyle = ""; + if (node.chkDisabled === true) { + fullStyle = c.DISABLED; + } else if (node.halfCheck) { + fullStyle = c.PART; + } else if (setting.check.chkStyle == r.STYLE) { + fullStyle = (node.check_Child_State < 1)? c.FULL:c.PART; + } else { + fullStyle = node[checkedKey] ? ((node.check_Child_State === 2 || node.check_Child_State === -1) ? c.FULL:c.PART) : ((node.check_Child_State < 1)? c.FULL:c.PART); + } + var chkName = setting.check.chkStyle + "_" + (node[checkedKey] ? c.TRUE : c.FALSE) + "_" + fullStyle; + chkName = (node.check_Focus && node.chkDisabled !== true) ? chkName + "_" + c.FOCUS : chkName; + return consts.className.BUTTON + " " + c.DEFAULT + " " + chkName; + }, + repairAllChk: function(setting, checked) { + if (setting.check.enable && setting.check.chkStyle === consts.checkbox.STYLE) { + var checkedKey = setting.data.key.checked, + childKey = setting.data.key.children, + root = data.getRoot(setting); + for (var i = 0, l = root[childKey].length; i 0) { + view.repairParentChkClass(setting, node[childKey][0]); + } else { + view.repairParentChkClass(setting, node); + } + }, + repairSonChkDisabled: function(setting, node, chkDisabled, inherit) { + if (!node) return; + var childKey = setting.data.key.children; + if (node.chkDisabled != chkDisabled) { + node.chkDisabled = chkDisabled; + } + view.repairChkClass(setting, node); + if (node[childKey] && inherit) { + for (var i = 0, l = node[childKey].length; i < l; i++) { + var sNode = node[childKey][i]; + view.repairSonChkDisabled(setting, sNode, chkDisabled, inherit); + } + } + }, + repairParentChkDisabled: function(setting, node, chkDisabled, inherit) { + if (!node) return; + if (node.chkDisabled != chkDisabled && inherit) { + node.chkDisabled = chkDisabled; + } + view.repairChkClass(setting, node); + view.repairParentChkDisabled(setting, node.getParentNode(), chkDisabled, inherit); + }, + setChkClass: function(setting, obj, node) { + if (!obj) return; + if (node.nocheck === true) { + obj.hide(); + } else { + obj.show(); + } + obj.removeClass(); + obj.addClass(view.makeChkClass(setting, node)); + }, + setParentNodeCheckBox: function(setting, node, value, srcNode) { + var childKey = setting.data.key.children, + checkedKey = setting.data.key.checked, + checkObj = $$(node, consts.id.CHECK, setting); + if (!srcNode) srcNode = node; + data.makeChkFlag(setting, node); + if (node.nocheck !== true && node.chkDisabled !== true) { + node[checkedKey] = value; + view.setChkClass(setting, checkObj, node); + if (setting.check.autoCheckTrigger && node != srcNode) { + setting.treeObj.trigger(consts.event.CHECK, [null, setting.treeId, node]); + } + } + if (node.parentTId) { + var pSign = true; + if (!value) { + var pNodes = node.getParentNode()[childKey]; + for (var i = 0, l = pNodes.length; i < l; i++) { + if ((pNodes[i].nocheck !== true && pNodes[i].chkDisabled !== true && pNodes[i][checkedKey]) + || ((pNodes[i].nocheck === true || pNodes[i].chkDisabled === true) && pNodes[i].check_Child_State > 0)) { + pSign = false; + break; + } + } + } + if (pSign) { + view.setParentNodeCheckBox(setting, node.getParentNode(), value, srcNode); + } + } + }, + setSonNodeCheckBox: function(setting, node, value, srcNode) { + if (!node) return; + var childKey = setting.data.key.children, + checkedKey = setting.data.key.checked, + checkObj = $$(node, consts.id.CHECK, setting); + if (!srcNode) srcNode = node; + + var hasDisable = false; + if (node[childKey]) { + for (var i = 0, l = node[childKey].length; i < l && node.chkDisabled !== true; i++) { + var sNode = node[childKey][i]; + view.setSonNodeCheckBox(setting, sNode, value, srcNode); + if (sNode.chkDisabled === true) hasDisable = true; + } + } + + if (node != data.getRoot(setting) && node.chkDisabled !== true) { + if (hasDisable && node.nocheck !== true) { + data.makeChkFlag(setting, node); + } + if (node.nocheck !== true && node.chkDisabled !== true) { + node[checkedKey] = value; + if (!hasDisable) node.check_Child_State = (node[childKey] && node[childKey].length > 0) ? (value ? 2 : 0) : -1; + } else { + node.check_Child_State = -1; + } + view.setChkClass(setting, checkObj, node); + if (setting.check.autoCheckTrigger && node != srcNode && node.nocheck !== true && node.chkDisabled !== true) { + setting.treeObj.trigger(consts.event.CHECK, [null, setting.treeId, node]); + } + } + + } + }, + + _z = { + tools: _tools, + view: _view, + event: _event, + data: _data + }; + $.extend(true, $.fn.zTree.consts, _consts); + $.extend(true, $.fn.zTree._z, _z); + + var zt = $.fn.zTree, + tools = zt._z.tools, + consts = zt.consts, + view = zt._z.view, + data = zt._z.data, + event = zt._z.event, + $$ = tools.$; + + data.exSetting(_setting); + data.addInitBind(_bindEvent); + data.addInitUnBind(_unbindEvent); + data.addInitCache(_initCache); + data.addInitNode(_initNode); + data.addInitProxy(_eventProxy, true); + data.addInitRoot(_initRoot); + data.addBeforeA(_beforeA); + data.addZTreeTools(_zTreeTools); + + var _createNodes = view.createNodes; + view.createNodes = function(setting, level, nodes, parentNode) { + if (_createNodes) _createNodes.apply(view, arguments); + if (!nodes) return; + view.repairParentChkClassWithSelf(setting, parentNode); + } + var _removeNode = view.removeNode; + view.removeNode = function(setting, node) { + var parentNode = node.getParentNode(); + if (_removeNode) _removeNode.apply(view, arguments); + if (!node || !parentNode) return; + view.repairChkClass(setting, parentNode); + view.repairParentChkClass(setting, parentNode); + } + + var _appendNodes = view.appendNodes; + view.appendNodes = function(setting, level, nodes, parentNode, initFlag, openFlag) { + var html = ""; + if (_appendNodes) { + html = _appendNodes.apply(view, arguments); + } + if (parentNode) { + data.makeChkFlag(setting, parentNode); + } + return html; + } +})(jQuery); +/* + * JQuery zTree exedit v3.5.15 + * http://zTree.me/ + * + * Copyright (c) 2010 Hunter.z + * + * Licensed same as jquery - MIT License + * http://www.opensource.org/licenses/mit-license.php + * + * email: hunter.z@263.net + * Date: 2013-10-15 + */ +(function($){ + //default consts of exedit + var _consts = { + event: { + DRAG: "ztree_drag", + DROP: "ztree_drop", + REMOVE: "ztree_remove", + RENAME: "ztree_rename" + }, + id: { + EDIT: "_edit", + INPUT: "_input", + REMOVE: "_remove" + }, + move: { + TYPE_INNER: "inner", + TYPE_PREV: "prev", + TYPE_NEXT: "next" + }, + node: { + CURSELECTED_EDIT: "curSelectedNode_Edit", + TMPTARGET_TREE: "tmpTargetzTree", + TMPTARGET_NODE: "tmpTargetNode" + } + }, + //default setting of exedit + _setting = { + edit: { + enable: false, + editNameSelectAll: false, + showRemoveBtn: true, + showRenameBtn: true, + removeTitle: "remove", + renameTitle: "rename", + drag: { + autoExpandTrigger: false, + isCopy: true, + isMove: true, + prev: true, + next: true, + inner: true, + minMoveSize: 5, + borderMax: 10, + borderMin: -5, + maxShowNodeNum: 5, + autoOpenTime: 500 + } + }, + view: { + addHoverDom: null, + removeHoverDom: null + }, + callback: { + beforeDrag:null, + beforeDragOpen:null, + beforeDrop:null, + beforeEditName:null, + beforeRename:null, + onDrag:null, + onDrop:null, + onRename:null + } + }, + //default root of exedit + _initRoot = function (setting) { + var r = data.getRoot(setting), rs = data.getRoots(); + r.curEditNode = null; + r.curEditInput = null; + r.curHoverNode = null; + r.dragFlag = 0; + r.dragNodeShowBefore = []; + r.dragMaskList = new Array(); + rs.showHoverDom = true; + }, + //default cache of exedit + _initCache = function(treeId) {}, + //default bind event of exedit + _bindEvent = function(setting) { + var o = setting.treeObj; + var c = consts.event; + o.bind(c.RENAME, function (event, treeId, treeNode, isCancel) { + tools.apply(setting.callback.onRename, [event, treeId, treeNode, isCancel]); + }); + + o.bind(c.REMOVE, function (event, treeId, treeNode) { + tools.apply(setting.callback.onRemove, [event, treeId, treeNode]); + }); + + o.bind(c.DRAG, function (event, srcEvent, treeId, treeNodes) { + tools.apply(setting.callback.onDrag, [srcEvent, treeId, treeNodes]); + }); + + o.bind(c.DROP, function (event, srcEvent, treeId, treeNodes, targetNode, moveType, isCopy) { + tools.apply(setting.callback.onDrop, [srcEvent, treeId, treeNodes, targetNode, moveType, isCopy]); + }); + }, + _unbindEvent = function(setting) { + var o = setting.treeObj; + var c = consts.event; + o.unbind(c.RENAME); + o.unbind(c.REMOVE); + o.unbind(c.DRAG); + o.unbind(c.DROP); + }, + //default event proxy of exedit + _eventProxy = function(e) { + var target = e.target, + setting = data.getSetting(e.data.treeId), + relatedTarget = e.relatedTarget, + tId = "", node = null, + nodeEventType = "", treeEventType = "", + nodeEventCallback = null, treeEventCallback = null, + tmp = null; + + if (tools.eqs(e.type, "mouseover")) { + tmp = tools.getMDom(setting, target, [{tagName:"a", attrName:"treeNode"+consts.id.A}]); + if (tmp) { + tId = tools.getNodeMainDom(tmp).id; + nodeEventType = "hoverOverNode"; + } + } else if (tools.eqs(e.type, "mouseout")) { + tmp = tools.getMDom(setting, relatedTarget, [{tagName:"a", attrName:"treeNode"+consts.id.A}]); + if (!tmp) { + tId = "remove"; + nodeEventType = "hoverOutNode"; + } + } else if (tools.eqs(e.type, "mousedown")) { + tmp = tools.getMDom(setting, target, [{tagName:"a", attrName:"treeNode"+consts.id.A}]); + if (tmp) { + tId = tools.getNodeMainDom(tmp).id; + nodeEventType = "mousedownNode"; + } + } + if (tId.length>0) { + node = data.getNodeCache(setting, tId); + switch (nodeEventType) { + case "mousedownNode" : + nodeEventCallback = _handler.onMousedownNode; + break; + case "hoverOverNode" : + nodeEventCallback = _handler.onHoverOverNode; + break; + case "hoverOutNode" : + nodeEventCallback = _handler.onHoverOutNode; + break; + } + } + var proxyResult = { + stop: false, + node: node, + nodeEventType: nodeEventType, + nodeEventCallback: nodeEventCallback, + treeEventType: treeEventType, + treeEventCallback: treeEventCallback + }; + return proxyResult + }, + //default init node of exedit + _initNode = function(setting, level, n, parentNode, isFirstNode, isLastNode, openFlag) { + if (!n) return; + n.isHover = false; + n.editNameFlag = false; + }, + //update zTreeObj, add method of edit + _zTreeTools = function(setting, zTreeTools) { + zTreeTools.cancelEditName = function(newName) { + var root = data.getRoot(setting); + if (!root.curEditNode) return; + view.cancelCurEditNode(setting, newName?newName:null, true); + } + zTreeTools.copyNode = function(targetNode, node, moveType, isSilent) { + if (!node) return null; + if (targetNode && !targetNode.isParent && setting.data.keep.leaf && moveType === consts.move.TYPE_INNER) return null; + var newNode = tools.clone(node); + if (!targetNode) { + targetNode = null; + moveType = consts.move.TYPE_INNER; + } + if (moveType == consts.move.TYPE_INNER) { + function copyCallback() { + view.addNodes(setting, targetNode, [newNode], isSilent); + } + + if (tools.canAsync(setting, targetNode)) { + view.asyncNode(setting, targetNode, isSilent, copyCallback); + } else { + copyCallback(); + } + } else { + view.addNodes(setting, targetNode.parentNode, [newNode], isSilent); + view.moveNode(setting, targetNode, newNode, moveType, false, isSilent); + } + return newNode; + } + zTreeTools.editName = function(node) { + if (!node || !node.tId || node !== data.getNodeCache(setting, node.tId)) return; + if (node.parentTId) view.expandCollapseParentNode(setting, node.getParentNode(), true); + view.editNode(setting, node) + } + zTreeTools.moveNode = function(targetNode, node, moveType, isSilent) { + if (!node) return node; + if (targetNode && !targetNode.isParent && setting.data.keep.leaf && moveType === consts.move.TYPE_INNER) { + return null; + } else if (targetNode && ((node.parentTId == targetNode.tId && moveType == consts.move.TYPE_INNER) || $$(node, setting).find("#" + targetNode.tId).length > 0)) { + return null; + } else if (!targetNode) { + targetNode = null; + } + function moveCallback() { + view.moveNode(setting, targetNode, node, moveType, false, isSilent); + } + if (tools.canAsync(setting, targetNode) && moveType === consts.move.TYPE_INNER) { + view.asyncNode(setting, targetNode, isSilent, moveCallback); + } else { + moveCallback(); + } + return node; + } + zTreeTools.setEditable = function(editable) { + setting.edit.enable = editable; + return this.refresh(); + } + }, + //method of operate data + _data = { + setSonNodeLevel: function(setting, parentNode, node) { + if (!node) return; + var childKey = setting.data.key.children; + node.level = (parentNode)? parentNode.level + 1 : 0; + if (!node[childKey]) return; + for (var i = 0, l = node[childKey].length; i < l; i++) { + if (node[childKey][i]) data.setSonNodeLevel(setting, node, node[childKey][i]); + } + } + }, + //method of event proxy + _event = { + + }, + //method of event handler + _handler = { + onHoverOverNode: function(event, node) { + var setting = data.getSetting(event.data.treeId), + root = data.getRoot(setting); + if (root.curHoverNode != node) { + _handler.onHoverOutNode(event); + } + root.curHoverNode = node; + view.addHoverDom(setting, node); + }, + onHoverOutNode: function(event, node) { + var setting = data.getSetting(event.data.treeId), + root = data.getRoot(setting); + if (root.curHoverNode && !data.isSelectedNode(setting, root.curHoverNode)) { + view.removeTreeDom(setting, root.curHoverNode); + root.curHoverNode = null; + } + }, + onMousedownNode: function(eventMouseDown, _node) { + var i,l, + setting = data.getSetting(eventMouseDown.data.treeId), + root = data.getRoot(setting), roots = data.getRoots(); + //right click can't drag & drop + if (eventMouseDown.button == 2 || !setting.edit.enable || (!setting.edit.drag.isCopy && !setting.edit.drag.isMove)) return true; + + //input of edit node name can't drag & drop + var target = eventMouseDown.target, + _nodes = data.getRoot(setting).curSelectedList, + nodes = []; + if (!data.isSelectedNode(setting, _node)) { + nodes = [_node]; + } else { + for (i=0, l=_nodes.length; i1) { + var pNodes = nodes[0].parentTId ? nodes[0].getParentNode()[childKey] : data.getNodes(setting); + tmpNodes = []; + for (i=0, l=pNodes.length; i -1 && (lastIndex+1) !== i) { + isOrder = false; + } + tmpNodes.push(pNodes[i]); + lastIndex = i; + } + if (nodes.length === tmpNodes.length) { + nodes = tmpNodes; + break; + } + } + } + if (isOrder) { + preNode = nodes[0].getPreNode(); + nextNode = nodes[nodes.length-1].getNextNode(); + } + + //set node in selected + curNode = $$("
                                                                                                                                                                                                                                                                                                  ", setting); + for (i=0, l=nodes.length; i0); + view.removeTreeDom(setting, tmpNode); + + tmpDom = $$("
                                                                                                                                                                                                                                                                                                • ", setting); + tmpDom.append($$(tmpNode, consts.id.A, setting).clone()); + tmpDom.css("padding", "0"); + tmpDom.children("#" + tmpNode.tId + consts.id.A).removeClass(consts.node.CURSELECTED); + curNode.append(tmpDom); + if (i == setting.edit.drag.maxShowNodeNum-1) { + tmpDom = $$("
                                                                                                                                                                                                                                                                                                • ...
                                                                                                                                                                                                                                                                                                • ", setting); + curNode.append(tmpDom); + break; + } + } + curNode.attr("id", nodes[0].tId + consts.id.UL + "_tmp"); + curNode.addClass(setting.treeObj.attr("class")); + curNode.appendTo(body); + + tmpArrow = $$("", setting); + tmpArrow.attr("id", "zTreeMove_arrow_tmp"); + tmpArrow.appendTo(body); + + setting.treeObj.trigger(consts.event.DRAG, [event, setting.treeId, nodes]); + } + + if (root.dragFlag == 1) { + if (tmpTarget && tmpArrow.attr("id") == event.target.id && tmpTargetNodeId && (event.clientX + doc.scrollLeft()+2) > ($("#" + tmpTargetNodeId + consts.id.A, tmpTarget).offset().left)) { + var xT = $("#" + tmpTargetNodeId + consts.id.A, tmpTarget); + event.target = (xT.length > 0) ? xT.get(0) : event.target; + } else if (tmpTarget) { + tmpTarget.removeClass(consts.node.TMPTARGET_TREE); + if (tmpTargetNodeId) $("#" + tmpTargetNodeId + consts.id.A, tmpTarget).removeClass(consts.node.TMPTARGET_NODE + "_" + consts.move.TYPE_PREV) + .removeClass(consts.node.TMPTARGET_NODE + "_" + _consts.move.TYPE_NEXT).removeClass(consts.node.TMPTARGET_NODE + "_" + _consts.move.TYPE_INNER); + } + tmpTarget = null; + tmpTargetNodeId = null; + + //judge drag & drop in multi ztree + isOtherTree = false; + targetSetting = setting; + var settings = data.getSettings(); + for (var s in settings) { + if (settings[s].treeId && settings[s].edit.enable && settings[s].treeId != setting.treeId + && (event.target.id == settings[s].treeId || $(event.target).parents("#" + settings[s].treeId).length>0)) { + isOtherTree = true; + targetSetting = settings[s]; + } + } + + var docScrollTop = doc.scrollTop(), + docScrollLeft = doc.scrollLeft(), + treeOffset = targetSetting.treeObj.offset(), + scrollHeight = targetSetting.treeObj.get(0).scrollHeight, + scrollWidth = targetSetting.treeObj.get(0).scrollWidth, + dTop = (event.clientY + docScrollTop - treeOffset.top), + dBottom = (targetSetting.treeObj.height() + treeOffset.top - event.clientY - docScrollTop), + dLeft = (event.clientX + docScrollLeft - treeOffset.left), + dRight = (targetSetting.treeObj.width() + treeOffset.left - event.clientX - docScrollLeft), + isTop = (dTop < setting.edit.drag.borderMax && dTop > setting.edit.drag.borderMin), + isBottom = (dBottom < setting.edit.drag.borderMax && dBottom > setting.edit.drag.borderMin), + isLeft = (dLeft < setting.edit.drag.borderMax && dLeft > setting.edit.drag.borderMin), + isRight = (dRight < setting.edit.drag.borderMax && dRight > setting.edit.drag.borderMin), + isTreeInner = dTop > setting.edit.drag.borderMin && dBottom > setting.edit.drag.borderMin && dLeft > setting.edit.drag.borderMin && dRight > setting.edit.drag.borderMin, + isTreeTop = (isTop && targetSetting.treeObj.scrollTop() <= 0), + isTreeBottom = (isBottom && (targetSetting.treeObj.scrollTop() + targetSetting.treeObj.height()+10) >= scrollHeight), + isTreeLeft = (isLeft && targetSetting.treeObj.scrollLeft() <= 0), + isTreeRight = (isRight && (targetSetting.treeObj.scrollLeft() + targetSetting.treeObj.width()+10) >= scrollWidth); + + if (event.target && tools.isChildOrSelf(event.target, targetSetting.treeId)) { + //get node
                                                                                                                                                                                                                                                                                                • dom + var targetObj = event.target; + while (targetObj && targetObj.tagName && !tools.eqs(targetObj.tagName, "li") && targetObj.id != targetSetting.treeId) { + targetObj = targetObj.parentNode; + } + + var canMove = true; + //don't move to self or children of self + for (i=0, l=nodes.length; i 0) { + canMove = false; + break; + } + } + if (canMove && event.target && tools.isChildOrSelf(event.target, targetObj.id + consts.id.A)) { + tmpTarget = $(targetObj); + tmpTargetNodeId = targetObj.id; + } + } + + //the mouse must be in zTree + tmpNode = nodes[0]; + if (isTreeInner && tools.isChildOrSelf(event.target, targetSetting.treeId)) { + //judge mouse move in root of ztree + if (!tmpTarget && (event.target.id == targetSetting.treeId || isTreeTop || isTreeBottom || isTreeLeft || isTreeRight) && (isOtherTree || (!isOtherTree && tmpNode.parentTId))) { + tmpTarget = targetSetting.treeObj; + } + //auto scroll top + if (isTop) { + targetSetting.treeObj.scrollTop(targetSetting.treeObj.scrollTop()-10); + } else if (isBottom) { + targetSetting.treeObj.scrollTop(targetSetting.treeObj.scrollTop()+10); + } + if (isLeft) { + targetSetting.treeObj.scrollLeft(targetSetting.treeObj.scrollLeft()-10); + } else if (isRight) { + targetSetting.treeObj.scrollLeft(targetSetting.treeObj.scrollLeft()+10); + } + //auto scroll left + if (tmpTarget && tmpTarget != targetSetting.treeObj && tmpTarget.offset().left < targetSetting.treeObj.offset().left) { + targetSetting.treeObj.scrollLeft(targetSetting.treeObj.scrollLeft()+ tmpTarget.offset().left - targetSetting.treeObj.offset().left); + } + } + + curNode.css({ + "top": (event.clientY + docScrollTop + 3) + "px", + "left": (event.clientX + docScrollLeft + 3) + "px" + }); + + var dX = 0; + var dY = 0; + if (tmpTarget && tmpTarget.attr("id")!=targetSetting.treeId) { + var tmpTargetNode = tmpTargetNodeId == null ? null: data.getNodeCache(targetSetting, tmpTargetNodeId), + isCopy = (event.ctrlKey && setting.edit.drag.isMove && setting.edit.drag.isCopy) || (!setting.edit.drag.isMove && setting.edit.drag.isCopy), + isPrev = !!(preNode && tmpTargetNodeId === preNode.tId), + isNext = !!(nextNode && tmpTargetNodeId === nextNode.tId), + isInner = (tmpNode.parentTId && tmpNode.parentTId == tmpTargetNodeId), + canPrev = (isCopy || !isNext) && tools.apply(targetSetting.edit.drag.prev, [targetSetting.treeId, nodes, tmpTargetNode], !!targetSetting.edit.drag.prev), + canNext = (isCopy || !isPrev) && tools.apply(targetSetting.edit.drag.next, [targetSetting.treeId, nodes, tmpTargetNode], !!targetSetting.edit.drag.next), + canInner = (isCopy || !isInner) && !(targetSetting.data.keep.leaf && !tmpTargetNode.isParent) && tools.apply(targetSetting.edit.drag.inner, [targetSetting.treeId, nodes, tmpTargetNode], !!targetSetting.edit.drag.inner); + if (!canPrev && !canNext && !canInner) { + tmpTarget = null; + tmpTargetNodeId = ""; + moveType = consts.move.TYPE_INNER; + tmpArrow.css({ + "display":"none" + }); + if (window.zTreeMoveTimer) { + clearTimeout(window.zTreeMoveTimer); + window.zTreeMoveTargetNodeTId = null + } + } else { + var tmpTargetA = $("#" + tmpTargetNodeId + consts.id.A, tmpTarget), + tmpNextA = tmpTargetNode.isLastNode ? null : $("#" + tmpTargetNode.getNextNode().tId + consts.id.A, tmpTarget.next()), + tmpTop = tmpTargetA.offset().top, + tmpLeft = tmpTargetA.offset().left, + prevPercent = canPrev ? (canInner ? 0.25 : (canNext ? 0.5 : 1) ) : -1, + nextPercent = canNext ? (canInner ? 0.75 : (canPrev ? 0.5 : 0) ) : -1, + dY_percent = (event.clientY + docScrollTop - tmpTop)/tmpTargetA.height(); + if ((prevPercent==1 ||dY_percent<=prevPercent && dY_percent>=-.2) && canPrev) { + dX = 1 - tmpArrow.width(); + dY = tmpTop - tmpArrow.height()/2; + moveType = consts.move.TYPE_PREV; + } else if ((nextPercent==0 || dY_percent>=nextPercent && dY_percent<=1.2) && canNext) { + dX = 1 - tmpArrow.width(); + dY = (tmpNextA == null || (tmpTargetNode.isParent && tmpTargetNode.open)) ? (tmpTop + tmpTargetA.height() - tmpArrow.height()/2) : (tmpNextA.offset().top - tmpArrow.height()/2); + moveType = consts.move.TYPE_NEXT; + }else { + dX = 5 - tmpArrow.width(); + dY = tmpTop; + moveType = consts.move.TYPE_INNER; + } + tmpArrow.css({ + "display":"block", + "top": dY + "px", + "left": (tmpLeft + dX) + "px" + }); + tmpTargetA.addClass(consts.node.TMPTARGET_NODE + "_" + moveType); + + if (preTmpTargetNodeId != tmpTargetNodeId || preTmpMoveType != moveType) { + startTime = (new Date()).getTime(); + } + if (tmpTargetNode && tmpTargetNode.isParent && moveType == consts.move.TYPE_INNER) { + var startTimer = true; + if (window.zTreeMoveTimer && window.zTreeMoveTargetNodeTId !== tmpTargetNode.tId) { + clearTimeout(window.zTreeMoveTimer); + window.zTreeMoveTargetNodeTId = null; + }else if (window.zTreeMoveTimer && window.zTreeMoveTargetNodeTId === tmpTargetNode.tId) { + startTimer = false; + } + if (startTimer) { + window.zTreeMoveTimer = setTimeout(function() { + if (moveType != consts.move.TYPE_INNER) return; + if (tmpTargetNode && tmpTargetNode.isParent && !tmpTargetNode.open && (new Date()).getTime() - startTime > targetSetting.edit.drag.autoOpenTime + && tools.apply(targetSetting.callback.beforeDragOpen, [targetSetting.treeId, tmpTargetNode], true)) { + view.switchNode(targetSetting, tmpTargetNode); + if (targetSetting.edit.drag.autoExpandTrigger) { + targetSetting.treeObj.trigger(consts.event.EXPAND, [targetSetting.treeId, tmpTargetNode]); + } + } + }, targetSetting.edit.drag.autoOpenTime+50); + window.zTreeMoveTargetNodeTId = tmpTargetNode.tId; + } + } + } + } else { + moveType = consts.move.TYPE_INNER; + if (tmpTarget && tools.apply(targetSetting.edit.drag.inner, [targetSetting.treeId, nodes, null], !!targetSetting.edit.drag.inner)) { + tmpTarget.addClass(consts.node.TMPTARGET_TREE); + } else { + tmpTarget = null; + } + tmpArrow.css({ + "display":"none" + }); + if (window.zTreeMoveTimer) { + clearTimeout(window.zTreeMoveTimer); + window.zTreeMoveTargetNodeTId = null; + } + } + preTmpTargetNodeId = tmpTargetNodeId; + preTmpMoveType = moveType; + } + return false; + } + + doc.bind("mouseup", _docMouseUp); + function _docMouseUp(event) { + if (window.zTreeMoveTimer) { + clearTimeout(window.zTreeMoveTimer); + window.zTreeMoveTargetNodeTId = null; + } + preTmpTargetNodeId = null; + preTmpMoveType = null; + doc.unbind("mousemove", _docMouseMove); + doc.unbind("mouseup", _docMouseUp); + doc.unbind("selectstart", _docSelect); + body.css("cursor", "auto"); + if (tmpTarget) { + tmpTarget.removeClass(consts.node.TMPTARGET_TREE); + if (tmpTargetNodeId) $("#" + tmpTargetNodeId + consts.id.A, tmpTarget).removeClass(consts.node.TMPTARGET_NODE + "_" + consts.move.TYPE_PREV) + .removeClass(consts.node.TMPTARGET_NODE + "_" + _consts.move.TYPE_NEXT).removeClass(consts.node.TMPTARGET_NODE + "_" + _consts.move.TYPE_INNER); + } + tools.showIfameMask(setting, false); + + roots.showHoverDom = true; + if (root.dragFlag == 0) return; + root.dragFlag = 0; + + var i, l, tmpNode; + for (i=0, l=nodes.length; i 0) { + root.dragMaskList[0].remove(); + root.dragMaskList.shift(); + } + if (showSign) { + //show mask + var iframeList = $$("iframe", setting); + for (var i = 0, l = iframeList.length; i < l; i++) { + var obj = iframeList.get(i), + r = tools.getAbs(obj), + dragMask = $$("
                                                                                                                                                                                                                                                                                                  ", setting); + dragMask.appendTo($$("body", setting)); + root.dragMaskList.push(dragMask); + } + } + } + }, + //method of operate ztree dom + _view = { + addEditBtn: function(setting, node) { + if (node.editNameFlag || $$(node, consts.id.EDIT, setting).length > 0) { + return; + } + if (!tools.apply(setting.edit.showRenameBtn, [setting.treeId, node], setting.edit.showRenameBtn)) { + return; + } + var aObj = $$(node, consts.id.A, setting), + editStr = ""; + aObj.append(editStr); + + $$(node, consts.id.EDIT, setting).bind('click', + function() { + if (!tools.uCanDo(setting) || tools.apply(setting.callback.beforeEditName, [setting.treeId, node], true) == false) return false; + view.editNode(setting, node); + return false; + } + ).show(); + }, + addRemoveBtn: function(setting, node) { + if (node.editNameFlag || $$(node, consts.id.REMOVE, setting).length > 0) { + return; + } + if (!tools.apply(setting.edit.showRemoveBtn, [setting.treeId, node], setting.edit.showRemoveBtn)) { + return; + } + var aObj = $$(node, consts.id.A, setting), + removeStr = ""; + aObj.append(removeStr); + + $$(node, consts.id.REMOVE, setting).bind('click', + function() { + if (!tools.uCanDo(setting) || tools.apply(setting.callback.beforeRemove, [setting.treeId, node], true) == false) return false; + view.removeNode(setting, node); + setting.treeObj.trigger(consts.event.REMOVE, [setting.treeId, node]); + return false; + } + ).bind('mousedown', + function(eventMouseDown) { + return true; + } + ).show(); + }, + addHoverDom: function(setting, node) { + if (data.getRoots().showHoverDom) { + node.isHover = true; + if (setting.edit.enable) { + view.addEditBtn(setting, node); + view.addRemoveBtn(setting, node); + } + tools.apply(setting.view.addHoverDom, [setting.treeId, node]); + } + }, + cancelCurEditNode: function (setting, forceName, isCancel) { + var root = data.getRoot(setting), + nameKey = setting.data.key.name, + node = root.curEditNode; + + if (node) { + var inputObj = root.curEditInput, + newName = forceName ? forceName:(isCancel ? node[nameKey]: inputObj.val()); + if (tools.apply(setting.callback.beforeRename, [setting.treeId, node, newName, isCancel], true) === false) { + return false; + } else { + node[nameKey] = newName; + setting.treeObj.trigger(consts.event.RENAME, [setting.treeId, node, isCancel]); + } + var aObj = $$(node, consts.id.A, setting); + aObj.removeClass(consts.node.CURSELECTED_EDIT); + inputObj.unbind(); + view.setNodeName(setting, node); + node.editNameFlag = false; + root.curEditNode = null; + root.curEditInput = null; + view.selectNode(setting, node, false); + } + root.noSelection = true; + return true; + }, + editNode: function(setting, node) { + var root = data.getRoot(setting); + view.editNodeBlur = false; + if (data.isSelectedNode(setting, node) && root.curEditNode == node && node.editNameFlag) { + setTimeout(function() {tools.inputFocus(root.curEditInput);}, 0); + return; + } + var nameKey = setting.data.key.name; + node.editNameFlag = true; + view.removeTreeDom(setting, node); + view.cancelCurEditNode(setting); + view.selectNode(setting, node, false); + $$(node, consts.id.SPAN, setting).html(""); + var inputObj = $$(node, consts.id.INPUT, setting); + inputObj.attr("value", node[nameKey]); + if (setting.edit.editNameSelectAll) { + tools.inputSelect(inputObj); + } else { + tools.inputFocus(inputObj); + } + + inputObj.bind('blur', function(event) { + if (!view.editNodeBlur) { + view.cancelCurEditNode(setting); + } + }).bind('keydown', function(event) { + if (event.keyCode=="13") { + view.editNodeBlur = true; + view.cancelCurEditNode(setting); + } else if (event.keyCode=="27") { + view.cancelCurEditNode(setting, null, true); + } + }).bind('click', function(event) { + return false; + }).bind('dblclick', function(event) { + return false; + }); + + $$(node, consts.id.A, setting).addClass(consts.node.CURSELECTED_EDIT); + root.curEditInput = inputObj; + root.noSelection = false; + root.curEditNode = node; + }, + moveNode: function(setting, targetNode, node, moveType, animateFlag, isSilent) { + var root = data.getRoot(setting), + childKey = setting.data.key.children; + if (targetNode == node) return; + if (setting.data.keep.leaf && targetNode && !targetNode.isParent && moveType == consts.move.TYPE_INNER) return; + var oldParentNode = (node.parentTId ? node.getParentNode(): root), + targetNodeIsRoot = (targetNode === null || targetNode == root); + if (targetNodeIsRoot && targetNode === null) targetNode = root; + if (targetNodeIsRoot) moveType = consts.move.TYPE_INNER; + var targetParentNode = (targetNode.parentTId ? targetNode.getParentNode() : root); + + if (moveType != consts.move.TYPE_PREV && moveType != consts.move.TYPE_NEXT) { + moveType = consts.move.TYPE_INNER; + } + + if (moveType == consts.move.TYPE_INNER) { + if (targetNodeIsRoot) { + //parentTId of root node is null + node.parentTId = null; + } else { + if (!targetNode.isParent) { + targetNode.isParent = true; + targetNode.open = !!targetNode.open; + view.setNodeLineIcos(setting, targetNode); + } + node.parentTId = targetNode.tId; + } + } + + //move node Dom + var targetObj, target_ulObj; + if (targetNodeIsRoot) { + targetObj = setting.treeObj; + target_ulObj = targetObj; + } else { + if (!isSilent && moveType == consts.move.TYPE_INNER) { + view.expandCollapseNode(setting, targetNode, true, false); + } else if (!isSilent) { + view.expandCollapseNode(setting, targetNode.getParentNode(), true, false); + } + targetObj = $$(targetNode, setting); + target_ulObj = $$(targetNode, consts.id.UL, setting); + if (!!targetObj.get(0) && !target_ulObj.get(0)) { + var ulstr = []; + view.makeUlHtml(setting, targetNode, ulstr, ''); + targetObj.append(ulstr.join('')); + } + target_ulObj = $$(targetNode, consts.id.UL, setting); + } + var nodeDom = $$(node, setting); + if (!nodeDom.get(0)) { + nodeDom = view.appendNodes(setting, node.level, [node], null, false, true).join(''); + } else if (!targetObj.get(0)) { + nodeDom.remove(); + } + if (target_ulObj.get(0) && moveType == consts.move.TYPE_INNER) { + target_ulObj.append(nodeDom); + } else if (targetObj.get(0) && moveType == consts.move.TYPE_PREV) { + targetObj.before(nodeDom); + } else if (targetObj.get(0) && moveType == consts.move.TYPE_NEXT) { + targetObj.after(nodeDom); + } + + //repair the data after move + var i,l, + tmpSrcIndex = -1, + tmpTargetIndex = 0, + oldNeighbor = null, + newNeighbor = null, + oldLevel = node.level; + if (node.isFirstNode) { + tmpSrcIndex = 0; + if (oldParentNode[childKey].length > 1 ) { + oldNeighbor = oldParentNode[childKey][1]; + oldNeighbor.isFirstNode = true; + } + } else if (node.isLastNode) { + tmpSrcIndex = oldParentNode[childKey].length -1; + oldNeighbor = oldParentNode[childKey][tmpSrcIndex - 1]; + oldNeighbor.isLastNode = true; + } else { + for (i = 0, l = oldParentNode[childKey].length; i < l; i++) { + if (oldParentNode[childKey][i].tId == node.tId) { + tmpSrcIndex = i; + break; + } + } + } + if (tmpSrcIndex >= 0) { + oldParentNode[childKey].splice(tmpSrcIndex, 1); + } + if (moveType != consts.move.TYPE_INNER) { + for (i = 0, l = targetParentNode[childKey].length; i < l; i++) { + if (targetParentNode[childKey][i].tId == targetNode.tId) tmpTargetIndex = i; + } + } + if (moveType == consts.move.TYPE_INNER) { + if (!targetNode[childKey]) targetNode[childKey] = new Array(); + if (targetNode[childKey].length > 0) { + newNeighbor = targetNode[childKey][targetNode[childKey].length - 1]; + newNeighbor.isLastNode = false; + } + targetNode[childKey].splice(targetNode[childKey].length, 0, node); + node.isLastNode = true; + node.isFirstNode = (targetNode[childKey].length == 1); + } else if (targetNode.isFirstNode && moveType == consts.move.TYPE_PREV) { + targetParentNode[childKey].splice(tmpTargetIndex, 0, node); + newNeighbor = targetNode; + newNeighbor.isFirstNode = false; + node.parentTId = targetNode.parentTId; + node.isFirstNode = true; + node.isLastNode = false; + + } else if (targetNode.isLastNode && moveType == consts.move.TYPE_NEXT) { + targetParentNode[childKey].splice(tmpTargetIndex + 1, 0, node); + newNeighbor = targetNode; + newNeighbor.isLastNode = false; + node.parentTId = targetNode.parentTId; + node.isFirstNode = false; + node.isLastNode = true; + + } else { + if (moveType == consts.move.TYPE_PREV) { + targetParentNode[childKey].splice(tmpTargetIndex, 0, node); + } else { + targetParentNode[childKey].splice(tmpTargetIndex + 1, 0, node); + } + node.parentTId = targetNode.parentTId; + node.isFirstNode = false; + node.isLastNode = false; + } + data.fixPIdKeyValue(setting, node); + data.setSonNodeLevel(setting, node.getParentNode(), node); + + //repair node what been moved + view.setNodeLineIcos(setting, node); + view.repairNodeLevelClass(setting, node, oldLevel) + + //repair node's old parentNode dom + if (!setting.data.keep.parent && oldParentNode[childKey].length < 1) { + //old parentNode has no child nodes + oldParentNode.isParent = false; + oldParentNode.open = false; + var tmp_ulObj = $$(oldParentNode, consts.id.UL, setting), + tmp_switchObj = $$(oldParentNode, consts.id.SWITCH, setting), + tmp_icoObj = $$(oldParentNode, consts.id.ICON, setting); + view.replaceSwitchClass(oldParentNode, tmp_switchObj, consts.folder.DOCU); + view.replaceIcoClass(oldParentNode, tmp_icoObj, consts.folder.DOCU); + tmp_ulObj.css("display", "none"); + + } else if (oldNeighbor) { + //old neigbor node + view.setNodeLineIcos(setting, oldNeighbor); + } + + //new neigbor node + if (newNeighbor) { + view.setNodeLineIcos(setting, newNeighbor); + } + + //repair checkbox / radio + if (!!setting.check && setting.check.enable && view.repairChkClass) { + view.repairChkClass(setting, oldParentNode); + view.repairParentChkClassWithSelf(setting, oldParentNode); + if (oldParentNode != node.parent) + view.repairParentChkClassWithSelf(setting, node); + } + + //expand parents after move + if (!isSilent) { + view.expandCollapseParentNode(setting, node.getParentNode(), true, animateFlag); + } + }, + removeEditBtn: function(setting, node) { + $$(node, consts.id.EDIT, setting).unbind().remove(); + }, + removeRemoveBtn: function(setting, node) { + $$(node, consts.id.REMOVE, setting).unbind().remove(); + }, + removeTreeDom: function(setting, node) { + node.isHover = false; + view.removeEditBtn(setting, node); + view.removeRemoveBtn(setting, node); + tools.apply(setting.view.removeHoverDom, [setting.treeId, node]); + }, + repairNodeLevelClass: function(setting, node, oldLevel) { + if (oldLevel === node.level) return; + var liObj = $$(node, setting), + aObj = $$(node, consts.id.A, setting), + ulObj = $$(node, consts.id.UL, setting), + oldClass = consts.className.LEVEL + oldLevel, + newClass = consts.className.LEVEL + node.level; + liObj.removeClass(oldClass); + liObj.addClass(newClass); + aObj.removeClass(oldClass); + aObj.addClass(newClass); + ulObj.removeClass(oldClass); + ulObj.addClass(newClass); + }, + selectNodes : function(setting, nodes) { + for (var i=0, l=nodes.length; i0); + } + } + }, + + _z = { + tools: _tools, + view: _view, + event: _event, + data: _data + }; + $.extend(true, $.fn.zTree.consts, _consts); + $.extend(true, $.fn.zTree._z, _z); + + var zt = $.fn.zTree, + tools = zt._z.tools, + consts = zt.consts, + view = zt._z.view, + data = zt._z.data, + event = zt._z.event, + $$ = tools.$; + + data.exSetting(_setting); + data.addInitBind(_bindEvent); + data.addInitUnBind(_unbindEvent); + data.addInitCache(_initCache); + data.addInitNode(_initNode); + data.addInitProxy(_eventProxy); + data.addInitRoot(_initRoot); + data.addZTreeTools(_zTreeTools); + + var _cancelPreSelectedNode = view.cancelPreSelectedNode; + view.cancelPreSelectedNode = function (setting, node) { + var list = data.getRoot(setting).curSelectedList; + for (var i=0, j=list.length; i0?(c.isParent=!0,c.zAsync=!0):(c.isParent=typeof c.isParent=="string"?j.eqs(c.isParent,"true"):!!c.isParent,c.open=c.isParent&&!b.async.enable?c.open:!1,c.zAsync=!c.isParent);c.isFirstNode=f;c.isLastNode= +g;c.getParentNode=function(){return h.getNodeCache(b,c.parentTId)};c.getPreNode=function(){return h.getPreNode(b,c)};c.getNextNode=function(){return h.getNextNode(b,c)};c.isAjaxing=!1;h.fixPIdKeyValue(b,c)}}],s=[function(b){var a=b.target,c=h.getSetting(b.data.treeId),d="",f=null,g="",l="",i=null,n=null,k=null;if(j.eqs(b.type,"mousedown"))l="mousedown";else if(j.eqs(b.type,"mouseup"))l="mouseup";else if(j.eqs(b.type,"contextmenu"))l="contextmenu";else if(j.eqs(b.type,"click"))if(j.eqs(a.tagName,"span")&& +a.getAttribute("treeNode"+e.id.SWITCH)!==null)d=j.getNodeMainDom(a).id,g="switchNode";else{if(k=j.getMDom(c,a,[{tagName:"a",attrName:"treeNode"+e.id.A}]))d=j.getNodeMainDom(k).id,g="clickNode"}else if(j.eqs(b.type,"dblclick")&&(l="dblclick",k=j.getMDom(c,a,[{tagName:"a",attrName:"treeNode"+e.id.A}])))d=j.getNodeMainDom(k).id,g="switchNode";if(l.length>0&&d.length==0&&(k=j.getMDom(c,a,[{tagName:"a",attrName:"treeNode"+e.id.A}])))d=j.getNodeMainDom(k).id;if(d.length>0)switch(f=h.getNodeCache(c,d),g){case "switchNode":f.isParent? +j.eqs(b.type,"click")||j.eqs(b.type,"dblclick")&&j.apply(c.view.dblClickExpand,[c.treeId,f],c.view.dblClickExpand)?i=G:g="":g="";break;case "clickNode":i=H}switch(l){case "mousedown":n=I;break;case "mouseup":n=J;break;case "dblclick":n=K;break;case "contextmenu":n=L}return{stop:!1,node:f,nodeEventType:g,nodeEventCallback:i,treeEventType:l,treeEventCallback:n}}],A=[function(b){var a=h.getRoot(b);a||(a={},h.setRoot(b,a));a[b.data.key.children]=[];a.expandTriggerFlag=!1;a.curSelectedList=[];a.noSelection= +!0;a.createdNodes=[];a.zId=0;a._ver=(new Date).getTime()}],B=[],C=[],D=[],E=[],F=[],h={addNodeCache:function(b,a){h.getCache(b).nodes[h.getNodeCacheId(a.tId)]=a},getNodeCacheId:function(b){return b.substring(b.lastIndexOf("_")+1)},addAfterA:function(b){C.push(b)},addBeforeA:function(b){B.push(b)},addInnerAfterA:function(b){E.push(b)},addInnerBeforeA:function(b){D.push(b)},addInitBind:function(b){w.push(b)},addInitUnBind:function(b){x.push(b)},addInitCache:function(b){y.push(b)},addInitNode:function(b){z.push(b)}, +addInitProxy:function(b,a){a?s.splice(0,0,b):s.push(b)},addInitRoot:function(b){A.push(b)},addNodesData:function(b,a,c){var d=b.data.key.children;a[d]||(a[d]=[]);if(a[d].length>0)a[d][a[d].length-1].isLastNode=!1,i.setNodeLineIcos(b,a[d][a[d].length-1]);a.isParent=!0;a[d]=a[d].concat(c)},addSelectedNode:function(b,a){var c=h.getRoot(b);h.isSelectedNode(b,a)||c.curSelectedList.push(a)},addCreatedNode:function(b,a){(b.callback.onNodeCreated||b.view.addDiyDom)&&h.getRoot(b).createdNodes.push(a)},addZTreeTools:function(b){F.push(b)}, +exSetting:function(b){p.extend(!0,M,b)},fixPIdKeyValue:function(b,a){b.data.simpleData.enable&&(a[b.data.simpleData.pIdKey]=a.parentTId?a.getParentNode()[b.data.simpleData.idKey]:b.data.simpleData.rootPId)},getAfterA:function(b,a,c){for(var d=0,f=C.length;d-1&&g.push(a[l]),g=g.concat(h.getNodesByParamFuzzy(b,a[l][f],c,d));return g},getNodesByFilter:function(b,a,c,d,f){if(!a)return d?null:[];for(var g=b.data.key.children,e=d?null:[],i=0,n=a.length;i0)},clone:function(b){if(b===null)return null;var a=j.isArray(b)?[]:{},c;for(c in b)a[c]=b[c]instanceof Date?new Date(b[c].getTime()):typeof b[c]==="object"?arguments.callee(b[c]):b[c];return a},eqs:function(b,a){return b.toLowerCase()===a.toLowerCase()},isArray:function(b){return Object.prototype.toString.apply(b)==="[object Array]"},$:function(b,a, +c){a&&typeof a!="string"&&(c=a,a="");return typeof b=="string"?p(b,c?c.treeObj.get(0).ownerDocument:null):p("#"+b.tId+a,c?c.treeObj:null)},getMDom:function(b,a,c){if(!a)return null;for(;a&&a.id!==b.treeId;){for(var d=0,f=c.length;a.tagName&&d0},uCanDo:function(){return!0}},i={addNodes:function(b,a,c,d){if(!b.data.keep.leaf||!a||a.isParent)if(j.isArray(c)||(c=[c]),b.data.simpleData.enable&&(c=h.transformTozTreeFormat(b,c)),a){var f=k(a,e.id.SWITCH,b),g=k(a,e.id.ICON,b),l=k(a,e.id.UL,b);if(!a.open)i.replaceSwitchClass(a,f,e.folder.CLOSE),i.replaceIcoClass(a,g,e.folder.CLOSE),a.open=!1,l.css({display:"none"});h.addNodesData(b,a,c);i.createNodes(b,a.level+1,c,a);d||i.expandCollapseParentNode(b,a,!0)}else h.addNodesData(b,h.getRoot(b), +c),i.createNodes(b,0,c,null)},appendNodes:function(b,a,c,d,f,g){if(!c)return[];for(var e=[],j=b.data.key.children,k=0,m=c.length;k0&&(t=i.appendNodes(b,a+1,o[j],o,f,g&&o.open));g&&(i.makeDOMNodeMainBefore(e,b,o),i.makeDOMNodeLine(e,b,o),h.getBeforeA(b,o,e),i.makeDOMNodeNameBefore(e,b,o),h.getInnerBeforeA(b,o,e),i.makeDOMNodeIcon(e,b,o),h.getInnerAfterA(b, +o,e),i.makeDOMNodeNameAfter(e,b,o),h.getAfterA(b,o,e),o.isParent&&o.open&&i.makeUlHtml(b,o,e,t.join("")),i.makeDOMNodeMainAfter(e,b,o),h.addCreatedNode(b,o))}return e},appendParentULDom:function(b,a){var c=[],d=k(a,b);!d.get(0)&&a.parentTId&&(i.appendParentULDom(b,a.getParentNode()),d=k(a,b));var f=k(a,e.id.UL,b);f.get(0)&&f.remove();f=i.appendNodes(b,a.level+1,a[b.data.key.children],a,!1,!0);i.makeUlHtml(b,a,c,f.join(""));d.append(c.join(""))},asyncNode:function(b,a,c,d){var f,g;if(a&&!a.isParent)return j.apply(d), +!1;else if(a&&a.isAjaxing)return!1;else if(j.apply(b.callback.beforeAsync,[b.treeId,a],!0)==!1)return j.apply(d),!1;if(a)a.isAjaxing=!0,k(a,e.id.ICON,b).attr({style:"","class":e.className.BUTTON+" "+e.className.ICO_LOADING});var l={};for(f=0,g=b.async.autoParam.length;a&&f1&&(n=q[1],q=q[0]);l[n]=a[q]}if(j.isArray(b.async.otherParam))for(f=0,g=b.async.otherParam.length;f=0;d--)if(!a||a===c[d])if(k(c[d],e.id.A,b).removeClass(e.node.CURSELECTED),a){h.removeSelectedNode(b,a);break}if(!a)h.getRoot(b).curSelectedList=[]},createNodeCallback:function(b){if(b.callback.onNodeCreated||b.view.addDiyDom)for(var a= +h.getRoot(b);a.createdNodes.length>0;){var c=a.createdNodes.shift();j.apply(b.view.addDiyDom,[b.treeId,c]);b.callback.onNodeCreated&&b.treeObj.trigger(e.event.NODECREATED,[b.treeId,c])}},createNodes:function(b,a,c,d){if(c&&c.length!=0){var f=h.getRoot(b),g=b.data.key.children,g=!d||d.open||!!k(d[g][0],b).get(0);f.createdNodes=[];a=i.appendNodes(b,a,c,d,!0,g);d?(d=k(d,e.id.UL,b),d.get(0)&&d.append(a.join(""))):b.treeObj.append(a.join(""));i.createNodeCallback(b)}},destroy:function(b){b&&(h.initCache(b), +h.initRoot(b),m.unbindTree(b),m.unbindEvent(b),b.treeObj.empty())},expandCollapseNode:function(b,a,c,d,f){var g=h.getRoot(b),l=b.data.key.children;if(a){if(g.expandTriggerFlag){var q=f,f=function(){q&&q();a.open?b.treeObj.trigger(e.event.EXPAND,[b.treeId,a]):b.treeObj.trigger(e.event.COLLAPSE,[b.treeId,a])};g.expandTriggerFlag=!1}if(!a.open&&a.isParent&&(!k(a,e.id.UL,b).get(0)||a[l]&&a[l].length>0&&!k(a[l][0],b).get(0)))i.appendParentULDom(b,a),i.createNodeCallback(b);if(a.open==c)j.apply(f,[]);else{var c= +k(a,e.id.UL,b),g=k(a,e.id.SWITCH,b),n=k(a,e.id.ICON,b);a.isParent?(a.open=!a.open,a.iconOpen&&a.iconClose&&n.attr("style",i.makeNodeIcoStyle(b,a)),a.open?(i.replaceSwitchClass(a,g,e.folder.OPEN),i.replaceIcoClass(a,n,e.folder.OPEN),d==!1||b.view.expandSpeed==""?(c.show(),j.apply(f,[])):a[l]&&a[l].length>0?c.slideDown(b.view.expandSpeed,f):(c.show(),j.apply(f,[]))):(i.replaceSwitchClass(a,g,e.folder.CLOSE),i.replaceIcoClass(a,n,e.folder.CLOSE),d==!1||b.view.expandSpeed==""||!(a[l]&&a[l].length>0)? +(c.hide(),j.apply(f,[])):c.slideUp(b.view.expandSpeed,f))):j.apply(f,[])}}else j.apply(f,[])},expandCollapseParentNode:function(b,a,c,d,f){a&&(a.parentTId?(i.expandCollapseNode(b,a,c,d),a.parentTId&&i.expandCollapseParentNode(b,a.getParentNode(),c,d,f)):i.expandCollapseNode(b,a,c,d,f))},expandCollapseSonNode:function(b,a,c,d,f){var g=h.getRoot(b),e=b.data.key.children,g=a?a[e]:g[e],e=a?!1:d,j=h.getRoot(b).expandTriggerFlag;h.getRoot(b).expandTriggerFlag=!1;if(g)for(var k=0,m=g.length;k/g,">");b.push("",d,"")},makeDOMNodeLine:function(b,a,c){b.push("")},makeDOMNodeMainAfter:function(b){b.push("
                                                                                                                                                                                                                                                                                                • ")},makeDOMNodeMainBefore:function(b,a,c){b.push("
                                                                                                                                                                                                                                                                                                • ")},makeDOMNodeNameAfter:function(b){b.push("")},makeDOMNodeNameBefore:function(b,a,c){var d=h.getNodeTitle(a,c),f=i.makeNodeUrl(a,c),g=i.makeNodeFontCss(a,c),l=[],k;for(k in g)l.push(k,":",g[k],";");b.push("0?"href='"+f+"'":""," target='",i.makeNodeTarget(c),"' style='",l.join(""),"'");j.apply(a.view.showTitle,[a.treeId,c],a.view.showTitle)&&d&&b.push("title='",d.replace(/'/g,"'").replace(//g,">"),"'");b.push(">")},makeNodeFontCss:function(b,a){var c=j.apply(b.view.fontCss,[b.treeId,a],b.view.fontCss);return c&&typeof c!="function"?c:{}},makeNodeIcoClass:function(b, +a){var c=["ico"];a.isAjaxing||(c[0]=(a.iconSkin?a.iconSkin+"_":"")+c[0],a.isParent?c.push(a.open?e.folder.OPEN:e.folder.CLOSE):c.push(e.folder.DOCU));return e.className.BUTTON+" "+c.join("_")},makeNodeIcoStyle:function(b,a){var c=[];if(!a.isAjaxing){var d=a.isParent&&a.iconOpen&&a.iconClose?a.open?a.iconOpen:a.iconClose:a.icon;d&&c.push("background:url(",d,") 0 0 no-repeat;");(b.view.showIcon==!1||!j.apply(b.view.showIcon,[b.treeId,a],!0))&&c.push("width:0px;height:0px;")}return c.join("")},makeNodeLineClass:function(b, +a){var c=[];b.view.showLine?a.level==0&&a.isFirstNode&&a.isLastNode?c.push(e.line.ROOT):a.level==0&&a.isFirstNode?c.push(e.line.ROOTS):a.isLastNode?c.push(e.line.BOTTOM):c.push(e.line.CENTER):c.push(e.line.NOLINE);a.isParent?c.push(a.open?e.folder.OPEN:e.folder.CLOSE):c.push(e.folder.DOCU);return i.makeNodeLineClassEx(a)+c.join("_")},makeNodeLineClassEx:function(b){return e.className.BUTTON+" "+e.className.LEVEL+b.level+" "+e.className.SWITCH+" "},makeNodeTarget:function(b){return b.target||"_blank"}, +makeNodeUrl:function(b,a){var c=b.data.key.url;return a[c]?a[c]:null},makeUlHtml:function(b,a,c,d){c.push("
                                                                                                                                                                                                                                                                                                    ");c.push(d);c.push("
                                                                                                                                                                                                                                                                                                  ")},makeUlLineClass:function(b,a){return b.view.showLine&&!a.isLastNode?e.line.LINE:""},removeChildNodes:function(b,a){if(a){var c=b.data.key.children,d=a[c];if(d){for(var f=0,g=d.length;f0)a[c][0].isFirstNode=!0},setLastNode:function(b,a){var c=b.data.key.children,d=a[c].length;if(d>0)a[c][d-1].isLastNode=!0},removeNode:function(b,a){var c=h.getRoot(b),d=b.data.key.children,f=a.parentTId?a.getParentNode(): +c;a.isFirstNode=!1;a.isLastNode=!1;a.getPreNode=function(){return null};a.getNextNode=function(){return null};if(h.getNodeCache(b,a.tId)){k(a,b).remove();h.removeNodeCache(b,a);h.removeSelectedNode(b,a);for(var g=0,l=f[d].length;g0){var n=f[d][g-1],g=k(n,e.id.UL,b),l=k(n,e.id.SWITCH,b);j=k(n,e.id.ICON,b);f==c?f[d].length==1?i.replaceSwitchClass(n,l,e.line.ROOT):(c=k(f[d][0],e.id.SWITCH,b),i.replaceSwitchClass(f[d][0],c,e.line.ROOTS),i.replaceSwitchClass(n,l,e.line.BOTTOM)):i.replaceSwitchClass(n,l,e.line.BOTTOM);g.removeClass(e.line.LINE)}}},replaceIcoClass:function(b,a,c){if(a&&!b.isAjaxing&&(b=a.attr("class"),b!=void 0)){b=b.split("_");switch(c){case e.folder.OPEN:case e.folder.CLOSE:case e.folder.DOCU:b[b.length- +1]=c}a.attr("class",b.join("_"))}},replaceSwitchClass:function(b,a,c){if(a){var d=a.attr("class");if(d!=void 0){d=d.split("_");switch(c){case e.line.ROOT:case e.line.ROOTS:case e.line.CENTER:case e.line.BOTTOM:case e.line.NOLINE:d[0]=i.makeNodeLineClassEx(b)+c;break;case e.folder.OPEN:case e.folder.CLOSE:case e.folder.DOCU:d[1]=c}a.attr("class",d.join("_"));c!==e.folder.DOCU?a.removeAttr("disabled"):a.attr("disabled","disabled")}}},selectNode:function(b,a,c){c||i.cancelPreSelectedNode(b);k(a,e.id.A, +b).addClass(e.node.CURSELECTED);h.addSelectedNode(b,a)},setNodeFontCss:function(b,a){var c=k(a,e.id.A,b),d=i.makeNodeFontCss(b,a);d&&c.css(d)},setNodeLineIcos:function(b,a){if(a){var c=k(a,e.id.SWITCH,b),d=k(a,e.id.UL,b),f=k(a,e.id.ICON,b),g=i.makeUlLineClass(b,a);g.length==0?d.removeClass(e.line.LINE):d.addClass(g);c.attr("class",i.makeNodeLineClass(b,a));a.isParent?c.removeAttr("disabled"):c.attr("disabled","disabled");f.removeAttr("style");f.attr("style",i.makeNodeIcoStyle(b,a));f.attr("class", +i.makeNodeIcoClass(b,a))}},setNodeName:function(b,a){var c=h.getNodeTitle(b,a),d=k(a,e.id.SPAN,b);d.empty();b.view.nameIsHTML?d.html(h.getNodeName(b,a)):d.text(h.getNodeName(b,a));j.apply(b.view.showTitle,[b.treeId,a],b.view.showTitle)&&k(a,e.id.A,b).attr("title",!c?"":c)},setNodeTarget:function(b,a){k(a,e.id.A,b).attr("target",i.makeNodeTarget(a))},setNodeUrl:function(b,a){var c=k(a,e.id.A,b),d=i.makeNodeUrl(b,a);d==null||d.length==0?c.removeAttr("href"):c.attr("href",d)},switchNode:function(b,a){a.open|| +!j.canAsync(b,a)?i.expandCollapseNode(b,a,!a.open):b.async.enable?i.asyncNode(b,a)||i.expandCollapseNode(b,a,!a.open):a&&i.expandCollapseNode(b,a,!a.open)}};p.fn.zTree={consts:{className:{BUTTON:"button",LEVEL:"level",ICO_LOADING:"ico_loading",SWITCH:"switch"},event:{NODECREATED:"ztree_nodeCreated",CLICK:"ztree_click",EXPAND:"ztree_expand",COLLAPSE:"ztree_collapse",ASYNC_SUCCESS:"ztree_async_success",ASYNC_ERROR:"ztree_async_error"},id:{A:"_a",ICON:"_ico",SPAN:"_span",SWITCH:"_switch",UL:"_ul"},line:{ROOT:"root", +ROOTS:"roots",CENTER:"center",BOTTOM:"bottom",NOLINE:"noline",LINE:"line"},folder:{OPEN:"open",CLOSE:"close",DOCU:"docu"},node:{CURSELECTED:"curSelectedNode"}},_z:{tools:j,view:i,event:m,data:h},getZTreeObj:function(b){return(b=h.getZTreeTools(b))?b:null},destroy:function(b){if(b&&b.length>0)i.destroy(h.getSetting(b));else for(var a in r)i.destroy(r[a])},init:function(b,a,c){var d=j.clone(M);p.extend(!0,d,a);d.treeId=b.attr("id");d.treeObj=b;d.treeObj.empty();r[d.treeId]=d;if(typeof document.body.style.maxHeight=== +"undefined")d.view.expandSpeed="";h.initRoot(d);b=h.getRoot(d);a=d.data.key.children;c=c?j.clone(j.isArray(c)?c:[c]):[];b[a]=d.data.simpleData.enable?h.transformTozTreeFormat(d,c):c;h.initCache(d);m.unbindTree(d);m.bindTree(d);m.unbindEvent(d);m.bindEvent(d);c={setting:d,addNodes:function(a,b,c){function e(){i.addNodes(d,a,h,c==!0)}if(!b)return null;a||(a=null);if(a&&!a.isParent&&d.data.keep.leaf)return null;var h=j.clone(j.isArray(b)?b:[b]);j.canAsync(d,a)?i.asyncNode(d,a,c,e):e();return h},cancelSelectedNode:function(a){i.cancelPreSelectedNode(d, +a)},destroy:function(){i.destroy(d)},expandAll:function(a){a=!!a;i.expandCollapseSonNode(d,null,a,!0);return a},expandNode:function(a,b,c,e,n){if(!a||!a.isParent)return null;b!==!0&&b!==!1&&(b=!a.open);if((n=!!n)&&b&&j.apply(d.callback.beforeExpand,[d.treeId,a],!0)==!1)return null;else if(n&&!b&&j.apply(d.callback.beforeCollapse,[d.treeId,a],!0)==!1)return null;b&&a.parentTId&&i.expandCollapseParentNode(d,a.getParentNode(),b,!1);if(b===a.open&&!c)return null;h.getRoot(d).expandTriggerFlag=n;if(!j.canAsync(d, +a)&&c)i.expandCollapseSonNode(d,a,b,!0,function(){if(e!==!1)try{k(a,d).focus().blur()}catch(b){}});else if(a.open=!b,i.switchNode(this.setting,a),e!==!1)try{k(a,d).focus().blur()}catch(m){}return b},getNodes:function(){return h.getNodes(d)},getNodeByParam:function(a,b,c){return!a?null:h.getNodeByParam(d,c?c[d.data.key.children]:h.getNodes(d),a,b)},getNodeByTId:function(a){return h.getNodeCache(d,a)},getNodesByParam:function(a,b,c){return!a?null:h.getNodesByParam(d,c?c[d.data.key.children]:h.getNodes(d), +a,b)},getNodesByParamFuzzy:function(a,b,c){return!a?null:h.getNodesByParamFuzzy(d,c?c[d.data.key.children]:h.getNodes(d),a,b)},getNodesByFilter:function(a,b,c,e){b=!!b;return!a||typeof a!="function"?b?null:[]:h.getNodesByFilter(d,c?c[d.data.key.children]:h.getNodes(d),a,b,e)},getNodeIndex:function(a){if(!a)return null;for(var b=d.data.key.children,c=a.parentTId?a.getParentNode():h.getRoot(d),e=0,i=c[b].length;e0?i.createNodes(d, +0,b[a]):d.async.enable&&d.async.url&&d.async.url!==""&&i.asyncNode(d);return c}};var N=p.fn.zTree,k=j.$,e=N.consts})(jQuery); + +/* + * JQuery zTree excheck v3.5.15 + * http://zTree.me/ + * + * Copyright (c) 2010 Hunter.z + * + * Licensed same as jquery - MIT License + * http://www.opensource.org/licenses/mit-license.php + * + * email: hunter.z@263.net + * Date: 2013-10-15 + */ +(function(m){var p,q,r,o={event:{CHECK:"ztree_check"},id:{CHECK:"_check"},checkbox:{STYLE:"checkbox",DEFAULT:"chk",DISABLED:"disable",FALSE:"false",TRUE:"true",FULL:"full",PART:"part",FOCUS:"focus"},radio:{STYLE:"radio",TYPE_ALL:"all",TYPE_LEVEL:"level"}},v={check:{enable:!1,autoCheckTrigger:!1,chkStyle:o.checkbox.STYLE,nocheckInherit:!1,chkDisabledInherit:!1,radioType:o.radio.TYPE_LEVEL,chkboxType:{Y:"ps",N:"ps"}},data:{key:{checked:"checked"}},callback:{beforeCheck:null,onCheck:null}};p=function(b, +a){if(a.chkDisabled===!0)return!1;var c=f.getSetting(b.data.treeId),d=c.data.key.checked;if(k.apply(c.callback.beforeCheck,[c.treeId,a],!0)==!1)return!0;a[d]=!a[d];e.checkNodeRelation(c,a);d=n(a,j.id.CHECK,c);e.setChkClass(c,d,a);e.repairParentChkClassWithSelf(c,a);c.treeObj.trigger(j.event.CHECK,[b,c.treeId,a]);return!0};q=function(b,a){if(a.chkDisabled===!0)return!1;var c=f.getSetting(b.data.treeId),d=n(a,j.id.CHECK,c);a.check_Focus=!0;e.setChkClass(c,d,a);return!0};r=function(b,a){if(a.chkDisabled=== +!0)return!1;var c=f.getSetting(b.data.treeId),d=n(a,j.id.CHECK,c);a.check_Focus=!1;e.setChkClass(c,d,a);return!0};m.extend(!0,m.fn.zTree.consts,o);m.extend(!0,m.fn.zTree._z,{tools:{},view:{checkNodeRelation:function(b,a){var c,d,h,i=b.data.key.children,l=b.data.key.checked;c=j.radio;if(b.check.chkStyle==c.STYLE){var g=f.getRadioCheckedList(b);if(a[l])if(b.check.radioType==c.TYPE_ALL){for(d=g.length-1;d>=0;d--)c=g[d],c[l]=!1,g.splice(d,1),e.setChkClass(b,n(c,j.id.CHECK,b),c),c.parentTId!=a.parentTId&& +e.repairParentChkClassWithSelf(b,c);g.push(a)}else{g=a.parentTId?a.getParentNode():f.getRoot(b);for(d=0,h=g[i].length;d-1)&&e.setSonNodeCheckBox(b,a,!0),!a[l]&&(!a[i]||a[i].length==0||b.check.chkboxType.N.indexOf("s")>-1)&&e.setSonNodeCheckBox(b,a,!1),a[l]&& +b.check.chkboxType.Y.indexOf("p")>-1&&e.setParentNodeCheckBox(b,a,!0),!a[l]&&b.check.chkboxType.N.indexOf("p")>-1&&e.setParentNodeCheckBox(b,a,!1)},makeChkClass:function(b,a){var c=b.data.key.checked,d=j.checkbox,h=j.radio,i="",i=a.chkDisabled===!0?d.DISABLED:a.halfCheck?d.PART:b.check.chkStyle==h.STYLE?a.check_Child_State<1?d.FULL:d.PART:a[c]?a.check_Child_State===2||a.check_Child_State===-1?d.FULL:d.PART:a.check_Child_State<1?d.FULL:d.PART,c=b.check.chkStyle+"_"+(a[c]?d.TRUE:d.FALSE)+"_"+i,c=a.check_Focus&& +a.chkDisabled!==!0?c+"_"+d.FOCUS:c;return j.className.BUTTON+" "+d.DEFAULT+" "+c},repairAllChk:function(b,a){if(b.check.enable&&b.check.chkStyle===j.checkbox.STYLE)for(var c=b.data.key.checked,d=b.data.key.children,h=f.getRoot(b),i=0,l=h[d].length;i0?e.repairParentChkClass(b,a[c][0]):e.repairParentChkClass(b,a)}},repairSonChkDisabled:function(b,a,c,d){if(a){var h=b.data.key.children;if(a.chkDisabled!=c)a.chkDisabled=c;e.repairChkClass(b,a);if(a[h]&&d)for(var i=0,l=a[h].length;i0){l=!1;break}l&&e.setParentNodeCheckBox(b,a.getParentNode(),c,d)}},setSonNodeCheckBox:function(b,a,c,d){if(a){var h=b.data.key.children,i=b.data.key.checked,l=n(a,j.id.CHECK,b);d||(d=a);var g=!1;if(a[h])for(var k=0,m=a[h].length;k0?c?2:0:-1}else a.check_Child_State=-1;e.setChkClass(b,l,a);b.check.autoCheckTrigger&&a!=d&&a.nocheck!==!0&&a.chkDisabled!==!0&&b.treeObj.trigger(j.event.CHECK,[null,b.treeId,a])}}}},event:{},data:{getRadioCheckedList:function(b){for(var a=f.getRoot(b).radioCheckedList,c=0,d=a.length;c-1&&a.check_Child_State<2:a.check_Child_State>0}},getTreeCheckedNodes:function(b,a,c,d){if(!a)return[];for(var h=b.data.key.children,i=b.data.key.checked,e=c&&b.check.chkStyle==j.radio.STYLE&&b.check.radioType==j.radio.TYPE_ALL, +d=!d?[]:d,g=0,k=a.length;g0)break}return d},getTreeChangeCheckedNodes:function(b,a,c){if(!a)return[];for(var d=b.data.key.children,h=b.data.key.checked,c=!c?[]:c,i=0,e=a.length;i0?2:0,f==2){h=2;break}else f==0&&(h=0);else if(b.check.chkStyle==j.checkbox.STYLE)if(f=g.nocheck===!0||g.chkDisabled===!0?g.check_Child_State:g.halfCheck===!0?1:g[d]?g.check_Child_State===-1||g.check_Child_State===2?2:1:g.check_Child_State>0?1:0,f===1){h=1;break}else if(f=== +2&&h>-1&&i>0&&f!==h){h=1;break}else if(h===2&&f>-1&&f<2){h=1;break}else f>-1&&(h=f)}a.check_Child_State=h}}}});var m=m.fn.zTree,k=m._z.tools,j=m.consts,e=m._z.view,f=m._z.data,n=k.$;f.exSetting(v);f.addInitBind(function(b){b.treeObj.bind(j.event.CHECK,function(a,c,d,h){k.apply(b.callback.onCheck,[c?c:a,d,h])})});f.addInitUnBind(function(b){b.treeObj.unbind(j.event.CHECK)});f.addInitCache(function(){});f.addInitNode(function(b,a,c,d){if(c){a=b.data.key.checked;typeof c[a]=="string"&&(c[a]=k.eqs(c[a], +"true"));c[a]=!!c[a];c.checkedOld=c[a];if(typeof c.nocheck=="string")c.nocheck=k.eqs(c.nocheck,"true");c.nocheck=!!c.nocheck||b.check.nocheckInherit&&d&&!!d.nocheck;if(typeof c.chkDisabled=="string")c.chkDisabled=k.eqs(c.chkDisabled,"true");c.chkDisabled=!!c.chkDisabled||b.check.chkDisabledInherit&&d&&!!d.chkDisabled;if(typeof c.halfCheck=="string")c.halfCheck=k.eqs(c.halfCheck,"true");c.halfCheck=!!c.halfCheck;c.check_Child_State=-1;c.check_Focus=!1;c.getCheckStatus=function(){return f.getCheckStatus(b, +c)};b.check.chkStyle==j.radio.STYLE&&b.check.radioType==j.radio.TYPE_ALL&&c[a]&&f.getRoot(b).radioCheckedList.push(c)}});f.addInitProxy(function(b){var a=b.target,c=f.getSetting(b.data.treeId),d="",h=null,e="",l=null;if(k.eqs(b.type,"mouseover")){if(c.check.enable&&k.eqs(a.tagName,"span")&&a.getAttribute("treeNode"+j.id.CHECK)!==null)d=k.getNodeMainDom(a).id,e="mouseoverCheck"}else if(k.eqs(b.type,"mouseout")){if(c.check.enable&&k.eqs(a.tagName,"span")&&a.getAttribute("treeNode"+j.id.CHECK)!==null)d= +k.getNodeMainDom(a).id,e="mouseoutCheck"}else if(k.eqs(b.type,"click")&&c.check.enable&&k.eqs(a.tagName,"span")&&a.getAttribute("treeNode"+j.id.CHECK)!==null)d=k.getNodeMainDom(a).id,e="checkNode";if(d.length>0)switch(h=f.getNodeCache(c,d),e){case "checkNode":l=p;break;case "mouseoverCheck":l=q;break;case "mouseoutCheck":l=r}return{stop:e==="checkNode",node:h,nodeEventType:e,nodeEventCallback:l,treeEventType:"",treeEventCallback:null}},!0);f.addInitRoot(function(b){f.getRoot(b).radioCheckedList=[]}); +f.addBeforeA(function(b,a,c){b.check.enable&&(f.makeChkFlag(b,a),c.push(""))});f.addZTreeTools(function(b,a){a.checkNode=function(a,c,i,f){var g=b.data.key.checked;if(a.chkDisabled!==!0&&(c!==!0&&c!==!1&&(c=!a[g]),f=!!f,(a[g]!==c||i)&&!(f&&k.apply(this.setting.callback.beforeCheck,[b.treeId,a],!0)==!1)&&k.uCanDo(this.setting)&&b.check.enable&&a.nocheck!==!0))a[g]= +c,c=n(a,j.id.CHECK,b),(i||b.check.chkStyle===j.radio.STYLE)&&e.checkNodeRelation(b,a),e.setChkClass(b,c,a),e.repairParentChkClassWithSelf(b,a),f&&b.treeObj.trigger(j.event.CHECK,[null,b.treeId,a])};a.checkAllNodes=function(a){e.repairAllChk(b,!!a)};a.getCheckedNodes=function(a){var c=b.data.key.children;return f.getTreeCheckedNodes(b,f.getRoot(b)[c],a!==!1)};a.getChangeCheckedNodes=function(){var a=b.data.key.children;return f.getTreeChangeCheckedNodes(b,f.getRoot(b)[a])};a.setChkDisabled=function(a, +c,f,j){c=!!c;f=!!f;e.repairSonChkDisabled(b,a,c,!!j);e.repairParentChkDisabled(b,a.getParentNode(),c,f)};var c=a.updateNode;a.updateNode=function(d,f){c&&c.apply(a,arguments);if(d&&b.check.enable&&n(d,b).get(0)&&k.uCanDo(b)){var i=n(d,j.id.CHECK,b);(f==!0||b.check.chkStyle===j.radio.STYLE)&&e.checkNodeRelation(b,d);e.setChkClass(b,i,d);e.repairParentChkClassWithSelf(b,d)}}});var s=e.createNodes;e.createNodes=function(b,a,c,d){s&&s.apply(e,arguments);c&&e.repairParentChkClassWithSelf(b,d)};var t=e.removeNode; +e.removeNode=function(b,a){var c=a.getParentNode();t&&t.apply(e,arguments);a&&c&&(e.repairChkClass(b,c),e.repairParentChkClass(b,c))};var u=e.appendNodes;e.appendNodes=function(b,a,c,d,h,i){var j="";u&&(j=u.apply(e,arguments));d&&f.makeChkFlag(b,d);return j}})(jQuery); + +/* + * JQuery zTree exedit v3.5.15 + * http://zTree.me/ + * + * Copyright (c) 2010 Hunter.z + * + * Licensed same as jquery - MIT License + * http://www.opensource.org/licenses/mit-license.php + * + * email: hunter.z@263.net + * Date: 2013-10-15 + */ +(function(w){var I={event:{DRAG:"ztree_drag",DROP:"ztree_drop",REMOVE:"ztree_remove",RENAME:"ztree_rename"},id:{EDIT:"_edit",INPUT:"_input",REMOVE:"_remove"},move:{TYPE_INNER:"inner",TYPE_PREV:"prev",TYPE_NEXT:"next"},node:{CURSELECTED_EDIT:"curSelectedNode_Edit",TMPTARGET_TREE:"tmpTargetzTree",TMPTARGET_NODE:"tmpTargetNode"}},x={onHoverOverNode:function(b,a){var c=n.getSetting(b.data.treeId),d=n.getRoot(c);if(d.curHoverNode!=a)x.onHoverOutNode(b);d.curHoverNode=a;e.addHoverDom(c,a)},onHoverOutNode:function(b){var b= +n.getSetting(b.data.treeId),a=n.getRoot(b);if(a.curHoverNode&&!n.isSelectedNode(b,a.curHoverNode))e.removeTreeDom(b,a.curHoverNode),a.curHoverNode=null},onMousedownNode:function(b,a){function c(b){if(B.dragFlag==0&&Math.abs(N-b.clientX)1){var j=m[0].parentTId?m[0].getParentNode()[i]:n.getNodes(f);i=[];for(a=0,c=j.length;a-1&&k+1!==a&&(o=!1),i.push(j[a]),k=a),m.length===i.length){m=i;break}}o&&(H=m[0].getPreNode(),R=m[m.length-1].getNextNode());C=p("
                                                                                                                                                                                                                                                                                                    ", +f);for(a=0,c=m.length;a0),e.removeTreeDom(f,o),k=p("
                                                                                                                                                                                                                                                                                                  • ",f),k.append(p(o,d.id.A,f).clone()),k.css("padding","0"),k.children("#"+o.tId+d.id.A).removeClass(d.node.CURSELECTED),C.append(k),a==f.edit.drag.maxShowNodeNum-1){k=p("
                                                                                                                                                                                                                                                                                                  • ...
                                                                                                                                                                                                                                                                                                  • ",f);C.append(k);break}C.attr("id",m[0].tId+d.id.UL+"_tmp");C.addClass(f.treeObj.attr("class"));C.appendTo(M);A=p("", +f);A.attr("id","zTreeMove_arrow_tmp");A.appendTo(M);f.treeObj.trigger(d.event.DRAG,[b,f.treeId,m])}if(B.dragFlag==1){s&&A.attr("id")==b.target.id&&u&&b.clientX+F.scrollLeft()+2>w("#"+u+d.id.A,s).offset().left?(o=w("#"+u+d.id.A,s),b.target=o.length>0?o.get(0):b.target):s&&(s.removeClass(d.node.TMPTARGET_TREE),u&&w("#"+u+d.id.A,s).removeClass(d.node.TMPTARGET_NODE+"_"+d.move.TYPE_PREV).removeClass(d.node.TMPTARGET_NODE+"_"+I.move.TYPE_NEXT).removeClass(d.node.TMPTARGET_NODE+"_"+I.move.TYPE_INNER)); +u=s=null;J=!1;h=f;o=n.getSettings();for(var D in o)if(o[D].treeId&&o[D].edit.enable&&o[D].treeId!=f.treeId&&(b.target.id==o[D].treeId||w(b.target).parents("#"+o[D].treeId).length>0))J=!0,h=o[D];D=F.scrollTop();k=F.scrollLeft();i=h.treeObj.offset();a=h.treeObj.get(0).scrollHeight;o=h.treeObj.get(0).scrollWidth;c=b.clientY+D-i.top;var q=h.treeObj.height()+i.top-b.clientY-D,r=b.clientX+k-i.left,x=h.treeObj.width()+i.left-b.clientX-k;i=cf.edit.drag.borderMin;var j=qf.edit.drag.borderMin,K=rf.edit.drag.borderMin,G=xf.edit.drag.borderMin,q=c>f.edit.drag.borderMin&&q>f.edit.drag.borderMin&&r>f.edit.drag.borderMin&&x>f.edit.drag.borderMin,r=i&&h.treeObj.scrollTop()<=0,x=j&&h.treeObj.scrollTop()+h.treeObj.height()+10>=a,P=K&&h.treeObj.scrollLeft()<=0,Q=G&&h.treeObj.scrollLeft()+h.treeObj.width()+10>=o;if(b.target&&g.isChildOrSelf(b.target,h.treeId)){for(var E=b.target;E&&E.tagName&&!g.eqs(E.tagName,"li")&&E.id!= +h.treeId;)E=E.parentNode;var S=!0;for(a=0,c=m.length;a0){S=!1;break}if(S&&b.target&&g.isChildOrSelf(b.target,E.id+d.id.A))s=w(E),u=E.id}o=m[0];if(q&&g.isChildOrSelf(b.target,h.treeId)){if(!s&&(b.target.id==h.treeId||r||x||P||Q)&&(J||!J&&o.parentTId))s=h.treeObj;i?h.treeObj.scrollTop(h.treeObj.scrollTop()-10):j&&h.treeObj.scrollTop(h.treeObj.scrollTop()+10);K?h.treeObj.scrollLeft(h.treeObj.scrollLeft()-10):G&&h.treeObj.scrollLeft(h.treeObj.scrollLeft()+ +10);s&&s!=h.treeObj&&s.offset().left=-0.2)&&o?(a=1-A.width(),i=j-A.height()/2,v=d.move.TYPE_PREV):(G==0||b>=G&&b<=1.2)&&a?(a=1-A.width(),i=i==null||y.isParent&&y.open?j+c.height()-A.height()/2:i.offset().top-A.height()/2,v=d.move.TYPE_NEXT):(a=5-A.width(),i=j,v=d.move.TYPE_INNER);A.css({display:"block",top:i+"px",left:k+a+"px"});c.addClass(d.node.TMPTARGET_NODE+"_"+v);if(T!=u||U!=v)L=(new Date).getTime();if(y&&y.isParent&&v==d.move.TYPE_INNER&&(b=!0,window.zTreeMoveTimer&&window.zTreeMoveTargetNodeTId!== +y.tId?(clearTimeout(window.zTreeMoveTimer),window.zTreeMoveTargetNodeTId=null):window.zTreeMoveTimer&&window.zTreeMoveTargetNodeTId===y.tId&&(b=!1),b))window.zTreeMoveTimer=setTimeout(function(){v==d.move.TYPE_INNER&&y&&y.isParent&&!y.open&&(new Date).getTime()-L>h.edit.drag.autoOpenTime&&g.apply(h.callback.beforeDragOpen,[h.treeId,y],!0)&&(e.switchNode(h,y),h.edit.drag.autoExpandTrigger&&h.treeObj.trigger(d.event.EXPAND,[h.treeId,y]))},h.edit.drag.autoOpenTime+50),window.zTreeMoveTargetNodeTId=y.tId}}else if(v= +d.move.TYPE_INNER,s&&g.apply(h.edit.drag.inner,[h.treeId,m,null],!!h.edit.drag.inner)?s.addClass(d.node.TMPTARGET_TREE):s=null,A.css({display:"none"}),window.zTreeMoveTimer)clearTimeout(window.zTreeMoveTimer),window.zTreeMoveTargetNodeTId=null;T=u;U=v}return!1}function l(b){if(window.zTreeMoveTimer)clearTimeout(window.zTreeMoveTimer),window.zTreeMoveTargetNodeTId=null;U=T=null;F.unbind("mousemove",c);F.unbind("mouseup",l);F.unbind("selectstart",k);M.css("cursor","auto");s&&(s.removeClass(d.node.TMPTARGET_TREE), +u&&w("#"+u+d.id.A,s).removeClass(d.node.TMPTARGET_NODE+"_"+d.move.TYPE_PREV).removeClass(d.node.TMPTARGET_NODE+"_"+I.move.TYPE_NEXT).removeClass(d.node.TMPTARGET_NODE+"_"+I.move.TYPE_INNER));g.showIfameMask(f,!1);t.showHoverDom=!0;if(B.dragFlag!=0){B.dragFlag=0;var a,i,j;for(a=0,i=m.length;a +0;)c.dragMaskList[0].remove(),c.dragMaskList.shift();if(a)for(var d=p("iframe",b),e=0,i=d.length;e
                                                                                                                                                                                                                                                                                                    ",b);j.appendTo(p("body",b));c.dragMaskList.push(j)}}},view:{addEditBtn:function(b,a){if(!(a.editNameFlag||p(a,d.id.EDIT,b).length>0)&&g.apply(b.edit.showRenameBtn,[b.treeId,a],b.edit.showRenameBtn)){var c=p(a,d.id.A, +b),l="";c.append(l);p(a,d.id.EDIT,b).bind("click",function(){if(!g.uCanDo(b)||g.apply(b.callback.beforeEditName,[b.treeId,a],!0)==!1)return!1;e.editNode(b,a);return!1}).show()}},addRemoveBtn:function(b,a){if(!(a.editNameFlag||p(a,d.id.REMOVE,b).length>0)&&g.apply(b.edit.showRemoveBtn,[b.treeId,a],b.edit.showRemoveBtn)){var c= +p(a,d.id.A,b),l="";c.append(l);p(a,d.id.REMOVE,b).bind("click",function(){if(!g.uCanDo(b)||g.apply(b.callback.beforeRemove,[b.treeId,a],!0)==!1)return!1;e.removeNode(b,a);b.treeObj.trigger(d.event.REMOVE,[b.treeId,a]);return!1}).bind("mousedown",function(){return!0}).show()}},addHoverDom:function(b,a){if(n.getRoots().showHoverDom)a.isHover= +!0,b.edit.enable&&(e.addEditBtn(b,a),e.addRemoveBtn(b,a)),g.apply(b.view.addHoverDom,[b.treeId,a])},cancelCurEditNode:function(b,a,c){var l=n.getRoot(b),k=b.data.key.name,i=l.curEditNode;if(i){var j=l.curEditInput,a=a?a:c?i[k]:j.val();if(g.apply(b.callback.beforeRename,[b.treeId,i,a,c],!0)===!1)return!1;else i[k]=a,b.treeObj.trigger(d.event.RENAME,[b.treeId,i,c]);p(i,d.id.A,b).removeClass(d.node.CURSELECTED_EDIT);j.unbind();e.setNodeName(b,i);i.editNameFlag=!1;l.curEditNode=null;l.curEditInput=null; +e.selectNode(b,i,!1)}return l.noSelection=!0},editNode:function(b,a){var c=n.getRoot(b);e.editNodeBlur=!1;if(n.isSelectedNode(b,a)&&c.curEditNode==a&&a.editNameFlag)setTimeout(function(){g.inputFocus(c.curEditInput)},0);else{var l=b.data.key.name;a.editNameFlag=!0;e.removeTreeDom(b,a);e.cancelCurEditNode(b);e.selectNode(b,a,!1);p(a,d.id.SPAN,b).html("");var k=p(a,d.id.INPUT,b);k.attr("value",a[l]);b.edit.editNameSelectAll? +g.inputSelect(k):g.inputFocus(k);k.bind("blur",function(){e.editNodeBlur||e.cancelCurEditNode(b)}).bind("keydown",function(a){a.keyCode=="13"?(e.editNodeBlur=!0,e.cancelCurEditNode(b)):a.keyCode=="27"&&e.cancelCurEditNode(b,null,!0)}).bind("click",function(){return!1}).bind("dblclick",function(){return!1});p(a,d.id.A,b).addClass(d.node.CURSELECTED_EDIT);c.curEditInput=k;c.noSelection=!1;c.curEditNode=a}},moveNode:function(b,a,c,l,k,i){var j=n.getRoot(b),f=b.data.key.children;if(a!=c&&(!b.data.keep.leaf|| +!a||a.isParent||l!=d.move.TYPE_INNER)){var g=c.parentTId?c.getParentNode():j,t=a===null||a==j;t&&a===null&&(a=j);if(t)l=d.move.TYPE_INNER;j=a.parentTId?a.getParentNode():j;if(l!=d.move.TYPE_PREV&&l!=d.move.TYPE_NEXT)l=d.move.TYPE_INNER;if(l==d.move.TYPE_INNER)if(t)c.parentTId=null;else{if(!a.isParent)a.isParent=!0,a.open=!!a.open,e.setNodeLineIcos(b,a);c.parentTId=a.tId}var q;t?q=t=b.treeObj:(!i&&l==d.move.TYPE_INNER?e.expandCollapseNode(b,a,!0,!1):i||e.expandCollapseNode(b,a.getParentNode(),!0,!1), +t=p(a,b),q=p(a,d.id.UL,b),t.get(0)&&!q.get(0)&&(q=[],e.makeUlHtml(b,a,q,""),t.append(q.join(""))),q=p(a,d.id.UL,b));var r=p(c,b);r.get(0)?t.get(0)||r.remove():r=e.appendNodes(b,c.level,[c],null,!1,!0).join("");q.get(0)&&l==d.move.TYPE_INNER?q.append(r):t.get(0)&&l==d.move.TYPE_PREV?t.before(r):t.get(0)&&l==d.move.TYPE_NEXT&&t.after(r);var m=-1,w=0,x=null,t=null,C=c.level;if(c.isFirstNode){if(m=0,g[f].length>1)x=g[f][1],x.isFirstNode=!0}else if(c.isLastNode)m=g[f].length-1,x=g[f][m-1],x.isLastNode= +!0;else for(q=0,r=g[f].length;q=0&&g[f].splice(m,1);if(l!=d.move.TYPE_INNER)for(q=0,r=j[f].length;q0)t=a[f][a[f].length-1],t.isLastNode=!1;a[f].splice(a[f].length,0,c);c.isLastNode=!0;c.isFirstNode=a[f].length==1}else a.isFirstNode&&l==d.move.TYPE_PREV?(j[f].splice(w,0,c),t=a,t.isFirstNode=!1,c.parentTId=a.parentTId,c.isFirstNode=!0,c.isLastNode=!1):a.isLastNode&&l==d.move.TYPE_NEXT? +(j[f].splice(w+1,0,c),t=a,t.isLastNode=!1,c.parentTId=a.parentTId,c.isFirstNode=!1,c.isLastNode=!0):(l==d.move.TYPE_PREV?j[f].splice(w,0,c):j[f].splice(w+1,0,c),c.parentTId=a.parentTId,c.isFirstNode=!1,c.isLastNode=!1);n.fixPIdKeyValue(b,c);n.setSonNodeLevel(b,c.getParentNode(),c);e.setNodeLineIcos(b,c);e.repairNodeLevelClass(b,c,C);!b.data.keep.parent&&g[f].length<1?(g.isParent=!1,g.open=!1,a=p(g,d.id.UL,b),l=p(g,d.id.SWITCH,b),f=p(g,d.id.ICON,b),e.replaceSwitchClass(g,l,d.folder.DOCU),e.replaceIcoClass(g, +f,d.folder.DOCU),a.css("display","none")):x&&e.setNodeLineIcos(b,x);t&&e.setNodeLineIcos(b,t);b.check&&b.check.enable&&e.repairChkClass&&(e.repairChkClass(b,g),e.repairParentChkClassWithSelf(b,g),g!=c.parent&&e.repairParentChkClassWithSelf(b,c));i||e.expandCollapseParentNode(b,c.getParentNode(),!0,k)}},removeEditBtn:function(b,a){p(a,d.id.EDIT,b).unbind().remove()},removeRemoveBtn:function(b,a){p(a,d.id.REMOVE,b).unbind().remove()},removeTreeDom:function(b,a){a.isHover=!1;e.removeEditBtn(b,a);e.removeRemoveBtn(b, +a);g.apply(b.view.removeHoverDom,[b.treeId,a])},repairNodeLevelClass:function(b,a,c){if(c!==a.level){var e=p(a,b),g=p(a,d.id.A,b),b=p(a,d.id.UL,b),c=d.className.LEVEL+c,a=d.className.LEVEL+a.level;e.removeClass(c);e.addClass(a);g.removeClass(c);g.addClass(a);b.removeClass(c);b.addClass(a)}},selectNodes:function(b,a){for(var c=0,d=a.length;c0)}},event:{},data:{setSonNodeLevel:function(b,a,c){if(c){var d=b.data.key.children;c.level=a?a.level+1:0;if(c[d])for(var a=0,e=c[d].length;a< +e;a++)c[d][a]&&n.setSonNodeLevel(b,c,c[d][a])}}}});var H=w.fn.zTree,g=H._z.tools,d=H.consts,e=H._z.view,n=H._z.data,p=g.$;n.exSetting({edit:{enable:!1,editNameSelectAll:!1,showRemoveBtn:!0,showRenameBtn:!0,removeTitle:"remove",renameTitle:"rename",drag:{autoExpandTrigger:!1,isCopy:!0,isMove:!0,prev:!0,next:!0,inner:!0,minMoveSize:5,borderMax:10,borderMin:-5,maxShowNodeNum:5,autoOpenTime:500}},view:{addHoverDom:null,removeHoverDom:null},callback:{beforeDrag:null,beforeDragOpen:null,beforeDrop:null, +beforeEditName:null,beforeRename:null,onDrag:null,onDrop:null,onRename:null}});n.addInitBind(function(b){var a=b.treeObj,c=d.event;a.bind(c.RENAME,function(a,c,d,e){g.apply(b.callback.onRename,[a,c,d,e])});a.bind(c.REMOVE,function(a,c,d){g.apply(b.callback.onRemove,[a,c,d])});a.bind(c.DRAG,function(a,c,d,e){g.apply(b.callback.onDrag,[c,d,e])});a.bind(c.DROP,function(a,c,d,e,f,n,p){g.apply(b.callback.onDrop,[c,d,e,f,n,p])})});n.addInitUnBind(function(b){var b=b.treeObj,a=d.event;b.unbind(a.RENAME); +b.unbind(a.REMOVE);b.unbind(a.DRAG);b.unbind(a.DROP)});n.addInitCache(function(){});n.addInitNode(function(b,a,c){if(c)c.isHover=!1,c.editNameFlag=!1});n.addInitProxy(function(b){var a=b.target,c=n.getSetting(b.data.treeId),e=b.relatedTarget,k="",i=null,j="",f=null,p=null;if(g.eqs(b.type,"mouseover")){if(p=g.getMDom(c,a,[{tagName:"a",attrName:"treeNode"+d.id.A}]))k=g.getNodeMainDom(p).id,j="hoverOverNode"}else if(g.eqs(b.type,"mouseout"))p=g.getMDom(c,e,[{tagName:"a",attrName:"treeNode"+d.id.A}]), +p||(k="remove",j="hoverOutNode");else if(g.eqs(b.type,"mousedown")&&(p=g.getMDom(c,a,[{tagName:"a",attrName:"treeNode"+d.id.A}])))k=g.getNodeMainDom(p).id,j="mousedownNode";if(k.length>0)switch(i=n.getNodeCache(c,k),j){case "mousedownNode":f=x.onMousedownNode;break;case "hoverOverNode":f=x.onHoverOverNode;break;case "hoverOutNode":f=x.onHoverOutNode}return{stop:!1,node:i,nodeEventType:j,nodeEventCallback:f,treeEventType:"",treeEventCallback:null}});n.addInitRoot(function(b){var b=n.getRoot(b),a=n.getRoots(); +b.curEditNode=null;b.curEditInput=null;b.curHoverNode=null;b.dragFlag=0;b.dragNodeShowBefore=[];b.dragMaskList=[];a.showHoverDom=!0});n.addZTreeTools(function(b,a){a.cancelEditName=function(a){n.getRoot(b).curEditNode&&e.cancelCurEditNode(b,a?a:null,!0)};a.copyNode=function(a,l,k,i){if(!l)return null;if(a&&!a.isParent&&b.data.keep.leaf&&k===d.move.TYPE_INNER)return null;var j=g.clone(l);if(!a)a=null,k=d.move.TYPE_INNER;k==d.move.TYPE_INNER?(l=function(){e.addNodes(b,a,[j],i)},g.canAsync(b,a)?e.asyncNode(b, +a,i,l):l()):(e.addNodes(b,a.parentNode,[j],i),e.moveNode(b,a,j,k,!1,i));return j};a.editName=function(a){a&&a.tId&&a===n.getNodeCache(b,a.tId)&&(a.parentTId&&e.expandCollapseParentNode(b,a.getParentNode(),!0),e.editNode(b,a))};a.moveNode=function(a,l,k,i){function j(){e.moveNode(b,a,l,k,!1,i)}if(!l)return l;if(a&&!a.isParent&&b.data.keep.leaf&&k===d.move.TYPE_INNER)return null;else if(a&&(l.parentTId==a.tId&&k==d.move.TYPE_INNER||p(l,b).find("#"+a.tId).length>0))return null;else a||(a=null);g.canAsync(b, +a)&&k===d.move.TYPE_INNER?e.asyncNode(b,a,i,j):j();return l};a.setEditable=function(a){b.edit.enable=a;return this.refresh()}});var N=e.cancelPreSelectedNode;e.cancelPreSelectedNode=function(b,a){for(var c=n.getRoot(b).curSelectedList,d=0,g=c.length;d 0 && tId.length == 0) { + tmp = tools.getMDom(setting, target, [{tagName:"a", attrName:"treeNode"+consts.id.A}]); + if (tmp) {tId = tools.getNodeMainDom(tmp).id;} + } + // event to node + if (tId.length>0) { + node = data.getNodeCache(setting, tId); + switch (nodeEventType) { + case "switchNode" : + if (!node.isParent) { + nodeEventType = ""; + } else if (tools.eqs(event.type, "click") + || (tools.eqs(event.type, "dblclick") && tools.apply(setting.view.dblClickExpand, [setting.treeId, node], setting.view.dblClickExpand))) { + nodeEventCallback = handler.onSwitchNode; + } else { + nodeEventType = ""; + } + break; + case "clickNode" : + nodeEventCallback = handler.onClickNode; + break; + } + } + // event to zTree + switch (treeEventType) { + case "mousedown" : + treeEventCallback = handler.onZTreeMousedown; + break; + case "mouseup" : + treeEventCallback = handler.onZTreeMouseup; + break; + case "dblclick" : + treeEventCallback = handler.onZTreeDblclick; + break; + case "contextmenu" : + treeEventCallback = handler.onZTreeContextmenu; + break; + } + var proxyResult = { + stop: false, + node: node, + nodeEventType: nodeEventType, + nodeEventCallback: nodeEventCallback, + treeEventType: treeEventType, + treeEventCallback: treeEventCallback + }; + return proxyResult + }, + //default init node of core + _initNode = function(setting, level, n, parentNode, isFirstNode, isLastNode, openFlag) { + if (!n) return; + var r = data.getRoot(setting), + childKey = setting.data.key.children; + n.level = level; + n.tId = setting.treeId + "_" + (++r.zId); + n.parentTId = parentNode ? parentNode.tId : null; + n.open = (typeof n.open == "string") ? tools.eqs(n.open, "true") : !!n.open; + if (n[childKey] && n[childKey].length > 0) { + n.isParent = true; + n.zAsync = true; + } else { + n.isParent = (typeof n.isParent == "string") ? tools.eqs(n.isParent, "true") : !!n.isParent; + n.open = (n.isParent && !setting.async.enable) ? n.open : false; + n.zAsync = !n.isParent; + } + n.isFirstNode = isFirstNode; + n.isLastNode = isLastNode; + n.getParentNode = function() {return data.getNodeCache(setting, n.parentTId);}; + n.getPreNode = function() {return data.getPreNode(setting, n);}; + n.getNextNode = function() {return data.getNextNode(setting, n);}; + n.isAjaxing = false; + data.fixPIdKeyValue(setting, n); + }, + _init = { + bind: [_bindEvent], + unbind: [_unbindEvent], + caches: [_initCache], + nodes: [_initNode], + proxys: [_eventProxy], + roots: [_initRoot], + beforeA: [], + afterA: [], + innerBeforeA: [], + innerAfterA: [], + zTreeTools: [] + }, + //method of operate data + data = { + addNodeCache: function(setting, node) { + data.getCache(setting).nodes[data.getNodeCacheId(node.tId)] = node; + }, + getNodeCacheId: function(tId) { + return tId.substring(tId.lastIndexOf("_")+1); + }, + addAfterA: function(afterA) { + _init.afterA.push(afterA); + }, + addBeforeA: function(beforeA) { + _init.beforeA.push(beforeA); + }, + addInnerAfterA: function(innerAfterA) { + _init.innerAfterA.push(innerAfterA); + }, + addInnerBeforeA: function(innerBeforeA) { + _init.innerBeforeA.push(innerBeforeA); + }, + addInitBind: function(bindEvent) { + _init.bind.push(bindEvent); + }, + addInitUnBind: function(unbindEvent) { + _init.unbind.push(unbindEvent); + }, + addInitCache: function(initCache) { + _init.caches.push(initCache); + }, + addInitNode: function(initNode) { + _init.nodes.push(initNode); + }, + addInitProxy: function(initProxy, isFirst) { + if (!!isFirst) { + _init.proxys.splice(0,0,initProxy); + } else { + _init.proxys.push(initProxy); + } + }, + addInitRoot: function(initRoot) { + _init.roots.push(initRoot); + }, + addNodesData: function(setting, parentNode, nodes) { + var childKey = setting.data.key.children; + if (!parentNode[childKey]) parentNode[childKey] = []; + if (parentNode[childKey].length > 0) { + parentNode[childKey][parentNode[childKey].length - 1].isLastNode = false; + view.setNodeLineIcos(setting, parentNode[childKey][parentNode[childKey].length - 1]); + } + parentNode.isParent = true; + parentNode[childKey] = parentNode[childKey].concat(nodes); + }, + addSelectedNode: function(setting, node) { + var root = data.getRoot(setting); + if (!data.isSelectedNode(setting, node)) { + root.curSelectedList.push(node); + } + }, + addCreatedNode: function(setting, node) { + if (!!setting.callback.onNodeCreated || !!setting.view.addDiyDom) { + var root = data.getRoot(setting); + root.createdNodes.push(node); + } + }, + addZTreeTools: function(zTreeTools) { + _init.zTreeTools.push(zTreeTools); + }, + exSetting: function(s) { + $.extend(true, _setting, s); + }, + fixPIdKeyValue: function(setting, node) { + if (setting.data.simpleData.enable) { + node[setting.data.simpleData.pIdKey] = node.parentTId ? node.getParentNode()[setting.data.simpleData.idKey] : setting.data.simpleData.rootPId; + } + }, + getAfterA: function(setting, node, array) { + for (var i=0, j=_init.afterA.length; i-1) { + result.push(nodes[i]); + } + result = result.concat(data.getNodesByParamFuzzy(setting, nodes[i][childKey], key, value)); + } + return result; + }, + getNodesByFilter: function(setting, nodes, filter, isSingle, invokeParam) { + if (!nodes) return (isSingle ? null : []); + var childKey = setting.data.key.children, + result = isSingle ? null : []; + for (var i = 0, l = nodes.length; i < l; i++) { + if (tools.apply(filter, [nodes[i], invokeParam], false)) { + if (isSingle) {return nodes[i];} + result.push(nodes[i]); + } + var tmpResult = data.getNodesByFilter(setting, nodes[i][childKey], filter, isSingle, invokeParam); + if (isSingle && !!tmpResult) {return tmpResult;} + result = isSingle ? tmpResult : result.concat(tmpResult); + } + return result; + }, + getPreNode: function(setting, node) { + if (!node) return null; + var childKey = setting.data.key.children, + p = node.parentTId ? node.getParentNode() : data.getRoot(setting); + for (var i=0, l=p[childKey].length; i 0))); + }, + clone: function (obj){ + if (obj === null) return null; + var o = tools.isArray(obj) ? [] : {}; + for(var i in obj){ + o[i] = (obj[i] instanceof Date) ? new Date(obj[i].getTime()) : (typeof obj[i] === "object" ? arguments.callee(obj[i]) : obj[i]); + } + return o; + }, + eqs: function(str1, str2) { + return str1.toLowerCase() === str2.toLowerCase(); + }, + isArray: function(arr) { + return Object.prototype.toString.apply(arr) === "[object Array]"; + }, + $: function(node, exp, setting) { + if (!!exp && typeof exp != "string") { + setting = exp; + exp = ""; + } + if (typeof node == "string") { + return $(node, setting ? setting.treeObj.get(0).ownerDocument : null); + } else { + return $("#" + node.tId + exp, setting ? setting.treeObj : null); + } + }, + getMDom: function (setting, curDom, targetExpr) { + if (!curDom) return null; + while (curDom && curDom.id !== setting.treeId) { + for (var i=0, l=targetExpr.length; curDom.tagName && i 0 ); + }, + uCanDo: function(setting, e) { + return true; + } + }, + //method of operate ztree dom + view = { + addNodes: function(setting, parentNode, newNodes, isSilent) { + if (setting.data.keep.leaf && parentNode && !parentNode.isParent) { + return; + } + if (!tools.isArray(newNodes)) { + newNodes = [newNodes]; + } + if (setting.data.simpleData.enable) { + newNodes = data.transformTozTreeFormat(setting, newNodes); + } + if (parentNode) { + var target_switchObj = $$(parentNode, consts.id.SWITCH, setting), + target_icoObj = $$(parentNode, consts.id.ICON, setting), + target_ulObj = $$(parentNode, consts.id.UL, setting); + + if (!parentNode.open) { + view.replaceSwitchClass(parentNode, target_switchObj, consts.folder.CLOSE); + view.replaceIcoClass(parentNode, target_icoObj, consts.folder.CLOSE); + parentNode.open = false; + target_ulObj.css({ + "display": "none" + }); + } + + data.addNodesData(setting, parentNode, newNodes); + view.createNodes(setting, parentNode.level + 1, newNodes, parentNode); + if (!isSilent) { + view.expandCollapseParentNode(setting, parentNode, true); + } + } else { + data.addNodesData(setting, data.getRoot(setting), newNodes); + view.createNodes(setting, 0, newNodes, null); + } + }, + appendNodes: function(setting, level, nodes, parentNode, initFlag, openFlag) { + if (!nodes) return []; + var html = [], + childKey = setting.data.key.children; + for (var i = 0, l = nodes.length; i < l; i++) { + var node = nodes[i]; + if (initFlag) { + var tmpPNode = (parentNode) ? parentNode: data.getRoot(setting), + tmpPChild = tmpPNode[childKey], + isFirstNode = ((tmpPChild.length == nodes.length) && (i == 0)), + isLastNode = (i == (nodes.length - 1)); + data.initNode(setting, level, node, parentNode, isFirstNode, isLastNode, openFlag); + data.addNodeCache(setting, node); + } + + var childHtml = []; + if (node[childKey] && node[childKey].length > 0) { + //make child html first, because checkType + childHtml = view.appendNodes(setting, level + 1, node[childKey], node, initFlag, openFlag && node.open); + } + if (openFlag) { + + view.makeDOMNodeMainBefore(html, setting, node); + view.makeDOMNodeLine(html, setting, node); + data.getBeforeA(setting, node, html); + view.makeDOMNodeNameBefore(html, setting, node); + data.getInnerBeforeA(setting, node, html); + view.makeDOMNodeIcon(html, setting, node); + data.getInnerAfterA(setting, node, html); + view.makeDOMNodeNameAfter(html, setting, node); + data.getAfterA(setting, node, html); + if (node.isParent && node.open) { + view.makeUlHtml(setting, node, html, childHtml.join('')); + } + view.makeDOMNodeMainAfter(html, setting, node); + data.addCreatedNode(setting, node); + } + } + return html; + }, + appendParentULDom: function(setting, node) { + var html = [], + nObj = $$(node, setting); + if (!nObj.get(0) && !!node.parentTId) { + view.appendParentULDom(setting, node.getParentNode()); + nObj = $$(node, setting); + } + var ulObj = $$(node, consts.id.UL, setting); + if (ulObj.get(0)) { + ulObj.remove(); + } + var childKey = setting.data.key.children, + childHtml = view.appendNodes(setting, node.level+1, node[childKey], node, false, true); + view.makeUlHtml(setting, node, html, childHtml.join('')); + nObj.append(html.join('')); + }, + asyncNode: function(setting, node, isSilent, callback) { + var i, l; + if (node && !node.isParent) { + tools.apply(callback); + return false; + } else if (node && node.isAjaxing) { + return false; + } else if (tools.apply(setting.callback.beforeAsync, [setting.treeId, node], true) == false) { + tools.apply(callback); + return false; + } + if (node) { + node.isAjaxing = true; + var icoObj = $$(node, consts.id.ICON, setting); + icoObj.attr({"style":"", "class":consts.className.BUTTON + " " + consts.className.ICO_LOADING}); + } + + var tmpParam = {}; + for (i = 0, l = setting.async.autoParam.length; node && i < l; i++) { + var pKey = setting.async.autoParam[i].split("="), spKey = pKey; + if (pKey.length>1) { + spKey = pKey[1]; + pKey = pKey[0]; + } + tmpParam[spKey] = node[pKey]; + } + if (tools.isArray(setting.async.otherParam)) { + for (i = 0, l = setting.async.otherParam.length; i < l; i += 2) { + tmpParam[setting.async.otherParam[i]] = setting.async.otherParam[i + 1]; + } + } else { + for (var p in setting.async.otherParam) { + tmpParam[p] = setting.async.otherParam[p]; + } + } + + var _tmpV = data.getRoot(setting)._ver; + $.ajax({ + contentType: setting.async.contentType, + type: setting.async.type, + url: tools.apply(setting.async.url, [setting.treeId, node], setting.async.url), + data: tmpParam, + dataType: setting.async.dataType, + success: function(msg) { + if (_tmpV != data.getRoot(setting)._ver) { + return; + } + var newNodes = []; + try { + if (!msg || msg.length == 0) { + newNodes = []; + } else if (typeof msg == "string") { + newNodes = eval("(" + msg + ")"); + } else { + newNodes = msg; + } + } catch(err) { + newNodes = msg; + } + + if (node) { + node.isAjaxing = null; + node.zAsync = true; + } + view.setNodeLineIcos(setting, node); + if (newNodes && newNodes !== "") { + newNodes = tools.apply(setting.async.dataFilter, [setting.treeId, node, newNodes], newNodes); + view.addNodes(setting, node, !!newNodes ? tools.clone(newNodes) : [], !!isSilent); + } else { + view.addNodes(setting, node, [], !!isSilent); + } + setting.treeObj.trigger(consts.event.ASYNC_SUCCESS, [setting.treeId, node, msg]); + tools.apply(callback); + }, + error: function(XMLHttpRequest, textStatus, errorThrown) { + if (_tmpV != data.getRoot(setting)._ver) { + return; + } + if (node) node.isAjaxing = null; + view.setNodeLineIcos(setting, node); + setting.treeObj.trigger(consts.event.ASYNC_ERROR, [setting.treeId, node, XMLHttpRequest, textStatus, errorThrown]); + } + }); + return true; + }, + cancelPreSelectedNode: function (setting, node) { + var list = data.getRoot(setting).curSelectedList; + for (var i=0, j=list.length-1; j>=i; j--) { + if (!node || node === list[j]) { + $$(list[j], consts.id.A, setting).removeClass(consts.node.CURSELECTED); + if (node) { + data.removeSelectedNode(setting, node); + break; + } + } + } + if (!node) data.getRoot(setting).curSelectedList = []; + }, + createNodeCallback: function(setting) { + if (!!setting.callback.onNodeCreated || !!setting.view.addDiyDom) { + var root = data.getRoot(setting); + while (root.createdNodes.length>0) { + var node = root.createdNodes.shift(); + tools.apply(setting.view.addDiyDom, [setting.treeId, node]); + if (!!setting.callback.onNodeCreated) { + setting.treeObj.trigger(consts.event.NODECREATED, [setting.treeId, node]); + } + } + } + }, + createNodes: function(setting, level, nodes, parentNode) { + if (!nodes || nodes.length == 0) return; + var root = data.getRoot(setting), + childKey = setting.data.key.children, + openFlag = !parentNode || parentNode.open || !!$$(parentNode[childKey][0], setting).get(0); + root.createdNodes = []; + var zTreeHtml = view.appendNodes(setting, level, nodes, parentNode, true, openFlag); + if (!parentNode) { + setting.treeObj.append(zTreeHtml.join('')); + } else { + var ulObj = $$(parentNode, consts.id.UL, setting); + if (ulObj.get(0)) { + ulObj.append(zTreeHtml.join('')); + } + } + view.createNodeCallback(setting); + }, + destroy: function(setting) { + if (!setting) return; + data.initCache(setting); + data.initRoot(setting); + event.unbindTree(setting); + event.unbindEvent(setting); + setting.treeObj.empty(); + }, + expandCollapseNode: function(setting, node, expandFlag, animateFlag, callback) { + var root = data.getRoot(setting), + childKey = setting.data.key.children; + if (!node) { + tools.apply(callback, []); + return; + } + if (root.expandTriggerFlag) { + var _callback = callback; + callback = function(){ + if (_callback) _callback(); + if (node.open) { + setting.treeObj.trigger(consts.event.EXPAND, [setting.treeId, node]); + } else { + setting.treeObj.trigger(consts.event.COLLAPSE, [setting.treeId, node]); + } + }; + root.expandTriggerFlag = false; + } + if (!node.open && node.isParent && ((!$$(node, consts.id.UL, setting).get(0)) || (node[childKey] && node[childKey].length>0 && !$$(node[childKey][0], setting).get(0)))) { + view.appendParentULDom(setting, node); + view.createNodeCallback(setting); + } + if (node.open == expandFlag) { + tools.apply(callback, []); + return; + } + var ulObj = $$(node, consts.id.UL, setting), + switchObj = $$(node, consts.id.SWITCH, setting), + icoObj = $$(node, consts.id.ICON, setting); + + if (node.isParent) { + node.open = !node.open; + if (node.iconOpen && node.iconClose) { + icoObj.attr("style", view.makeNodeIcoStyle(setting, node)); + } + + if (node.open) { + view.replaceSwitchClass(node, switchObj, consts.folder.OPEN); + view.replaceIcoClass(node, icoObj, consts.folder.OPEN); + if (animateFlag == false || setting.view.expandSpeed == "") { + ulObj.show(); + tools.apply(callback, []); + } else { + if (node[childKey] && node[childKey].length > 0) { + ulObj.slideDown(setting.view.expandSpeed, callback); + } else { + ulObj.show(); + tools.apply(callback, []); + } + } + } else { + view.replaceSwitchClass(node, switchObj, consts.folder.CLOSE); + view.replaceIcoClass(node, icoObj, consts.folder.CLOSE); + if (animateFlag == false || setting.view.expandSpeed == "" || !(node[childKey] && node[childKey].length > 0)) { + ulObj.hide(); + tools.apply(callback, []); + } else { + ulObj.slideUp(setting.view.expandSpeed, callback); + } + } + } else { + tools.apply(callback, []); + } + }, + expandCollapseParentNode: function(setting, node, expandFlag, animateFlag, callback) { + if (!node) return; + if (!node.parentTId) { + view.expandCollapseNode(setting, node, expandFlag, animateFlag, callback); + return; + } else { + view.expandCollapseNode(setting, node, expandFlag, animateFlag); + } + if (node.parentTId) { + view.expandCollapseParentNode(setting, node.getParentNode(), expandFlag, animateFlag, callback); + } + }, + expandCollapseSonNode: function(setting, node, expandFlag, animateFlag, callback) { + var root = data.getRoot(setting), + childKey = setting.data.key.children, + treeNodes = (node) ? node[childKey]: root[childKey], + selfAnimateSign = (node) ? false : animateFlag, + expandTriggerFlag = data.getRoot(setting).expandTriggerFlag; + data.getRoot(setting).expandTriggerFlag = false; + if (treeNodes) { + for (var i = 0, l = treeNodes.length; i < l; i++) { + if (treeNodes[i]) view.expandCollapseSonNode(setting, treeNodes[i], expandFlag, selfAnimateSign); + } + } + data.getRoot(setting).expandTriggerFlag = expandTriggerFlag; + view.expandCollapseNode(setting, node, expandFlag, animateFlag, callback ); + }, + makeDOMNodeIcon: function(html, setting, node) { + var nameStr = data.getNodeName(setting, node), + name = setting.view.nameIsHTML ? nameStr : nameStr.replace(/&/g,'&').replace(//g,'>'); + html.push("",name,""); + }, + makeDOMNodeLine: function(html, setting, node) { + html.push(""); + }, + makeDOMNodeMainAfter: function(html, setting, node) { + html.push(""); + }, + makeDOMNodeMainBefore: function(html, setting, node) { + html.push("
                                                                                                                                                                                                                                                                                                  • "); + }, + makeDOMNodeNameAfter: function(html, setting, node) { + html.push(""); + }, + makeDOMNodeNameBefore: function(html, setting, node) { + var title = data.getNodeTitle(setting, node), + url = view.makeNodeUrl(setting, node), + fontcss = view.makeNodeFontCss(setting, node), + fontStyle = []; + for (var f in fontcss) { + fontStyle.push(f, ":", fontcss[f], ";"); + } + html.push(" 0) ? "href='" + url + "'" : ""), " target='",view.makeNodeTarget(node),"' style='", fontStyle.join(''), + "'"); + if (tools.apply(setting.view.showTitle, [setting.treeId, node], setting.view.showTitle) && title) {html.push("title='", title.replace(/'/g,"'").replace(//g,'>'),"'");} + html.push(">"); + }, + makeNodeFontCss: function(setting, node) { + var fontCss = tools.apply(setting.view.fontCss, [setting.treeId, node], setting.view.fontCss); + return (fontCss && ((typeof fontCss) != "function")) ? fontCss : {}; + }, + makeNodeIcoClass: function(setting, node) { + var icoCss = ["ico"]; + if (!node.isAjaxing) { + icoCss[0] = (node.iconSkin ? node.iconSkin + "_" : "") + icoCss[0]; + if (node.isParent) { + icoCss.push(node.open ? consts.folder.OPEN : consts.folder.CLOSE); + } else { + icoCss.push(consts.folder.DOCU); + } + } + return consts.className.BUTTON + " " + icoCss.join('_'); + }, + makeNodeIcoStyle: function(setting, node) { + var icoStyle = []; + if (!node.isAjaxing) { + var icon = (node.isParent && node.iconOpen && node.iconClose) ? (node.open ? node.iconOpen : node.iconClose) : node.icon; + if (icon) icoStyle.push("background:url(", icon, ") 0 0 no-repeat;"); + if (setting.view.showIcon == false || !tools.apply(setting.view.showIcon, [setting.treeId, node], true)) { + icoStyle.push("width:0px;height:0px;"); + } + } + return icoStyle.join(''); + }, + makeNodeLineClass: function(setting, node) { + var lineClass = []; + if (setting.view.showLine) { + if (node.level == 0 && node.isFirstNode && node.isLastNode) { + lineClass.push(consts.line.ROOT); + } else if (node.level == 0 && node.isFirstNode) { + lineClass.push(consts.line.ROOTS); + } else if (node.isLastNode) { + lineClass.push(consts.line.BOTTOM); + } else { + lineClass.push(consts.line.CENTER); + } + } else { + lineClass.push(consts.line.NOLINE); + } + if (node.isParent) { + lineClass.push(node.open ? consts.folder.OPEN : consts.folder.CLOSE); + } else { + lineClass.push(consts.folder.DOCU); + } + return view.makeNodeLineClassEx(node) + lineClass.join('_'); + }, + makeNodeLineClassEx: function(node) { + return consts.className.BUTTON + " " + consts.className.LEVEL + node.level + " " + consts.className.SWITCH + " "; + }, + makeNodeTarget: function(node) { + return (node.target || "_blank"); + }, + makeNodeUrl: function(setting, node) { + var urlKey = setting.data.key.url; + return node[urlKey] ? node[urlKey] : null; + }, + makeUlHtml: function(setting, node, html, content) { + html.push("
                                                                                                                                                                                                                                                                                                      "); + html.push(content); + html.push("
                                                                                                                                                                                                                                                                                                    "); + }, + makeUlLineClass: function(setting, node) { + return ((setting.view.showLine && !node.isLastNode) ? consts.line.LINE : ""); + }, + removeChildNodes: function(setting, node) { + if (!node) return; + var childKey = setting.data.key.children, + nodes = node[childKey]; + if (!nodes) return; + + for (var i = 0, l = nodes.length; i < l; i++) { + data.removeNodeCache(setting, nodes[i]); + } + data.removeSelectedNode(setting); + delete node[childKey]; + + if (!setting.data.keep.parent) { + node.isParent = false; + node.open = false; + var tmp_switchObj = $$(node, consts.id.SWITCH, setting), + tmp_icoObj = $$(node, consts.id.ICON, setting); + view.replaceSwitchClass(node, tmp_switchObj, consts.folder.DOCU); + view.replaceIcoClass(node, tmp_icoObj, consts.folder.DOCU); + $$(node, consts.id.UL, setting).remove(); + } else { + $$(node, consts.id.UL, setting).empty(); + } + }, + setFirstNode: function(setting, parentNode) { + var childKey = setting.data.key.children, childLength = parentNode[childKey].length; + if ( childLength > 0) { + parentNode[childKey][0].isFirstNode = true; + } + }, + setLastNode: function(setting, parentNode) { + var childKey = setting.data.key.children, childLength = parentNode[childKey].length; + if ( childLength > 0) { + parentNode[childKey][childLength - 1].isLastNode = true; + } + }, + removeNode: function(setting, node) { + var root = data.getRoot(setting), + childKey = setting.data.key.children, + parentNode = (node.parentTId) ? node.getParentNode() : root; + + node.isFirstNode = false; + node.isLastNode = false; + node.getPreNode = function() {return null;}; + node.getNextNode = function() {return null;}; + + if (!data.getNodeCache(setting, node.tId)) { + return; + } + + $$(node, setting).remove(); + data.removeNodeCache(setting, node); + data.removeSelectedNode(setting, node); + + for (var i = 0, l = parentNode[childKey].length; i < l; i++) { + if (parentNode[childKey][i].tId == node.tId) { + parentNode[childKey].splice(i, 1); + break; + } + } + view.setFirstNode(setting, parentNode); + view.setLastNode(setting, parentNode); + + var tmp_ulObj,tmp_switchObj,tmp_icoObj, + childLength = parentNode[childKey].length; + + //repair nodes old parent + if (!setting.data.keep.parent && childLength == 0) { + //old parentNode has no child nodes + parentNode.isParent = false; + parentNode.open = false; + tmp_ulObj = $$(parentNode, consts.id.UL, setting); + tmp_switchObj = $$(parentNode, consts.id.SWITCH, setting); + tmp_icoObj = $$(parentNode, consts.id.ICON, setting); + view.replaceSwitchClass(parentNode, tmp_switchObj, consts.folder.DOCU); + view.replaceIcoClass(parentNode, tmp_icoObj, consts.folder.DOCU); + tmp_ulObj.css("display", "none"); + + } else if (setting.view.showLine && childLength > 0) { + //old parentNode has child nodes + var newLast = parentNode[childKey][childLength - 1]; + tmp_ulObj = $$(newLast, consts.id.UL, setting); + tmp_switchObj = $$(newLast, consts.id.SWITCH, setting); + tmp_icoObj = $$(newLast, consts.id.ICON, setting); + if (parentNode == root) { + if (parentNode[childKey].length == 1) { + //node was root, and ztree has only one root after move node + view.replaceSwitchClass(newLast, tmp_switchObj, consts.line.ROOT); + } else { + var tmp_first_switchObj = $$(parentNode[childKey][0], consts.id.SWITCH, setting); + view.replaceSwitchClass(parentNode[childKey][0], tmp_first_switchObj, consts.line.ROOTS); + view.replaceSwitchClass(newLast, tmp_switchObj, consts.line.BOTTOM); + } + } else { + view.replaceSwitchClass(newLast, tmp_switchObj, consts.line.BOTTOM); + } + tmp_ulObj.removeClass(consts.line.LINE); + } + }, + replaceIcoClass: function(node, obj, newName) { + if (!obj || node.isAjaxing) return; + var tmpName = obj.attr("class"); + if (tmpName == undefined) return; + var tmpList = tmpName.split("_"); + switch (newName) { + case consts.folder.OPEN: + case consts.folder.CLOSE: + case consts.folder.DOCU: + tmpList[tmpList.length-1] = newName; + break; + } + obj.attr("class", tmpList.join("_")); + }, + replaceSwitchClass: function(node, obj, newName) { + if (!obj) return; + var tmpName = obj.attr("class"); + if (tmpName == undefined) return; + var tmpList = tmpName.split("_"); + switch (newName) { + case consts.line.ROOT: + case consts.line.ROOTS: + case consts.line.CENTER: + case consts.line.BOTTOM: + case consts.line.NOLINE: + tmpList[0] = view.makeNodeLineClassEx(node) + newName; + break; + case consts.folder.OPEN: + case consts.folder.CLOSE: + case consts.folder.DOCU: + tmpList[1] = newName; + break; + } + obj.attr("class", tmpList.join("_")); + if (newName !== consts.folder.DOCU) { + obj.removeAttr("disabled"); + } else { + obj.attr("disabled", "disabled"); + } + }, + selectNode: function(setting, node, addFlag) { + if (!addFlag) { + view.cancelPreSelectedNode(setting); + } + $$(node, consts.id.A, setting).addClass(consts.node.CURSELECTED); + data.addSelectedNode(setting, node); + }, + setNodeFontCss: function(setting, treeNode) { + var aObj = $$(treeNode, consts.id.A, setting), + fontCss = view.makeNodeFontCss(setting, treeNode); + if (fontCss) { + aObj.css(fontCss); + } + }, + setNodeLineIcos: function(setting, node) { + if (!node) return; + var switchObj = $$(node, consts.id.SWITCH, setting), + ulObj = $$(node, consts.id.UL, setting), + icoObj = $$(node, consts.id.ICON, setting), + ulLine = view.makeUlLineClass(setting, node); + if (ulLine.length==0) { + ulObj.removeClass(consts.line.LINE); + } else { + ulObj.addClass(ulLine); + } + switchObj.attr("class", view.makeNodeLineClass(setting, node)); + if (node.isParent) { + switchObj.removeAttr("disabled"); + } else { + switchObj.attr("disabled", "disabled"); + } + icoObj.removeAttr("style"); + icoObj.attr("style", view.makeNodeIcoStyle(setting, node)); + icoObj.attr("class", view.makeNodeIcoClass(setting, node)); + }, + setNodeName: function(setting, node) { + var title = data.getNodeTitle(setting, node), + nObj = $$(node, consts.id.SPAN, setting); + nObj.empty(); + if (setting.view.nameIsHTML) { + nObj.html(data.getNodeName(setting, node)); + } else { + nObj.text(data.getNodeName(setting, node)); + } + if (tools.apply(setting.view.showTitle, [setting.treeId, node], setting.view.showTitle)) { + var aObj = $$(node, consts.id.A, setting); + aObj.attr("title", !title ? "" : title); + } + }, + setNodeTarget: function(setting, node) { + var aObj = $$(node, consts.id.A, setting); + aObj.attr("target", view.makeNodeTarget(node)); + }, + setNodeUrl: function(setting, node) { + var aObj = $$(node, consts.id.A, setting), + url = view.makeNodeUrl(setting, node); + if (url == null || url.length == 0) { + aObj.removeAttr("href"); + } else { + aObj.attr("href", url); + } + }, + switchNode: function(setting, node) { + if (node.open || !tools.canAsync(setting, node)) { + view.expandCollapseNode(setting, node, !node.open); + } else if (setting.async.enable) { + if (!view.asyncNode(setting, node)) { + view.expandCollapseNode(setting, node, !node.open); + return; + } + } else if (node) { + view.expandCollapseNode(setting, node, !node.open); + } + } + }; + // zTree defind + $.fn.zTree = { + consts : _consts, + _z : { + tools: tools, + view: view, + event: event, + data: data + }, + getZTreeObj: function(treeId) { + var o = data.getZTreeTools(treeId); + return o ? o : null; + }, + destroy: function(treeId) { + if (!!treeId && treeId.length > 0) { + view.destroy(data.getSetting(treeId)); + } else { + for(var s in settings) { + view.destroy(settings[s]); + } + } + }, + init: function(obj, zSetting, zNodes) { + var setting = tools.clone(_setting); + $.extend(true, setting, zSetting); + setting.treeId = obj.attr("id"); + setting.treeObj = obj; + setting.treeObj.empty(); + settings[setting.treeId] = setting; + //For some older browser,(e.g., ie6) + if(typeof document.body.style.maxHeight === "undefined") { + setting.view.expandSpeed = ""; + } + data.initRoot(setting); + var root = data.getRoot(setting), + childKey = setting.data.key.children; + zNodes = zNodes ? tools.clone(tools.isArray(zNodes)? zNodes : [zNodes]) : []; + if (setting.data.simpleData.enable) { + root[childKey] = data.transformTozTreeFormat(setting, zNodes); + } else { + root[childKey] = zNodes; + } + + data.initCache(setting); + event.unbindTree(setting); + event.bindTree(setting); + event.unbindEvent(setting); + event.bindEvent(setting); + + var zTreeTools = { + setting : setting, + addNodes : function(parentNode, newNodes, isSilent) { + if (!newNodes) return null; + if (!parentNode) parentNode = null; + if (parentNode && !parentNode.isParent && setting.data.keep.leaf) return null; + var xNewNodes = tools.clone(tools.isArray(newNodes)? newNodes: [newNodes]); + function addCallback() { + view.addNodes(setting, parentNode, xNewNodes, (isSilent==true)); + } + + if (tools.canAsync(setting, parentNode)) { + view.asyncNode(setting, parentNode, isSilent, addCallback); + } else { + addCallback(); + } + return xNewNodes; + }, + cancelSelectedNode : function(node) { + view.cancelPreSelectedNode(setting, node); + }, + destroy : function() { + view.destroy(setting); + }, + expandAll : function(expandFlag) { + expandFlag = !!expandFlag; + view.expandCollapseSonNode(setting, null, expandFlag, true); + return expandFlag; + }, + expandNode : function(node, expandFlag, sonSign, focus, callbackFlag) { + if (!node || !node.isParent) return null; + if (expandFlag !== true && expandFlag !== false) { + expandFlag = !node.open; + } + callbackFlag = !!callbackFlag; + + if (callbackFlag && expandFlag && (tools.apply(setting.callback.beforeExpand, [setting.treeId, node], true) == false)) { + return null; + } else if (callbackFlag && !expandFlag && (tools.apply(setting.callback.beforeCollapse, [setting.treeId, node], true) == false)) { + return null; + } + if (expandFlag && node.parentTId) { + view.expandCollapseParentNode(setting, node.getParentNode(), expandFlag, false); + } + if (expandFlag === node.open && !sonSign) { + return null; + } + + data.getRoot(setting).expandTriggerFlag = callbackFlag; + if (!tools.canAsync(setting, node) && sonSign) { + view.expandCollapseSonNode(setting, node, expandFlag, true, function() { + if (focus !== false) {try{$$(node, setting).focus().blur();}catch(e){}} + }); + } else { + node.open = !expandFlag; + view.switchNode(this.setting, node); + if (focus !== false) {try{$$(node, setting).focus().blur();}catch(e){}} + } + return expandFlag; + }, + getNodes : function() { + return data.getNodes(setting); + }, + getNodeByParam : function(key, value, parentNode) { + if (!key) return null; + return data.getNodeByParam(setting, parentNode?parentNode[setting.data.key.children]:data.getNodes(setting), key, value); + }, + getNodeByTId : function(tId) { + return data.getNodeCache(setting, tId); + }, + getNodesByParam : function(key, value, parentNode) { + if (!key) return null; + return data.getNodesByParam(setting, parentNode?parentNode[setting.data.key.children]:data.getNodes(setting), key, value); + }, + getNodesByParamFuzzy : function(key, value, parentNode) { + if (!key) return null; + return data.getNodesByParamFuzzy(setting, parentNode?parentNode[setting.data.key.children]:data.getNodes(setting), key, value); + }, + getNodesByFilter: function(filter, isSingle, parentNode, invokeParam) { + isSingle = !!isSingle; + if (!filter || (typeof filter != "function")) return (isSingle ? null : []); + return data.getNodesByFilter(setting, parentNode?parentNode[setting.data.key.children]:data.getNodes(setting), filter, isSingle, invokeParam); + }, + getNodeIndex : function(node) { + if (!node) return null; + var childKey = setting.data.key.children, + parentNode = (node.parentTId) ? node.getParentNode() : data.getRoot(setting); + for (var i=0, l = parentNode[childKey].length; i < l; i++) { + if (parentNode[childKey][i] == node) return i; + } + return -1; + }, + getSelectedNodes : function() { + var r = [], list = data.getRoot(setting).curSelectedList; + for (var i=0, l=list.length; i 0) { + view.createNodes(setting, 0, root[childKey]); + } else if (setting.async.enable && setting.async.url && setting.async.url !== '') { + view.asyncNode(setting); + } + return zTreeTools; + } + }; + + var zt = $.fn.zTree, + $$ = tools.$, + consts = zt.consts; +})(jQuery); \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/js/jquery.ztree.core-3.5.min.js b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/js/jquery.ztree.core-3.5.min.js new file mode 100644 index 00000000..42ab8b44 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/js/jquery.ztree.core-3.5.min.js @@ -0,0 +1,68 @@ +/* + * JQuery zTree core v3.5.15 + * http://zTree.me/ + * + * Copyright (c) 2010 Hunter.z + * + * Licensed same as jquery - MIT License + * http://www.opensource.org/licenses/mit-license.php + * + * email: hunter.z@263.net + * Date: 2013-10-15 + */ +(function(p){var G,H,I,J,K,L,r={},u={},v={},M={treeId:"",treeObj:null,view:{addDiyDom:null,autoCancelSelected:!0,dblClickExpand:!0,expandSpeed:"fast",fontCss:{},nameIsHTML:!1,selectedMulti:!0,showIcon:!0,showLine:!0,showTitle:!0,txtSelectedEnable:!1},data:{key:{children:"children",name:"name",title:"",url:"url"},simpleData:{enable:!1,idKey:"id",pIdKey:"pId",rootPId:null},keep:{parent:!1,leaf:!1}},async:{enable:!1,contentType:"application/x-www-form-urlencoded",type:"post",dataType:"text",url:"",autoParam:[], +otherParam:[],dataFilter:null},callback:{beforeAsync:null,beforeClick:null,beforeDblClick:null,beforeRightClick:null,beforeMouseDown:null,beforeMouseUp:null,beforeExpand:null,beforeCollapse:null,beforeRemove:null,onAsyncError:null,onAsyncSuccess:null,onNodeCreated:null,onClick:null,onDblClick:null,onRightClick:null,onMouseDown:null,onMouseUp:null,onExpand:null,onCollapse:null,onRemove:null}},w=[function(b){var a=b.treeObj,c=e.event;a.bind(c.NODECREATED,function(a,c,g){j.apply(b.callback.onNodeCreated, +[a,c,g])});a.bind(c.CLICK,function(a,c,g,l,h){j.apply(b.callback.onClick,[c,g,l,h])});a.bind(c.EXPAND,function(a,c,g){j.apply(b.callback.onExpand,[a,c,g])});a.bind(c.COLLAPSE,function(a,c,g){j.apply(b.callback.onCollapse,[a,c,g])});a.bind(c.ASYNC_SUCCESS,function(a,c,g,l){j.apply(b.callback.onAsyncSuccess,[a,c,g,l])});a.bind(c.ASYNC_ERROR,function(a,c,g,l,h,e){j.apply(b.callback.onAsyncError,[a,c,g,l,h,e])})}],x=[function(b){var a=e.event;b.treeObj.unbind(a.NODECREATED).unbind(a.CLICK).unbind(a.EXPAND).unbind(a.COLLAPSE).unbind(a.ASYNC_SUCCESS).unbind(a.ASYNC_ERROR)}], +y=[function(b){var a=h.getCache(b);a||(a={},h.setCache(b,a));a.nodes=[];a.doms=[]}],z=[function(b,a,c,d,f,g){if(c){var l=h.getRoot(b),e=b.data.key.children;c.level=a;c.tId=b.treeId+"_"+ ++l.zId;c.parentTId=d?d.tId:null;c.open=typeof c.open=="string"?j.eqs(c.open,"true"):!!c.open;c[e]&&c[e].length>0?(c.isParent=!0,c.zAsync=!0):(c.isParent=typeof c.isParent=="string"?j.eqs(c.isParent,"true"):!!c.isParent,c.open=c.isParent&&!b.async.enable?c.open:!1,c.zAsync=!c.isParent);c.isFirstNode=f;c.isLastNode= +g;c.getParentNode=function(){return h.getNodeCache(b,c.parentTId)};c.getPreNode=function(){return h.getPreNode(b,c)};c.getNextNode=function(){return h.getNextNode(b,c)};c.isAjaxing=!1;h.fixPIdKeyValue(b,c)}}],s=[function(b){var a=b.target,c=h.getSetting(b.data.treeId),d="",f=null,g="",l="",i=null,n=null,k=null;if(j.eqs(b.type,"mousedown"))l="mousedown";else if(j.eqs(b.type,"mouseup"))l="mouseup";else if(j.eqs(b.type,"contextmenu"))l="contextmenu";else if(j.eqs(b.type,"click"))if(j.eqs(a.tagName,"span")&& +a.getAttribute("treeNode"+e.id.SWITCH)!==null)d=j.getNodeMainDom(a).id,g="switchNode";else{if(k=j.getMDom(c,a,[{tagName:"a",attrName:"treeNode"+e.id.A}]))d=j.getNodeMainDom(k).id,g="clickNode"}else if(j.eqs(b.type,"dblclick")&&(l="dblclick",k=j.getMDom(c,a,[{tagName:"a",attrName:"treeNode"+e.id.A}])))d=j.getNodeMainDom(k).id,g="switchNode";if(l.length>0&&d.length==0&&(k=j.getMDom(c,a,[{tagName:"a",attrName:"treeNode"+e.id.A}])))d=j.getNodeMainDom(k).id;if(d.length>0)switch(f=h.getNodeCache(c,d),g){case "switchNode":f.isParent? +j.eqs(b.type,"click")||j.eqs(b.type,"dblclick")&&j.apply(c.view.dblClickExpand,[c.treeId,f],c.view.dblClickExpand)?i=G:g="":g="";break;case "clickNode":i=H}switch(l){case "mousedown":n=I;break;case "mouseup":n=J;break;case "dblclick":n=K;break;case "contextmenu":n=L}return{stop:!1,node:f,nodeEventType:g,nodeEventCallback:i,treeEventType:l,treeEventCallback:n}}],A=[function(b){var a=h.getRoot(b);a||(a={},h.setRoot(b,a));a[b.data.key.children]=[];a.expandTriggerFlag=!1;a.curSelectedList=[];a.noSelection= +!0;a.createdNodes=[];a.zId=0;a._ver=(new Date).getTime()}],B=[],C=[],D=[],E=[],F=[],h={addNodeCache:function(b,a){h.getCache(b).nodes[h.getNodeCacheId(a.tId)]=a},getNodeCacheId:function(b){return b.substring(b.lastIndexOf("_")+1)},addAfterA:function(b){C.push(b)},addBeforeA:function(b){B.push(b)},addInnerAfterA:function(b){E.push(b)},addInnerBeforeA:function(b){D.push(b)},addInitBind:function(b){w.push(b)},addInitUnBind:function(b){x.push(b)},addInitCache:function(b){y.push(b)},addInitNode:function(b){z.push(b)}, +addInitProxy:function(b,a){a?s.splice(0,0,b):s.push(b)},addInitRoot:function(b){A.push(b)},addNodesData:function(b,a,c){var d=b.data.key.children;a[d]||(a[d]=[]);if(a[d].length>0)a[d][a[d].length-1].isLastNode=!1,i.setNodeLineIcos(b,a[d][a[d].length-1]);a.isParent=!0;a[d]=a[d].concat(c)},addSelectedNode:function(b,a){var c=h.getRoot(b);h.isSelectedNode(b,a)||c.curSelectedList.push(a)},addCreatedNode:function(b,a){(b.callback.onNodeCreated||b.view.addDiyDom)&&h.getRoot(b).createdNodes.push(a)},addZTreeTools:function(b){F.push(b)}, +exSetting:function(b){p.extend(!0,M,b)},fixPIdKeyValue:function(b,a){b.data.simpleData.enable&&(a[b.data.simpleData.pIdKey]=a.parentTId?a.getParentNode()[b.data.simpleData.idKey]:b.data.simpleData.rootPId)},getAfterA:function(b,a,c){for(var d=0,f=C.length;d-1&&g.push(a[l]),g=g.concat(h.getNodesByParamFuzzy(b,a[l][f],c,d));return g},getNodesByFilter:function(b,a,c,d,f){if(!a)return d?null:[];for(var g=b.data.key.children,e=d?null:[],i=0,n=a.length;i0)},clone:function(b){if(b===null)return null;var a=j.isArray(b)?[]:{},c;for(c in b)a[c]=b[c]instanceof Date?new Date(b[c].getTime()):typeof b[c]==="object"?arguments.callee(b[c]):b[c];return a},eqs:function(b,a){return b.toLowerCase()===a.toLowerCase()},isArray:function(b){return Object.prototype.toString.apply(b)==="[object Array]"},$:function(b,a, +c){a&&typeof a!="string"&&(c=a,a="");return typeof b=="string"?p(b,c?c.treeObj.get(0).ownerDocument:null):p("#"+b.tId+a,c?c.treeObj:null)},getMDom:function(b,a,c){if(!a)return null;for(;a&&a.id!==b.treeId;){for(var d=0,f=c.length;a.tagName&&d0},uCanDo:function(){return!0}},i={addNodes:function(b,a,c,d){if(!b.data.keep.leaf||!a||a.isParent)if(j.isArray(c)||(c=[c]),b.data.simpleData.enable&&(c=h.transformTozTreeFormat(b,c)),a){var f=k(a,e.id.SWITCH,b),g=k(a,e.id.ICON,b),l=k(a,e.id.UL,b);if(!a.open)i.replaceSwitchClass(a,f,e.folder.CLOSE),i.replaceIcoClass(a,g,e.folder.CLOSE),a.open=!1,l.css({display:"none"});h.addNodesData(b,a,c);i.createNodes(b,a.level+1,c,a);d||i.expandCollapseParentNode(b,a,!0)}else h.addNodesData(b,h.getRoot(b), +c),i.createNodes(b,0,c,null)},appendNodes:function(b,a,c,d,f,g){if(!c)return[];for(var e=[],j=b.data.key.children,k=0,m=c.length;k0&&(t=i.appendNodes(b,a+1,o[j],o,f,g&&o.open));g&&(i.makeDOMNodeMainBefore(e,b,o),i.makeDOMNodeLine(e,b,o),h.getBeforeA(b,o,e),i.makeDOMNodeNameBefore(e,b,o),h.getInnerBeforeA(b,o,e),i.makeDOMNodeIcon(e,b,o),h.getInnerAfterA(b, +o,e),i.makeDOMNodeNameAfter(e,b,o),h.getAfterA(b,o,e),o.isParent&&o.open&&i.makeUlHtml(b,o,e,t.join("")),i.makeDOMNodeMainAfter(e,b,o),h.addCreatedNode(b,o))}return e},appendParentULDom:function(b,a){var c=[],d=k(a,b);!d.get(0)&&a.parentTId&&(i.appendParentULDom(b,a.getParentNode()),d=k(a,b));var f=k(a,e.id.UL,b);f.get(0)&&f.remove();f=i.appendNodes(b,a.level+1,a[b.data.key.children],a,!1,!0);i.makeUlHtml(b,a,c,f.join(""));d.append(c.join(""))},asyncNode:function(b,a,c,d){var f,g;if(a&&!a.isParent)return j.apply(d), +!1;else if(a&&a.isAjaxing)return!1;else if(j.apply(b.callback.beforeAsync,[b.treeId,a],!0)==!1)return j.apply(d),!1;if(a)a.isAjaxing=!0,k(a,e.id.ICON,b).attr({style:"","class":e.className.BUTTON+" "+e.className.ICO_LOADING});var l={};for(f=0,g=b.async.autoParam.length;a&&f1&&(n=q[1],q=q[0]);l[n]=a[q]}if(j.isArray(b.async.otherParam))for(f=0,g=b.async.otherParam.length;f=0;d--)if(!a||a===c[d])if(k(c[d],e.id.A,b).removeClass(e.node.CURSELECTED),a){h.removeSelectedNode(b,a);break}if(!a)h.getRoot(b).curSelectedList=[]},createNodeCallback:function(b){if(b.callback.onNodeCreated||b.view.addDiyDom)for(var a= +h.getRoot(b);a.createdNodes.length>0;){var c=a.createdNodes.shift();j.apply(b.view.addDiyDom,[b.treeId,c]);b.callback.onNodeCreated&&b.treeObj.trigger(e.event.NODECREATED,[b.treeId,c])}},createNodes:function(b,a,c,d){if(c&&c.length!=0){var f=h.getRoot(b),g=b.data.key.children,g=!d||d.open||!!k(d[g][0],b).get(0);f.createdNodes=[];a=i.appendNodes(b,a,c,d,!0,g);d?(d=k(d,e.id.UL,b),d.get(0)&&d.append(a.join(""))):b.treeObj.append(a.join(""));i.createNodeCallback(b)}},destroy:function(b){b&&(h.initCache(b), +h.initRoot(b),m.unbindTree(b),m.unbindEvent(b),b.treeObj.empty())},expandCollapseNode:function(b,a,c,d,f){var g=h.getRoot(b),l=b.data.key.children;if(a){if(g.expandTriggerFlag){var q=f,f=function(){q&&q();a.open?b.treeObj.trigger(e.event.EXPAND,[b.treeId,a]):b.treeObj.trigger(e.event.COLLAPSE,[b.treeId,a])};g.expandTriggerFlag=!1}if(!a.open&&a.isParent&&(!k(a,e.id.UL,b).get(0)||a[l]&&a[l].length>0&&!k(a[l][0],b).get(0)))i.appendParentULDom(b,a),i.createNodeCallback(b);if(a.open==c)j.apply(f,[]);else{var c= +k(a,e.id.UL,b),g=k(a,e.id.SWITCH,b),n=k(a,e.id.ICON,b);a.isParent?(a.open=!a.open,a.iconOpen&&a.iconClose&&n.attr("style",i.makeNodeIcoStyle(b,a)),a.open?(i.replaceSwitchClass(a,g,e.folder.OPEN),i.replaceIcoClass(a,n,e.folder.OPEN),d==!1||b.view.expandSpeed==""?(c.show(),j.apply(f,[])):a[l]&&a[l].length>0?c.slideDown(b.view.expandSpeed,f):(c.show(),j.apply(f,[]))):(i.replaceSwitchClass(a,g,e.folder.CLOSE),i.replaceIcoClass(a,n,e.folder.CLOSE),d==!1||b.view.expandSpeed==""||!(a[l]&&a[l].length>0)? +(c.hide(),j.apply(f,[])):c.slideUp(b.view.expandSpeed,f))):j.apply(f,[])}}else j.apply(f,[])},expandCollapseParentNode:function(b,a,c,d,f){a&&(a.parentTId?(i.expandCollapseNode(b,a,c,d),a.parentTId&&i.expandCollapseParentNode(b,a.getParentNode(),c,d,f)):i.expandCollapseNode(b,a,c,d,f))},expandCollapseSonNode:function(b,a,c,d,f){var g=h.getRoot(b),e=b.data.key.children,g=a?a[e]:g[e],e=a?!1:d,j=h.getRoot(b).expandTriggerFlag;h.getRoot(b).expandTriggerFlag=!1;if(g)for(var k=0,m=g.length;k/g,">");b.push("",d,"")},makeDOMNodeLine:function(b,a,c){b.push("")},makeDOMNodeMainAfter:function(b){b.push("
                                                                                                                                                                                                                                                                                                  • ")},makeDOMNodeMainBefore:function(b,a,c){b.push("
                                                                                                                                                                                                                                                                                                  • ")},makeDOMNodeNameAfter:function(b){b.push("")},makeDOMNodeNameBefore:function(b,a,c){var d=h.getNodeTitle(a,c),f=i.makeNodeUrl(a,c),g=i.makeNodeFontCss(a,c),l=[],k;for(k in g)l.push(k,":",g[k],";");b.push("0?"href='"+f+"'":""," target='",i.makeNodeTarget(c),"' style='",l.join(""),"'");j.apply(a.view.showTitle,[a.treeId,c],a.view.showTitle)&&d&&b.push("title='",d.replace(/'/g,"'").replace(//g,">"),"'");b.push(">")},makeNodeFontCss:function(b,a){var c=j.apply(b.view.fontCss,[b.treeId,a],b.view.fontCss);return c&&typeof c!="function"?c:{}},makeNodeIcoClass:function(b, +a){var c=["ico"];a.isAjaxing||(c[0]=(a.iconSkin?a.iconSkin+"_":"")+c[0],a.isParent?c.push(a.open?e.folder.OPEN:e.folder.CLOSE):c.push(e.folder.DOCU));return e.className.BUTTON+" "+c.join("_")},makeNodeIcoStyle:function(b,a){var c=[];if(!a.isAjaxing){var d=a.isParent&&a.iconOpen&&a.iconClose?a.open?a.iconOpen:a.iconClose:a.icon;d&&c.push("background:url(",d,") 0 0 no-repeat;");(b.view.showIcon==!1||!j.apply(b.view.showIcon,[b.treeId,a],!0))&&c.push("width:0px;height:0px;")}return c.join("")},makeNodeLineClass:function(b, +a){var c=[];b.view.showLine?a.level==0&&a.isFirstNode&&a.isLastNode?c.push(e.line.ROOT):a.level==0&&a.isFirstNode?c.push(e.line.ROOTS):a.isLastNode?c.push(e.line.BOTTOM):c.push(e.line.CENTER):c.push(e.line.NOLINE);a.isParent?c.push(a.open?e.folder.OPEN:e.folder.CLOSE):c.push(e.folder.DOCU);return i.makeNodeLineClassEx(a)+c.join("_")},makeNodeLineClassEx:function(b){return e.className.BUTTON+" "+e.className.LEVEL+b.level+" "+e.className.SWITCH+" "},makeNodeTarget:function(b){return b.target||"_blank"}, +makeNodeUrl:function(b,a){var c=b.data.key.url;return a[c]?a[c]:null},makeUlHtml:function(b,a,c,d){c.push("
                                                                                                                                                                                                                                                                                                      ");c.push(d);c.push("
                                                                                                                                                                                                                                                                                                    ")},makeUlLineClass:function(b,a){return b.view.showLine&&!a.isLastNode?e.line.LINE:""},removeChildNodes:function(b,a){if(a){var c=b.data.key.children,d=a[c];if(d){for(var f=0,g=d.length;f0)a[c][0].isFirstNode=!0},setLastNode:function(b,a){var c=b.data.key.children,d=a[c].length;if(d>0)a[c][d-1].isLastNode=!0},removeNode:function(b,a){var c=h.getRoot(b),d=b.data.key.children,f=a.parentTId?a.getParentNode(): +c;a.isFirstNode=!1;a.isLastNode=!1;a.getPreNode=function(){return null};a.getNextNode=function(){return null};if(h.getNodeCache(b,a.tId)){k(a,b).remove();h.removeNodeCache(b,a);h.removeSelectedNode(b,a);for(var g=0,l=f[d].length;g0){var n=f[d][g-1],g=k(n,e.id.UL,b),l=k(n,e.id.SWITCH,b);j=k(n,e.id.ICON,b);f==c?f[d].length==1?i.replaceSwitchClass(n,l,e.line.ROOT):(c=k(f[d][0],e.id.SWITCH,b),i.replaceSwitchClass(f[d][0],c,e.line.ROOTS),i.replaceSwitchClass(n,l,e.line.BOTTOM)):i.replaceSwitchClass(n,l,e.line.BOTTOM);g.removeClass(e.line.LINE)}}},replaceIcoClass:function(b,a,c){if(a&&!b.isAjaxing&&(b=a.attr("class"),b!=void 0)){b=b.split("_");switch(c){case e.folder.OPEN:case e.folder.CLOSE:case e.folder.DOCU:b[b.length- +1]=c}a.attr("class",b.join("_"))}},replaceSwitchClass:function(b,a,c){if(a){var d=a.attr("class");if(d!=void 0){d=d.split("_");switch(c){case e.line.ROOT:case e.line.ROOTS:case e.line.CENTER:case e.line.BOTTOM:case e.line.NOLINE:d[0]=i.makeNodeLineClassEx(b)+c;break;case e.folder.OPEN:case e.folder.CLOSE:case e.folder.DOCU:d[1]=c}a.attr("class",d.join("_"));c!==e.folder.DOCU?a.removeAttr("disabled"):a.attr("disabled","disabled")}}},selectNode:function(b,a,c){c||i.cancelPreSelectedNode(b);k(a,e.id.A, +b).addClass(e.node.CURSELECTED);h.addSelectedNode(b,a)},setNodeFontCss:function(b,a){var c=k(a,e.id.A,b),d=i.makeNodeFontCss(b,a);d&&c.css(d)},setNodeLineIcos:function(b,a){if(a){var c=k(a,e.id.SWITCH,b),d=k(a,e.id.UL,b),f=k(a,e.id.ICON,b),g=i.makeUlLineClass(b,a);g.length==0?d.removeClass(e.line.LINE):d.addClass(g);c.attr("class",i.makeNodeLineClass(b,a));a.isParent?c.removeAttr("disabled"):c.attr("disabled","disabled");f.removeAttr("style");f.attr("style",i.makeNodeIcoStyle(b,a));f.attr("class", +i.makeNodeIcoClass(b,a))}},setNodeName:function(b,a){var c=h.getNodeTitle(b,a),d=k(a,e.id.SPAN,b);d.empty();b.view.nameIsHTML?d.html(h.getNodeName(b,a)):d.text(h.getNodeName(b,a));j.apply(b.view.showTitle,[b.treeId,a],b.view.showTitle)&&k(a,e.id.A,b).attr("title",!c?"":c)},setNodeTarget:function(b,a){k(a,e.id.A,b).attr("target",i.makeNodeTarget(a))},setNodeUrl:function(b,a){var c=k(a,e.id.A,b),d=i.makeNodeUrl(b,a);d==null||d.length==0?c.removeAttr("href"):c.attr("href",d)},switchNode:function(b,a){a.open|| +!j.canAsync(b,a)?i.expandCollapseNode(b,a,!a.open):b.async.enable?i.asyncNode(b,a)||i.expandCollapseNode(b,a,!a.open):a&&i.expandCollapseNode(b,a,!a.open)}};p.fn.zTree={consts:{className:{BUTTON:"button",LEVEL:"level",ICO_LOADING:"ico_loading",SWITCH:"switch"},event:{NODECREATED:"ztree_nodeCreated",CLICK:"ztree_click",EXPAND:"ztree_expand",COLLAPSE:"ztree_collapse",ASYNC_SUCCESS:"ztree_async_success",ASYNC_ERROR:"ztree_async_error"},id:{A:"_a",ICON:"_ico",SPAN:"_span",SWITCH:"_switch",UL:"_ul"},line:{ROOT:"root", +ROOTS:"roots",CENTER:"center",BOTTOM:"bottom",NOLINE:"noline",LINE:"line"},folder:{OPEN:"open",CLOSE:"close",DOCU:"docu"},node:{CURSELECTED:"curSelectedNode"}},_z:{tools:j,view:i,event:m,data:h},getZTreeObj:function(b){return(b=h.getZTreeTools(b))?b:null},destroy:function(b){if(b&&b.length>0)i.destroy(h.getSetting(b));else for(var a in r)i.destroy(r[a])},init:function(b,a,c){var d=j.clone(M);p.extend(!0,d,a);d.treeId=b.attr("id");d.treeObj=b;d.treeObj.empty();r[d.treeId]=d;if(typeof document.body.style.maxHeight=== +"undefined")d.view.expandSpeed="";h.initRoot(d);b=h.getRoot(d);a=d.data.key.children;c=c?j.clone(j.isArray(c)?c:[c]):[];b[a]=d.data.simpleData.enable?h.transformTozTreeFormat(d,c):c;h.initCache(d);m.unbindTree(d);m.bindTree(d);m.unbindEvent(d);m.bindEvent(d);c={setting:d,addNodes:function(a,b,c){function e(){i.addNodes(d,a,h,c==!0)}if(!b)return null;a||(a=null);if(a&&!a.isParent&&d.data.keep.leaf)return null;var h=j.clone(j.isArray(b)?b:[b]);j.canAsync(d,a)?i.asyncNode(d,a,c,e):e();return h},cancelSelectedNode:function(a){i.cancelPreSelectedNode(d, +a)},destroy:function(){i.destroy(d)},expandAll:function(a){a=!!a;i.expandCollapseSonNode(d,null,a,!0);return a},expandNode:function(a,b,c,e,n){if(!a||!a.isParent)return null;b!==!0&&b!==!1&&(b=!a.open);if((n=!!n)&&b&&j.apply(d.callback.beforeExpand,[d.treeId,a],!0)==!1)return null;else if(n&&!b&&j.apply(d.callback.beforeCollapse,[d.treeId,a],!0)==!1)return null;b&&a.parentTId&&i.expandCollapseParentNode(d,a.getParentNode(),b,!1);if(b===a.open&&!c)return null;h.getRoot(d).expandTriggerFlag=n;if(!j.canAsync(d, +a)&&c)i.expandCollapseSonNode(d,a,b,!0,function(){if(e!==!1)try{k(a,d).focus().blur()}catch(b){}});else if(a.open=!b,i.switchNode(this.setting,a),e!==!1)try{k(a,d).focus().blur()}catch(m){}return b},getNodes:function(){return h.getNodes(d)},getNodeByParam:function(a,b,c){return!a?null:h.getNodeByParam(d,c?c[d.data.key.children]:h.getNodes(d),a,b)},getNodeByTId:function(a){return h.getNodeCache(d,a)},getNodesByParam:function(a,b,c){return!a?null:h.getNodesByParam(d,c?c[d.data.key.children]:h.getNodes(d), +a,b)},getNodesByParamFuzzy:function(a,b,c){return!a?null:h.getNodesByParamFuzzy(d,c?c[d.data.key.children]:h.getNodes(d),a,b)},getNodesByFilter:function(a,b,c,e){b=!!b;return!a||typeof a!="function"?b?null:[]:h.getNodesByFilter(d,c?c[d.data.key.children]:h.getNodes(d),a,b,e)},getNodeIndex:function(a){if(!a)return null;for(var b=d.data.key.children,c=a.parentTId?a.getParentNode():h.getRoot(d),e=0,i=c[b].length;e0?i.createNodes(d, +0,b[a]):d.async.enable&&d.async.url&&d.async.url!==""&&i.asyncNode(d);return c}};var N=p.fn.zTree,k=j.$,e=N.consts})(jQuery); diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/js/jquery.ztree.excheck-3.5.js b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/js/jquery.ztree.excheck-3.5.js new file mode 100644 index 00000000..c3fbfc5e --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/js/jquery.ztree.excheck-3.5.js @@ -0,0 +1,626 @@ +/* + * JQuery zTree excheck v3.5.15 + * http://zTree.me/ + * + * Copyright (c) 2010 Hunter.z + * + * Licensed same as jquery - MIT License + * http://www.opensource.org/licenses/mit-license.php + * + * email: hunter.z@263.net + * Date: 2013-10-15 + */ +(function($){ + //default consts of excheck + var _consts = { + event: { + CHECK: "ztree_check" + }, + id: { + CHECK: "_check" + }, + checkbox: { + STYLE: "checkbox", + DEFAULT: "chk", + DISABLED: "disable", + FALSE: "false", + TRUE: "true", + FULL: "full", + PART: "part", + FOCUS: "focus" + }, + radio: { + STYLE: "radio", + TYPE_ALL: "all", + TYPE_LEVEL: "level" + } + }, + //default setting of excheck + _setting = { + check: { + enable: false, + autoCheckTrigger: false, + chkStyle: _consts.checkbox.STYLE, + nocheckInherit: false, + chkDisabledInherit: false, + radioType: _consts.radio.TYPE_LEVEL, + chkboxType: { + "Y": "ps", + "N": "ps" + } + }, + data: { + key: { + checked: "checked" + } + }, + callback: { + beforeCheck:null, + onCheck:null + } + }, + //default root of excheck + _initRoot = function (setting) { + var r = data.getRoot(setting); + r.radioCheckedList = []; + }, + //default cache of excheck + _initCache = function(treeId) {}, + //default bind event of excheck + _bindEvent = function(setting) { + var o = setting.treeObj, + c = consts.event; + o.bind(c.CHECK, function (event, srcEvent, treeId, node) { + tools.apply(setting.callback.onCheck, [!!srcEvent?srcEvent : event, treeId, node]); + }); + }, + _unbindEvent = function(setting) { + var o = setting.treeObj, + c = consts.event; + o.unbind(c.CHECK); + }, + //default event proxy of excheck + _eventProxy = function(e) { + var target = e.target, + setting = data.getSetting(e.data.treeId), + tId = "", node = null, + nodeEventType = "", treeEventType = "", + nodeEventCallback = null, treeEventCallback = null; + + if (tools.eqs(e.type, "mouseover")) { + if (setting.check.enable && tools.eqs(target.tagName, "span") && target.getAttribute("treeNode"+ consts.id.CHECK) !== null) { + tId = tools.getNodeMainDom(target).id; + nodeEventType = "mouseoverCheck"; + } + } else if (tools.eqs(e.type, "mouseout")) { + if (setting.check.enable && tools.eqs(target.tagName, "span") && target.getAttribute("treeNode"+ consts.id.CHECK) !== null) { + tId = tools.getNodeMainDom(target).id; + nodeEventType = "mouseoutCheck"; + } + } else if (tools.eqs(e.type, "click")) { + if (setting.check.enable && tools.eqs(target.tagName, "span") && target.getAttribute("treeNode"+ consts.id.CHECK) !== null) { + tId = tools.getNodeMainDom(target).id; + nodeEventType = "checkNode"; + } + } + if (tId.length>0) { + node = data.getNodeCache(setting, tId); + switch (nodeEventType) { + case "checkNode" : + nodeEventCallback = _handler.onCheckNode; + break; + case "mouseoverCheck" : + nodeEventCallback = _handler.onMouseoverCheck; + break; + case "mouseoutCheck" : + nodeEventCallback = _handler.onMouseoutCheck; + break; + } + } + var proxyResult = { + stop: nodeEventType === "checkNode", + node: node, + nodeEventType: nodeEventType, + nodeEventCallback: nodeEventCallback, + treeEventType: treeEventType, + treeEventCallback: treeEventCallback + }; + return proxyResult + }, + //default init node of excheck + _initNode = function(setting, level, n, parentNode, isFirstNode, isLastNode, openFlag) { + if (!n) return; + var checkedKey = setting.data.key.checked; + if (typeof n[checkedKey] == "string") n[checkedKey] = tools.eqs(n[checkedKey], "true"); + n[checkedKey] = !!n[checkedKey]; + n.checkedOld = n[checkedKey]; + if (typeof n.nocheck == "string") n.nocheck = tools.eqs(n.nocheck, "true"); + n.nocheck = !!n.nocheck || (setting.check.nocheckInherit && parentNode && !!parentNode.nocheck); + if (typeof n.chkDisabled == "string") n.chkDisabled = tools.eqs(n.chkDisabled, "true"); + n.chkDisabled = !!n.chkDisabled || (setting.check.chkDisabledInherit && parentNode && !!parentNode.chkDisabled); + if (typeof n.halfCheck == "string") n.halfCheck = tools.eqs(n.halfCheck, "true"); + n.halfCheck = !!n.halfCheck; + n.check_Child_State = -1; + n.check_Focus = false; + n.getCheckStatus = function() {return data.getCheckStatus(setting, n);}; + + if (setting.check.chkStyle == consts.radio.STYLE && setting.check.radioType == consts.radio.TYPE_ALL && n[checkedKey] ) { + var r = data.getRoot(setting); + r.radioCheckedList.push(n); + } + }, + //add dom for check + _beforeA = function(setting, node, html) { + var checkedKey = setting.data.key.checked; + if (setting.check.enable) { + data.makeChkFlag(setting, node); + html.push(""); + } + }, + //update zTreeObj, add method of check + _zTreeTools = function(setting, zTreeTools) { + zTreeTools.checkNode = function(node, checked, checkTypeFlag, callbackFlag) { + var checkedKey = setting.data.key.checked; + if (node.chkDisabled === true) return; + if (checked !== true && checked !== false) { + checked = !node[checkedKey]; + } + callbackFlag = !!callbackFlag; + + if (node[checkedKey] === checked && !checkTypeFlag) { + return; + } else if (callbackFlag && tools.apply(this.setting.callback.beforeCheck, [setting.treeId, node], true) == false) { + return; + } + if (tools.uCanDo(this.setting) && setting.check.enable && node.nocheck !== true) { + node[checkedKey] = checked; + var checkObj = $$(node, consts.id.CHECK, setting); + if (checkTypeFlag || setting.check.chkStyle === consts.radio.STYLE) view.checkNodeRelation(setting, node); + view.setChkClass(setting, checkObj, node); + view.repairParentChkClassWithSelf(setting, node); + if (callbackFlag) { + setting.treeObj.trigger(consts.event.CHECK, [null, setting.treeId, node]); + } + } + } + + zTreeTools.checkAllNodes = function(checked) { + view.repairAllChk(setting, !!checked); + } + + zTreeTools.getCheckedNodes = function(checked) { + var childKey = setting.data.key.children; + checked = (checked !== false); + return data.getTreeCheckedNodes(setting, data.getRoot(setting)[childKey], checked); + } + + zTreeTools.getChangeCheckedNodes = function() { + var childKey = setting.data.key.children; + return data.getTreeChangeCheckedNodes(setting, data.getRoot(setting)[childKey]); + } + + zTreeTools.setChkDisabled = function(node, disabled, inheritParent, inheritChildren) { + disabled = !!disabled; + inheritParent = !!inheritParent; + inheritChildren = !!inheritChildren; + view.repairSonChkDisabled(setting, node, disabled, inheritChildren); + view.repairParentChkDisabled(setting, node.getParentNode(), disabled, inheritParent); + } + + var _updateNode = zTreeTools.updateNode; + zTreeTools.updateNode = function(node, checkTypeFlag) { + if (_updateNode) _updateNode.apply(zTreeTools, arguments); + if (!node || !setting.check.enable) return; + var nObj = $$(node, setting); + if (nObj.get(0) && tools.uCanDo(setting)) { + var checkObj = $$(node, consts.id.CHECK, setting); + if (checkTypeFlag == true || setting.check.chkStyle === consts.radio.STYLE) view.checkNodeRelation(setting, node); + view.setChkClass(setting, checkObj, node); + view.repairParentChkClassWithSelf(setting, node); + } + } + }, + //method of operate data + _data = { + getRadioCheckedList: function(setting) { + var checkedList = data.getRoot(setting).radioCheckedList; + for (var i=0, j=checkedList.length; i -1 && node.check_Child_State < 2) : (node.check_Child_State > 0))) + }; + return r; + }, + getTreeCheckedNodes: function(setting, nodes, checked, results) { + if (!nodes) return []; + var childKey = setting.data.key.children, + checkedKey = setting.data.key.checked, + onlyOne = (checked && setting.check.chkStyle == consts.radio.STYLE && setting.check.radioType == consts.radio.TYPE_ALL); + results = !results ? [] : results; + for (var i = 0, l = nodes.length; i < l; i++) { + if (nodes[i].nocheck !== true && nodes[i].chkDisabled !== true && nodes[i][checkedKey] == checked) { + results.push(nodes[i]); + if(onlyOne) { + break; + } + } + data.getTreeCheckedNodes(setting, nodes[i][childKey], checked, results); + if(onlyOne && results.length > 0) { + break; + } + } + return results; + }, + getTreeChangeCheckedNodes: function(setting, nodes, results) { + if (!nodes) return []; + var childKey = setting.data.key.children, + checkedKey = setting.data.key.checked; + results = !results ? [] : results; + for (var i = 0, l = nodes.length; i < l; i++) { + if (nodes[i].nocheck !== true && nodes[i].chkDisabled !== true && nodes[i][checkedKey] != nodes[i].checkedOld) { + results.push(nodes[i]); + } + data.getTreeChangeCheckedNodes(setting, nodes[i][childKey], results); + } + return results; + }, + makeChkFlag: function(setting, node) { + if (!node) return; + var childKey = setting.data.key.children, + checkedKey = setting.data.key.checked, + chkFlag = -1; + if (node[childKey]) { + for (var i = 0, l = node[childKey].length; i < l; i++) { + var cNode = node[childKey][i]; + var tmp = -1; + if (setting.check.chkStyle == consts.radio.STYLE) { + if (cNode.nocheck === true || cNode.chkDisabled === true) { + tmp = cNode.check_Child_State; + } else if (cNode.halfCheck === true) { + tmp = 2; + } else if (cNode[checkedKey]) { + tmp = 2; + } else { + tmp = cNode.check_Child_State > 0 ? 2:0; + } + if (tmp == 2) { + chkFlag = 2; break; + } else if (tmp == 0){ + chkFlag = 0; + } + } else if (setting.check.chkStyle == consts.checkbox.STYLE) { + if (cNode.nocheck === true || cNode.chkDisabled === true) { + tmp = cNode.check_Child_State; + } else if (cNode.halfCheck === true) { + tmp = 1; + } else if (cNode[checkedKey] ) { + tmp = (cNode.check_Child_State === -1 || cNode.check_Child_State === 2) ? 2 : 1; + } else { + tmp = (cNode.check_Child_State > 0) ? 1 : 0; + } + if (tmp === 1) { + chkFlag = 1; break; + } else if (tmp === 2 && chkFlag > -1 && i > 0 && tmp !== chkFlag) { + chkFlag = 1; break; + } else if (chkFlag === 2 && tmp > -1 && tmp < 2) { + chkFlag = 1; break; + } else if (tmp > -1) { + chkFlag = tmp; + } + } + } + } + node.check_Child_State = chkFlag; + } + }, + //method of event proxy + _event = { + + }, + //method of event handler + _handler = { + onCheckNode: function (event, node) { + if (node.chkDisabled === true) return false; + var setting = data.getSetting(event.data.treeId), + checkedKey = setting.data.key.checked; + if (tools.apply(setting.callback.beforeCheck, [setting.treeId, node], true) == false) return true; + node[checkedKey] = !node[checkedKey]; + view.checkNodeRelation(setting, node); + var checkObj = $$(node, consts.id.CHECK, setting); + view.setChkClass(setting, checkObj, node); + view.repairParentChkClassWithSelf(setting, node); + setting.treeObj.trigger(consts.event.CHECK, [event, setting.treeId, node]); + return true; + }, + onMouseoverCheck: function(event, node) { + if (node.chkDisabled === true) return false; + var setting = data.getSetting(event.data.treeId), + checkObj = $$(node, consts.id.CHECK, setting); + node.check_Focus = true; + view.setChkClass(setting, checkObj, node); + return true; + }, + onMouseoutCheck: function(event, node) { + if (node.chkDisabled === true) return false; + var setting = data.getSetting(event.data.treeId), + checkObj = $$(node, consts.id.CHECK, setting); + node.check_Focus = false; + view.setChkClass(setting, checkObj, node); + return true; + } + }, + //method of tools for zTree + _tools = { + + }, + //method of operate ztree dom + _view = { + checkNodeRelation: function(setting, node) { + var pNode, i, l, + childKey = setting.data.key.children, + checkedKey = setting.data.key.checked, + r = consts.radio; + if (setting.check.chkStyle == r.STYLE) { + var checkedList = data.getRadioCheckedList(setting); + if (node[checkedKey]) { + if (setting.check.radioType == r.TYPE_ALL) { + for (i = checkedList.length-1; i >= 0; i--) { + pNode = checkedList[i]; + pNode[checkedKey] = false; + checkedList.splice(i, 1); + + view.setChkClass(setting, $$(pNode, consts.id.CHECK, setting), pNode); + if (pNode.parentTId != node.parentTId) { + view.repairParentChkClassWithSelf(setting, pNode); + } + } + checkedList.push(node); + } else { + var parentNode = (node.parentTId) ? node.getParentNode() : data.getRoot(setting); + for (i = 0, l = parentNode[childKey].length; i < l; i++) { + pNode = parentNode[childKey][i]; + if (pNode[checkedKey] && pNode != node) { + pNode[checkedKey] = false; + view.setChkClass(setting, $$(pNode, consts.id.CHECK, setting), pNode); + } + } + } + } else if (setting.check.radioType == r.TYPE_ALL) { + for (i = 0, l = checkedList.length; i < l; i++) { + if (node == checkedList[i]) { + checkedList.splice(i, 1); + break; + } + } + } + + } else { + if (node[checkedKey] && (!node[childKey] || node[childKey].length==0 || setting.check.chkboxType.Y.indexOf("s") > -1)) { + view.setSonNodeCheckBox(setting, node, true); + } + if (!node[checkedKey] && (!node[childKey] || node[childKey].length==0 || setting.check.chkboxType.N.indexOf("s") > -1)) { + view.setSonNodeCheckBox(setting, node, false); + } + if (node[checkedKey] && setting.check.chkboxType.Y.indexOf("p") > -1) { + view.setParentNodeCheckBox(setting, node, true); + } + if (!node[checkedKey] && setting.check.chkboxType.N.indexOf("p") > -1) { + view.setParentNodeCheckBox(setting, node, false); + } + } + }, + makeChkClass: function(setting, node) { + var checkedKey = setting.data.key.checked, + c = consts.checkbox, r = consts.radio, + fullStyle = ""; + if (node.chkDisabled === true) { + fullStyle = c.DISABLED; + } else if (node.halfCheck) { + fullStyle = c.PART; + } else if (setting.check.chkStyle == r.STYLE) { + fullStyle = (node.check_Child_State < 1)? c.FULL:c.PART; + } else { + fullStyle = node[checkedKey] ? ((node.check_Child_State === 2 || node.check_Child_State === -1) ? c.FULL:c.PART) : ((node.check_Child_State < 1)? c.FULL:c.PART); + } + var chkName = setting.check.chkStyle + "_" + (node[checkedKey] ? c.TRUE : c.FALSE) + "_" + fullStyle; + chkName = (node.check_Focus && node.chkDisabled !== true) ? chkName + "_" + c.FOCUS : chkName; + return consts.className.BUTTON + " " + c.DEFAULT + " " + chkName; + }, + repairAllChk: function(setting, checked) { + if (setting.check.enable && setting.check.chkStyle === consts.checkbox.STYLE) { + var checkedKey = setting.data.key.checked, + childKey = setting.data.key.children, + root = data.getRoot(setting); + for (var i = 0, l = root[childKey].length; i 0) { + view.repairParentChkClass(setting, node[childKey][0]); + } else { + view.repairParentChkClass(setting, node); + } + }, + repairSonChkDisabled: function(setting, node, chkDisabled, inherit) { + if (!node) return; + var childKey = setting.data.key.children; + if (node.chkDisabled != chkDisabled) { + node.chkDisabled = chkDisabled; + } + view.repairChkClass(setting, node); + if (node[childKey] && inherit) { + for (var i = 0, l = node[childKey].length; i < l; i++) { + var sNode = node[childKey][i]; + view.repairSonChkDisabled(setting, sNode, chkDisabled, inherit); + } + } + }, + repairParentChkDisabled: function(setting, node, chkDisabled, inherit) { + if (!node) return; + if (node.chkDisabled != chkDisabled && inherit) { + node.chkDisabled = chkDisabled; + } + view.repairChkClass(setting, node); + view.repairParentChkDisabled(setting, node.getParentNode(), chkDisabled, inherit); + }, + setChkClass: function(setting, obj, node) { + if (!obj) return; + if (node.nocheck === true) { + obj.hide(); + } else { + obj.show(); + } + obj.removeClass(); + obj.addClass(view.makeChkClass(setting, node)); + }, + setParentNodeCheckBox: function(setting, node, value, srcNode) { + var childKey = setting.data.key.children, + checkedKey = setting.data.key.checked, + checkObj = $$(node, consts.id.CHECK, setting); + if (!srcNode) srcNode = node; + data.makeChkFlag(setting, node); + if (node.nocheck !== true && node.chkDisabled !== true) { + node[checkedKey] = value; + view.setChkClass(setting, checkObj, node); + if (setting.check.autoCheckTrigger && node != srcNode) { + setting.treeObj.trigger(consts.event.CHECK, [null, setting.treeId, node]); + } + } + if (node.parentTId) { + var pSign = true; + if (!value) { + var pNodes = node.getParentNode()[childKey]; + for (var i = 0, l = pNodes.length; i < l; i++) { + if ((pNodes[i].nocheck !== true && pNodes[i].chkDisabled !== true && pNodes[i][checkedKey]) + || ((pNodes[i].nocheck === true || pNodes[i].chkDisabled === true) && pNodes[i].check_Child_State > 0)) { + pSign = false; + break; + } + } + } + if (pSign) { + view.setParentNodeCheckBox(setting, node.getParentNode(), value, srcNode); + } + } + }, + setSonNodeCheckBox: function(setting, node, value, srcNode) { + if (!node) return; + var childKey = setting.data.key.children, + checkedKey = setting.data.key.checked, + checkObj = $$(node, consts.id.CHECK, setting); + if (!srcNode) srcNode = node; + + var hasDisable = false; + if (node[childKey]) { + for (var i = 0, l = node[childKey].length; i < l && node.chkDisabled !== true; i++) { + var sNode = node[childKey][i]; + view.setSonNodeCheckBox(setting, sNode, value, srcNode); + if (sNode.chkDisabled === true) hasDisable = true; + } + } + + if (node != data.getRoot(setting) && node.chkDisabled !== true) { + if (hasDisable && node.nocheck !== true) { + data.makeChkFlag(setting, node); + } + if (node.nocheck !== true && node.chkDisabled !== true) { + node[checkedKey] = value; + if (!hasDisable) node.check_Child_State = (node[childKey] && node[childKey].length > 0) ? (value ? 2 : 0) : -1; + } else { + node.check_Child_State = -1; + } + view.setChkClass(setting, checkObj, node); + if (setting.check.autoCheckTrigger && node != srcNode && node.nocheck !== true && node.chkDisabled !== true) { + setting.treeObj.trigger(consts.event.CHECK, [null, setting.treeId, node]); + } + } + + } + }, + + _z = { + tools: _tools, + view: _view, + event: _event, + data: _data + }; + $.extend(true, $.fn.zTree.consts, _consts); + $.extend(true, $.fn.zTree._z, _z); + + var zt = $.fn.zTree, + tools = zt._z.tools, + consts = zt.consts, + view = zt._z.view, + data = zt._z.data, + event = zt._z.event, + $$ = tools.$; + + data.exSetting(_setting); + data.addInitBind(_bindEvent); + data.addInitUnBind(_unbindEvent); + data.addInitCache(_initCache); + data.addInitNode(_initNode); + data.addInitProxy(_eventProxy, true); + data.addInitRoot(_initRoot); + data.addBeforeA(_beforeA); + data.addZTreeTools(_zTreeTools); + + var _createNodes = view.createNodes; + view.createNodes = function(setting, level, nodes, parentNode) { + if (_createNodes) _createNodes.apply(view, arguments); + if (!nodes) return; + view.repairParentChkClassWithSelf(setting, parentNode); + } + var _removeNode = view.removeNode; + view.removeNode = function(setting, node) { + var parentNode = node.getParentNode(); + if (_removeNode) _removeNode.apply(view, arguments); + if (!node || !parentNode) return; + view.repairChkClass(setting, parentNode); + view.repairParentChkClass(setting, parentNode); + } + + var _appendNodes = view.appendNodes; + view.appendNodes = function(setting, level, nodes, parentNode, initFlag, openFlag) { + var html = ""; + if (_appendNodes) { + html = _appendNodes.apply(view, arguments); + } + if (parentNode) { + data.makeChkFlag(setting, parentNode); + } + return html; + } +})(jQuery); \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/js/jquery.ztree.excheck-3.5.min.js b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/js/jquery.ztree.excheck-3.5.min.js new file mode 100644 index 00000000..38455906 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/js/jquery.ztree.excheck-3.5.min.js @@ -0,0 +1,33 @@ +/* + * JQuery zTree excheck v3.5.15 + * http://zTree.me/ + * + * Copyright (c) 2010 Hunter.z + * + * Licensed same as jquery - MIT License + * http://www.opensource.org/licenses/mit-license.php + * + * email: hunter.z@263.net + * Date: 2013-10-15 + */ +(function(m){var p,q,r,o={event:{CHECK:"ztree_check"},id:{CHECK:"_check"},checkbox:{STYLE:"checkbox",DEFAULT:"chk",DISABLED:"disable",FALSE:"false",TRUE:"true",FULL:"full",PART:"part",FOCUS:"focus"},radio:{STYLE:"radio",TYPE_ALL:"all",TYPE_LEVEL:"level"}},v={check:{enable:!1,autoCheckTrigger:!1,chkStyle:o.checkbox.STYLE,nocheckInherit:!1,chkDisabledInherit:!1,radioType:o.radio.TYPE_LEVEL,chkboxType:{Y:"ps",N:"ps"}},data:{key:{checked:"checked"}},callback:{beforeCheck:null,onCheck:null}};p=function(b, +a){if(a.chkDisabled===!0)return!1;var c=f.getSetting(b.data.treeId),d=c.data.key.checked;if(k.apply(c.callback.beforeCheck,[c.treeId,a],!0)==!1)return!0;a[d]=!a[d];e.checkNodeRelation(c,a);d=n(a,j.id.CHECK,c);e.setChkClass(c,d,a);e.repairParentChkClassWithSelf(c,a);c.treeObj.trigger(j.event.CHECK,[b,c.treeId,a]);return!0};q=function(b,a){if(a.chkDisabled===!0)return!1;var c=f.getSetting(b.data.treeId),d=n(a,j.id.CHECK,c);a.check_Focus=!0;e.setChkClass(c,d,a);return!0};r=function(b,a){if(a.chkDisabled=== +!0)return!1;var c=f.getSetting(b.data.treeId),d=n(a,j.id.CHECK,c);a.check_Focus=!1;e.setChkClass(c,d,a);return!0};m.extend(!0,m.fn.zTree.consts,o);m.extend(!0,m.fn.zTree._z,{tools:{},view:{checkNodeRelation:function(b,a){var c,d,h,i=b.data.key.children,l=b.data.key.checked;c=j.radio;if(b.check.chkStyle==c.STYLE){var g=f.getRadioCheckedList(b);if(a[l])if(b.check.radioType==c.TYPE_ALL){for(d=g.length-1;d>=0;d--)c=g[d],c[l]=!1,g.splice(d,1),e.setChkClass(b,n(c,j.id.CHECK,b),c),c.parentTId!=a.parentTId&& +e.repairParentChkClassWithSelf(b,c);g.push(a)}else{g=a.parentTId?a.getParentNode():f.getRoot(b);for(d=0,h=g[i].length;d-1)&&e.setSonNodeCheckBox(b,a,!0),!a[l]&&(!a[i]||a[i].length==0||b.check.chkboxType.N.indexOf("s")>-1)&&e.setSonNodeCheckBox(b,a,!1),a[l]&& +b.check.chkboxType.Y.indexOf("p")>-1&&e.setParentNodeCheckBox(b,a,!0),!a[l]&&b.check.chkboxType.N.indexOf("p")>-1&&e.setParentNodeCheckBox(b,a,!1)},makeChkClass:function(b,a){var c=b.data.key.checked,d=j.checkbox,h=j.radio,i="",i=a.chkDisabled===!0?d.DISABLED:a.halfCheck?d.PART:b.check.chkStyle==h.STYLE?a.check_Child_State<1?d.FULL:d.PART:a[c]?a.check_Child_State===2||a.check_Child_State===-1?d.FULL:d.PART:a.check_Child_State<1?d.FULL:d.PART,c=b.check.chkStyle+"_"+(a[c]?d.TRUE:d.FALSE)+"_"+i,c=a.check_Focus&& +a.chkDisabled!==!0?c+"_"+d.FOCUS:c;return j.className.BUTTON+" "+d.DEFAULT+" "+c},repairAllChk:function(b,a){if(b.check.enable&&b.check.chkStyle===j.checkbox.STYLE)for(var c=b.data.key.checked,d=b.data.key.children,h=f.getRoot(b),i=0,l=h[d].length;i0?e.repairParentChkClass(b,a[c][0]):e.repairParentChkClass(b,a)}},repairSonChkDisabled:function(b,a,c,d){if(a){var h=b.data.key.children;if(a.chkDisabled!=c)a.chkDisabled=c;e.repairChkClass(b,a);if(a[h]&&d)for(var i=0,l=a[h].length;i0){l=!1;break}l&&e.setParentNodeCheckBox(b,a.getParentNode(),c,d)}},setSonNodeCheckBox:function(b,a,c,d){if(a){var h=b.data.key.children,i=b.data.key.checked,l=n(a,j.id.CHECK,b);d||(d=a);var g=!1;if(a[h])for(var k=0,m=a[h].length;k0?c?2:0:-1}else a.check_Child_State=-1;e.setChkClass(b,l,a);b.check.autoCheckTrigger&&a!=d&&a.nocheck!==!0&&a.chkDisabled!==!0&&b.treeObj.trigger(j.event.CHECK,[null,b.treeId,a])}}}},event:{},data:{getRadioCheckedList:function(b){for(var a=f.getRoot(b).radioCheckedList,c=0,d=a.length;c-1&&a.check_Child_State<2:a.check_Child_State>0}},getTreeCheckedNodes:function(b,a,c,d){if(!a)return[];for(var h=b.data.key.children,i=b.data.key.checked,e=c&&b.check.chkStyle==j.radio.STYLE&&b.check.radioType==j.radio.TYPE_ALL, +d=!d?[]:d,g=0,k=a.length;g0)break}return d},getTreeChangeCheckedNodes:function(b,a,c){if(!a)return[];for(var d=b.data.key.children,h=b.data.key.checked,c=!c?[]:c,i=0,e=a.length;i0?2:0,f==2){h=2;break}else f==0&&(h=0);else if(b.check.chkStyle==j.checkbox.STYLE)if(f=g.nocheck===!0||g.chkDisabled===!0?g.check_Child_State:g.halfCheck===!0?1:g[d]?g.check_Child_State===-1||g.check_Child_State===2?2:1:g.check_Child_State>0?1:0,f===1){h=1;break}else if(f=== +2&&h>-1&&i>0&&f!==h){h=1;break}else if(h===2&&f>-1&&f<2){h=1;break}else f>-1&&(h=f)}a.check_Child_State=h}}}});var m=m.fn.zTree,k=m._z.tools,j=m.consts,e=m._z.view,f=m._z.data,n=k.$;f.exSetting(v);f.addInitBind(function(b){b.treeObj.bind(j.event.CHECK,function(a,c,d,h){k.apply(b.callback.onCheck,[c?c:a,d,h])})});f.addInitUnBind(function(b){b.treeObj.unbind(j.event.CHECK)});f.addInitCache(function(){});f.addInitNode(function(b,a,c,d){if(c){a=b.data.key.checked;typeof c[a]=="string"&&(c[a]=k.eqs(c[a], +"true"));c[a]=!!c[a];c.checkedOld=c[a];if(typeof c.nocheck=="string")c.nocheck=k.eqs(c.nocheck,"true");c.nocheck=!!c.nocheck||b.check.nocheckInherit&&d&&!!d.nocheck;if(typeof c.chkDisabled=="string")c.chkDisabled=k.eqs(c.chkDisabled,"true");c.chkDisabled=!!c.chkDisabled||b.check.chkDisabledInherit&&d&&!!d.chkDisabled;if(typeof c.halfCheck=="string")c.halfCheck=k.eqs(c.halfCheck,"true");c.halfCheck=!!c.halfCheck;c.check_Child_State=-1;c.check_Focus=!1;c.getCheckStatus=function(){return f.getCheckStatus(b, +c)};b.check.chkStyle==j.radio.STYLE&&b.check.radioType==j.radio.TYPE_ALL&&c[a]&&f.getRoot(b).radioCheckedList.push(c)}});f.addInitProxy(function(b){var a=b.target,c=f.getSetting(b.data.treeId),d="",h=null,e="",l=null;if(k.eqs(b.type,"mouseover")){if(c.check.enable&&k.eqs(a.tagName,"span")&&a.getAttribute("treeNode"+j.id.CHECK)!==null)d=k.getNodeMainDom(a).id,e="mouseoverCheck"}else if(k.eqs(b.type,"mouseout")){if(c.check.enable&&k.eqs(a.tagName,"span")&&a.getAttribute("treeNode"+j.id.CHECK)!==null)d= +k.getNodeMainDom(a).id,e="mouseoutCheck"}else if(k.eqs(b.type,"click")&&c.check.enable&&k.eqs(a.tagName,"span")&&a.getAttribute("treeNode"+j.id.CHECK)!==null)d=k.getNodeMainDom(a).id,e="checkNode";if(d.length>0)switch(h=f.getNodeCache(c,d),e){case "checkNode":l=p;break;case "mouseoverCheck":l=q;break;case "mouseoutCheck":l=r}return{stop:e==="checkNode",node:h,nodeEventType:e,nodeEventCallback:l,treeEventType:"",treeEventCallback:null}},!0);f.addInitRoot(function(b){f.getRoot(b).radioCheckedList=[]}); +f.addBeforeA(function(b,a,c){b.check.enable&&(f.makeChkFlag(b,a),c.push(""))});f.addZTreeTools(function(b,a){a.checkNode=function(a,c,i,f){var g=b.data.key.checked;if(a.chkDisabled!==!0&&(c!==!0&&c!==!1&&(c=!a[g]),f=!!f,(a[g]!==c||i)&&!(f&&k.apply(this.setting.callback.beforeCheck,[b.treeId,a],!0)==!1)&&k.uCanDo(this.setting)&&b.check.enable&&a.nocheck!==!0))a[g]= +c,c=n(a,j.id.CHECK,b),(i||b.check.chkStyle===j.radio.STYLE)&&e.checkNodeRelation(b,a),e.setChkClass(b,c,a),e.repairParentChkClassWithSelf(b,a),f&&b.treeObj.trigger(j.event.CHECK,[null,b.treeId,a])};a.checkAllNodes=function(a){e.repairAllChk(b,!!a)};a.getCheckedNodes=function(a){var c=b.data.key.children;return f.getTreeCheckedNodes(b,f.getRoot(b)[c],a!==!1)};a.getChangeCheckedNodes=function(){var a=b.data.key.children;return f.getTreeChangeCheckedNodes(b,f.getRoot(b)[a])};a.setChkDisabled=function(a, +c,f,j){c=!!c;f=!!f;e.repairSonChkDisabled(b,a,c,!!j);e.repairParentChkDisabled(b,a.getParentNode(),c,f)};var c=a.updateNode;a.updateNode=function(d,f){c&&c.apply(a,arguments);if(d&&b.check.enable&&n(d,b).get(0)&&k.uCanDo(b)){var i=n(d,j.id.CHECK,b);(f==!0||b.check.chkStyle===j.radio.STYLE)&&e.checkNodeRelation(b,d);e.setChkClass(b,i,d);e.repairParentChkClassWithSelf(b,d)}}});var s=e.createNodes;e.createNodes=function(b,a,c,d){s&&s.apply(e,arguments);c&&e.repairParentChkClassWithSelf(b,d)};var t=e.removeNode; +e.removeNode=function(b,a){var c=a.getParentNode();t&&t.apply(e,arguments);a&&c&&(e.repairChkClass(b,c),e.repairParentChkClass(b,c))};var u=e.appendNodes;e.appendNodes=function(b,a,c,d,h,i){var j="";u&&(j=u.apply(e,arguments));d&&f.makeChkFlag(b,d);return j}})(jQuery); diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/js/jquery.ztree.exedit-3.5.js b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/js/jquery.ztree.exedit-3.5.js new file mode 100644 index 00000000..485b3a35 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/js/jquery.ztree.exedit-3.5.js @@ -0,0 +1,1183 @@ +/* + * JQuery zTree exedit v3.5.15 + * http://zTree.me/ + * + * Copyright (c) 2010 Hunter.z + * + * Licensed same as jquery - MIT License + * http://www.opensource.org/licenses/mit-license.php + * + * email: hunter.z@263.net + * Date: 2013-10-15 + */ +(function($){ + //default consts of exedit + var _consts = { + event: { + DRAG: "ztree_drag", + DROP: "ztree_drop", + REMOVE: "ztree_remove", + RENAME: "ztree_rename" + }, + id: { + EDIT: "_edit", + INPUT: "_input", + REMOVE: "_remove" + }, + move: { + TYPE_INNER: "inner", + TYPE_PREV: "prev", + TYPE_NEXT: "next" + }, + node: { + CURSELECTED_EDIT: "curSelectedNode_Edit", + TMPTARGET_TREE: "tmpTargetzTree", + TMPTARGET_NODE: "tmpTargetNode" + } + }, + //default setting of exedit + _setting = { + edit: { + enable: false, + editNameSelectAll: false, + showRemoveBtn: true, + showRenameBtn: true, + removeTitle: "remove", + renameTitle: "rename", + drag: { + autoExpandTrigger: false, + isCopy: true, + isMove: true, + prev: true, + next: true, + inner: true, + minMoveSize: 5, + borderMax: 10, + borderMin: -5, + maxShowNodeNum: 5, + autoOpenTime: 500 + } + }, + view: { + addHoverDom: null, + removeHoverDom: null + }, + callback: { + beforeDrag:null, + beforeDragOpen:null, + beforeDrop:null, + beforeEditName:null, + beforeRename:null, + onDrag:null, + onDrop:null, + onRename:null + } + }, + //default root of exedit + _initRoot = function (setting) { + var r = data.getRoot(setting), rs = data.getRoots(); + r.curEditNode = null; + r.curEditInput = null; + r.curHoverNode = null; + r.dragFlag = 0; + r.dragNodeShowBefore = []; + r.dragMaskList = new Array(); + rs.showHoverDom = true; + }, + //default cache of exedit + _initCache = function(treeId) {}, + //default bind event of exedit + _bindEvent = function(setting) { + var o = setting.treeObj; + var c = consts.event; + o.bind(c.RENAME, function (event, treeId, treeNode, isCancel) { + tools.apply(setting.callback.onRename, [event, treeId, treeNode, isCancel]); + }); + + o.bind(c.REMOVE, function (event, treeId, treeNode) { + tools.apply(setting.callback.onRemove, [event, treeId, treeNode]); + }); + + o.bind(c.DRAG, function (event, srcEvent, treeId, treeNodes) { + tools.apply(setting.callback.onDrag, [srcEvent, treeId, treeNodes]); + }); + + o.bind(c.DROP, function (event, srcEvent, treeId, treeNodes, targetNode, moveType, isCopy) { + tools.apply(setting.callback.onDrop, [srcEvent, treeId, treeNodes, targetNode, moveType, isCopy]); + }); + }, + _unbindEvent = function(setting) { + var o = setting.treeObj; + var c = consts.event; + o.unbind(c.RENAME); + o.unbind(c.REMOVE); + o.unbind(c.DRAG); + o.unbind(c.DROP); + }, + //default event proxy of exedit + _eventProxy = function(e) { + var target = e.target, + setting = data.getSetting(e.data.treeId), + relatedTarget = e.relatedTarget, + tId = "", node = null, + nodeEventType = "", treeEventType = "", + nodeEventCallback = null, treeEventCallback = null, + tmp = null; + + if (tools.eqs(e.type, "mouseover")) { + tmp = tools.getMDom(setting, target, [{tagName:"a", attrName:"treeNode"+consts.id.A}]); + if (tmp) { + tId = tools.getNodeMainDom(tmp).id; + nodeEventType = "hoverOverNode"; + } + } else if (tools.eqs(e.type, "mouseout")) { + tmp = tools.getMDom(setting, relatedTarget, [{tagName:"a", attrName:"treeNode"+consts.id.A}]); + if (!tmp) { + tId = "remove"; + nodeEventType = "hoverOutNode"; + } + } else if (tools.eqs(e.type, "mousedown")) { + tmp = tools.getMDom(setting, target, [{tagName:"a", attrName:"treeNode"+consts.id.A}]); + if (tmp) { + tId = tools.getNodeMainDom(tmp).id; + nodeEventType = "mousedownNode"; + } + } + if (tId.length>0) { + node = data.getNodeCache(setting, tId); + switch (nodeEventType) { + case "mousedownNode" : + nodeEventCallback = _handler.onMousedownNode; + break; + case "hoverOverNode" : + nodeEventCallback = _handler.onHoverOverNode; + break; + case "hoverOutNode" : + nodeEventCallback = _handler.onHoverOutNode; + break; + } + } + var proxyResult = { + stop: false, + node: node, + nodeEventType: nodeEventType, + nodeEventCallback: nodeEventCallback, + treeEventType: treeEventType, + treeEventCallback: treeEventCallback + }; + return proxyResult + }, + //default init node of exedit + _initNode = function(setting, level, n, parentNode, isFirstNode, isLastNode, openFlag) { + if (!n) return; + n.isHover = false; + n.editNameFlag = false; + }, + //update zTreeObj, add method of edit + _zTreeTools = function(setting, zTreeTools) { + zTreeTools.cancelEditName = function(newName) { + var root = data.getRoot(setting); + if (!root.curEditNode) return; + view.cancelCurEditNode(setting, newName?newName:null, true); + } + zTreeTools.copyNode = function(targetNode, node, moveType, isSilent) { + if (!node) return null; + if (targetNode && !targetNode.isParent && setting.data.keep.leaf && moveType === consts.move.TYPE_INNER) return null; + var newNode = tools.clone(node); + if (!targetNode) { + targetNode = null; + moveType = consts.move.TYPE_INNER; + } + if (moveType == consts.move.TYPE_INNER) { + function copyCallback() { + view.addNodes(setting, targetNode, [newNode], isSilent); + } + + if (tools.canAsync(setting, targetNode)) { + view.asyncNode(setting, targetNode, isSilent, copyCallback); + } else { + copyCallback(); + } + } else { + view.addNodes(setting, targetNode.parentNode, [newNode], isSilent); + view.moveNode(setting, targetNode, newNode, moveType, false, isSilent); + } + return newNode; + } + zTreeTools.editName = function(node) { + if (!node || !node.tId || node !== data.getNodeCache(setting, node.tId)) return; + if (node.parentTId) view.expandCollapseParentNode(setting, node.getParentNode(), true); + view.editNode(setting, node) + } + zTreeTools.moveNode = function(targetNode, node, moveType, isSilent) { + if (!node) return node; + if (targetNode && !targetNode.isParent && setting.data.keep.leaf && moveType === consts.move.TYPE_INNER) { + return null; + } else if (targetNode && ((node.parentTId == targetNode.tId && moveType == consts.move.TYPE_INNER) || $$(node, setting).find("#" + targetNode.tId).length > 0)) { + return null; + } else if (!targetNode) { + targetNode = null; + } + function moveCallback() { + view.moveNode(setting, targetNode, node, moveType, false, isSilent); + } + if (tools.canAsync(setting, targetNode) && moveType === consts.move.TYPE_INNER) { + view.asyncNode(setting, targetNode, isSilent, moveCallback); + } else { + moveCallback(); + } + return node; + } + zTreeTools.setEditable = function(editable) { + setting.edit.enable = editable; + return this.refresh(); + } + }, + //method of operate data + _data = { + setSonNodeLevel: function(setting, parentNode, node) { + if (!node) return; + var childKey = setting.data.key.children; + node.level = (parentNode)? parentNode.level + 1 : 0; + if (!node[childKey]) return; + for (var i = 0, l = node[childKey].length; i < l; i++) { + if (node[childKey][i]) data.setSonNodeLevel(setting, node, node[childKey][i]); + } + } + }, + //method of event proxy + _event = { + + }, + //method of event handler + _handler = { + onHoverOverNode: function(event, node) { + var setting = data.getSetting(event.data.treeId), + root = data.getRoot(setting); + if (root.curHoverNode != node) { + _handler.onHoverOutNode(event); + } + root.curHoverNode = node; + view.addHoverDom(setting, node); + }, + onHoverOutNode: function(event, node) { + var setting = data.getSetting(event.data.treeId), + root = data.getRoot(setting); + if (root.curHoverNode && !data.isSelectedNode(setting, root.curHoverNode)) { + view.removeTreeDom(setting, root.curHoverNode); + root.curHoverNode = null; + } + }, + onMousedownNode: function(eventMouseDown, _node) { + var i,l, + setting = data.getSetting(eventMouseDown.data.treeId), + root = data.getRoot(setting), roots = data.getRoots(); + //right click can't drag & drop + if (eventMouseDown.button == 2 || !setting.edit.enable || (!setting.edit.drag.isCopy && !setting.edit.drag.isMove)) return true; + + //input of edit node name can't drag & drop + var target = eventMouseDown.target, + _nodes = data.getRoot(setting).curSelectedList, + nodes = []; + if (!data.isSelectedNode(setting, _node)) { + nodes = [_node]; + } else { + for (i=0, l=_nodes.length; i1) { + var pNodes = nodes[0].parentTId ? nodes[0].getParentNode()[childKey] : data.getNodes(setting); + tmpNodes = []; + for (i=0, l=pNodes.length; i -1 && (lastIndex+1) !== i) { + isOrder = false; + } + tmpNodes.push(pNodes[i]); + lastIndex = i; + } + if (nodes.length === tmpNodes.length) { + nodes = tmpNodes; + break; + } + } + } + if (isOrder) { + preNode = nodes[0].getPreNode(); + nextNode = nodes[nodes.length-1].getNextNode(); + } + + //set node in selected + curNode = $$("
                                                                                                                                                                                                                                                                                                      ", setting); + for (i=0, l=nodes.length; i0); + view.removeTreeDom(setting, tmpNode); + + tmpDom = $$("
                                                                                                                                                                                                                                                                                                    • ", setting); + tmpDom.append($$(tmpNode, consts.id.A, setting).clone()); + tmpDom.css("padding", "0"); + tmpDom.children("#" + tmpNode.tId + consts.id.A).removeClass(consts.node.CURSELECTED); + curNode.append(tmpDom); + if (i == setting.edit.drag.maxShowNodeNum-1) { + tmpDom = $$("
                                                                                                                                                                                                                                                                                                    • ...
                                                                                                                                                                                                                                                                                                    • ", setting); + curNode.append(tmpDom); + break; + } + } + curNode.attr("id", nodes[0].tId + consts.id.UL + "_tmp"); + curNode.addClass(setting.treeObj.attr("class")); + curNode.appendTo(body); + + tmpArrow = $$("", setting); + tmpArrow.attr("id", "zTreeMove_arrow_tmp"); + tmpArrow.appendTo(body); + + setting.treeObj.trigger(consts.event.DRAG, [event, setting.treeId, nodes]); + } + + if (root.dragFlag == 1) { + if (tmpTarget && tmpArrow.attr("id") == event.target.id && tmpTargetNodeId && (event.clientX + doc.scrollLeft()+2) > ($("#" + tmpTargetNodeId + consts.id.A, tmpTarget).offset().left)) { + var xT = $("#" + tmpTargetNodeId + consts.id.A, tmpTarget); + event.target = (xT.length > 0) ? xT.get(0) : event.target; + } else if (tmpTarget) { + tmpTarget.removeClass(consts.node.TMPTARGET_TREE); + if (tmpTargetNodeId) $("#" + tmpTargetNodeId + consts.id.A, tmpTarget).removeClass(consts.node.TMPTARGET_NODE + "_" + consts.move.TYPE_PREV) + .removeClass(consts.node.TMPTARGET_NODE + "_" + _consts.move.TYPE_NEXT).removeClass(consts.node.TMPTARGET_NODE + "_" + _consts.move.TYPE_INNER); + } + tmpTarget = null; + tmpTargetNodeId = null; + + //judge drag & drop in multi ztree + isOtherTree = false; + targetSetting = setting; + var settings = data.getSettings(); + for (var s in settings) { + if (settings[s].treeId && settings[s].edit.enable && settings[s].treeId != setting.treeId + && (event.target.id == settings[s].treeId || $(event.target).parents("#" + settings[s].treeId).length>0)) { + isOtherTree = true; + targetSetting = settings[s]; + } + } + + var docScrollTop = doc.scrollTop(), + docScrollLeft = doc.scrollLeft(), + treeOffset = targetSetting.treeObj.offset(), + scrollHeight = targetSetting.treeObj.get(0).scrollHeight, + scrollWidth = targetSetting.treeObj.get(0).scrollWidth, + dTop = (event.clientY + docScrollTop - treeOffset.top), + dBottom = (targetSetting.treeObj.height() + treeOffset.top - event.clientY - docScrollTop), + dLeft = (event.clientX + docScrollLeft - treeOffset.left), + dRight = (targetSetting.treeObj.width() + treeOffset.left - event.clientX - docScrollLeft), + isTop = (dTop < setting.edit.drag.borderMax && dTop > setting.edit.drag.borderMin), + isBottom = (dBottom < setting.edit.drag.borderMax && dBottom > setting.edit.drag.borderMin), + isLeft = (dLeft < setting.edit.drag.borderMax && dLeft > setting.edit.drag.borderMin), + isRight = (dRight < setting.edit.drag.borderMax && dRight > setting.edit.drag.borderMin), + isTreeInner = dTop > setting.edit.drag.borderMin && dBottom > setting.edit.drag.borderMin && dLeft > setting.edit.drag.borderMin && dRight > setting.edit.drag.borderMin, + isTreeTop = (isTop && targetSetting.treeObj.scrollTop() <= 0), + isTreeBottom = (isBottom && (targetSetting.treeObj.scrollTop() + targetSetting.treeObj.height()+10) >= scrollHeight), + isTreeLeft = (isLeft && targetSetting.treeObj.scrollLeft() <= 0), + isTreeRight = (isRight && (targetSetting.treeObj.scrollLeft() + targetSetting.treeObj.width()+10) >= scrollWidth); + + if (event.target && tools.isChildOrSelf(event.target, targetSetting.treeId)) { + //get node
                                                                                                                                                                                                                                                                                                    • dom + var targetObj = event.target; + while (targetObj && targetObj.tagName && !tools.eqs(targetObj.tagName, "li") && targetObj.id != targetSetting.treeId) { + targetObj = targetObj.parentNode; + } + + var canMove = true; + //don't move to self or children of self + for (i=0, l=nodes.length; i 0) { + canMove = false; + break; + } + } + if (canMove && event.target && tools.isChildOrSelf(event.target, targetObj.id + consts.id.A)) { + tmpTarget = $(targetObj); + tmpTargetNodeId = targetObj.id; + } + } + + //the mouse must be in zTree + tmpNode = nodes[0]; + if (isTreeInner && tools.isChildOrSelf(event.target, targetSetting.treeId)) { + //judge mouse move in root of ztree + if (!tmpTarget && (event.target.id == targetSetting.treeId || isTreeTop || isTreeBottom || isTreeLeft || isTreeRight) && (isOtherTree || (!isOtherTree && tmpNode.parentTId))) { + tmpTarget = targetSetting.treeObj; + } + //auto scroll top + if (isTop) { + targetSetting.treeObj.scrollTop(targetSetting.treeObj.scrollTop()-10); + } else if (isBottom) { + targetSetting.treeObj.scrollTop(targetSetting.treeObj.scrollTop()+10); + } + if (isLeft) { + targetSetting.treeObj.scrollLeft(targetSetting.treeObj.scrollLeft()-10); + } else if (isRight) { + targetSetting.treeObj.scrollLeft(targetSetting.treeObj.scrollLeft()+10); + } + //auto scroll left + if (tmpTarget && tmpTarget != targetSetting.treeObj && tmpTarget.offset().left < targetSetting.treeObj.offset().left) { + targetSetting.treeObj.scrollLeft(targetSetting.treeObj.scrollLeft()+ tmpTarget.offset().left - targetSetting.treeObj.offset().left); + } + } + + curNode.css({ + "top": (event.clientY + docScrollTop + 3) + "px", + "left": (event.clientX + docScrollLeft + 3) + "px" + }); + + var dX = 0; + var dY = 0; + if (tmpTarget && tmpTarget.attr("id")!=targetSetting.treeId) { + var tmpTargetNode = tmpTargetNodeId == null ? null: data.getNodeCache(targetSetting, tmpTargetNodeId), + isCopy = (event.ctrlKey && setting.edit.drag.isMove && setting.edit.drag.isCopy) || (!setting.edit.drag.isMove && setting.edit.drag.isCopy), + isPrev = !!(preNode && tmpTargetNodeId === preNode.tId), + isNext = !!(nextNode && tmpTargetNodeId === nextNode.tId), + isInner = (tmpNode.parentTId && tmpNode.parentTId == tmpTargetNodeId), + canPrev = (isCopy || !isNext) && tools.apply(targetSetting.edit.drag.prev, [targetSetting.treeId, nodes, tmpTargetNode], !!targetSetting.edit.drag.prev), + canNext = (isCopy || !isPrev) && tools.apply(targetSetting.edit.drag.next, [targetSetting.treeId, nodes, tmpTargetNode], !!targetSetting.edit.drag.next), + canInner = (isCopy || !isInner) && !(targetSetting.data.keep.leaf && !tmpTargetNode.isParent) && tools.apply(targetSetting.edit.drag.inner, [targetSetting.treeId, nodes, tmpTargetNode], !!targetSetting.edit.drag.inner); + if (!canPrev && !canNext && !canInner) { + tmpTarget = null; + tmpTargetNodeId = ""; + moveType = consts.move.TYPE_INNER; + tmpArrow.css({ + "display":"none" + }); + if (window.zTreeMoveTimer) { + clearTimeout(window.zTreeMoveTimer); + window.zTreeMoveTargetNodeTId = null + } + } else { + var tmpTargetA = $("#" + tmpTargetNodeId + consts.id.A, tmpTarget), + tmpNextA = tmpTargetNode.isLastNode ? null : $("#" + tmpTargetNode.getNextNode().tId + consts.id.A, tmpTarget.next()), + tmpTop = tmpTargetA.offset().top, + tmpLeft = tmpTargetA.offset().left, + prevPercent = canPrev ? (canInner ? 0.25 : (canNext ? 0.5 : 1) ) : -1, + nextPercent = canNext ? (canInner ? 0.75 : (canPrev ? 0.5 : 0) ) : -1, + dY_percent = (event.clientY + docScrollTop - tmpTop)/tmpTargetA.height(); + if ((prevPercent==1 ||dY_percent<=prevPercent && dY_percent>=-.2) && canPrev) { + dX = 1 - tmpArrow.width(); + dY = tmpTop - tmpArrow.height()/2; + moveType = consts.move.TYPE_PREV; + } else if ((nextPercent==0 || dY_percent>=nextPercent && dY_percent<=1.2) && canNext) { + dX = 1 - tmpArrow.width(); + dY = (tmpNextA == null || (tmpTargetNode.isParent && tmpTargetNode.open)) ? (tmpTop + tmpTargetA.height() - tmpArrow.height()/2) : (tmpNextA.offset().top - tmpArrow.height()/2); + moveType = consts.move.TYPE_NEXT; + }else { + dX = 5 - tmpArrow.width(); + dY = tmpTop; + moveType = consts.move.TYPE_INNER; + } + tmpArrow.css({ + "display":"block", + "top": dY + "px", + "left": (tmpLeft + dX) + "px" + }); + tmpTargetA.addClass(consts.node.TMPTARGET_NODE + "_" + moveType); + + if (preTmpTargetNodeId != tmpTargetNodeId || preTmpMoveType != moveType) { + startTime = (new Date()).getTime(); + } + if (tmpTargetNode && tmpTargetNode.isParent && moveType == consts.move.TYPE_INNER) { + var startTimer = true; + if (window.zTreeMoveTimer && window.zTreeMoveTargetNodeTId !== tmpTargetNode.tId) { + clearTimeout(window.zTreeMoveTimer); + window.zTreeMoveTargetNodeTId = null; + }else if (window.zTreeMoveTimer && window.zTreeMoveTargetNodeTId === tmpTargetNode.tId) { + startTimer = false; + } + if (startTimer) { + window.zTreeMoveTimer = setTimeout(function() { + if (moveType != consts.move.TYPE_INNER) return; + if (tmpTargetNode && tmpTargetNode.isParent && !tmpTargetNode.open && (new Date()).getTime() - startTime > targetSetting.edit.drag.autoOpenTime + && tools.apply(targetSetting.callback.beforeDragOpen, [targetSetting.treeId, tmpTargetNode], true)) { + view.switchNode(targetSetting, tmpTargetNode); + if (targetSetting.edit.drag.autoExpandTrigger) { + targetSetting.treeObj.trigger(consts.event.EXPAND, [targetSetting.treeId, tmpTargetNode]); + } + } + }, targetSetting.edit.drag.autoOpenTime+50); + window.zTreeMoveTargetNodeTId = tmpTargetNode.tId; + } + } + } + } else { + moveType = consts.move.TYPE_INNER; + if (tmpTarget && tools.apply(targetSetting.edit.drag.inner, [targetSetting.treeId, nodes, null], !!targetSetting.edit.drag.inner)) { + tmpTarget.addClass(consts.node.TMPTARGET_TREE); + } else { + tmpTarget = null; + } + tmpArrow.css({ + "display":"none" + }); + if (window.zTreeMoveTimer) { + clearTimeout(window.zTreeMoveTimer); + window.zTreeMoveTargetNodeTId = null; + } + } + preTmpTargetNodeId = tmpTargetNodeId; + preTmpMoveType = moveType; + } + return false; + } + + doc.bind("mouseup", _docMouseUp); + function _docMouseUp(event) { + if (window.zTreeMoveTimer) { + clearTimeout(window.zTreeMoveTimer); + window.zTreeMoveTargetNodeTId = null; + } + preTmpTargetNodeId = null; + preTmpMoveType = null; + doc.unbind("mousemove", _docMouseMove); + doc.unbind("mouseup", _docMouseUp); + doc.unbind("selectstart", _docSelect); + body.css("cursor", "auto"); + if (tmpTarget) { + tmpTarget.removeClass(consts.node.TMPTARGET_TREE); + if (tmpTargetNodeId) $("#" + tmpTargetNodeId + consts.id.A, tmpTarget).removeClass(consts.node.TMPTARGET_NODE + "_" + consts.move.TYPE_PREV) + .removeClass(consts.node.TMPTARGET_NODE + "_" + _consts.move.TYPE_NEXT).removeClass(consts.node.TMPTARGET_NODE + "_" + _consts.move.TYPE_INNER); + } + tools.showIfameMask(setting, false); + + roots.showHoverDom = true; + if (root.dragFlag == 0) return; + root.dragFlag = 0; + + var i, l, tmpNode; + for (i=0, l=nodes.length; i 0) { + root.dragMaskList[0].remove(); + root.dragMaskList.shift(); + } + if (showSign) { + //show mask + var iframeList = $$("iframe", setting); + for (var i = 0, l = iframeList.length; i < l; i++) { + var obj = iframeList.get(i), + r = tools.getAbs(obj), + dragMask = $$("
                                                                                                                                                                                                                                                                                                      ", setting); + dragMask.appendTo($$("body", setting)); + root.dragMaskList.push(dragMask); + } + } + } + }, + //method of operate ztree dom + _view = { + addEditBtn: function(setting, node) { + if (node.editNameFlag || $$(node, consts.id.EDIT, setting).length > 0) { + return; + } + if (!tools.apply(setting.edit.showRenameBtn, [setting.treeId, node], setting.edit.showRenameBtn)) { + return; + } + var aObj = $$(node, consts.id.A, setting), + editStr = ""; + aObj.append(editStr); + + $$(node, consts.id.EDIT, setting).bind('click', + function() { + if (!tools.uCanDo(setting) || tools.apply(setting.callback.beforeEditName, [setting.treeId, node], true) == false) return false; + view.editNode(setting, node); + return false; + } + ).show(); + }, + addRemoveBtn: function(setting, node) { + if (node.editNameFlag || $$(node, consts.id.REMOVE, setting).length > 0) { + return; + } + if (!tools.apply(setting.edit.showRemoveBtn, [setting.treeId, node], setting.edit.showRemoveBtn)) { + return; + } + var aObj = $$(node, consts.id.A, setting), + removeStr = ""; + aObj.append(removeStr); + + $$(node, consts.id.REMOVE, setting).bind('click', + function() { + if (!tools.uCanDo(setting) || tools.apply(setting.callback.beforeRemove, [setting.treeId, node], true) == false) return false; + view.removeNode(setting, node); + setting.treeObj.trigger(consts.event.REMOVE, [setting.treeId, node]); + return false; + } + ).bind('mousedown', + function(eventMouseDown) { + return true; + } + ).show(); + }, + addHoverDom: function(setting, node) { + if (data.getRoots().showHoverDom) { + node.isHover = true; + if (setting.edit.enable) { + view.addEditBtn(setting, node); + view.addRemoveBtn(setting, node); + } + tools.apply(setting.view.addHoverDom, [setting.treeId, node]); + } + }, + cancelCurEditNode: function (setting, forceName, isCancel) { + var root = data.getRoot(setting), + nameKey = setting.data.key.name, + node = root.curEditNode; + + if (node) { + var inputObj = root.curEditInput, + newName = forceName ? forceName:(isCancel ? node[nameKey]: inputObj.val()); + if (tools.apply(setting.callback.beforeRename, [setting.treeId, node, newName, isCancel], true) === false) { + return false; + } else { + node[nameKey] = newName; + setting.treeObj.trigger(consts.event.RENAME, [setting.treeId, node, isCancel]); + } + var aObj = $$(node, consts.id.A, setting); + aObj.removeClass(consts.node.CURSELECTED_EDIT); + inputObj.unbind(); + view.setNodeName(setting, node); + node.editNameFlag = false; + root.curEditNode = null; + root.curEditInput = null; + view.selectNode(setting, node, false); + } + root.noSelection = true; + return true; + }, + editNode: function(setting, node) { + var root = data.getRoot(setting); + view.editNodeBlur = false; + if (data.isSelectedNode(setting, node) && root.curEditNode == node && node.editNameFlag) { + setTimeout(function() {tools.inputFocus(root.curEditInput);}, 0); + return; + } + var nameKey = setting.data.key.name; + node.editNameFlag = true; + view.removeTreeDom(setting, node); + view.cancelCurEditNode(setting); + view.selectNode(setting, node, false); + $$(node, consts.id.SPAN, setting).html(""); + var inputObj = $$(node, consts.id.INPUT, setting); + inputObj.attr("value", node[nameKey]); + if (setting.edit.editNameSelectAll) { + tools.inputSelect(inputObj); + } else { + tools.inputFocus(inputObj); + } + + inputObj.bind('blur', function(event) { + if (!view.editNodeBlur) { + view.cancelCurEditNode(setting); + } + }).bind('keydown', function(event) { + if (event.keyCode=="13") { + view.editNodeBlur = true; + view.cancelCurEditNode(setting); + } else if (event.keyCode=="27") { + view.cancelCurEditNode(setting, null, true); + } + }).bind('click', function(event) { + return false; + }).bind('dblclick', function(event) { + return false; + }); + + $$(node, consts.id.A, setting).addClass(consts.node.CURSELECTED_EDIT); + root.curEditInput = inputObj; + root.noSelection = false; + root.curEditNode = node; + }, + moveNode: function(setting, targetNode, node, moveType, animateFlag, isSilent) { + var root = data.getRoot(setting), + childKey = setting.data.key.children; + if (targetNode == node) return; + if (setting.data.keep.leaf && targetNode && !targetNode.isParent && moveType == consts.move.TYPE_INNER) return; + var oldParentNode = (node.parentTId ? node.getParentNode(): root), + targetNodeIsRoot = (targetNode === null || targetNode == root); + if (targetNodeIsRoot && targetNode === null) targetNode = root; + if (targetNodeIsRoot) moveType = consts.move.TYPE_INNER; + var targetParentNode = (targetNode.parentTId ? targetNode.getParentNode() : root); + + if (moveType != consts.move.TYPE_PREV && moveType != consts.move.TYPE_NEXT) { + moveType = consts.move.TYPE_INNER; + } + + if (moveType == consts.move.TYPE_INNER) { + if (targetNodeIsRoot) { + //parentTId of root node is null + node.parentTId = null; + } else { + if (!targetNode.isParent) { + targetNode.isParent = true; + targetNode.open = !!targetNode.open; + view.setNodeLineIcos(setting, targetNode); + } + node.parentTId = targetNode.tId; + } + } + + //move node Dom + var targetObj, target_ulObj; + if (targetNodeIsRoot) { + targetObj = setting.treeObj; + target_ulObj = targetObj; + } else { + if (!isSilent && moveType == consts.move.TYPE_INNER) { + view.expandCollapseNode(setting, targetNode, true, false); + } else if (!isSilent) { + view.expandCollapseNode(setting, targetNode.getParentNode(), true, false); + } + targetObj = $$(targetNode, setting); + target_ulObj = $$(targetNode, consts.id.UL, setting); + if (!!targetObj.get(0) && !target_ulObj.get(0)) { + var ulstr = []; + view.makeUlHtml(setting, targetNode, ulstr, ''); + targetObj.append(ulstr.join('')); + } + target_ulObj = $$(targetNode, consts.id.UL, setting); + } + var nodeDom = $$(node, setting); + if (!nodeDom.get(0)) { + nodeDom = view.appendNodes(setting, node.level, [node], null, false, true).join(''); + } else if (!targetObj.get(0)) { + nodeDom.remove(); + } + if (target_ulObj.get(0) && moveType == consts.move.TYPE_INNER) { + target_ulObj.append(nodeDom); + } else if (targetObj.get(0) && moveType == consts.move.TYPE_PREV) { + targetObj.before(nodeDom); + } else if (targetObj.get(0) && moveType == consts.move.TYPE_NEXT) { + targetObj.after(nodeDom); + } + + //repair the data after move + var i,l, + tmpSrcIndex = -1, + tmpTargetIndex = 0, + oldNeighbor = null, + newNeighbor = null, + oldLevel = node.level; + if (node.isFirstNode) { + tmpSrcIndex = 0; + if (oldParentNode[childKey].length > 1 ) { + oldNeighbor = oldParentNode[childKey][1]; + oldNeighbor.isFirstNode = true; + } + } else if (node.isLastNode) { + tmpSrcIndex = oldParentNode[childKey].length -1; + oldNeighbor = oldParentNode[childKey][tmpSrcIndex - 1]; + oldNeighbor.isLastNode = true; + } else { + for (i = 0, l = oldParentNode[childKey].length; i < l; i++) { + if (oldParentNode[childKey][i].tId == node.tId) { + tmpSrcIndex = i; + break; + } + } + } + if (tmpSrcIndex >= 0) { + oldParentNode[childKey].splice(tmpSrcIndex, 1); + } + if (moveType != consts.move.TYPE_INNER) { + for (i = 0, l = targetParentNode[childKey].length; i < l; i++) { + if (targetParentNode[childKey][i].tId == targetNode.tId) tmpTargetIndex = i; + } + } + if (moveType == consts.move.TYPE_INNER) { + if (!targetNode[childKey]) targetNode[childKey] = new Array(); + if (targetNode[childKey].length > 0) { + newNeighbor = targetNode[childKey][targetNode[childKey].length - 1]; + newNeighbor.isLastNode = false; + } + targetNode[childKey].splice(targetNode[childKey].length, 0, node); + node.isLastNode = true; + node.isFirstNode = (targetNode[childKey].length == 1); + } else if (targetNode.isFirstNode && moveType == consts.move.TYPE_PREV) { + targetParentNode[childKey].splice(tmpTargetIndex, 0, node); + newNeighbor = targetNode; + newNeighbor.isFirstNode = false; + node.parentTId = targetNode.parentTId; + node.isFirstNode = true; + node.isLastNode = false; + + } else if (targetNode.isLastNode && moveType == consts.move.TYPE_NEXT) { + targetParentNode[childKey].splice(tmpTargetIndex + 1, 0, node); + newNeighbor = targetNode; + newNeighbor.isLastNode = false; + node.parentTId = targetNode.parentTId; + node.isFirstNode = false; + node.isLastNode = true; + + } else { + if (moveType == consts.move.TYPE_PREV) { + targetParentNode[childKey].splice(tmpTargetIndex, 0, node); + } else { + targetParentNode[childKey].splice(tmpTargetIndex + 1, 0, node); + } + node.parentTId = targetNode.parentTId; + node.isFirstNode = false; + node.isLastNode = false; + } + data.fixPIdKeyValue(setting, node); + data.setSonNodeLevel(setting, node.getParentNode(), node); + + //repair node what been moved + view.setNodeLineIcos(setting, node); + view.repairNodeLevelClass(setting, node, oldLevel) + + //repair node's old parentNode dom + if (!setting.data.keep.parent && oldParentNode[childKey].length < 1) { + //old parentNode has no child nodes + oldParentNode.isParent = false; + oldParentNode.open = false; + var tmp_ulObj = $$(oldParentNode, consts.id.UL, setting), + tmp_switchObj = $$(oldParentNode, consts.id.SWITCH, setting), + tmp_icoObj = $$(oldParentNode, consts.id.ICON, setting); + view.replaceSwitchClass(oldParentNode, tmp_switchObj, consts.folder.DOCU); + view.replaceIcoClass(oldParentNode, tmp_icoObj, consts.folder.DOCU); + tmp_ulObj.css("display", "none"); + + } else if (oldNeighbor) { + //old neigbor node + view.setNodeLineIcos(setting, oldNeighbor); + } + + //new neigbor node + if (newNeighbor) { + view.setNodeLineIcos(setting, newNeighbor); + } + + //repair checkbox / radio + if (!!setting.check && setting.check.enable && view.repairChkClass) { + view.repairChkClass(setting, oldParentNode); + view.repairParentChkClassWithSelf(setting, oldParentNode); + if (oldParentNode != node.parent) + view.repairParentChkClassWithSelf(setting, node); + } + + //expand parents after move + if (!isSilent) { + view.expandCollapseParentNode(setting, node.getParentNode(), true, animateFlag); + } + }, + removeEditBtn: function(setting, node) { + $$(node, consts.id.EDIT, setting).unbind().remove(); + }, + removeRemoveBtn: function(setting, node) { + $$(node, consts.id.REMOVE, setting).unbind().remove(); + }, + removeTreeDom: function(setting, node) { + node.isHover = false; + view.removeEditBtn(setting, node); + view.removeRemoveBtn(setting, node); + tools.apply(setting.view.removeHoverDom, [setting.treeId, node]); + }, + repairNodeLevelClass: function(setting, node, oldLevel) { + if (oldLevel === node.level) return; + var liObj = $$(node, setting), + aObj = $$(node, consts.id.A, setting), + ulObj = $$(node, consts.id.UL, setting), + oldClass = consts.className.LEVEL + oldLevel, + newClass = consts.className.LEVEL + node.level; + liObj.removeClass(oldClass); + liObj.addClass(newClass); + aObj.removeClass(oldClass); + aObj.addClass(newClass); + ulObj.removeClass(oldClass); + ulObj.addClass(newClass); + }, + selectNodes : function(setting, nodes) { + for (var i=0, l=nodes.length; i0); + } + } + }, + + _z = { + tools: _tools, + view: _view, + event: _event, + data: _data + }; + $.extend(true, $.fn.zTree.consts, _consts); + $.extend(true, $.fn.zTree._z, _z); + + var zt = $.fn.zTree, + tools = zt._z.tools, + consts = zt.consts, + view = zt._z.view, + data = zt._z.data, + event = zt._z.event, + $$ = tools.$; + + data.exSetting(_setting); + data.addInitBind(_bindEvent); + data.addInitUnBind(_unbindEvent); + data.addInitCache(_initCache); + data.addInitNode(_initNode); + data.addInitProxy(_eventProxy); + data.addInitRoot(_initRoot); + data.addZTreeTools(_zTreeTools); + + var _cancelPreSelectedNode = view.cancelPreSelectedNode; + view.cancelPreSelectedNode = function (setting, node) { + var list = data.getRoot(setting).curSelectedList; + for (var i=0, j=list.length; i1){var j=m[0].parentTId?m[0].getParentNode()[i]:n.getNodes(f);i=[];for(a=0,c=j.length;a-1&&k+1!==a&&(o=!1),i.push(j[a]),k=a),m.length===i.length){m=i;break}}o&&(H=m[0].getPreNode(),R=m[m.length-1].getNextNode());C=p("
                                                                                                                                                                                                                                                                                                        ", +f);for(a=0,c=m.length;a0),e.removeTreeDom(f,o),k=p("
                                                                                                                                                                                                                                                                                                      • ",f),k.append(p(o,d.id.A,f).clone()),k.css("padding","0"),k.children("#"+o.tId+d.id.A).removeClass(d.node.CURSELECTED),C.append(k),a==f.edit.drag.maxShowNodeNum-1){k=p("
                                                                                                                                                                                                                                                                                                      • ...
                                                                                                                                                                                                                                                                                                      • ",f);C.append(k);break}C.attr("id",m[0].tId+d.id.UL+"_tmp");C.addClass(f.treeObj.attr("class"));C.appendTo(M);A=p("", +f);A.attr("id","zTreeMove_arrow_tmp");A.appendTo(M);f.treeObj.trigger(d.event.DRAG,[b,f.treeId,m])}if(B.dragFlag==1){s&&A.attr("id")==b.target.id&&u&&b.clientX+F.scrollLeft()+2>w("#"+u+d.id.A,s).offset().left?(o=w("#"+u+d.id.A,s),b.target=o.length>0?o.get(0):b.target):s&&(s.removeClass(d.node.TMPTARGET_TREE),u&&w("#"+u+d.id.A,s).removeClass(d.node.TMPTARGET_NODE+"_"+d.move.TYPE_PREV).removeClass(d.node.TMPTARGET_NODE+"_"+I.move.TYPE_NEXT).removeClass(d.node.TMPTARGET_NODE+"_"+I.move.TYPE_INNER)); +u=s=null;J=!1;h=f;o=n.getSettings();for(var D in o)if(o[D].treeId&&o[D].edit.enable&&o[D].treeId!=f.treeId&&(b.target.id==o[D].treeId||w(b.target).parents("#"+o[D].treeId).length>0))J=!0,h=o[D];D=F.scrollTop();k=F.scrollLeft();i=h.treeObj.offset();a=h.treeObj.get(0).scrollHeight;o=h.treeObj.get(0).scrollWidth;c=b.clientY+D-i.top;var q=h.treeObj.height()+i.top-b.clientY-D,r=b.clientX+k-i.left,x=h.treeObj.width()+i.left-b.clientX-k;i=cf.edit.drag.borderMin;var j=qf.edit.drag.borderMin,K=rf.edit.drag.borderMin,G=xf.edit.drag.borderMin,q=c>f.edit.drag.borderMin&&q>f.edit.drag.borderMin&&r>f.edit.drag.borderMin&&x>f.edit.drag.borderMin,r=i&&h.treeObj.scrollTop()<=0,x=j&&h.treeObj.scrollTop()+h.treeObj.height()+10>=a,P=K&&h.treeObj.scrollLeft()<=0,Q=G&&h.treeObj.scrollLeft()+h.treeObj.width()+10>=o;if(b.target&&g.isChildOrSelf(b.target,h.treeId)){for(var E=b.target;E&&E.tagName&&!g.eqs(E.tagName,"li")&&E.id!= +h.treeId;)E=E.parentNode;var S=!0;for(a=0,c=m.length;a0){S=!1;break}if(S&&b.target&&g.isChildOrSelf(b.target,E.id+d.id.A))s=w(E),u=E.id}o=m[0];if(q&&g.isChildOrSelf(b.target,h.treeId)){if(!s&&(b.target.id==h.treeId||r||x||P||Q)&&(J||!J&&o.parentTId))s=h.treeObj;i?h.treeObj.scrollTop(h.treeObj.scrollTop()-10):j&&h.treeObj.scrollTop(h.treeObj.scrollTop()+10);K?h.treeObj.scrollLeft(h.treeObj.scrollLeft()-10):G&&h.treeObj.scrollLeft(h.treeObj.scrollLeft()+ +10);s&&s!=h.treeObj&&s.offset().left=-0.2)&&o?(a=1-A.width(),i=j-A.height()/2,v=d.move.TYPE_PREV):(G==0||b>=G&&b<=1.2)&&a?(a=1-A.width(),i=i==null||y.isParent&&y.open?j+c.height()-A.height()/2:i.offset().top-A.height()/2,v=d.move.TYPE_NEXT):(a=5-A.width(),i=j,v=d.move.TYPE_INNER);A.css({display:"block",top:i+"px",left:k+a+"px"});c.addClass(d.node.TMPTARGET_NODE+"_"+v);if(T!=u||U!=v)L=(new Date).getTime();if(y&&y.isParent&&v==d.move.TYPE_INNER&&(b=!0,window.zTreeMoveTimer&&window.zTreeMoveTargetNodeTId!== +y.tId?(clearTimeout(window.zTreeMoveTimer),window.zTreeMoveTargetNodeTId=null):window.zTreeMoveTimer&&window.zTreeMoveTargetNodeTId===y.tId&&(b=!1),b))window.zTreeMoveTimer=setTimeout(function(){v==d.move.TYPE_INNER&&y&&y.isParent&&!y.open&&(new Date).getTime()-L>h.edit.drag.autoOpenTime&&g.apply(h.callback.beforeDragOpen,[h.treeId,y],!0)&&(e.switchNode(h,y),h.edit.drag.autoExpandTrigger&&h.treeObj.trigger(d.event.EXPAND,[h.treeId,y]))},h.edit.drag.autoOpenTime+50),window.zTreeMoveTargetNodeTId=y.tId}}else if(v= +d.move.TYPE_INNER,s&&g.apply(h.edit.drag.inner,[h.treeId,m,null],!!h.edit.drag.inner)?s.addClass(d.node.TMPTARGET_TREE):s=null,A.css({display:"none"}),window.zTreeMoveTimer)clearTimeout(window.zTreeMoveTimer),window.zTreeMoveTargetNodeTId=null;T=u;U=v}return!1}function l(b){if(window.zTreeMoveTimer)clearTimeout(window.zTreeMoveTimer),window.zTreeMoveTargetNodeTId=null;U=T=null;F.unbind("mousemove",c);F.unbind("mouseup",l);F.unbind("selectstart",k);M.css("cursor","auto");s&&(s.removeClass(d.node.TMPTARGET_TREE), +u&&w("#"+u+d.id.A,s).removeClass(d.node.TMPTARGET_NODE+"_"+d.move.TYPE_PREV).removeClass(d.node.TMPTARGET_NODE+"_"+I.move.TYPE_NEXT).removeClass(d.node.TMPTARGET_NODE+"_"+I.move.TYPE_INNER));g.showIfameMask(f,!1);t.showHoverDom=!0;if(B.dragFlag!=0){B.dragFlag=0;var a,i,j;for(a=0,i=m.length;a +0;)c.dragMaskList[0].remove(),c.dragMaskList.shift();if(a)for(var d=p("iframe",b),e=0,i=d.length;e",b);j.appendTo(p("body",b));c.dragMaskList.push(j)}}},view:{addEditBtn:function(b,a){if(!(a.editNameFlag||p(a,d.id.EDIT,b).length>0)&&g.apply(b.edit.showRenameBtn,[b.treeId,a],b.edit.showRenameBtn)){var c=p(a,d.id.A, +b),l="";c.append(l);p(a,d.id.EDIT,b).bind("click",function(){if(!g.uCanDo(b)||g.apply(b.callback.beforeEditName,[b.treeId,a],!0)==!1)return!1;e.editNode(b,a);return!1}).show()}},addRemoveBtn:function(b,a){if(!(a.editNameFlag||p(a,d.id.REMOVE,b).length>0)&&g.apply(b.edit.showRemoveBtn,[b.treeId,a],b.edit.showRemoveBtn)){var c= +p(a,d.id.A,b),l="";c.append(l);p(a,d.id.REMOVE,b).bind("click",function(){if(!g.uCanDo(b)||g.apply(b.callback.beforeRemove,[b.treeId,a],!0)==!1)return!1;e.removeNode(b,a);b.treeObj.trigger(d.event.REMOVE,[b.treeId,a]);return!1}).bind("mousedown",function(){return!0}).show()}},addHoverDom:function(b,a){if(n.getRoots().showHoverDom)a.isHover= +!0,b.edit.enable&&(e.addEditBtn(b,a),e.addRemoveBtn(b,a)),g.apply(b.view.addHoverDom,[b.treeId,a])},cancelCurEditNode:function(b,a,c){var l=n.getRoot(b),k=b.data.key.name,i=l.curEditNode;if(i){var j=l.curEditInput,a=a?a:c?i[k]:j.val();if(g.apply(b.callback.beforeRename,[b.treeId,i,a,c],!0)===!1)return!1;else i[k]=a,b.treeObj.trigger(d.event.RENAME,[b.treeId,i,c]);p(i,d.id.A,b).removeClass(d.node.CURSELECTED_EDIT);j.unbind();e.setNodeName(b,i);i.editNameFlag=!1;l.curEditNode=null;l.curEditInput=null; +e.selectNode(b,i,!1)}return l.noSelection=!0},editNode:function(b,a){var c=n.getRoot(b);e.editNodeBlur=!1;if(n.isSelectedNode(b,a)&&c.curEditNode==a&&a.editNameFlag)setTimeout(function(){g.inputFocus(c.curEditInput)},0);else{var l=b.data.key.name;a.editNameFlag=!0;e.removeTreeDom(b,a);e.cancelCurEditNode(b);e.selectNode(b,a,!1);p(a,d.id.SPAN,b).html("");var k=p(a,d.id.INPUT,b);k.attr("value",a[l]);b.edit.editNameSelectAll? +g.inputSelect(k):g.inputFocus(k);k.bind("blur",function(){e.editNodeBlur||e.cancelCurEditNode(b)}).bind("keydown",function(a){a.keyCode=="13"?(e.editNodeBlur=!0,e.cancelCurEditNode(b)):a.keyCode=="27"&&e.cancelCurEditNode(b,null,!0)}).bind("click",function(){return!1}).bind("dblclick",function(){return!1});p(a,d.id.A,b).addClass(d.node.CURSELECTED_EDIT);c.curEditInput=k;c.noSelection=!1;c.curEditNode=a}},moveNode:function(b,a,c,l,k,i){var j=n.getRoot(b),f=b.data.key.children;if(a!=c&&(!b.data.keep.leaf|| +!a||a.isParent||l!=d.move.TYPE_INNER)){var g=c.parentTId?c.getParentNode():j,t=a===null||a==j;t&&a===null&&(a=j);if(t)l=d.move.TYPE_INNER;j=a.parentTId?a.getParentNode():j;if(l!=d.move.TYPE_PREV&&l!=d.move.TYPE_NEXT)l=d.move.TYPE_INNER;if(l==d.move.TYPE_INNER)if(t)c.parentTId=null;else{if(!a.isParent)a.isParent=!0,a.open=!!a.open,e.setNodeLineIcos(b,a);c.parentTId=a.tId}var q;t?q=t=b.treeObj:(!i&&l==d.move.TYPE_INNER?e.expandCollapseNode(b,a,!0,!1):i||e.expandCollapseNode(b,a.getParentNode(),!0,!1), +t=p(a,b),q=p(a,d.id.UL,b),t.get(0)&&!q.get(0)&&(q=[],e.makeUlHtml(b,a,q,""),t.append(q.join(""))),q=p(a,d.id.UL,b));var r=p(c,b);r.get(0)?t.get(0)||r.remove():r=e.appendNodes(b,c.level,[c],null,!1,!0).join("");q.get(0)&&l==d.move.TYPE_INNER?q.append(r):t.get(0)&&l==d.move.TYPE_PREV?t.before(r):t.get(0)&&l==d.move.TYPE_NEXT&&t.after(r);var m=-1,w=0,x=null,t=null,C=c.level;if(c.isFirstNode){if(m=0,g[f].length>1)x=g[f][1],x.isFirstNode=!0}else if(c.isLastNode)m=g[f].length-1,x=g[f][m-1],x.isLastNode= +!0;else for(q=0,r=g[f].length;q=0&&g[f].splice(m,1);if(l!=d.move.TYPE_INNER)for(q=0,r=j[f].length;q0)t=a[f][a[f].length-1],t.isLastNode=!1;a[f].splice(a[f].length,0,c);c.isLastNode=!0;c.isFirstNode=a[f].length==1}else a.isFirstNode&&l==d.move.TYPE_PREV?(j[f].splice(w,0,c),t=a,t.isFirstNode=!1,c.parentTId=a.parentTId,c.isFirstNode=!0,c.isLastNode=!1):a.isLastNode&&l==d.move.TYPE_NEXT? +(j[f].splice(w+1,0,c),t=a,t.isLastNode=!1,c.parentTId=a.parentTId,c.isFirstNode=!1,c.isLastNode=!0):(l==d.move.TYPE_PREV?j[f].splice(w,0,c):j[f].splice(w+1,0,c),c.parentTId=a.parentTId,c.isFirstNode=!1,c.isLastNode=!1);n.fixPIdKeyValue(b,c);n.setSonNodeLevel(b,c.getParentNode(),c);e.setNodeLineIcos(b,c);e.repairNodeLevelClass(b,c,C);!b.data.keep.parent&&g[f].length<1?(g.isParent=!1,g.open=!1,a=p(g,d.id.UL,b),l=p(g,d.id.SWITCH,b),f=p(g,d.id.ICON,b),e.replaceSwitchClass(g,l,d.folder.DOCU),e.replaceIcoClass(g, +f,d.folder.DOCU),a.css("display","none")):x&&e.setNodeLineIcos(b,x);t&&e.setNodeLineIcos(b,t);b.check&&b.check.enable&&e.repairChkClass&&(e.repairChkClass(b,g),e.repairParentChkClassWithSelf(b,g),g!=c.parent&&e.repairParentChkClassWithSelf(b,c));i||e.expandCollapseParentNode(b,c.getParentNode(),!0,k)}},removeEditBtn:function(b,a){p(a,d.id.EDIT,b).unbind().remove()},removeRemoveBtn:function(b,a){p(a,d.id.REMOVE,b).unbind().remove()},removeTreeDom:function(b,a){a.isHover=!1;e.removeEditBtn(b,a);e.removeRemoveBtn(b, +a);g.apply(b.view.removeHoverDom,[b.treeId,a])},repairNodeLevelClass:function(b,a,c){if(c!==a.level){var e=p(a,b),g=p(a,d.id.A,b),b=p(a,d.id.UL,b),c=d.className.LEVEL+c,a=d.className.LEVEL+a.level;e.removeClass(c);e.addClass(a);g.removeClass(c);g.addClass(a);b.removeClass(c);b.addClass(a)}},selectNodes:function(b,a){for(var c=0,d=a.length;c0)}},event:{},data:{setSonNodeLevel:function(b,a,c){if(c){var d=b.data.key.children;c.level=a?a.level+1:0;if(c[d])for(var a=0,e=c[d].length;a< +e;a++)c[d][a]&&n.setSonNodeLevel(b,c,c[d][a])}}}});var H=w.fn.zTree,g=H._z.tools,d=H.consts,e=H._z.view,n=H._z.data,p=g.$;n.exSetting({edit:{enable:!1,editNameSelectAll:!1,showRemoveBtn:!0,showRenameBtn:!0,removeTitle:"remove",renameTitle:"rename",drag:{autoExpandTrigger:!1,isCopy:!0,isMove:!0,prev:!0,next:!0,inner:!0,minMoveSize:5,borderMax:10,borderMin:-5,maxShowNodeNum:5,autoOpenTime:500}},view:{addHoverDom:null,removeHoverDom:null},callback:{beforeDrag:null,beforeDragOpen:null,beforeDrop:null, +beforeEditName:null,beforeRename:null,onDrag:null,onDrop:null,onRename:null}});n.addInitBind(function(b){var a=b.treeObj,c=d.event;a.bind(c.RENAME,function(a,c,d,e){g.apply(b.callback.onRename,[a,c,d,e])});a.bind(c.REMOVE,function(a,c,d){g.apply(b.callback.onRemove,[a,c,d])});a.bind(c.DRAG,function(a,c,d,e){g.apply(b.callback.onDrag,[c,d,e])});a.bind(c.DROP,function(a,c,d,e,f,n,p){g.apply(b.callback.onDrop,[c,d,e,f,n,p])})});n.addInitUnBind(function(b){var b=b.treeObj,a=d.event;b.unbind(a.RENAME); +b.unbind(a.REMOVE);b.unbind(a.DRAG);b.unbind(a.DROP)});n.addInitCache(function(){});n.addInitNode(function(b,a,c){if(c)c.isHover=!1,c.editNameFlag=!1});n.addInitProxy(function(b){var a=b.target,c=n.getSetting(b.data.treeId),e=b.relatedTarget,k="",i=null,j="",f=null,p=null;if(g.eqs(b.type,"mouseover")){if(p=g.getMDom(c,a,[{tagName:"a",attrName:"treeNode"+d.id.A}]))k=g.getNodeMainDom(p).id,j="hoverOverNode"}else if(g.eqs(b.type,"mouseout"))p=g.getMDom(c,e,[{tagName:"a",attrName:"treeNode"+d.id.A}]), +p||(k="remove",j="hoverOutNode");else if(g.eqs(b.type,"mousedown")&&(p=g.getMDom(c,a,[{tagName:"a",attrName:"treeNode"+d.id.A}])))k=g.getNodeMainDom(p).id,j="mousedownNode";if(k.length>0)switch(i=n.getNodeCache(c,k),j){case "mousedownNode":f=x.onMousedownNode;break;case "hoverOverNode":f=x.onHoverOverNode;break;case "hoverOutNode":f=x.onHoverOutNode}return{stop:!1,node:i,nodeEventType:j,nodeEventCallback:f,treeEventType:"",treeEventCallback:null}});n.addInitRoot(function(b){var b=n.getRoot(b),a=n.getRoots(); +b.curEditNode=null;b.curEditInput=null;b.curHoverNode=null;b.dragFlag=0;b.dragNodeShowBefore=[];b.dragMaskList=[];a.showHoverDom=!0});n.addZTreeTools(function(b,a){a.cancelEditName=function(a){n.getRoot(b).curEditNode&&e.cancelCurEditNode(b,a?a:null,!0)};a.copyNode=function(a,l,k,i){if(!l)return null;if(a&&!a.isParent&&b.data.keep.leaf&&k===d.move.TYPE_INNER)return null;var j=g.clone(l);if(!a)a=null,k=d.move.TYPE_INNER;k==d.move.TYPE_INNER?(l=function(){e.addNodes(b,a,[j],i)},g.canAsync(b,a)?e.asyncNode(b, +a,i,l):l()):(e.addNodes(b,a.parentNode,[j],i),e.moveNode(b,a,j,k,!1,i));return j};a.editName=function(a){a&&a.tId&&a===n.getNodeCache(b,a.tId)&&(a.parentTId&&e.expandCollapseParentNode(b,a.getParentNode(),!0),e.editNode(b,a))};a.moveNode=function(a,l,k,i){function j(){e.moveNode(b,a,l,k,!1,i)}if(!l)return l;if(a&&!a.isParent&&b.data.keep.leaf&&k===d.move.TYPE_INNER)return null;else if(a&&(l.parentTId==a.tId&&k==d.move.TYPE_INNER||p(l,b).find("#"+a.tId).length>0))return null;else a||(a=null);g.canAsync(b, +a)&&k===d.move.TYPE_INNER?e.asyncNode(b,a,i,j):j();return l};a.setEditable=function(a){b.edit.enable=a;return this.refresh()}});var N=e.cancelPreSelectedNode;e.cancelPreSelectedNode=function(b,a){for(var c=n.getRoot(b).curSelectedList,d=0,g=c.length;d"); + }, + showNode: function(setting, node, options) { + node.isHidden = false; + data.initShowForExCheck(setting, node); + $$(node, setting).show(); + }, + showNodes: function(setting, nodes, options) { + if (!nodes || nodes.length == 0) { + return; + } + var pList = {}, i, j; + for (i=0, j=nodes.length; i 0 && !parentNode[childKey][0].isHidden) { + parentNode[childKey][0].isFirstNode = true; + } else if (childLength > 0) { + view.setFirstNodeForHide(setting, parentNode[childKey]); + } + }, + setLastNode: function(setting, parentNode) { + var childKey = setting.data.key.children, childLength = parentNode[childKey].length; + if (childLength > 0 && !parentNode[childKey][0].isHidden) { + parentNode[childKey][childLength - 1].isLastNode = true; + } else if (childLength > 0) { + view.setLastNodeForHide(setting, parentNode[childKey]); + } + }, + setFirstNodeForHide: function(setting, nodes) { + var n,i,j; + for (i=0, j=nodes.length; i=0; i--) { + n = nodes[i]; + if (n.isLastNode) { + break; + } + if (!n.isHidden && !n.isLastNode) { + n.isLastNode = true; + view.setNodeLineIcos(setting, n); + break; + } else { + n = null; + } + } + return n; + }, + setLastNodeForShow: function(setting, nodes) { + var n,i,j, last, old; + for (i=nodes.length-1; i>=0; i--) { + n = nodes[i]; + if (!last && !n.isHidden && n.isLastNode) { + last = n; + break; + } else if (!last && !n.isHidden && !n.isLastNode) { + n.isLastNode = true; + last = n; + view.setNodeLineIcos(setting, n); + } else if (last && n.isLastNode) { + n.isLastNode = false; + old = n; + view.setNodeLineIcos(setting, n); + break; + } else { + n = null; + } + } + return {"new":last, "old":old}; + } + }, + + _z = { + view: _view, + data: _data + }; + $.extend(true, $.fn.zTree._z, _z); + + var zt = $.fn.zTree, + tools = zt._z.tools, + consts = zt.consts, + view = zt._z.view, + data = zt._z.data, + event = zt._z.event, + $$ = tools.$; + + data.addInitNode(_initNode); + data.addBeforeA(_beforeA); + data.addZTreeTools(_zTreeTools); + +// Override method in core + var _dInitNode = data.initNode; + data.initNode = function(setting, level, node, parentNode, isFirstNode, isLastNode, openFlag) { + var tmpPNode = (parentNode) ? parentNode: data.getRoot(setting), + children = tmpPNode[setting.data.key.children]; + data.tmpHideFirstNode = view.setFirstNodeForHide(setting, children); + data.tmpHideLastNode = view.setLastNodeForHide(setting, children); + view.setNodeLineIcos(setting, data.tmpHideFirstNode); + view.setNodeLineIcos(setting, data.tmpHideLastNode); + isFirstNode = (data.tmpHideFirstNode === node); + isLastNode = (data.tmpHideLastNode === node); + if (_dInitNode) _dInitNode.apply(data, arguments); + if (isLastNode) { + view.clearOldLastNode(setting, node); + } + }; + + var _makeChkFlag = data.makeChkFlag; + if (!!_makeChkFlag) { + data.makeChkFlag = function(setting, node) { + if (!!node && !!node.isHidden) { + return; + } + _makeChkFlag.apply(data, arguments); + } + } + + var _getTreeCheckedNodes = data.getTreeCheckedNodes; + if (!!_getTreeCheckedNodes) { + data.getTreeCheckedNodes = function(setting, nodes, checked, results) { + if (!!nodes && nodes.length > 0) { + var p = nodes[0].getParentNode(); + if (!!p && !!p.isHidden) { + return []; + } + } + return _getTreeCheckedNodes.apply(data, arguments); + } + } + + var _getTreeChangeCheckedNodes = data.getTreeChangeCheckedNodes; + if (!!_getTreeChangeCheckedNodes) { + data.getTreeChangeCheckedNodes = function(setting, nodes, results) { + if (!!nodes && nodes.length > 0) { + var p = nodes[0].getParentNode(); + if (!!p && !!p.isHidden) { + return []; + } + } + return _getTreeChangeCheckedNodes.apply(data, arguments); + } + } + + var _expandCollapseSonNode = view.expandCollapseSonNode; + if (!!_expandCollapseSonNode) { + view.expandCollapseSonNode = function(setting, node, expandFlag, animateFlag, callback) { + if (!!node && !!node.isHidden) { + return; + } + _expandCollapseSonNode.apply(view, arguments); + } + } + + var _setSonNodeCheckBox = view.setSonNodeCheckBox; + if (!!_setSonNodeCheckBox) { + view.setSonNodeCheckBox = function(setting, node, value, srcNode) { + if (!!node && !!node.isHidden) { + return; + } + _setSonNodeCheckBox.apply(view, arguments); + } + } + + var _repairParentChkClassWithSelf = view.repairParentChkClassWithSelf; + if (!!_repairParentChkClassWithSelf) { + view.repairParentChkClassWithSelf = function(setting, node) { + if (!!node && !!node.isHidden) { + return; + } + _repairParentChkClassWithSelf.apply(view, arguments); + } + } +})(jQuery); \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/js/jquery.ztree.exhide-3.5.min.js b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/js/jquery.ztree.exhide-3.5.min.js new file mode 100644 index 00000000..06c41b05 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/js/jquery.ztree.exhide-3.5.min.js @@ -0,0 +1,22 @@ +/* + * JQuery zTree exHideNodes v3.5.15 + * http://zTree.me/ + * + * Copyright (c) 2010 Hunter.z + * + * Licensed same as jquery - MIT License + * http://www.opensource.org/licenses/mit-license.php + * + * email: hunter.z@263.net + * Date: 2013-10-15 + */ +(function(i){i.extend(!0,i.fn.zTree._z,{view:{clearOldFirstNode:function(c,a){for(var b=a.getNextNode();b;){if(b.isFirstNode){b.isFirstNode=!1;d.setNodeLineIcos(c,b);break}if(b.isLastNode)break;b=b.getNextNode()}},clearOldLastNode:function(c,a){for(var b=a.getPreNode();b;){if(b.isLastNode){b.isLastNode=!1;d.setNodeLineIcos(c,b);break}if(b.isFirstNode)break;b=b.getPreNode()}},makeDOMNodeMainBefore:function(c,a,b){c.push("
                                                                                                                                                                                                                                                                                                      • ")},showNode:function(c,a){a.isHidden=!1;f.initShowForExCheck(c,a);j(a,c).show()},showNodes:function(c,a,b){if(a&&a.length!=0){var e={},g,k;for(g=0,k=a.length;g0&&!a[b][0].isHidden? +a[b][0].isFirstNode=!0:e>0&&d.setFirstNodeForHide(c,a[b])},setLastNode:function(c,a){var b=c.data.key.children,e=a[b].length;e>0&&!a[b][0].isHidden?a[b][e-1].isLastNode=!0:e>0&&d.setLastNodeForHide(c,a[b])},setFirstNodeForHide:function(c,a){var b,e,g;for(e=0,g=a.length;e=0;e--){b=a[e];if(b.isLastNode)break;if(!b.isHidden&&!b.isLastNode){b.isLastNode=!0;d.setNodeLineIcos(c,b);break}else b=null}return b},setLastNodeForShow:function(c,a){var b,e,g,f;for(e=a.length-1;e>=0;e--)if(b=a[e],!g&&!b.isHidden&& +b.isLastNode){g=b;break}else if(!g&&!b.isHidden&&!b.isLastNode)b.isLastNode=!0,g=b,d.setNodeLineIcos(c,b);else if(g&&b.isLastNode){b.isLastNode=!1;f=b;d.setNodeLineIcos(c,b);break}return{"new":g,old:f}}},data:{initHideForExCheck:function(c,a){if(a.isHidden&&c.check&&c.check.enable){if(typeof a._nocheck=="undefined")a._nocheck=!!a.nocheck,a.nocheck=!0;a.check_Child_State=-1;d.repairParentChkClassWithSelf&&d.repairParentChkClassWithSelf(c,a)}},initShowForExCheck:function(c,a){if(!a.isHidden&&c.check&& +c.check.enable){if(typeof a._nocheck!="undefined")a.nocheck=a._nocheck,delete a._nocheck;if(d.setChkClass){var b=j(a,l.id.CHECK,c);d.setChkClass(c,b,a)}d.repairParentChkClassWithSelf&&d.repairParentChkClassWithSelf(c,a)}}}});var i=i.fn.zTree,m=i._z.tools,l=i.consts,d=i._z.view,f=i._z.data,j=m.$;f.addInitNode(function(c,a,b){if(typeof b.isHidden=="string")b.isHidden=m.eqs(b.isHidden,"true");b.isHidden=!!b.isHidden;f.initHideForExCheck(c,b)});f.addBeforeA(function(){});f.addZTreeTools(function(c,a){a.showNodes= +function(a,b){d.showNodes(c,a,b)};a.showNode=function(a,b){a&&d.showNodes(c,[a],b)};a.hideNodes=function(a,b){d.hideNodes(c,a,b)};a.hideNode=function(a,b){a&&d.hideNodes(c,[a],b)};var b=a.checkNode;if(b)a.checkNode=function(c,d,f,h){(!c||!c.isHidden)&&b.apply(a,arguments)}});var n=f.initNode;f.initNode=function(c,a,b,e,g,i,h){var j=(e?e:f.getRoot(c))[c.data.key.children];f.tmpHideFirstNode=d.setFirstNodeForHide(c,j);f.tmpHideLastNode=d.setLastNodeForHide(c,j);d.setNodeLineIcos(c,f.tmpHideFirstNode); +d.setNodeLineIcos(c,f.tmpHideLastNode);g=f.tmpHideFirstNode===b;i=f.tmpHideLastNode===b;n&&n.apply(f,arguments);i&&d.clearOldLastNode(c,b)};var o=f.makeChkFlag;if(o)f.makeChkFlag=function(c,a){(!a||!a.isHidden)&&o.apply(f,arguments)};var p=f.getTreeCheckedNodes;if(p)f.getTreeCheckedNodes=function(c,a,b,e){if(a&&a.length>0){var d=a[0].getParentNode();if(d&&d.isHidden)return[]}return p.apply(f,arguments)};var q=f.getTreeChangeCheckedNodes;if(q)f.getTreeChangeCheckedNodes=function(c,a,b){if(a&&a.length> +0){var d=a[0].getParentNode();if(d&&d.isHidden)return[]}return q.apply(f,arguments)};var r=d.expandCollapseSonNode;if(r)d.expandCollapseSonNode=function(c,a,b,e,f){(!a||!a.isHidden)&&r.apply(d,arguments)};var s=d.setSonNodeCheckBox;if(s)d.setSonNodeCheckBox=function(c,a,b,e){(!a||!a.isHidden)&&s.apply(d,arguments)};var t=d.repairParentChkClassWithSelf;if(t)d.repairParentChkClassWithSelf=function(c,a){(!a||!a.isHidden)&&t.apply(d,arguments)}})(jQuery); diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/log v3.x.txt b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/log v3.x.txt new file mode 100644 index 00000000..55cf8e89 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/JQuery zTree v3.5.15/log v3.x.txt @@ -0,0 +1,199 @@ +=ZTree v3.x (JQuery Tree插件) 更新日志= + +为了更好的优化及扩展zTree, 因此决定升级为v3.x,并且对之前的v2.x不兼容,会有很多结构上的修改,对此深感无奈与抱歉,请大家谅解。 + + +具体修改内容可参考: + + * [http://www.ztree.me/v3/api.php zTree v3.0 API 文档] + + * [http://www.ztree.me/v3/demo.php#_101 zTree v3.0 Demo 演示] + + * [http://www.ztree.me/v3/faq.php#_101 zTree v3.0 常见问题] + + + + + +*2013.10.19* v3.5.15 + * 【增加】setting.view.txtSelectedEnable 属性,满足部分项目中客户对于可以选择节点文本信息的强烈欲望。 + + * 【修改】 exhide 扩展包导致操作子节点后 isLastNode 属性异常 的bug + * 【修改】 使用 cancelEditName 方法时,beforeRename & onRename 的 isCancel 始终为 false 的bug + * 【修改】 编辑状态, beforeRename 回调 return false 时,提示信息导致 input 失去焦点后, 当树再次得到焦点时,让 input 自动获取焦点 + * 【修改】 判断拖拽到节点的 标签中自定义的无 id 组件判断错误的bug + * 【修改】 async_edit.html demo 中 添加按钮 显示的 bug + * 【修改】 当没有开启异步加载模式下,对于没有子节点的父节点,即使设置 open=true 在初始化时也不会设置为展开状态的bug (对于异步加载模式下依然会强行设置为折叠状态) + +*2013.06.28* v3.5.14 + * 【修改】 拖拽节点时 iframe 遮罩异常的bug + * 【修改】 清空子节点后重新添加子节点无法显示的bug + +*2013.06.02* v3.5.13 + + * 【增加】beforeRename & onRename 增加 isCancel 参数,可以监控用户 ESC 取消编辑的事件 + + * 【修改】初始化时 radioType="all", 父节点未展开 且 子节点有被勾选,点击其他 radio 时,不会取消勾选该子节点的bug + * 【修改】多棵树拖拽时,拖拽无效后会导致目标书已选择的节点清空的 bug。 + * 【修改】多棵树拖拽时,会触发 addHoverDom 的bug。 + * 【修改】多棵树拖拽时,由于 beforeDrog 或 prev / inner / next 返回 false 后未触发原始节点的 addHoverDom 的bug + * 【修改】异步加载时,对于未加载子节点的父节点使用 expandNode 方法时, sonSign 设置为 true后,导致异步加载的节点无法正常显示的bug + * 【修改】一次性加载全部数据,如果父节点 A 未展开,但下一级的父节点 A1 设置了 open=true 的时候,使用 expandAll 方法导致 A1 的下一级父节点出现重复的 bug + * 【修改】增加对 iframe 的支持,可以只在主页面加载 zTree 的 js,在 iframe 内创建树 [https://github.com/zTree/zTree_v3/issues/7 Issue Info] + * 【修改】引入 exhide 扩展包 导致页面上同时加载多棵树时,根节点 的 连接线图标出现异常 的 bug [http://tieba.baidu.com/p/2277416574] + * 【修改】excheck & exedit 扩展包中事件代理获取节点 tId 的方法,保证适当修改 DOM 结构也能得到 tId + +*2013.03.11* v3.5.12 + * 【修改】由于 jquery 1.9 中移除 event.srcElement 导致的 js 报错的bug。 + * 【修改】在异步加载模式下,使用 moveNode 方法,且 moveType != "inner" 时,也会导致 targetNode 自动加载子节点的 bug + * 【修改】对已经显示的节点(nochecked=true)使用 showNodes 或 showNode 方法后,导致勾选框出现的bug。 + * 【修改】对已经隐藏的节点(nochecked=false)使用 hideNodes 或 hideNode 方法后,导致勾选框消失的bug。 + * 【修改】getNodesByParamFuzzy 支持 大小写模糊。 + * 【修改】className 结构,提取 _consts.className.BUTTON / LEVEL / ICO_LOADING / SWITCH,便于快速修改 css 冲突。 + 例如:与 WordPress 产生冲突后,直接修改 core 中的 "button" 和 "level" 即可。 Issue: https://github.com/zTree/zTree_v3/issues/2 + +*2013.01.28* v3.5.02 + * 【增加】setting.check.chkDisabledInherit 属性,用于设置 chkDisabled 在初始化时子节点是否可以继承父节点的 chkDisabled 属性 + * 【删除】内部 noSel 方法,使用 selectstart事件 和 "-moz-user-select"样式 处理禁止 节点文字被选择的功能 + * 【修改】不兼容 jQuery 1.9 的bug + * 【修改】onDrop 的触发规则,保证异步加载模式下,可以在延迟加载结束后触发,避免 onDrop 中被拖拽的节点是已经更新后的数据。 + * 【修改】setChkDisabled 方法,增加 inheritParent, inheritChildren 参数设置是否让父子节点继承 disabled + * 【修改】异步加载时 拼接参数的方法,由 string 修改为 json 对象 + * 【修正】1-2-3 3级节点时,如果 2级节点 全部设置为 nocheck 或 chkDisabled后,勾选3级节点时,1级节点的半勾选状态错误的 bug + * 【修改】Demo: checkbox_nocheck.html & checkbox_chkDisabled.html; + * 【修改】Demo: edit_super.html,增加 showRenameBtn & showRemoveBtn 的演示 + * 【修改】Demo: asyncForAll, 将 post 修改为 get;为了避免由于 IE10 的 bug 造成的客户端 以及 服务端崩溃 + IE10 ajax Post 无法提交参数的bug (http://bugs.jquery.com/ticket/12790) + +*2012.12.21* v3.5.01 + * 【优化】clone 方法 + * 【修正】对于初始化无 children 属性的父节点进行 reAsyncChildNodes 操作时出错的 bug + * 【修正】beforeRename 回调中使用 cancelEditName 方法后,再 return false 导致无法重新进行编辑的 bug + * 【修正】exedit 扩展包让 setting.data.key.url 失效的 bug + * 【修正】setting.check.autoCheckTrigger 设置为 true 时,onCheck 回调缺少 event 参数的 bug + * 【修正】singlepath.html Demo 中的 bug + +*2012.11.20* v3.5 + * 【优化】原先的 clone 方法 (特别感谢:愚人码头) + * 【修改】隐藏父节点后,使用 expandAll 方法导致 父节点展开的 bug + * 【修改】使用 jQuery v1.7 以上时,设置 zTree 容器 ul 隐藏(visibility: hidden;)后, 调用 selectNode 导致 IE 浏览器报错 Can't move focus 的 bug + * 【修改】正在异步加载时,执行 destory 或 init 方法后,异步加载的节点影响新树的 bug + * 【修改】方法 reAsyncChildNodes 在 refresh 的时候未清空内部 cache 导致内存泄露 的 bug + * 【修改】批量节点拖拽到其他父节点内(inner)时,导致顺序反转 的 bug + * 【修改】对于 使用 html格式的 节点无法触发 双击事件 的 bug + * 【修改】onCheck 回调中的 event ,保证与触发事件中的 event 一致 + * 【修改】异步加载时,在 onNodeCreated 中执行 selectNode 后,导致节点折叠的 bug + * 【修改】API 中 dataFilter 的参数名称 childNodes -> responseData + * 【修改】API 中 iconSkin 的 举例内容 + * 【修改】API 中 chkDisabled 的说明 + * 【修改】Demo 中 index.html 内的 loadReady 重复绑定问题 + +*2012.09.03* v3.4 + * 【增加】 Demo —— OutLook 样式的左侧菜单 + * 【增加】清空 zTree 的方法 $.fn.zTree.destory(treeId) & zTree.destory() + + * 【修改】core核心文件内 _eventProxy 方法中获取 tId 的方法,提高 DOM 的灵活性 + * 【修改】初始化时 多层父节点的 checkbox 半选状态计算错误的 bug + * 【修改】同时选中父、子节点后,利用 getSelectedNodes 获取选中节点并利用 removeNode 删除时报错的 bug + * 【修改】treeNode.chkDisabled / nocheck 属性,支持字符串格式的 "false"/"true" + * 【修改】异步加载模式下无法利用 server 返回 xml 并且 在 dataFilter 中继续处理的 bug + * 【修改】title 只允许设置为 string 类型值的问题。 修正后允许设置为 number 类型的值 + * 【修改】zId 计数规则 & Cache 保存,减少 IE9 的 bug 造成的内存泄漏 + * 【修改】API 页面搜索功能导致 IE 崩溃的 bug + +*2012.07.16* v3.3 + * 【增加】扩展库 exhide -- 节点隐藏功能 + + * 【修改】getNodesByFilter 方法,添加 invokeParam 自定义参数 + * 【修改】拖拽中测试代码未删除,导致出现黄颜色的 iframe 遮罩层的 bug + * 【修改】延迟加载方法 对于使用 expandAll 进行全部展开时,导致 onNodeCreated 回调 和 addDiyDom 方法触发过早的 bug + * 【修改】使用 moveNode 移动尚未生成 DOM 的节点时,视图会出现异常的 bug + * 【修改】删除节点后,相关节点的 isFirstNode 属性未重置的 bug + * 【修改】getPreNode(),getNextNode() 方法在对于特殊情况时计算错误的 bug + * 【修改】设置 title 之后,如果重新将 title 内容设置为空后,会导致无法更新 title 的 bug + * 【修改】针对 setting.check.chkStyle=="radio" && setting.check.radioType=="all" 的情况时,getTreeCheckedNodes方法优化,找到一个结果就 break + * 【修改】zTreeObj.getCheckedNodes(false) 在 radioType = "all" 时计算错误的 bug + * 【修改】完善 API 中 beforeDrop / onDrop 的关于 treeId 的说明 + +*2012.05.13* v3.2 + * 【增加】setting.data.key.url 允许修改 treeNode.url 属性 + * 【增加】getNodesByFilter(filter, isSingle) 方法 + * 【增加】"与其他 DOM 拖拽互动" 的 Demo (http://www.ztree.me/v3/demo.php#_511) + * 【增加】"异步加载模式下全部展开" 的 Demo (http://www.ztree.me/v3/demo.php#_512) + + * 【修改】代码结构,将 addNodes、removeNode、removeChildNodes 方法 和 beforeRemove、onRemove 回调 转移到 core 内 + * 【修改】IE7的环境下无子节点的父节点反复展开出现多余空行的 bug + * 【修改】异步加载时,如果出现网络异常等,会导致 图标显示错误的 bug + * 【修改】dataFilter中 return null 导致异常 的 bug + * 【修改】removeChildNodes 方法清空子节点后,无法正常添加节点的 bug + * 【修改】moveNode 后节点中的自定义元素的事件丢失的 bug + * 【修改】moveNode 方法中设置 isSilent = true 时,如果移动到已展开的 父节点后,出现异常的 bug + * 【修改】onClick/onDrag/onDrop 回调中 event 不是原始 event 的 bug + * 【修改】onDrop 回调中 当拖拽无效时,无法获得 treeNodes 的 bug + * 【修改】onDrop 无法判断拖拽是 移动还是复制的问题 + * 【修改】未开启异步加载模式时,拖拽节点到子节点为空的父节点内时 出现异常 的 bug + * 【修改】拖拽过程中,反复在 父节点图标上划动时,会出现停顿的 bug + (需要css 结构—— button -> span.button) + + * 【修改】拖拽操作时箭头 与 targetNode 背景之间的细节现实问题,便于用户拖拽时更容易区分 prev、next 和 inner 操作 + * 【修改】拖拽操作时IE6/7 下 在 节点 右侧 10px 内会导致 targetNode = root 的 bug + * 【修改】编辑模式下 默认的编辑按钮、删除按钮点击后,如果相应的 before 回调 return false 时会触发 onClick 回调的 bug + +*2012.02.14* v3.1 + * 【增加】ajax 的参数 setting.async.contentType ,让提交参数适用于 json 数据提交 (主要适用于 .Net 的开发)。 + * 【增加】setting.edit.editNameSelectAll, 用于设定编辑节点名称时初次显示 input 后 text 内容为全选 + * 【修改】异步加载 规则,不再仅仅依靠父节点的子节点数来判定,增加内部属性 zAsync,保证默认状态下父节点及时无子节点也只能异步加载一次,除非使用 reAsyncChildNodes 方法强行控制异步加载。 + * 【修改】放大浏览器后导致 界面出现多余连接线的bug (需要更新:icon 图标和 css ) + * 【修改】在编辑状态,如果节点名超过编辑框宽度,左右键在框内不起作用的bug(IE 6 7 8 出现) + CSS 中 filter:alpha(opacity=80) 造成的,应该是 ie 的 bug,需要更新 css 文件 + * 【修改】title 设置后,如果属性不存在,则默认为 title 为空,便于数据容错和用户灵活使用 + * 【修改】editName 方法如果针对尚未展开的 父节点,会导致该父节点自动展开的 bug + * 【修改】title 中存在标签时导致 title 显示异常的bug(例如:蓝色字22%"'``) + +*2012.01.10* v3.0 + * 【增加】setting.check.autoCheckTrigger 默认值 false,可以设置联动选中时是否触发事件回调函数 + * 【增加】setting.callback.beforeEditName 回调函数,以保证用户可以捕获点击编辑按钮的事件 + * 【增加】treeNode.chkDisabled 属性,显示 checkbox 但是用户无法修改 checkbox 状态,并且该 checkbox 会影响父节点的 checkbox 的半选状态 + * 【增加】setting.check.nocheckInherit 属性,用户设置子节点继承 nocheck 属性,用于批量初始化节点,不适用于已经显示的节点 + * 【增加】setting.edit.drag.autoExpandTrigger 默认值 false,可以设置自动展开、折叠操作时是否触发事件回调函数 + * 【增加】setting.view.nameIsHTML 默认值 false,允许用户对 name 设置 DOM 对象 + * 【增加】treeNode.click 属性的说明文档 + * 【增加】treeObj.setChkDisabled 方法用于设置 checkbox / radio disabled 状态 + * 【增加】treeNode.halfCheck 属性,用于强制设定节点的半选状态 + + * 【修改】异步加载 & 编辑功能 共存时,拖拽节点 或 增加节点 导致 ie 上报错的 bug (apply 方法引起) + * 【修改】zTreeStyle 样式冲突 + * 【修改】setting.data.key.title 默认值设置为 "",初始化时自动赋值为 setting.data.key.name 这样可避免希望 title 与 name 一致的用户反复设置参数 + * 【修改】点击叶子节点的连接线会触发 expand 事件的 bug + * 【修改】IE 下 点击叶子节点连线会出现虚线框的 bug + * 【修改】updateNode 导致 checkbox 半选状态错误的 bug + * 【修改】checkNode 方法实现 toggle 操作, 取消 expandAll 方法的 toggle 操作 + * 【修改】zTree 内鼠标移动会抢页面上 input 内的焦点的 bug + * 【修改】beforeRename / onRename 的触发方式——即使名称内容未改变也会触发,便于用户配合 beforeEditName 捕获编辑状态的结束,赋予用户更多调整规则的权利 + * 【修改】与 easyUI 共存时无法拖拽的bug + * 【修改】beforeRename 在 Firefox 下如果利用 alert,会触发两次的 bug + * 【修改】checkNode/expandNode/removeNode 方法,默认不触发回调函数,恢复 v2.6 的默认状态,同时增加 callbackFlag 参数,设置为 true 时,可以触发回调函数 + * 【修改】IE9下“根据参数查找节点”的Demo 报错:行14 重新声明常量属性(Demo 自身的问题,定义了history变量) + * 【修改】初始化 zTree 时 onNodeCreated 事件回调函数中无法 用 getZTreeObj 获取 zTree 对象的 bug + * 【修改】setting.edit.drag.prev / next / inner 参数,增加被拖拽的节点集合 + * 【修改】异步加载模式下,otherParam 使用Array数组会出错的 bug。例如: ["id", "1", "name", "test"] + * 【修改】FireFox 下多棵树拖拽异常的 bug + * 【修改】exedit 中调用 excheck库的方法时没有进行容错处理,导致如果只加入 exedit 而没有 excheck的时候,会出现 js 错误 + * 【修改】显示 checkbox 的 zTree 在编辑模式下,移动节点不会更新父节点半选状态的 bug + * 【修改】treeNode.childs --> children; treeObject.removeChilds --> removeChildNodes; setting.data.key.childs --> children(英文不好惹的祸!抱歉了!) + * 【修改】onRemove 回调中得到的 treeNode 还可以查找 preNode、nextNode 的bug。 修正后,getPreNode 和 getNextNode 都返回 null; 为了便于查找父节点,getParentNode 仍保留 + * 【修改】简单数据模式下,如果 id 与 pId 的值相同会导致该节点无法正常加载的 bug + * 【修改】移动或删除中间节点会导致最后一个节点连接线图标变小的 bug + +*2011.09.05* v3.0 beta + * 【修改】zTree 的 js 代码架构全面修改,并且拆分 + * 【修改】zTree 的 css 样式全面修改,对浏览器可以更好地兼容,同时解决了以前1个像素差的问题 + * 【优化】采用延迟加载技术,一次性加载大数据量的节点性能飞速提升 + * 【增加】支持多节点同时选中、拖拽 + * 【增加】checkNode、checkAllNodes 等多种方法 + * 【增加】IE6 自动取消动画展开、折叠的功能 + * 【修正】异步加载 & 编辑模式 能够更完美的共存 + * 【修正】setting 配置更加合理,并且增加了若干项配置参数 + * 【修正】treeNode 节点数据的属性更加合理,并且增加了一些方法 + * 【修正】拖拽操作更加灵活方便,更容易制定自己的规则 + * 【修正】其他若干修改,详细对比请参考 url:[http://www.ztree.me/v3/faq.php#_101 zTree v3.0 常见问题] diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/css/css.css b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/css/css.css new file mode 100644 index 00000000..aa9da8e9 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/css/css.css @@ -0,0 +1,27 @@ +.table { + width:80%; + font:14px; + color:#333333; + text-align:center; + border-collapse:collapse; +} +.table td,.table th{ + border:1px solid #333333; + padding: 10px; +} + +.message { + background: #eee; + border: 1px solid #eee; + margin: 10px 0; + padding: 10px; +} + +.form-group { + margin: 10px 0; +} + +.form-group label { + width: 130px; + float: left; +} \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/css/layout-default-latest.css b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/css/layout-default-latest.css new file mode 100644 index 00000000..aa382de3 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/css/layout-default-latest.css @@ -0,0 +1,224 @@ +/* + * Default Layout Theme + * + * Created for jquery.layout + * + * Copyright (c) 2010 + * Fabrizio Balliano (http://www.fabrizioballiano.net) + * Kevin Dalman (http://allpro.net) + * + * Dual licensed under the GPL (http://www.gnu.org/licenses/gpl.html) + * and MIT (http://www.opensource.org/licenses/mit-license.php) licenses. + * + * Last Updated: 2010-02-10 + * NOTE: For best code readability, view this with a fixed-space font and tabs equal to 4-chars + */ + +/* + * DEFAULT FONT + * Just to make demo-pages look better - not actually relevant to Layout! + */ +body { + font-family: Geneva, Arial, Helvetica, sans-serif; + font-size: 100%; + *font-size: 80%; +} + +/* + * PANES & CONTENT-DIVs + */ +.ui-layout-pane { /* all 'panes' */ + background: #FFF; + border: 1px solid #BBB; + padding: 10px; + overflow: auto; + /* DO NOT add scrolling (or padding) to 'panes' that have a content-div, + otherwise you may get double-scrollbars - on the pane AND on the content-div + - use ui-layout-wrapper class if pane has a content-div + - use ui-layout-container if pane has an inner-layout + */ + } + /* (scrolling) content-div inside pane allows for fixed header(s) and/or footer(s) */ + .ui-layout-content { + padding: 10px; + position: relative; /* contain floated or positioned elements */ + overflow: auto; /* add scrolling to content-div */ + } + +/* + * UTILITY CLASSES + * Must come AFTER pane-class above so will override + * These classes are NOT auto-generated and are NOT used by Layout + */ +.layout-child-container, +.layout-content-container { + padding: 0; + overflow: hidden; +} +.layout-child-container { + border: 0; /* remove border because inner-layout-panes probably have borders */ +} +.layout-scroll { + overflow: auto; +} +.layout-hide { + display: none; +} + +/* + * RESIZER-BARS + */ +.ui-layout-resizer { /* all 'resizer-bars' */ + background: #DDD; + border: 1px solid #BBB; + border-width: 0; + } + .ui-layout-resizer-drag { /* REAL resizer while resize in progress */ + } + .ui-layout-resizer-hover { /* affects both open and closed states */ + } + /* NOTE: It looks best when 'hover' and 'dragging' are set to the same color, + otherwise color shifts while dragging when bar can't keep up with mouse */ + .ui-layout-resizer-open-hover , /* hover-color to 'resize' */ + .ui-layout-resizer-dragging { /* resizer beging 'dragging' */ + background: #C4E1A4; + } + .ui-layout-resizer-dragging { /* CLONED resizer being dragged */ + border: 1px solid #BBB; + } + .ui-layout-resizer-north-dragging, + .ui-layout-resizer-south-dragging { + border-width: 1px 0; + } + .ui-layout-resizer-west-dragging, + .ui-layout-resizer-east-dragging { + border-width: 0 1px; + } + /* NOTE: Add a 'dragging-limit' color to provide visual feedback when resizer hits min/max size limits */ + .ui-layout-resizer-dragging-limit { /* CLONED resizer at min or max size-limit */ + background: #E1A4A4; /* red */ + } + + .ui-layout-resizer-closed-hover { /* hover-color to 'slide open' */ + background: #EBD5AA; + } + .ui-layout-resizer-sliding { /* resizer when pane is 'slid open' */ + opacity: .10; /* show only a slight shadow */ + filter: alpha(opacity=10); + } + .ui-layout-resizer-sliding-hover { /* sliding resizer - hover */ + opacity: 1.00; /* on-hover, show the resizer-bar normally */ + filter: alpha(opacity=100); + } + /* sliding resizer - add 'outside-border' to resizer on-hover + * this sample illustrates how to target specific panes and states */ + .ui-layout-resizer-north-sliding-hover { border-bottom-width: 1px; } + .ui-layout-resizer-south-sliding-hover { border-top-width: 1px; } + .ui-layout-resizer-west-sliding-hover { border-right-width: 1px; } + .ui-layout-resizer-east-sliding-hover { border-left-width: 1px; } + +/* + * TOGGLER-BUTTONS + */ +.ui-layout-toggler { + border: 1px solid #BBB; /* match pane-border */ + background-color: #BBB; + } + .ui-layout-resizer-hover .ui-layout-toggler { + opacity: .60; + filter: alpha(opacity=60); + } + .ui-layout-toggler-hover , /* need when NOT resizable */ + .ui-layout-resizer-hover .ui-layout-toggler-hover { /* need specificity when IS resizable */ + background-color: #FC6; + opacity: 1.00; + filter: alpha(opacity=100); + } + .ui-layout-toggler-north , + .ui-layout-toggler-south { + border-width: 0 1px; /* left/right borders */ + } + .ui-layout-toggler-west , + .ui-layout-toggler-east { + border-width: 1px 0; /* top/bottom borders */ + } + /* hide the toggler-button when the pane is 'slid open' */ + .ui-layout-resizer-sliding .ui-layout-toggler { + display: none; + } + /* + * style the text we put INSIDE the togglers + */ + .ui-layout-toggler .content { + color: #666; + font-size: 12px; + font-weight: bold; + width: 100%; + padding-bottom: 0.35ex; /* to 'vertically center' text inside text-span */ + } + +/* + * PANE-MASKS + * these styles are hard-coded on mask elems, but are also + * included here as !important to ensure will overrides any generic styles + */ +.ui-layout-mask { + border: none !important; + padding: 0 !important; + margin: 0 !important; + overflow: hidden !important; + position: absolute !important; + opacity: 0 !important; + filter: Alpha(Opacity="0") !important; +} +.ui-layout-mask-inside-pane { /* masks always inside pane EXCEPT when pane is an iframe */ + top: 0 !important; + left: 0 !important; + width: 100% !important; + height: 100% !important; +} +div.ui-layout-mask {} /* standard mask for iframes */ +iframe.ui-layout-mask {} /* extra mask for objects/applets */ + +/* + * Default printing styles + */ +@media print { + /* + * Unless you want to print the layout as it appears onscreen, + * these html/body styles are needed to allow the content to 'flow' + */ + html { + height: auto !important; + overflow: visible !important; + } + body.ui-layout-container { + position: static !important; + top: auto !important; + bottom: auto !important; + left: auto !important; + right: auto !important; + /* only IE6 has container width & height set by Layout */ + _width: auto !important; + _height: auto !important; + } + .ui-layout-resizer, .ui-layout-toggler { + display: none !important; + } + /* + * Default pane print styles disables positioning, borders and backgrounds. + * You can modify these styles however it suit your needs. + */ + .ui-layout-pane { + border: none !important; + background: transparent !important; + position: relative !important; + top: auto !important; + bottom: auto !important; + left: auto !important; + right: auto !important; + width: auto !important; + height: auto !important; + overflow: visible !important; + } +} \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/jquery-treetable/.gitignore b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/jquery-treetable/.gitignore new file mode 100644 index 00000000..58e291ea --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/jquery-treetable/.gitignore @@ -0,0 +1,3 @@ +*.swo +*.swp +.DS_Store diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/jquery-treetable/CHANGELOG.txt b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/jquery-treetable/CHANGELOG.txt new file mode 100644 index 00000000..f6b14756 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/jquery-treetable/CHANGELOG.txt @@ -0,0 +1,126 @@ +== 3.1.0 - October 14, 2013 + +* [FEATURE] Added branch sort API (#87) +* [FEATURE] Added removeNode function to completely remove a node and its descendants (#75) +* [ENHANCEMENT] Embed Base64 encoded theme images in CSS (#103) +* [ENHANCEMENT] Do not show child nodes on expand of a hidden node (#97) +* [BUG] Moving nodes around caused order of children to be reversed (#112) +* [BUG] Bootstrap v3 compatibility fix for indenter (#111) +* [BUG] D&D example code should not break when nested inside other table (#108) +* [BUG] Node expanders wouldn't render correctly when nodes added dynamically (#79) + +== 3.0.2 - July 3, 2013 + +* [FEATURE] Add argument to treetable plugin function to force reinitialization (#65) +* [BUG] Prevent error when new rows have leading white space (#77) +* [BUG] Fix loadBranch case when new nodes end up at wrong position when added to a branch with already expanded child nodes (#73) + +== 3.0.1 - April 6, 2013 + +* [FEATURE] Expand/collapse nodes using keyboard Return key (#27, #30) +* [FEATURE] Allow root nodes to be added to the tree with loadBranch (#56) +* [ENHANCEMENT] Prevent potential reinitialization (#58) +* [ENHANCEMENT] Add new nodes at the end of children (#52) +* [ENHANCEMENT] Use on/off instead of bind/unbind for ataching event handlers (as per jQuery preferred guidelines) +* [BUG] Nodes wouldn't initialize properly when using loadBranch (#55) + +== 3.0.0 - February 14, 2013 + +* [ENHANCEMENT] Use 'treetable' everywhere instead of a mix between 'treeTable' and 'treetable' + +== 3.0.0-rc.2 - February 10, 2013 + +NOTE: This is a release candidate. Please test this version and report any +issues found. + +* [FEATURE] Added (optional) tt-branch data attribute for AJAX use case +* [FEATURE] Added loadBranch()/unloadBranch() functions for adding/removing nodes to the tree (AJAX) +* [FEATURE] Added onInitialized event +* [FEATURE] Added onNodeInitialized event (#21) +* [ENHANCEMENT] Split CSS file into two files, one with basic styling required in most cases (jquery.treetable.css) and a 'theme' CSS (jquery.treetable.theme.default.css) that styles the trees like the ones in the documentation (#51) +* [ENHANCEMENT] Made appropriate plugin methods chainable +* [BUG] Having an empty data-tt-parent-id attribute would result in an error +* [BUG] A hardcoded reference to 'ttId' prevented proper use of nodeIdAttr setting + +== 3.0.0-rc.1 - February 3, 2013 + +NOTE: This is a release candidate. Please test this version and report any +issues found. + +The treeTable plugin has been completely rewritten for this release. Please +review the documentation for changes in the way the plugin is used and the +options that are supported. + +* [FEATURE] Added test suite to verify plugin behavior +* [ENHANCEMENT] Better adhere to jQuery plugin standards +* [ENHANCEMENT] Use 'data-' attributes for tree metadata (#48, #7) +* [ENHANCEMENT] Optimized performance of large trees (#41) +* [BUG] Do not pollute the jQuery namespace (#45) +* [REMOVED] Built-in persistence feature has been removed +* [REMOVED] IE6 support + +== 2.3.1 - 18 January 2013 +* [FEATURE] Keyboard accessibility (#27, #30) +* [FEATURE] Optionally persist expanded node state using $.cookie (requires +jquery-cookie plugin) (#19) +* [ENHANCEMENT] Passing options to $.cookie persistence (#31) +* [ENHANCEMENT] Use addClass('ui-helper-hidden') as suggested by whittet (#15) +* [ENHANCEMENT] Added manifest file for jQuery plugin registry +* [BUG] onNodeShow doesn't pass context (#28) +* [BUG] Fixed problems with multiple treeTables with identical rows on the +same page (#16) +* [BUG] Fixed parentOf() not using options.childPrefix (#16) +* [BUG] Prototype conflict (#14) +* [BUG] Wrong documentation for "initialState" (#11) +* [BUG] failed to reveal a node for a pitfall in parentOf (#8) + +== 2.3.0 - 16 March 2010 +* Added GPL-LICENSE. The jQuery treeTable plugin is now dual-licensed under both the MIT and GPLv2 license. +* Added reveal function to expand a tree to a given node. +* Verified compatibility with jQuery 1.4.2. + +== 2.2.3 - 18 August 2009 +* Further optimized performance by eliminating most calls to jQuery's css function + +== 2.2.2 - 25 July 2009 +* Optimized performance of tree initialization (with initialState is collapsed) +* Added option 'clickableNodeNames' to make entire node name clickable to expand branch +* Updated jQuery to version 1.3.2 +* Updated jQuery UI components to version 1.7.2 (Core, Draggable, Droppable) + +== 2.2.1 - 15 February 2009 +* Updated jQuery to version 1.3.1 +* Updated jQuery UI components to 1.6rc6 (Core, Draggable, Droppable) + +== 2.2 - 18 January 2009 +* Fixed expander icon not showing on lazy-initialized nodes +* Fixed drag and drop example code to work for tables within tables +* Updated jQuery to version 1.3.0 +* Updated jQuery UI components to 1.6rc5 (Core, Draggable, Droppable) + +== 2.1 - 16 November 2008 +* Optimized for faster initial loading (Issue #1) +* Implemented lazy initialization of nodes (Issue #1) +* Added information about the order of the rows in the HTML table to the documentation (Issue 2) +* Added performance.html with an example of a large table with drag and drop + +== 2.0 - 12 November 2008 +* Renamed plugin from ActsAsTreeTable to treeTable +* Added a minified version of the source code (jquery.treeTable.min.js) +* Added appendBranchTo function for easier manipulation of the tree with drag & drop (see docs for an example) +* Added option 'childPrefix' to allow customisation of the prefix used for node classes (default: 'child-of-') +* Renamed option 'default_state' to 'initialState' +* Changed initialState from 'expanded' to 'collapsed' +* Refactored collapse/expand behavior +* Moved private function bodies to their respective public function + +== 1.2 - 3 November 2008 +* Added option 'default_state' +* Expose additional functions: collapse, expand and toggleBranch + +== 1.1 - 21 October 2008 +* Fix JavaScript errors in IE7 due to comma-madness +* Fix collapse/expand behavior in IE7 + +== 1.0 - 2 October 2008 +* Public release diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/jquery-treetable/GPL-LICENSE.txt b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/jquery-treetable/GPL-LICENSE.txt new file mode 100644 index 00000000..76927f58 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/jquery-treetable/GPL-LICENSE.txt @@ -0,0 +1,278 @@ + GNU GENERAL PUBLIC LICENSE + Version 2, June 1991 + + Copyright (C) 1989, 1991 Free Software Foundation, Inc. + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The licenses for most software are designed to take away your +freedom to share and change it. By contrast, the GNU General Public +License is intended to guarantee your freedom to share and change free +software--to make sure the software is free for all its users. This +General Public License applies to most of the Free Software +Foundation's software and to any other program whose authors commit to +using it. (Some other Free Software Foundation software is covered by +the GNU Lesser General Public License instead.) You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +this service if you wish), that you receive source code or can get it +if you want it, that you can change the software or use pieces of it +in new free programs; and that you know you can do these things. + + To protect your rights, we need to make restrictions that forbid +anyone to deny you these rights or to ask you to surrender the rights. +These restrictions translate to certain responsibilities for you if you +distribute copies of the software, or if you modify it. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must give the recipients all the rights that +you have. You must make sure that they, too, receive or can get the +source code. And you must show them these terms so they know their +rights. + + We protect your rights with two steps: (1) copyright the software, and +(2) offer you this license which gives you legal permission to copy, +distribute and/or modify the software. + + Also, for each author's protection and ours, we want to make certain +that everyone understands that there is no warranty for this free +software. If the software is modified by someone else and passed on, we +want its recipients to know that what they have is not the original, so +that any problems introduced by others will not reflect on the original +authors' reputations. + + Finally, any free program is threatened constantly by software +patents. We wish to avoid the danger that redistributors of a free +program will individually obtain patent licenses, in effect making the +program proprietary. To prevent this, we have made it clear that any +patent must be licensed for everyone's free use or not licensed at all. + + The precise terms and conditions for copying, distribution and +modification follow. + + GNU GENERAL PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. This License applies to any program or other work which contains +a notice placed by the copyright holder saying it may be distributed +under the terms of this General Public License. The "Program", below, +refers to any such program or work, and a "work based on the Program" +means either the Program or any derivative work under copyright law: +that is to say, a work containing the Program or a portion of it, +either verbatim or with modifications and/or translated into another +language. (Hereinafter, translation is included without limitation in +the term "modification".) Each licensee is addressed as "you". + +Activities other than copying, distribution and modification are not +covered by this License; they are outside its scope. The act of +running the Program is not restricted, and the output from the Program +is covered only if its contents constitute a work based on the +Program (independent of having been made by running the Program). +Whether that is true depends on what the Program does. + + 1. You may copy and distribute verbatim copies of the Program's +source code as you receive it, in any medium, provided that you +conspicuously and appropriately publish on each copy an appropriate +copyright notice and disclaimer of warranty; keep intact all the +notices that refer to this License and to the absence of any warranty; +and give any other recipients of the Program a copy of this License +along with the Program. + +You may charge a fee for the physical act of transferring a copy, and +you may at your option offer warranty protection in exchange for a fee. + + 2. You may modify your copy or copies of the Program or any portion +of it, thus forming a work based on the Program, and copy and +distribute such modifications or work under the terms of Section 1 +above, provided that you also meet all of these conditions: + + a) You must cause the modified files to carry prominent notices + stating that you changed the files and the date of any change. + + b) You must cause any work that you distribute or publish, that in + whole or in part contains or is derived from the Program or any + part thereof, to be licensed as a whole at no charge to all third + parties under the terms of this License. + + c) If the modified program normally reads commands interactively + when run, you must cause it, when started running for such + interactive use in the most ordinary way, to print or display an + announcement including an appropriate copyright notice and a + notice that there is no warranty (or else, saying that you provide + a warranty) and that users may redistribute the program under + these conditions, and telling the user how to view a copy of this + License. (Exception: if the Program itself is interactive but + does not normally print such an announcement, your work based on + the Program is not required to print an announcement.) + +These requirements apply to the modified work as a whole. If +identifiable sections of that work are not derived from the Program, +and can be reasonably considered independent and separate works in +themselves, then this License, and its terms, do not apply to those +sections when you distribute them as separate works. But when you +distribute the same sections as part of a whole which is a work based +on the Program, the distribution of the whole must be on the terms of +this License, whose permissions for other licensees extend to the +entire whole, and thus to each and every part regardless of who wrote it. + +Thus, it is not the intent of this section to claim rights or contest +your rights to work written entirely by you; rather, the intent is to +exercise the right to control the distribution of derivative or +collective works based on the Program. + +In addition, mere aggregation of another work not based on the Program +with the Program (or with a work based on the Program) on a volume of +a storage or distribution medium does not bring the other work under +the scope of this License. + + 3. You may copy and distribute the Program (or a work based on it, +under Section 2) in object code or executable form under the terms of +Sections 1 and 2 above provided that you also do one of the following: + + a) Accompany it with the complete corresponding machine-readable + source code, which must be distributed under the terms of Sections + 1 and 2 above on a medium customarily used for software interchange; or, + + b) Accompany it with a written offer, valid for at least three + years, to give any third party, for a charge no more than your + cost of physically performing source distribution, a complete + machine-readable copy of the corresponding source code, to be + distributed under the terms of Sections 1 and 2 above on a medium + customarily used for software interchange; or, + + c) Accompany it with the information you received as to the offer + to distribute corresponding source code. (This alternative is + allowed only for noncommercial distribution and only if you + received the program in object code or executable form with such + an offer, in accord with Subsection b above.) + +The source code for a work means the preferred form of the work for +making modifications to it. For an executable work, complete source +code means all the source code for all modules it contains, plus any +associated interface definition files, plus the scripts used to +control compilation and installation of the executable. However, as a +special exception, the source code distributed need not include +anything that is normally distributed (in either source or binary +form) with the major components (compiler, kernel, and so on) of the +operating system on which the executable runs, unless that component +itself accompanies the executable. + +If distribution of executable or object code is made by offering +access to copy from a designated place, then offering equivalent +access to copy the source code from the same place counts as +distribution of the source code, even though third parties are not +compelled to copy the source along with the object code. + + 4. You may not copy, modify, sublicense, or distribute the Program +except as expressly provided under this License. Any attempt +otherwise to copy, modify, sublicense or distribute the Program is +void, and will automatically terminate your rights under this License. +However, parties who have received copies, or rights, from you under +this License will not have their licenses terminated so long as such +parties remain in full compliance. + + 5. You are not required to accept this License, since you have not +signed it. However, nothing else grants you permission to modify or +distribute the Program or its derivative works. These actions are +prohibited by law if you do not accept this License. Therefore, by +modifying or distributing the Program (or any work based on the +Program), you indicate your acceptance of this License to do so, and +all its terms and conditions for copying, distributing or modifying +the Program or works based on it. + + 6. Each time you redistribute the Program (or any work based on the +Program), the recipient automatically receives a license from the +original licensor to copy, distribute or modify the Program subject to +these terms and conditions. You may not impose any further +restrictions on the recipients' exercise of the rights granted herein. +You are not responsible for enforcing compliance by third parties to +this License. + + 7. If, as a consequence of a court judgment or allegation of patent +infringement or for any other reason (not limited to patent issues), +conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot +distribute so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you +may not distribute the Program at all. For example, if a patent +license would not permit royalty-free redistribution of the Program by +all those who receive copies directly or indirectly through you, then +the only way you could satisfy both it and this License would be to +refrain entirely from distribution of the Program. + +If any portion of this section is held invalid or unenforceable under +any particular circumstance, the balance of the section is intended to +apply and the section as a whole is intended to apply in other +circumstances. + +It is not the purpose of this section to induce you to infringe any +patents or other property right claims or to contest validity of any +such claims; this section has the sole purpose of protecting the +integrity of the free software distribution system, which is +implemented by public license practices. Many people have made +generous contributions to the wide range of software distributed +through that system in reliance on consistent application of that +system; it is up to the author/donor to decide if he or she is willing +to distribute software through any other system and a licensee cannot +impose that choice. + +This section is intended to make thoroughly clear what is believed to +be a consequence of the rest of this License. + + 8. If the distribution and/or use of the Program is restricted in +certain countries either by patents or by copyrighted interfaces, the +original copyright holder who places the Program under this License +may add an explicit geographical distribution limitation excluding +those countries, so that distribution is permitted only in or among +countries not thus excluded. In such case, this License incorporates +the limitation as if written in the body of this License. + + 9. The Free Software Foundation may publish revised and/or new versions +of the General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + +Each version is given a distinguishing version number. If the Program +specifies a version number of this License which applies to it and "any +later version", you have the option of following the terms and conditions +either of that version or of any later version published by the Free +Software Foundation. If the Program does not specify a version number of +this License, you may choose any version ever published by the Free Software +Foundation. + + 10. If you wish to incorporate parts of the Program into other free +programs whose distribution conditions are different, write to the author +to ask for permission. For software which is copyrighted by the Free +Software Foundation, write to the Free Software Foundation; we sometimes +make exceptions for this. Our decision will be guided by the two goals +of preserving the free status of all derivatives of our free software and +of promoting the sharing and reuse of software generally. + + NO WARRANTY + + 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY +FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN +OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES +PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED +OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS +TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE +PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, +REPAIR OR CORRECTION. + + 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR +REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, +INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING +OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED +TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY +YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER +PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE +POSSIBILITY OF SUCH DAMAGES. \ No newline at end of file diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/jquery-treetable/MIT-LICENSE.txt b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/jquery-treetable/MIT-LICENSE.txt new file mode 100644 index 00000000..c2e824fb --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/jquery-treetable/MIT-LICENSE.txt @@ -0,0 +1,20 @@ +Copyright (c) 2013 Ludo van den Boom, http://ludovandenboom.com + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/jquery-treetable/README.md b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/jquery-treetable/README.md new file mode 100644 index 00000000..ece7afb5 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/jquery-treetable/README.md @@ -0,0 +1,20 @@ +# jQuery treetable + +jQuery treetable is a plugin for jQuery, the 'Write Less, Do More, JavaScript +Library'. With this plugin you can display a tree in an HTML table, e.g. a +directory structure or a nested list. Why not use a list, you say? Because lists +are great for displaying a tree, and tables are not. Oh wait, but this plugin +uses tables, doesn't it? Yes. Why do I use a table to display a list? Because I +need multiple columns to display additional data besides the tree. + +Download the latest release from the jQuery Plugin Registry or grab the source +code from Github. Please report issues through Github issues. This plugin is +released under both the MIT and the GPLv2 license by Ludo van den Boom. + +## Documentation and Examples + +See index.html for technical documentation and examples. The most recent version +of this document is also available online at +http://ludo.cubicphuse.nl/jquery-treetable. An AJAX enabled example built with +Ruby on Rails can be found at +https://github.com/ludo/jquery-treetable-ajax-example. diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/jquery-treetable/index.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/jquery-treetable/index.html new file mode 100644 index 00000000..2828b36f --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/jquery-treetable/index.html @@ -0,0 +1,948 @@ + + + + + + jQuery treetable + + + + + +
                                                                                                                                                                                                                                                                                                        +

                                                                                                                                                                                                                                                                                                        jQuery treetable

                                                                                                                                                                                                                                                                                                        + +

                                                                                                                                                                                                                                                                                                        Download the latest release from the jQuery Plugin Registry or grab the source code from Github. Please report issues through Github issues. This plugin is released under both the MIT and the GPLv2 license by Ludo van den Boom.

                                                                                                                                                                                                                                                                                                        + +
                                                                                                                                                                                                                                                                                                      • + + + + + + + + + + + + + + + + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                        Basic jQuery treetable Example
                                                                                                                                                                                                                                                                                                        Tree columnAdditional data
                                                                                                                                                                                                                                                                                                        Node 1: Click on the icon in front of me to expand this branch.I live in the second column.
                                                                                                                                                                                                                                                                                                        Node 1.1: Look, I am a table row and I am part of a tree!Interesting.
                                                                                                                                                                                                                                                                                                        Node 1.1.1: I am part of the tree too!That's it!
                                                                                                                                                                                                                                                                                                        Node 2: I am another root node, but without childrenHurray!
                                                                                                                                                                                                                                                                                                        + +

                                                                                                                                                                                                                                                                                                        Table of Contents

                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                        1. Overview
                                                                                                                                                                                                                                                                                                        2. +
                                                                                                                                                                                                                                                                                                        3. Usage
                                                                                                                                                                                                                                                                                                        4. +
                                                                                                                                                                                                                                                                                                        5. Configuration
                                                                                                                                                                                                                                                                                                        6. +
                                                                                                                                                                                                                                                                                                        7. Public API
                                                                                                                                                                                                                                                                                                        8. +
                                                                                                                                                                                                                                                                                                        9. Examples
                                                                                                                                                                                                                                                                                                        10. +
                                                                                                                                                                                                                                                                                                        11. Test Suite
                                                                                                                                                                                                                                                                                                        12. +
                                                                                                                                                                                                                                                                                                        13. CHANGELOG.txt
                                                                                                                                                                                                                                                                                                        14. +
                                                                                                                                                                                                                                                                                                        + +

                                                                                                                                                                                                                                                                                                        1. Overview

                                                                                                                                                                                                                                                                                                        + +

                                                                                                                                                                                                                                                                                                        jQuery treetable is a plugin for jQuery, the 'Write Less, Do More, JavaScript Library'. With this plugin you can display a tree in an HTML table, e.g. a directory structure or a nested list. Why not use a list, you say? Because lists are great for displaying a tree, and tables are not. Oh wait, but this plugin uses tables, doesn't it? Yes. Why do I use a table to display a list? Because I need multiple columns to display additional data besides the tree.

                                                                                                                                                                                                                                                                                                        + +

                                                                                                                                                                                                                                                                                                        Unobtrusiveness

                                                                                                                                                                                                                                                                                                        + +

                                                                                                                                                                                                                                                                                                        One of the goals of jQuery treetable is to be as unobtrusive as possible. Being 'unobtrusive' is very cool nowadays, so that was an important requirement. But it is cool for a reason: it keeps your HTML documents clean and it allows the code to degrade nicely when Javascript is not available.

                                                                                                                                                                                                                                                                                                        + +

                                                                                                                                                                                                                                                                                                        The treetable plugin only requires that you add specific data attributes to every row that is part of your tree. The plugin uses these attributes to determine what your tree looks like. Otherwise, it would have to guess the structure of the tree and it wouldn't be very successful in doing that. See the Usage chapter for more information on how to prepare your tree.

                                                                                                                                                                                                                                                                                                        + +

                                                                                                                                                                                                                                                                                                        Features

                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                        • It can display a tree of data in a table column.
                                                                                                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                                                                                                        • It does this as unobtrusively as possible.
                                                                                                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                                                                                                        • It allows branches to be collapsed and expanded (think of how a directory structure works in most file explorers).
                                                                                                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                                                                                                        • It allows unlimited tree depth.
                                                                                                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                                                                                                        • It uses the lightweight jQuery Javascript libray.
                                                                                                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                                                                                                        + +

                                                                                                                                                                                                                                                                                                        2. Usage

                                                                                                                                                                                                                                                                                                        + +

                                                                                                                                                                                                                                                                                                        Note: This chapter assumes that you have already installed jQuery as described on their website.

                                                                                                                                                                                                                                                                                                        + +

                                                                                                                                                                                                                                                                                                        Include the plugin in your document

                                                                                                                                                                                                                                                                                                        + +

                                                                                                                                                                                                                                                                                                        Copy the files javascripts/src/jquery.treetable.js and stylesheets/jquery.treetable.css to your project. Paste the following code right before the closing body tag in your HTML document. Make sure these lines are below the line where you include jQuery. Change the red parts to reflect your situation.

                                                                                                                                                                                                                                                                                                        + +
                                                                                                                                                                                                                                                                                                        +<link href="path/to/jquery.treetable.css" rel="stylesheet" type="text/css" />
                                                                                                                                                                                                                                                                                                        +<script src="path/to/jquery.treetable.js"></script>
                                                                                                                                                                                                                                                                                                        +<script>
                                                                                                                                                                                                                                                                                                        +$("#your_table_id").treetable();
                                                                                                                                                                                                                                                                                                        +</script>
                                                                                                                                                                                                                                                                                                        + +

                                                                                                                                                                                                                                                                                                        Styling the tree

                                                                                                                                                                                                                                                                                                        + +

                                                                                                                                                                                                                                                                                                        By default the tree has little styling. Use the file stylesheets/jquery.treetable.theme.default.css as a template for your own styling. You can also just use this default theme, in that case don't forget to copy the images from images and update the paths in the CSS accordingly.

                                                                                                                                                                                                                                                                                                        + +

                                                                                                                                                                                                                                                                                                        Representing your tree in a table

                                                                                                                                                                                                                                                                                                        +

                                                                                                                                                                                                                                                                                                        When you pasted the above code and adjusted it to reflect your situation, you enabled the possibility of displaying a tree in your table. To make the tree actually display as a tree you have to add data-tt-id and data-tt-parent-id attributes to your table rows (tr).

                                                                                                                                                                                                                                                                                                        + +

                                                                                                                                                                                                                                                                                                        How to do this?

                                                                                                                                                                                                                                                                                                        +

                                                                                                                                                                                                                                                                                                        First, you should add a unique data-tt-id attribute to each of the rows in your table, for example 'node-x'. Then you add a data-tt-parent-id attribute to each child of a node, give this class a value of 'node-x'. The node-x part should be the same as the data-tt-id of its parent. Do you still follow me? Let me show you an example of a very simple tree: a single parent with a single child. For more examples you should view the source code of this page, where you find several tables for the examples in the examples chapter.

                                                                                                                                                                                                                                                                                                        + +
                                                                                                                                                                                                                                                                                                        +<table>
                                                                                                                                                                                                                                                                                                        +  <tr data-tt-id="1">
                                                                                                                                                                                                                                                                                                        +    <td>Parent</td>
                                                                                                                                                                                                                                                                                                        +  </tr>
                                                                                                                                                                                                                                                                                                        +  <tr data-tt-id="2" data-tt-parent-id="1">
                                                                                                                                                                                                                                                                                                        +    <td>Child</td>
                                                                                                                                                                                                                                                                                                        +  </tr>
                                                                                                                                                                                                                                                                                                        +</table>
                                                                                                                                                                                                                                                                                                        + +

                                                                                                                                                                                                                                                                                                        Please note that the plugin expects the rows in the HTML table to be in the same order in which they should be displayed in the tree. For example, suppose you have three nodes: A, B (child of node A) and C (child of node B). If you create rows for these nodes in your HTML table in the following order A - C - B, then the tree will not display correctly. You have to make sure that the rows are in the order A - B - C.

                                                                                                                                                                                                                                                                                                        + +

                                                                                                                                                                                                                                                                                                        3. Configuration

                                                                                                                                                                                                                                                                                                        + +

                                                                                                                                                                                                                                                                                                        There are several settings that let you adjust the behavior of the plugin. Each of these settings is described in this section. Pass these options and callback functions to the treetable() function. See the examples.

                                                                                                                                                                                                                                                                                                        + +

                                                                                                                                                                                                                                                                                                        Settings

                                                                                                                                                                                                                                                                                                        + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                        SettingTypeDefaultDescription
                                                                                                                                                                                                                                                                                                        branchAttrstring"ttBranch"Optional data attribute that can be used to force the expander icon to be rendered on a node. This allows us to define a node as a branch node even though it does not have children yet. This translates to a data-tt-branch attribute in your HTML.
                                                                                                                                                                                                                                                                                                        clickableNodeNamesboolfalseSet to true to expand branches not only when expander icon is clicked but also when node name is clicked.
                                                                                                                                                                                                                                                                                                        columnint0The number of the column in the table that should be displayed as a tree.
                                                                                                                                                                                                                                                                                                        columnElTypestring"td"The types of cells that should be considered for the tree (td, th or both).
                                                                                                                                                                                                                                                                                                        expandableboolfalseShould the tree be expandable? An expandable tree contains buttons to make each branch with children collapsible/expandable.
                                                                                                                                                                                                                                                                                                        expanderTemplatestring<a href="#">&nbsp;</a>The HTML fragment used for the expander.
                                                                                                                                                                                                                                                                                                        indentint19The number of pixels that each branch should be indented with.
                                                                                                                                                                                                                                                                                                        indenterTemplatestring<span class="indenter"></span>The HTML fragment used for the indenter.
                                                                                                                                                                                                                                                                                                        initialStatestring"collapsed"Possible values: "expanded" or "collapsed".
                                                                                                                                                                                                                                                                                                        nodeIdAttrstring"ttId"Name of the data attribute used to identify node. Translates to data-tt-id in your HTML.
                                                                                                                                                                                                                                                                                                        parentIdAttrstring"ttParentId"Name of the data attribute used to set parent node. Translates to data-tt-parent-id in your HTML.
                                                                                                                                                                                                                                                                                                        stringCollapsestring"Collapse"For internationalization.
                                                                                                                                                                                                                                                                                                        stringExpandstring"Expand"For internationalization.
                                                                                                                                                                                                                                                                                                        + +

                                                                                                                                                                                                                                                                                                        Events

                                                                                                                                                                                                                                                                                                        + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                        SettingTypeDefaultDescription
                                                                                                                                                                                                                                                                                                        onInitializedfunctionnullCallback function fired when the tree has been initialized.
                                                                                                                                                                                                                                                                                                        onNodeCollapsefunctionnullCallback function fired when a branch is collapsed.
                                                                                                                                                                                                                                                                                                        onNodeExpandfunctionnullCallback function fired when a branch is expanded.
                                                                                                                                                                                                                                                                                                        onNodeInitializedfunctionnullCallback function fired when a node has been initialized.
                                                                                                                                                                                                                                                                                                        + +

                                                                                                                                                                                                                                                                                                        4. Public API

                                                                                                                                                                                                                                                                                                        + +

                                                                                                                                                                                                                                                                                                        treetable() Plugin Function

                                                                                                                                                                                                                                                                                                        + +

                                                                                                                                                                                                                                                                                                        The treetable() function accepts the following arguments:

                                                                                                                                                                                                                                                                                                        + +
                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                        options (optional)
                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                        A Javascript object of configuration settings as described in the chapter on configuration.
                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                        force (optional)
                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                        Pass the boolean true to force reinitialization of the tree.
                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                        + +

                                                                                                                                                                                                                                                                                                        Additional Functions

                                                                                                                                                                                                                                                                                                        + +

                                                                                                                                                                                                                                                                                                        Use the following functions to manipulate the tree programmatically. Calling a function should be done through the treetable() function. For example, to collapse node '42' use $("#tree").treetable("collapseNode", "42").

                                                                                                                                                                                                                                                                                                        + +
                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                        collapseAll()
                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                        Collapse all nodes at once.
                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                        collapseNode(id)
                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                        Collapse a single node, identified by id.
                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                        expandAll()
                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                        Expand all nodes at once.
                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                        expandNode(id)
                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                        Expand a single node, identified by id.
                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                        loadBranch(node, rows)
                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                        Load additional rows (HTML <tr>s) into the tree, with parent node. If node is null rows will be added as root nodes.
                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                        move(nodeId, destinationId)
                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                        Move node nodeId to new parent with destinationId.
                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                        node(id)
                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                        Select a node from the tree. Returns a TreeTable.Node object.
                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                        removeNode(id)
                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                        Remove a node and all its descendants from the tree.
                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                        reveal(id)
                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                        Reveal a node in the tree.
                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                        sortBranch(node), sortBranch(node, columnOrFunction)
                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                        Sort node's children alphabetically. Defaults to sorting on the values in the configured tree column (see settings). Pass an optional column number or sorting function as the second argument columnOrFunction. See the tests for examples of custom sorting functions. Does not recursively sort children of children.
                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                        unloadBranch(node)
                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                        Remove nodes/rows (HTML <tr>s) from the tree, with parent node. Note that the parent (node) will not be removed.
                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                        + + +

                                                                                                                                                                                                                                                                                                        Classes

                                                                                                                                                                                                                                                                                                        + The following classes are dynamically added to the tree rows: +
                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                        expanded
                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                        When the row is expanded
                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                        collapsed
                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                        When the row is collapsed
                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                        branch
                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                        When the row has children or the branchAttr is present
                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                        leaf
                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                        When the row has no children
                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                        + + +

                                                                                                                                                                                                                                                                                                        5. Examples

                                                                                                                                                                                                                                                                                                        + +

                                                                                                                                                                                                                                                                                                        Basic Static Tree

                                                                                                                                                                                                                                                                                                        + + + + + + + + + + + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                        app
                                                                                                                                                                                                                                                                                                        controllers
                                                                                                                                                                                                                                                                                                        application_controller.rb
                                                                                                                                                                                                                                                                                                        helpers
                                                                                                                                                                                                                                                                                                        models
                                                                                                                                                                                                                                                                                                        views
                                                                                                                                                                                                                                                                                                        + +
                                                                                                                                                                                                                                                                                                        +$("#example-basic-static").treetable();
                                                                                                                                                                                                                                                                                                        + +

                                                                                                                                                                                                                                                                                                        Basic Expandable Tree

                                                                                                                                                                                                                                                                                                        + + + + + + + + + + + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                        app
                                                                                                                                                                                                                                                                                                        controllers
                                                                                                                                                                                                                                                                                                        application_controller.rb
                                                                                                                                                                                                                                                                                                        helpers
                                                                                                                                                                                                                                                                                                        models
                                                                                                                                                                                                                                                                                                        views
                                                                                                                                                                                                                                                                                                        + +
                                                                                                                                                                                                                                                                                                        +$("#example-basic-expandable").treetable({ expandable: true });
                                                                                                                                                                                                                                                                                                        + +

                                                                                                                                                                                                                                                                                                        Complex Tree With Drag and Drop

                                                                                                                                                                                                                                                                                                        + +

                                                                                                                                                                                                                                                                                                        This example uses jQuery UI's Draggable and Droppable components. The tree has 459 nodes.

                                                                                                                                                                                                                                                                                                        + +
                                                                                                                                                                                                                                                                                                        + +
                                                                                                                                                                                                                                                                                                        + Examples: 2-1-1, 3-1-1-2-2 and 3-2-1-2-3-1-2-2-1-1-1-1-2-5 +
                                                                                                                                                                                                                                                                                                        + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                        + Expand all + Collapse all +
                                                                                                                                                                                                                                                                                                        NameKindSize
                                                                                                                                                                                                                                                                                                        Acknowledgements.rtfFile480.95 KB
                                                                                                                                                                                                                                                                                                        CHUDFolder--
                                                                                                                                                                                                                                                                                                        amberFolder--
                                                                                                                                                                                                                                                                                                        AmberTraceFormats.pdfFile124.46 KB
                                                                                                                                                                                                                                                                                                        BigTopFolder--
                                                                                                                                                                                                                                                                                                        BigTopUserGuide.pdfFile1314.71 KB
                                                                                                                                                                                                                                                                                                        SaturnFolder--
                                                                                                                                                                                                                                                                                                        SaturnUserGuide.pdfFile694.29 KB
                                                                                                                                                                                                                                                                                                        SharkFolder--
                                                                                                                                                                                                                                                                                                        SharkUserGuide.pdfFile12902.51 KB
                                                                                                                                                                                                                                                                                                        simg4Folder--
                                                                                                                                                                                                                                                                                                        simg4_plusFolder--
                                                                                                                                                                                                                                                                                                        simg5Folder--
                                                                                                                                                                                                                                                                                                        DocSetsFolder--
                                                                                                                                                                                                                                                                                                        com.apple.ADC_Reference_Library.CoreReference.docsetFolder--
                                                                                                                                                                                                                                                                                                        ContentsFolder--
                                                                                                                                                                                                                                                                                                        Info.plistFile1.23 KB
                                                                                                                                                                                                                                                                                                        ResourcesFolder--
                                                                                                                                                                                                                                                                                                        docSet.dsidxFile41504 KB
                                                                                                                                                                                                                                                                                                        docSet.skidxFile43072 KB
                                                                                                                                                                                                                                                                                                        DocumentsFolder--
                                                                                                                                                                                                                                                                                                        documentationFolder--
                                                                                                                                                                                                                                                                                                        AccessibilityFolder--
                                                                                                                                                                                                                                                                                                        ReferenceFolder--
                                                                                                                                                                                                                                                                                                        AccessibilityCarbonRefFolder--
                                                                                                                                                                                                                                                                                                        CarbonAXRefRevisionsFolder--
                                                                                                                                                                                                                                                                                                        CarbonAXRefRevisions.htmlFile7.44 KB
                                                                                                                                                                                                                                                                                                        IndexFolder--
                                                                                                                                                                                                                                                                                                        index_of_book.htmlFile174.1 KB
                                                                                                                                                                                                                                                                                                        index.htmlFile1.1 KB
                                                                                                                                                                                                                                                                                                        ReferenceFolder--
                                                                                                                                                                                                                                                                                                        reference.htmlFile196.28 KB
                                                                                                                                                                                                                                                                                                        toc.htmlFile15.92 KB
                                                                                                                                                                                                                                                                                                        AccessibilityLowlevelFolder--
                                                                                                                                                                                                                                                                                                        accessibilityFolder--
                                                                                                                                                                                                                                                                                                        CompositePage.htmlFile5.7 KB
                                                                                                                                                                                                                                                                                                        index.htmlFile1.67 KB
                                                                                                                                                                                                                                                                                                        toc.htmlFile2.87 KB
                                                                                                                                                                                                                                                                                                        accessibility-constants.htmlFile26.94 KB
                                                                                                                                                                                                                                                                                                        accessibility-datatypes.htmlFile11.02 KB
                                                                                                                                                                                                                                                                                                        accessibility-functions.htmlFile15.55 KB
                                                                                                                                                                                                                                                                                                        accessibility-mpindex.htmlFile9.87 KB
                                                                                                                                                                                                                                                                                                        AXActionConstantsFolder--
                                                                                                                                                                                                                                                                                                        CompositePage.htmlFile15.08 KB
                                                                                                                                                                                                                                                                                                        index.htmlFile1.67 KB
                                                                                                                                                                                                                                                                                                        toc.htmlFile4.9 KB
                                                                                                                                                                                                                                                                                                        AXAttributeConstantsFolder--
                                                                                                                                                                                                                                                                                                        AXErrorFolder--
                                                                                                                                                                                                                                                                                                        AXNotificationConstantsFolder--
                                                                                                                                                                                                                                                                                                        AXRoleConstantsFolder--
                                                                                                                                                                                                                                                                                                        AXTextAttributedStringFolder--
                                                                                                                                                                                                                                                                                                        AXUIElementFolder--
                                                                                                                                                                                                                                                                                                        AXValueFolder--
                                                                                                                                                                                                                                                                                                        AXValueConstantsFolder--
                                                                                                                                                                                                                                                                                                        index.htmlFile10.1 KB
                                                                                                                                                                                                                                                                                                        UniversalAccessFolder--
                                                                                                                                                                                                                                                                                                        adcstyle.cssFile15.86 KB
                                                                                                                                                                                                                                                                                                        AppleApplicationsFolder--
                                                                                                                                                                                                                                                                                                        ReferenceFolder--
                                                                                                                                                                                                                                                                                                        AddressBookC_CollectionFolder--
                                                                                                                                                                                                                                                                                                        IndexFolder--
                                                                                                                                                                                                                                                                                                        index_of_book.htmlFile153.98 KB
                                                                                                                                                                                                                                                                                                        index.htmlFile13.62 KB
                                                                                                                                                                                                                                                                                                        IntroductionFolder--
                                                                                                                                                                                                                                                                                                        Introduction.htmlFile5.41 KB
                                                                                                                                                                                                                                                                                                        RevisionHistory.htmlFile4.66 KB
                                                                                                                                                                                                                                                                                                        AddressBookRefUpdateFolder--
                                                                                                                                                                                                                                                                                                        ArticlesFolder--
                                                                                                                                                                                                                                                                                                        AddressBook_10.1-10.2_SymbolChanges.htmlFile80.84 KB
                                                                                                                                                                                                                                                                                                        AddressBook_10.2-10.3_SymbolChanges.htmlFile54.2 KB
                                                                                                                                                                                                                                                                                                        AddressBook_10.3-10.4_SymbolChanges.htmlFile14.78 KB
                                                                                                                                                                                                                                                                                                        AddressBook_10.4-10.5_SymbolChanges.htmlFile11.03 KB
                                                                                                                                                                                                                                                                                                        Introduction.htmlFile7.3 KB
                                                                                                                                                                                                                                                                                                        RevisionHistory.htmlFile6.19 KB
                                                                                                                                                                                                                                                                                                        index.htmlFile1.08 KB
                                                                                                                                                                                                                                                                                                        toc.htmlFile2.84 KB
                                                                                                                                                                                                                                                                                                        AMWorkflow_classFolder--
                                                                                                                                                                                                                                                                                                        AMWorkflowController_classFolder--
                                                                                                                                                                                                                                                                                                        AMWorkflowView_ClassFolder--
                                                                                                                                                                                                                                                                                                        AppleApp_Aperture_002Folder--
                                                                                                                                                                                                                                                                                                        Automator_constantsFolder--
                                                                                                                                                                                                                                                                                                        AutomatorFrameworkFolder--
                                                                                                                                                                                                                                                                                                        AutomatorReferenceFolder--
                                                                                                                                                                                                                                                                                                        AutomatorRefUpdateFolder--
                                                                                                                                                                                                                                                                                                        CalendarStoreFrameworkFolder--
                                                                                                                                                                                                                                                                                                        CalendarStoreReferenceFolder--
                                                                                                                                                                                                                                                                                                        CalendarStoreRefUpdateFolder--
                                                                                                                                                                                                                                                                                                        Dashboard_RefFolder--
                                                                                                                                                                                                                                                                                                        FinalCutPro_XMLFolder--
                                                                                                                                                                                                                                                                                                        InstantMessageFrameworkFolder--
                                                                                                                                                                                                                                                                                                        InstantMessageFrameworkRefFolder--
                                                                                                                                                                                                                                                                                                        InstantMessageRefUpdateFolder--
                                                                                                                                                                                                                                                                                                        iSyncJavaScriptRefFolder--
                                                                                                                                                                                                                                                                                                        iSyncManualTestSuiteRefFolder--
                                                                                                                                                                                                                                                                                                        iSyncSyncMLRefFolder--
                                                                                                                                                                                                                                                                                                        MessageFrameworkReferenceFolder--
                                                                                                                                                                                                                                                                                                        Motion_FXPlug_RefFolder--
                                                                                                                                                                                                                                                                                                        SafariCSSRefFolder--
                                                                                                                                                                                                                                                                                                        SafariHTMLRefFolder--
                                                                                                                                                                                                                                                                                                        SyncServicesRefUpdateFolder--
                                                                                                                                                                                                                                                                                                        SyncServicesSchemaRefFolder--
                                                                                                                                                                                                                                                                                                        WebKitDOMRefFolder--
                                                                                                                                                                                                                                                                                                        AppleScriptFolder--
                                                                                                                                                                                                                                                                                                        ReferenceFolder--
                                                                                                                                                                                                                                                                                                        StudioReferenceFolder--
                                                                                                                                                                                                                                                                                                        artFolder--
                                                                                                                                                                                                                                                                                                        boxes.gifFile11.52 KB
                                                                                                                                                                                                                                                                                                        browser.gifFile26.04 KB
                                                                                                                                                                                                                                                                                                        button_in_window.gifFile8.17 KB
                                                                                                                                                                                                                                                                                                        cc_app_info_window.gifFile24.36 KB
                                                                                                                                                                                                                                                                                                        circular_prog_indicator.gifFile0.65 KB
                                                                                                                                                                                                                                                                                                        color_panel.jpgFile24.91 KB
                                                                                                                                                                                                                                                                                                        color_well.gifFile7.58 KB
                                                                                                                                                                                                                                                                                                        combobox.gifFile1.44 KB
                                                                                                                                                                                                                                                                                                        comboboxlist.gifFile4.12 KB
                                                                                                                                                                                                                                                                                                        display_alert.gifFile28.69 KB
                                                                                                                                                                                                                                                                                                        display_dialog.gifFile28.42 KB
                                                                                                                                                                                                                                                                                                        doc_exp_groups.gifFile22.52 KB
                                                                                                                                                                                                                                                                                                        drawer.gifFile34.4 KB
                                                                                                                                                                                                                                                                                                        drawer_content_view.gifFile8.21 KB
                                                                                                                                                                                                                                                                                                        drawer_instances_in_nib.gifFile20.97 KB
                                                                                                                                                                                                                                                                                                        drawers_in_palette.gifFile17.34 KB
                                                                                                                                                                                                                                                                                                        files_owner_in_nib.gifFile15.24 KB
                                                                                                                                                                                                                                                                                                        font_panel.gifFile17.16 KB
                                                                                                                                                                                                                                                                                                        hw_exp_grps_files.gifFile15.35 KB
                                                                                                                                                                                                                                                                                                        ib_number_formatter.gifFile1.46 KB
                                                                                                                                                                                                                                                                                                        image_tab_mainmenu_nib.gifFile12.33 KB
                                                                                                                                                                                                                                                                                                        image_view_from_app.gifFile17.18 KB
                                                                                                                                                                                                                                                                                                        matrix.gifFile7.36 KB
                                                                                                                                                                                                                                                                                                        menu_item.gifFile16.85 KB
                                                                                                                                                                                                                                                                                                        menu_showing_file_menu.gifFile17 KB
                                                                                                                                                                                                                                                                                                        movie_view.gifFile34.76 KB
                                                                                                                                                                                                                                                                                                        number_formatter_info.gifFile24.8 KB
                                                                                                                                                                                                                                                                                                        open_panel.gifFile32.06 KB
                                                                                                                                                                                                                                                                                                        outline_view.gifFile18.7 KB
                                                                                                                                                                                                                                                                                                        popup_button.gifFile6.76 KB
                                                                                                                                                                                                                                                                                                        progindindet.gifFile3.78 KB
                                                                                                                                                                                                                                                                                                        save_panel.gifFile39.43 KB
                                                                                                                                                                                                                                                                                                        secure_text_field.gifFile9.91 KB
                                                                                                                                                                                                                                                                                                        simple_toolbar.gifFile10.4 KB
                                                                                                                                                                                                                                                                                                        sliders.gifFile11.01 KB
                                                                                                                                                                                                                                                                                                        sounds_in_nib_window.gifFile22.26 KB
                                                                                                                                                                                                                                                                                                        split_view.gifFile15.73 KB
                                                                                                                                                                                                                                                                                                        stepper.gifFile1.08 KB
                                                                                                                                                                                                                                                                                                        table_app.gifFile22.72 KB
                                                                                                                                                                                                                                                                                                        table_view.gifFile14.55 KB
                                                                                                                                                                                                                                                                                                        tabview.gifFile24.86 KB
                                                                                                                                                                                                                                                                                                        text_fields.gifFile7.1 KB
                                                                                                                                                                                                                                                                                                        text_view.gifFile12.18 KB
                                                                                                                                                                                                                                                                                                        to_do_outline.gifFile15.4 KB
                                                                                                                                                                                                                                                                                                        window.gifFile6.41 KB
                                                                                                                                                                                                                                                                                                        IndexFolder--
                                                                                                                                                                                                                                                                                                        index.htmlFile1.13 KB
                                                                                                                                                                                                                                                                                                        sr10_panel_suiteFolder--
                                                                                                                                                                                                                                                                                                        sr10_pplugin_suiteFolder--
                                                                                                                                                                                                                                                                                                        sr11_textview_suiteFolder--
                                                                                                                                                                                                                                                                                                        sr1_aboutFolder--
                                                                                                                                                                                                                                                                                                        sr2_fundamentalsFolder--
                                                                                                                                                                                                                                                                                                        sr3_app_suiteFolder--
                                                                                                                                                                                                                                                                                                        sr4_container_suiteFolder--
                                                                                                                                                                                                                                                                                                        sr5_control_suiteFolder--
                                                                                                                                                                                                                                                                                                        sr6_data_suiteFolder--
                                                                                                                                                                                                                                                                                                        sr7_doc_suiteFolder--
                                                                                                                                                                                                                                                                                                        sr8_drag_drop_suiteFolder--
                                                                                                                                                                                                                                                                                                        sr9_menu_suiteFolder--
                                                                                                                                                                                                                                                                                                        sr_historyFolder--
                                                                                                                                                                                                                                                                                                        toc.htmlFile132.84 KB
                                                                                                                                                                                                                                                                                                        CarbonFolder--
                                                                                                                                                                                                                                                                                                        CocoaFolder--
                                                                                                                                                                                                                                                                                                        CoreFoundationFolder--
                                                                                                                                                                                                                                                                                                        cssFolder--
                                                                                                                                                                                                                                                                                                        DarwinFolder--
                                                                                                                                                                                                                                                                                                        DeveloperToolsFolder--
                                                                                                                                                                                                                                                                                                        DeviceDriversFolder--
                                                                                                                                                                                                                                                                                                        GamesFolder--
                                                                                                                                                                                                                                                                                                        GraphicsImagingFolder--
                                                                                                                                                                                                                                                                                                        HardwareFolder--
                                                                                                                                                                                                                                                                                                        HardwareDriversFolder--
                                                                                                                                                                                                                                                                                                        imagesFolder--
                                                                                                                                                                                                                                                                                                        index-date.htmlFile74.06 KB
                                                                                                                                                                                                                                                                                                        index-date0.htmlFile284.1 KB
                                                                                                                                                                                                                                                                                                        index-date2.htmlFile73.94 KB
                                                                                                                                                                                                                                                                                                        index-date3.htmlFile74.4 KB
                                                                                                                                                                                                                                                                                                        index-date4.htmlFile75.11 KB
                                                                                                                                                                                                                                                                                                        index-date5.htmlFile41.11 KB
                                                                                                                                                                                                                                                                                                        index-rev-date.htmlFile49.03 KB
                                                                                                                                                                                                                                                                                                        index-rev-revision.htmlFile49.01 KB
                                                                                                                                                                                                                                                                                                        index-rev-title.htmlFile49.03 KB
                                                                                                                                                                                                                                                                                                        index-rev-topic.htmlFile71.41 KB
                                                                                                                                                                                                                                                                                                        index-rev-topic0.htmlFile93.76 KB
                                                                                                                                                                                                                                                                                                        index-rev-topic2.htmlFile29.61 KB
                                                                                                                                                                                                                                                                                                        index-title.htmlFile73.91 KB
                                                                                                                                                                                                                                                                                                        index-title0.htmlFile284.11 KB
                                                                                                                                                                                                                                                                                                        index-title2.htmlFile74.7 KB
                                                                                                                                                                                                                                                                                                        index-title3.htmlFile73 KB
                                                                                                                                                                                                                                                                                                        index-title4.htmlFile74.15 KB
                                                                                                                                                                                                                                                                                                        index-title5.htmlFile42.91 KB
                                                                                                                                                                                                                                                                                                        index-topic.htmlFile72.46 KB
                                                                                                                                                                                                                                                                                                        index-topic0.htmlFile601.26 KB
                                                                                                                                                                                                                                                                                                        index-topic10.htmlFile74.41 KB
                                                                                                                                                                                                                                                                                                        index-topic2.htmlFile73.6 KB
                                                                                                                                                                                                                                                                                                        index-topic3.htmlFile72.47 KB
                                                                                                                                                                                                                                                                                                        index-topic4.htmlFile71.89 KB
                                                                                                                                                                                                                                                                                                        index-topic5.htmlFile73.89 KB
                                                                                                                                                                                                                                                                                                        index-topic6.htmlFile73.1 KB
                                                                                                                                                                                                                                                                                                        index-topic7.htmlFile70.55 KB
                                                                                                                                                                                                                                                                                                        index-topic8.htmlFile71.25 KB
                                                                                                                                                                                                                                                                                                        index-topic9.htmlFile72.56 KB
                                                                                                                                                                                                                                                                                                        index.htmlFile20.65 KB
                                                                                                                                                                                                                                                                                                        InternationalizationFolder--
                                                                                                                                                                                                                                                                                                        InternetWebFolder--
                                                                                                                                                                                                                                                                                                        iPhoneFolder--
                                                                                                                                                                                                                                                                                                        jsFolder--
                                                                                                                                                                                                                                                                                                        LegacyTechnologiesFolder--
                                                                                                                                                                                                                                                                                                        MacOSXFolder--
                                                                                                                                                                                                                                                                                                        MacOSXServerFolder--
                                                                                                                                                                                                                                                                                                        MusicAudioFolder--
                                                                                                                                                                                                                                                                                                        NetworkingFolder--
                                                                                                                                                                                                                                                                                                        OpenSourceFolder--
                                                                                                                                                                                                                                                                                                        PerformanceFolder--
                                                                                                                                                                                                                                                                                                        PortingFolder--
                                                                                                                                                                                                                                                                                                        PrintingFolder--
                                                                                                                                                                                                                                                                                                        QuickTimeFolder--
                                                                                                                                                                                                                                                                                                        ResourcesFolder--
                                                                                                                                                                                                                                                                                                        ScriptingAutomationFolder--
                                                                                                                                                                                                                                                                                                        SecurityFolder--
                                                                                                                                                                                                                                                                                                        StorageFolder--
                                                                                                                                                                                                                                                                                                        TextFontsFolder--
                                                                                                                                                                                                                                                                                                        UserExperienceFolder--
                                                                                                                                                                                                                                                                                                        WebObjectsFolder--
                                                                                                                                                                                                                                                                                                        referencelibraryFolder--
                                                                                                                                                                                                                                                                                                        adc.cssFile1.46 KB
                                                                                                                                                                                                                                                                                                        base.cssFile1.08 KB
                                                                                                                                                                                                                                                                                                        imagesFolder--
                                                                                                                                                                                                                                                                                                        body_bg.gifFile0.24 KB
                                                                                                                                                                                                                                                                                                        main_bgbottom.gifFile2.35 KB
                                                                                                                                                                                                                                                                                                        main_bgtop.gifFile6.88 KB
                                                                                                                                                                                                                                                                                                        main_bgtop_stroke.gifFile7.62 KB
                                                                                                                                                                                                                                                                                                        UpdateBanner_core.pngFile24.25 KB
                                                                                                                                                                                                                                                                                                        index.htmlFile1.15 KB
                                                                                                                                                                                                                                                                                                        version.plistFile0.44 KB
                                                                                                                                                                                                                                                                                                        com.apple.ADC_Reference_Library.DeveloperTools.docsetFolder--
                                                                                                                                                                                                                                                                                                        ContentsFolder--
                                                                                                                                                                                                                                                                                                        Info.plistFile1.33 KB
                                                                                                                                                                                                                                                                                                        ResourcesFolder--
                                                                                                                                                                                                                                                                                                        docSet.dsidxFile2752 KB
                                                                                                                                                                                                                                                                                                        docSet.skidxFile5664 KB
                                                                                                                                                                                                                                                                                                        DocumentsFolder--
                                                                                                                                                                                                                                                                                                        documentationFolder--
                                                                                                                                                                                                                                                                                                        adcstyle.cssFile15.86 KB
                                                                                                                                                                                                                                                                                                        AppleApplicationsFolder--
                                                                                                                                                                                                                                                                                                        AppleApplications.htmlFile0.22 KB
                                                                                                                                                                                                                                                                                                        ConceptualFolder--
                                                                                                                                                                                                                                                                                                        Dashcode_UserGuideFolder--
                                                                                                                                                                                                                                                                                                        ContentsFolder--
                                                                                                                                                                                                                                                                                                        ResourcesFolder--
                                                                                                                                                                                                                                                                                                        de.lprojFolder--
                                                                                                                                                                                                                                                                                                        AdvancedFolder--
                                                                                                                                                                                                                                                                                                        chapter_8_section_1.htmlFile6.71 KB
                                                                                                                                                                                                                                                                                                        chapter_8_section_2.htmlFile7.93 KB
                                                                                                                                                                                                                                                                                                        chapter_8_section_3.htmlFile6.38 KB
                                                                                                                                                                                                                                                                                                        ArtFolder--
                                                                                                                                                                                                                                                                                                        apple_birthday_widget.jpgFile33.5 KB
                                                                                                                                                                                                                                                                                                        canvas_inspector.jpgFile71.75 KB
                                                                                                                                                                                                                                                                                                        countdown_attributes.jpgFile46.69 KB
                                                                                                                                                                                                                                                                                                        project_window.jpgFile107.57 KB
                                                                                                                                                                                                                                                                                                        source_code_inspector.jpgFile76.19 KB
                                                                                                                                                                                                                                                                                                        webapp_add_code.jpgFile85.65 KB
                                                                                                                                                                                                                                                                                                        webapp_add_part.jpgFile108.16 KB
                                                                                                                                                                                                                                                                                                        webapp_first_test.jpgFile86.82 KB
                                                                                                                                                                                                                                                                                                        webapp_project_window.jpgFile152.27 KB
                                                                                                                                                                                                                                                                                                        chapter_999_section_1.htmlFile6.3 KB
                                                                                                                                                                                                                                                                                                        CodeAndDebuggingFolder--
                                                                                                                                                                                                                                                                                                        Dashcode_UserGuide.pdfFile1875.27 KB
                                                                                                                                                                                                                                                                                                        DebuggingSharingFolder--
                                                                                                                                                                                                                                                                                                        DesignToolsFolder--
                                                                                                                                                                                                                                                                                                        index.htmlFile1.11 KB
                                                                                                                                                                                                                                                                                                        IntroductionFolder--
                                                                                                                                                                                                                                                                                                        MakingaWebAppFolder--
                                                                                                                                                                                                                                                                                                        MakingaWidgetwithDashcodeFolder--
                                                                                                                                                                                                                                                                                                        PartsReferenceFolder--
                                                                                                                                                                                                                                                                                                        TemplatesFolder--
                                                                                                                                                                                                                                                                                                        toc.htmlFile38.57 KB
                                                                                                                                                                                                                                                                                                        WidgetProjectsFolder--
                                                                                                                                                                                                                                                                                                        en.lprojFolder--
                                                                                                                                                                                                                                                                                                        AdvancedFolder--
                                                                                                                                                                                                                                                                                                        chapter_8_section_1.htmlFile6.6 KB
                                                                                                                                                                                                                                                                                                        chapter_8_section_2.htmlFile7.4 KB
                                                                                                                                                                                                                                                                                                        chapter_8_section_3.htmlFile6.24 KB
                                                                                                                                                                                                                                                                                                        ArtFolder--
                                                                                                                                                                                                                                                                                                        chapter_999_section_1.htmlFile6.2 KB
                                                                                                                                                                                                                                                                                                        CodeAndDebuggingFolder--
                                                                                                                                                                                                                                                                                                        Dashcode_UserGuide.pdfFile1087.36 KB
                                                                                                                                                                                                                                                                                                        DebuggingSharingFolder--
                                                                                                                                                                                                                                                                                                        DesignToolsFolder--
                                                                                                                                                                                                                                                                                                        index.htmlFile1.09 KB
                                                                                                                                                                                                                                                                                                        IntroductionFolder--
                                                                                                                                                                                                                                                                                                        MakingaWebAppFolder--
                                                                                                                                                                                                                                                                                                        MakingaWidgetwithDashcodeFolder--
                                                                                                                                                                                                                                                                                                        PartsReferenceFolder--
                                                                                                                                                                                                                                                                                                        TemplatesFolder--
                                                                                                                                                                                                                                                                                                        toc.htmlFile38.11 KB
                                                                                                                                                                                                                                                                                                        WidgetProjectsFolder--
                                                                                                                                                                                                                                                                                                        es.lprojFolder--
                                                                                                                                                                                                                                                                                                        fr.lprojFolder--
                                                                                                                                                                                                                                                                                                        it.lprojFolder--
                                                                                                                                                                                                                                                                                                        ja.lprojFolder--
                                                                                                                                                                                                                                                                                                        nl.lprojFolder--
                                                                                                                                                                                                                                                                                                        zh.lprojFolder--
                                                                                                                                                                                                                                                                                                        Dashboard-date.htmlFile10.88 KB
                                                                                                                                                                                                                                                                                                        Dashboard-rev-date.htmlFile8.85 KB
                                                                                                                                                                                                                                                                                                        Dashboard-rev-revision.htmlFile8.83 KB
                                                                                                                                                                                                                                                                                                        Dashboard-rev-title.htmlFile8.85 KB
                                                                                                                                                                                                                                                                                                        Dashboard-title.htmlFile10.71 KB
                                                                                                                                                                                                                                                                                                        index-date.htmlFile11.79 KB
                                                                                                                                                                                                                                                                                                        index-rev-date.htmlFile9.38 KB
                                                                                                                                                                                                                                                                                                        index-rev-revision.htmlFile9.36 KB
                                                                                                                                                                                                                                                                                                        index-rev-title.htmlFile9.37 KB
                                                                                                                                                                                                                                                                                                        index-rev-topic.htmlFile9.37 KB
                                                                                                                                                                                                                                                                                                        index-title.htmlFile11.78 KB
                                                                                                                                                                                                                                                                                                        index-topic.htmlFile12.39 KB
                                                                                                                                                                                                                                                                                                        index.htmlFile7.24 KB
                                                                                                                                                                                                                                                                                                        iSync-date.htmlFile8.17 KB
                                                                                                                                                                                                                                                                                                        iSync-title.htmlFile8 KB
                                                                                                                                                                                                                                                                                                        CarbonFolder--
                                                                                                                                                                                                                                                                                                        Carbon.htmlFile0.21 KB
                                                                                                                                                                                                                                                                                                        DesignGuidelines-date.htmlFile9.93 KB
                                                                                                                                                                                                                                                                                                        DesignGuidelines-rev-date.htmlFile7.45 KB
                                                                                                                                                                                                                                                                                                        DesignGuidelines-rev-revision.htmlFile7.44 KB
                                                                                                                                                                                                                                                                                                        DesignGuidelines-rev-title.htmlFile7.45 KB
                                                                                                                                                                                                                                                                                                        DesignGuidelines-title.htmlFile9.77 KB
                                                                                                                                                                                                                                                                                                        index-date.htmlFile19.66 KB
                                                                                                                                                                                                                                                                                                        index-rev-date.htmlFile12.35 KB
                                                                                                                                                                                                                                                                                                        index-rev-revision.htmlFile12.33 KB
                                                                                                                                                                                                                                                                                                        index-rev-title.htmlFile12.34 KB
                                                                                                                                                                                                                                                                                                        index-rev-topic.htmlFile12.98 KB
                                                                                                                                                                                                                                                                                                        index-title.htmlFile19.65 KB
                                                                                                                                                                                                                                                                                                        index-topic.htmlFile22.64 KB
                                                                                                                                                                                                                                                                                                        index.htmlFile10.96 KB
                                                                                                                                                                                                                                                                                                        IntelBasedMacs-date.htmlFile10.5 KB
                                                                                                                                                                                                                                                                                                        IntelBasedMacs-title.htmlFile10.33 KB
                                                                                                                                                                                                                                                                                                        Performance-date.htmlFile9.14 KB
                                                                                                                                                                                                                                                                                                        Performance-title.htmlFile8.98 KB
                                                                                                                                                                                                                                                                                                        Porting-date.htmlFile8.78 KB
                                                                                                                                                                                                                                                                                                        Porting-title.htmlFile8.63 KB
                                                                                                                                                                                                                                                                                                        Tools-date.htmlFile16.03 KB
                                                                                                                                                                                                                                                                                                        Tools-rev-date.htmlFile10.85 KB
                                                                                                                                                                                                                                                                                                        Tools-rev-revision.htmlFile10.83 KB
                                                                                                                                                                                                                                                                                                        Tools-rev-title.htmlFile10.84 KB
                                                                                                                                                                                                                                                                                                        Tools-title.htmlFile15.88 KB
                                                                                                                                                                                                                                                                                                        UserExperience-date.htmlFile8.85 KB
                                                                                                                                                                                                                                                                                                        UserExperience-title.htmlFile8.69 KB
                                                                                                                                                                                                                                                                                                        CocoaFolder--
                                                                                                                                                                                                                                                                                                        CoreFoundationFolder--
                                                                                                                                                                                                                                                                                                        cssFolder--
                                                                                                                                                                                                                                                                                                        DarwinFolder--
                                                                                                                                                                                                                                                                                                        DeveloperToolsFolder--
                                                                                                                                                                                                                                                                                                        GraphicsImagingFolder--
                                                                                                                                                                                                                                                                                                        HardwareDriversFolder--
                                                                                                                                                                                                                                                                                                        imagesFolder--
                                                                                                                                                                                                                                                                                                        index-date.htmlFile38.14 KB
                                                                                                                                                                                                                                                                                                        index-rev-date.htmlFile20.91 KB
                                                                                                                                                                                                                                                                                                        index-rev-revision.htmlFile20.89 KB
                                                                                                                                                                                                                                                                                                        index-rev-title.htmlFile20.9 KB
                                                                                                                                                                                                                                                                                                        index-rev-topic.htmlFile45.06 KB
                                                                                                                                                                                                                                                                                                        index-title.htmlFile38.14 KB
                                                                                                                                                                                                                                                                                                        index-topic.htmlFile77.78 KB
                                                                                                                                                                                                                                                                                                        index.htmlFile17.08 KB
                                                                                                                                                                                                                                                                                                        InternationalizationFolder--
                                                                                                                                                                                                                                                                                                        InternetWebFolder--
                                                                                                                                                                                                                                                                                                        JavaFolder--
                                                                                                                                                                                                                                                                                                        jsFolder--
                                                                                                                                                                                                                                                                                                        LegacyTechnologiesFolder--
                                                                                                                                                                                                                                                                                                        MacOSXFolder--
                                                                                                                                                                                                                                                                                                        OpenSourceFolder--
                                                                                                                                                                                                                                                                                                        PerformanceFolder--
                                                                                                                                                                                                                                                                                                        PortingFolder--
                                                                                                                                                                                                                                                                                                        ResourcesFolder--
                                                                                                                                                                                                                                                                                                        ScriptingAutomationFolder--
                                                                                                                                                                                                                                                                                                        UserExperienceFolder--
                                                                                                                                                                                                                                                                                                        XcodeFolder--
                                                                                                                                                                                                                                                                                                        featuredarticlesFolder--
                                                                                                                                                                                                                                                                                                        adcstyle.cssFile15.86 KB
                                                                                                                                                                                                                                                                                                        AppleApplicationsFolder--
                                                                                                                                                                                                                                                                                                        idxDashboard-date.htmlFile8.35 KB
                                                                                                                                                                                                                                                                                                        idxDashboard-title.htmlFile8.24 KB
                                                                                                                                                                                                                                                                                                        index-date.htmlFile8.52 KB
                                                                                                                                                                                                                                                                                                        index-title.htmlFile8.51 KB
                                                                                                                                                                                                                                                                                                        index-topic.htmlFile8.51 KB
                                                                                                                                                                                                                                                                                                        index.htmlFile6.46 KB
                                                                                                                                                                                                                                                                                                        CarbonFolder--
                                                                                                                                                                                                                                                                                                        CocoaFolder--
                                                                                                                                                                                                                                                                                                        cssFolder--
                                                                                                                                                                                                                                                                                                        DeveloperToolsFolder--
                                                                                                                                                                                                                                                                                                        GamesFolder--
                                                                                                                                                                                                                                                                                                        imagesFolder--
                                                                                                                                                                                                                                                                                                        index-date.htmlFile16.03 KB
                                                                                                                                                                                                                                                                                                        index-title.htmlFile16.03 KB
                                                                                                                                                                                                                                                                                                        index-topic.htmlFile19.32 KB
                                                                                                                                                                                                                                                                                                        index.htmlFile10.98 KB
                                                                                                                                                                                                                                                                                                        jsFolder--
                                                                                                                                                                                                                                                                                                        LegacyTechnologiesFolder--
                                                                                                                                                                                                                                                                                                        ScriptingAutomationFolder--
                                                                                                                                                                                                                                                                                                        UserExperienceFolder--
                                                                                                                                                                                                                                                                                                        index.htmlFile0.23 KB
                                                                                                                                                                                                                                                                                                        qaFolder--
                                                                                                                                                                                                                                                                                                        referenceFolder--
                                                                                                                                                                                                                                                                                                        referencelibraryFolder--
                                                                                                                                                                                                                                                                                                        releasenotesFolder--
                                                                                                                                                                                                                                                                                                        samplecodeFolder--
                                                                                                                                                                                                                                                                                                        technicalnotesFolder--
                                                                                                                                                                                                                                                                                                        technicalqasFolder--
                                                                                                                                                                                                                                                                                                        technotesFolder--
                                                                                                                                                                                                                                                                                                        version.plistFile0.44 KB
                                                                                                                                                                                                                                                                                                        iPhone SDK License.rtfFile37.93 KB
                                                                                                                                                                                                                                                                                                        PerlFolder--
                                                                                                                                                                                                                                                                                                        wxPerlFolder--
                                                                                                                                                                                                                                                                                                        INSTALL.podFile8.26 KB
                                                                                                                                                                                                                                                                                                        todo.txtFile2.3 KB
                                                                                                                                                                                                                                                                                                        PythonFolder--
                                                                                                                                                                                                                                                                                                        PyObjCFolder--
                                                                                                                                                                                                                                                                                                        announcement.txtFile2.33 KB
                                                                                                                                                                                                                                                                                                        api-notes-macosx.htmlFile30.09 KB
                                                                                                                                                                                                                                                                                                        api-notes-macosx.txtFile18.37 KB
                                                                                                                                                                                                                                                                                                        C-API.htmlFile11 KB
                                                                                                                                                                                                                                                                                                        C-API.txtFile8.67 KB
                                                                                                                                                                                                                                                                                                        coding-style.htmlFile4.53 KB
                                                                                                                                                                                                                                                                                                        coding-style.txtFile2.92 KB
                                                                                                                                                                                                                                                                                                        gnustep.htmlFile1.96 KB
                                                                                                                                                                                                                                                                                                        gnustep.txtFile1.52 KB
                                                                                                                                                                                                                                                                                                        index.htmlFile2.75 KB
                                                                                                                                                                                                                                                                                                        index.txtFile2.64 KB
                                                                                                                                                                                                                                                                                                        intro.htmlFile44.82 KB
                                                                                                                                                                                                                                                                                                        intro.txtFile38.38 KB
                                                                                                                                                                                                                                                                                                        protocols.htmlFile3.48 KB
                                                                                                                                                                                                                                                                                                        protocols.txtFile2.79 KB
                                                                                                                                                                                                                                                                                                        PyObjCTools.htmlFile10.96 KB
                                                                                                                                                                                                                                                                                                        PyObjCTools.txtFile7.9 KB
                                                                                                                                                                                                                                                                                                        QuartzFolder--
                                                                                                                                                                                                                                                                                                        api-notes.txtFile1.47 KB
                                                                                                                                                                                                                                                                                                        release-process.htmlFile3.83 KB
                                                                                                                                                                                                                                                                                                        release-process.txtFile2.65 KB
                                                                                                                                                                                                                                                                                                        structure.htmlFile6.55 KB
                                                                                                                                                                                                                                                                                                        structure.txtFile5.1 KB
                                                                                                                                                                                                                                                                                                        TODO.htmlFile13.49 KB
                                                                                                                                                                                                                                                                                                        TODO.txtFile9.06 KB
                                                                                                                                                                                                                                                                                                        tutorialFolder--
                                                                                                                                                                                                                                                                                                        tutorial_embedFolder--
                                                                                                                                                                                                                                                                                                        tutorial_reading.htmlFile12.85 KB
                                                                                                                                                                                                                                                                                                        tutorial_reading.txtFile11.12 KB
                                                                                                                                                                                                                                                                                                        website.lstFile0.58 KB
                                                                                                                                                                                                                                                                                                        wrapping.htmlFile6.04 KB
                                                                                                                                                                                                                                                                                                        wrapping.txtFile5.2 KB
                                                                                                                                                                                                                                                                                                        xcodeFolder--
                                                                                                                                                                                                                                                                                                        Xcode-Templates.htmlFile13.97 KB
                                                                                                                                                                                                                                                                                                        wxPythonFolder--
                                                                                                                                                                                                                                                                                                        RubyCocoaFolder--
                                                                                                                                                                                                                                                                                                        wxWidgetsFolder--
                                                                                                                                                                                                                                                                                                        Xcode Tools License.rtfFile18.79 KB
                                                                                                                                                                                                                                                                                                        + +
                                                                                                                                                                                                                                                                                                        +$("#example-advanced").treetable({ expandable: true });
                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                        +// Highlight selected row
                                                                                                                                                                                                                                                                                                        +$("#example-advanced tbody").on("mousedown", "tr", function() {
                                                                                                                                                                                                                                                                                                        +  $(".selected").not(this).removeClass("selected");
                                                                                                                                                                                                                                                                                                        +  $(this).toggleClass("selected");
                                                                                                                                                                                                                                                                                                        +});
                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                        +// Drag & Drop Example Code
                                                                                                                                                                                                                                                                                                        +$("#example-advanced .file, #example-advanced .folder").draggable({
                                                                                                                                                                                                                                                                                                        +  helper: "clone",
                                                                                                                                                                                                                                                                                                        +  opacity: .75,
                                                                                                                                                                                                                                                                                                        +  refreshPositions: true,
                                                                                                                                                                                                                                                                                                        +  revert: "invalid",
                                                                                                                                                                                                                                                                                                        +  revertDuration: 300,
                                                                                                                                                                                                                                                                                                        +  scroll: true
                                                                                                                                                                                                                                                                                                        +});
                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                        +$("#example-advanced .folder").each(function() {
                                                                                                                                                                                                                                                                                                        +  $(this).parents("#example-advanced tr").droppable({
                                                                                                                                                                                                                                                                                                        +    accept: ".file, .folder",
                                                                                                                                                                                                                                                                                                        +    drop: function(e, ui) {
                                                                                                                                                                                                                                                                                                        +      var droppedEl = ui.draggable.parents("tr");
                                                                                                                                                                                                                                                                                                        +      $("#example-advanced").treetable("move", droppedEl.data("ttId"), $(this).data("ttId"));
                                                                                                                                                                                                                                                                                                        +    },
                                                                                                                                                                                                                                                                                                        +    hoverClass: "accept",
                                                                                                                                                                                                                                                                                                        +    over: function(e, ui) {
                                                                                                                                                                                                                                                                                                        +      var droppedEl = ui.draggable.parents("tr");
                                                                                                                                                                                                                                                                                                        +      if(this != droppedEl[0] && !$(this).is(".expanded")) {
                                                                                                                                                                                                                                                                                                        +        $("#example-advanced").treetable("expandNode", $(this).data("ttId"));
                                                                                                                                                                                                                                                                                                        +      }
                                                                                                                                                                                                                                                                                                        +    }
                                                                                                                                                                                                                                                                                                        +  });
                                                                                                                                                                                                                                                                                                        +});
                                                                                                                                                                                                                                                                                                        + +

                                                                                                                                                                                                                                                                                                        AJAX enabled D&D example

                                                                                                                                                                                                                                                                                                        + +

                                                                                                                                                                                                                                                                                                        See https://github.com/ludo/jquery-treetable-ajax-example.

                                                                                                                                                                                                                                                                                                        + +

                                                                                                                                                                                                                                                                                                        Using treetable with PersistJS

                                                                                                                                                                                                                                                                                                        + +

                                                                                                                                                                                                                                                                                                        See https://github.com/jughead/jquery-treetable-ajax-persist.

                                                                                                                                                                                                                                                                                                        + + + + + + + + diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/jquery-treetable/javascripts/src/jquery.treetable.js b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/jquery-treetable/javascripts/src/jquery.treetable.js new file mode 100644 index 00000000..42e7427c --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/jquery-treetable/javascripts/src/jquery.treetable.js @@ -0,0 +1,620 @@ +/* + * jQuery treetable Plugin 3.1.0 + * http://ludo.cubicphuse.nl/jquery-treetable + * + * Copyright 2013, Ludo van den Boom + * Dual licensed under the MIT or GPL Version 2 licenses. + */ +(function() { + var $, Node, Tree, methods; + + $ = jQuery; + + Node = (function() { + function Node(row, tree, settings) { + var parentId; + + this.row = row; + this.tree = tree; + this.settings = settings; + + // TODO Ensure id/parentId is always a string (not int) + this.id = this.row.data(this.settings.nodeIdAttr); + + // TODO Move this to a setParentId function? + parentId = this.row.data(this.settings.parentIdAttr); + if (parentId != null && parentId !== "") { + this.parentId = parentId; + } + + this.treeCell = $(this.row.children(this.settings.columnElType)[this.settings.column]); + this.expander = $(this.settings.expanderTemplate); + this.indenter = $(this.settings.indenterTemplate); + this.children = []; + this.initialized = false; + this.treeCell.prepend(this.indenter); + } + + Node.prototype.addChild = function(child) { + return this.children.push(child); + }; + + Node.prototype.ancestors = function() { + var ancestors, node; + node = this; + ancestors = []; + while (node = node.parentNode()) { + ancestors.push(node); + } + return ancestors; + }; + + Node.prototype.collapse = function() { + if (this.collapsed()) { + return this; + } + + this.row.removeClass("expanded").addClass("collapsed"); + + this._hideChildren(); + this.expander.attr("title", this.settings.stringExpand); + + if (this.initialized && this.settings.onNodeCollapse != null) { + this.settings.onNodeCollapse.apply(this); + } + + return this; + }; + + Node.prototype.collapsed = function() { + return this.row.hasClass("collapsed"); + }; + + // TODO destroy: remove event handlers, expander, indenter, etc. + + Node.prototype.expand = function() { + if (this.expanded()) { + return this; + } + + this.row.removeClass("collapsed").addClass("expanded"); + + if (this.initialized && this.settings.onNodeExpand != null) { + this.settings.onNodeExpand.apply(this); + } + + if ($(this.row).is(":visible")) { + this._showChildren(); + } + + this.expander.attr("title", this.settings.stringCollapse); + + return this; + }; + + Node.prototype.expanded = function() { + return this.row.hasClass("expanded"); + }; + + Node.prototype.hide = function() { + this._hideChildren(); + this.row.hide(); + return this; + }; + + Node.prototype.isBranchNode = function() { + if(this.children.length > 0 || this.row.data(this.settings.branchAttr) === true) { + return true; + } else { + return false; + } + }; + + Node.prototype.updateBranchLeafClass = function(){ + this.row.removeClass('branch'); + this.row.removeClass('leaf'); + this.row.addClass(this.isBranchNode() ? 'branch' : 'leaf'); + }; + + Node.prototype.level = function() { + return this.ancestors().length; + }; + + Node.prototype.parentNode = function() { + if (this.parentId != null) { + return this.tree[this.parentId]; + } else { + return null; + } + }; + + Node.prototype.removeChild = function(child) { + var i = $.inArray(child, this.children); + return this.children.splice(i, 1) + }; + + Node.prototype.render = function() { + var handler, + settings = this.settings, + target; + + if (settings.expandable === true && this.isBranchNode()) { + handler = function(e) { + $(this).parents("table").treetable("node", $(this).parents("tr").data(settings.nodeIdAttr)).toggle(); + return e.preventDefault(); + }; + + this.indenter.html(this.expander); + target = settings.clickableNodeNames === true ? this.treeCell : this.expander; + + target.off("click.treetable").on("click.treetable", handler); + target.off("keydown.treetable").on("keydown.treetable", function(e) { + if (e.keyCode == 13) { + handler.apply(this, [e]); + } + }); + } + + this.indenter[0].style.paddingLeft = "" + (this.level() * settings.indent) + "px"; + + return this; + }; + + Node.prototype.reveal = function() { + if (this.parentId != null) { + this.parentNode().reveal(); + } + return this.expand(); + }; + + Node.prototype.setParent = function(node) { + if (this.parentId != null) { + this.tree[this.parentId].removeChild(this); + } + this.parentId = node.id; + this.row.data(this.settings.parentIdAttr, node.id); + return node.addChild(this); + }; + + Node.prototype.show = function() { + if (!this.initialized) { + this._initialize(); + } + this.row.show(); + if (this.expanded()) { + this._showChildren(); + } + return this; + }; + + Node.prototype.toggle = function() { + if (this.expanded()) { + this.collapse(); + } else { + this.expand(); + } + return this; + }; + + Node.prototype._hideChildren = function() { + var child, _i, _len, _ref, _results; + _ref = this.children; + _results = []; + for (_i = 0, _len = _ref.length; _i < _len; _i++) { + child = _ref[_i]; + _results.push(child.hide()); + } + return _results; + }; + + Node.prototype._initialize = function() { + var settings = this.settings; + + this.render(); + + if (settings.expandable === true && settings.initialState === "collapsed") { + this.collapse(); + } else { + this.expand(); + } + + if (settings.onNodeInitialized != null) { + settings.onNodeInitialized.apply(this); + } + + return this.initialized = true; + }; + + Node.prototype._showChildren = function() { + var child, _i, _len, _ref, _results; + _ref = this.children; + _results = []; + for (_i = 0, _len = _ref.length; _i < _len; _i++) { + child = _ref[_i]; + _results.push(child.show()); + } + return _results; + }; + + return Node; + })(); + + Tree = (function() { + function Tree(table, settings) { + this.table = table; + this.settings = settings; + this.tree = {}; + + // Cache the nodes and roots in simple arrays for quick access/iteration + this.nodes = []; + this.roots = []; + } + + Tree.prototype.collapseAll = function() { + var node, _i, _len, _ref, _results; + _ref = this.nodes; + _results = []; + for (_i = 0, _len = _ref.length; _i < _len; _i++) { + node = _ref[_i]; + _results.push(node.collapse()); + } + return _results; + }; + + Tree.prototype.expandAll = function() { + var node, _i, _len, _ref, _results; + _ref = this.nodes; + _results = []; + for (_i = 0, _len = _ref.length; _i < _len; _i++) { + node = _ref[_i]; + _results.push(node.expand()); + } + return _results; + }; + + Tree.prototype.findLastNode = function (node) { + if (node.children.length > 0) { + return this.findLastNode(node.children[node.children.length - 1]); + } else { + return node; + } + }; + + Tree.prototype.loadRows = function(rows) { + var node, row, i; + + if (rows != null) { + for (i = 0; i < rows.length; i++) { + row = $(rows[i]); + + if (row.data(this.settings.nodeIdAttr) != null) { + node = new Node(row, this.tree, this.settings); + this.nodes.push(node); + this.tree[node.id] = node; + + if (node.parentId != null) { + this.tree[node.parentId].addChild(node); + } else { + this.roots.push(node); + } + } + } + } + + for (i = 0; i < this.nodes.length; i++) { + node = this.nodes[i].updateBranchLeafClass(); + } + + return this; + }; + + Tree.prototype.move = function(node, destination) { + // Conditions: + // 1: +node+ should not be inserted as a child of +node+ itself. + // 2: +destination+ should not be the same as +node+'s current parent (this + // prevents +node+ from being moved to the same location where it already + // is). + // 3: +node+ should not be inserted in a location in a branch if this would + // result in +node+ being an ancestor of itself. + var nodeParent = node.parentNode(); + if (node !== destination && destination.id !== node.parentId && $.inArray(node, destination.ancestors()) === -1) { + node.setParent(destination); + this._moveRows(node, destination); + + // Re-render parentNode if this is its first child node, and therefore + // doesn't have the expander yet. + if (node.parentNode().children.length === 1) { + node.parentNode().render(); + } + } + + if(nodeParent){ + nodeParent.updateBranchLeafClass(); + } + if(node.parentNode()){ + node.parentNode().updateBranchLeafClass(); + } + node.updateBranchLeafClass(); + return this; + }; + + Tree.prototype.removeNode = function(node) { + // Recursively remove all descendants of +node+ + this.unloadBranch(node); + + // Remove node from DOM () + node.row.remove(); + + // Clean up Tree object (so Node objects are GC-ed) + delete this.tree[node.id]; + this.nodes.splice($.inArray(node, this.nodes), 1); + } + + Tree.prototype.render = function() { + var root, _i, _len, _ref; + _ref = this.roots; + for (_i = 0, _len = _ref.length; _i < _len; _i++) { + root = _ref[_i]; + + // Naming is confusing (show/render). I do not call render on node from + // here. + root.show(); + } + return this; + }; + + Tree.prototype.sortBranch = function(node, sortFun) { + // First sort internal array of children + node.children.sort(sortFun); + + // Next render rows in correct order on page + this._sortChildRows(node); + + return this; + }; + + Tree.prototype.unloadBranch = function(node) { + var children, i; + + for (i = 0; i < node.children.length; i++) { + this.removeNode(node.children[i]); + } + + // Reset node's collection of children + node.children = []; + + node.updateBranchLeafClass(); + + return this; + }; + + Tree.prototype._moveRows = function(node, destination) { + var children = node.children, i; + + node.row.insertAfter(destination.row); + node.render(); + + // Loop backwards through children to have them end up on UI in correct + // order (see #112) + for (i = children.length - 1; i >= 0; i--) { + this._moveRows(children[i], node); + } + }; + + // Special _moveRows case, move children to itself to force sorting + Tree.prototype._sortChildRows = function(parentNode) { + return this._moveRows(parentNode, parentNode); + }; + + return Tree; + })(); + + // jQuery Plugin + methods = { + init: function(options, force) { + var settings; + + settings = $.extend({ + branchAttr: "ttBranch", + clickableNodeNames: false, + column: 0, + columnElType: "td", // i.e. 'td', 'th' or 'td,th' + expandable: false, + expanderTemplate: " ", + indent: 19, + indenterTemplate: "", + initialState: "collapsed", + nodeIdAttr: "ttId", // maps to data-tt-id + parentIdAttr: "ttParentId", // maps to data-tt-parent-id + stringExpand: "Expand", + stringCollapse: "Collapse", + + // Events + onInitialized: null, + onNodeCollapse: null, + onNodeExpand: null, + onNodeInitialized: null + }, options); + + return this.each(function() { + var el = $(this), tree; + + if (force || el.data("treetable") === undefined) { + tree = new Tree(this, settings); + tree.loadRows(this.rows).render(); + + el.addClass("treetable").data("treetable", tree); + + if (settings.onInitialized != null) { + settings.onInitialized.apply(tree); + } + } + + return el; + }); + }, + + destroy: function() { + return this.each(function() { + return $(this).removeData("treetable").removeClass("treetable"); + }); + }, + + collapseAll: function() { + this.data("treetable").collapseAll(); + return this; + }, + + collapseNode: function(id) { + var node = this.data("treetable").tree[id]; + + if (node) { + node.collapse(); + } else { + throw new Error("Unknown node '" + id + "'"); + } + + return this; + }, + + expandAll: function() { + this.data("treetable").expandAll(); + return this; + }, + + expandNode: function(id) { + var node = this.data("treetable").tree[id]; + + if (node) { + if (!node.initialized) { + node._initialize(); + } + + node.expand(); + } else { + throw new Error("Unknown node '" + id + "'"); + } + + return this; + }, + + loadBranch: function(node, rows) { + var settings = this.data("treetable").settings, + tree = this.data("treetable").tree; + + // TODO Switch to $.parseHTML + rows = $(rows); + + if (node == null) { // Inserting new root nodes + this.append(rows); + } else { + var lastNode = this.data("treetable").findLastNode(node); + rows.insertAfter(lastNode.row); + } + + this.data("treetable").loadRows(rows); + + // Make sure nodes are properly initialized + rows.filter("tr").each(function() { + tree[$(this).data(settings.nodeIdAttr)].show(); + }); + + if (node != null) { + // Re-render parent to ensure expander icon is shown (#79) + node.render().expand(); + } + + return this; + }, + + move: function(nodeId, destinationId) { + var destination, node; + + node = this.data("treetable").tree[nodeId]; + destination = this.data("treetable").tree[destinationId]; + this.data("treetable").move(node, destination); + + return this; + }, + + node: function(id) { + return this.data("treetable").tree[id]; + }, + + removeNode: function(id) { + var node = this.data("treetable").tree[id]; + + if (node) { + this.data("treetable").removeNode(node); + } else { + throw new Error("Unknown node '" + id + "'"); + } + + return this; + }, + + reveal: function(id) { + var node = this.data("treetable").tree[id]; + + if (node) { + node.reveal(); + } else { + throw new Error("Unknown node '" + id + "'"); + } + + return this; + }, + + sortBranch: function(node, columnOrFunction) { + var settings = this.data("treetable").settings, + prepValue, + sortFun; + + columnOrFunction = columnOrFunction || settings.column; + sortFun = columnOrFunction; + + if ($.isNumeric(columnOrFunction)) { + sortFun = function(a, b) { + var extractValue, valA, valB; + + extractValue = function(node) { + var val = node.row.find("td:eq(" + columnOrFunction + ")").text(); + // Ignore trailing/leading whitespace and use uppercase values for + // case insensitive ordering + return $.trim(val).toUpperCase(); + } + + valA = extractValue(a); + valB = extractValue(b); + + if (valA < valB) return -1; + if (valA > valB) return 1; + return 0; + }; + } + + this.data("treetable").sortBranch(node, sortFun); + return this; + }, + + unloadBranch: function(node) { + this.data("treetable").unloadBranch(node); + return this; + } + }; + + $.fn.treetable = function(method) { + if (methods[method]) { + return methods[method].apply(this, Array.prototype.slice.call(arguments, 1)); + } else if (typeof method === 'object' || !method) { + return methods.init.apply(this, arguments); + } else { + return $.error("Method " + method + " does not exist on jQuery.treetable"); + } + }; + + // Expose classes to world + this.TreeTable || (this.TreeTable = {}); + this.TreeTable.Node = Node; + this.TreeTable.Tree = Tree; +}).call(this); diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/jquery-treetable/javascripts/test/jquery.treetable.test.js b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/jquery-treetable/javascripts/test/jquery.treetable.test.js new file mode 100644 index 00000000..3063b7a0 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/jquery-treetable/javascripts/test/jquery.treetable.test.js @@ -0,0 +1,1555 @@ +(function() { + var expect; + + expect = chai.expect; + + function collectValues(nodes) { + return $.map(nodes, function(node, i) { + return node.row.find("td").first().text(); + }); + }; + + function collectValuesInTable(table) { + var result = table.find("tbody tr td:first-child").map(function() { + return $(this).text(); + }); + + return $.makeArray(result); + }; + + describe("treetable()", function() { + beforeEach(function() { + this.subject = $("
                                                                                                                                                                                                                                                                                                        N0
                                                                                                                                                                                                                                                                                                        N1
                                                                                                                                                                                                                                                                                                        N2
                                                                                                                                                                                                                                                                                                        "); + }); + + it("maintains chainability", function() { + expect(this.subject.treetable()).to.equal(this.subject); + }); + + it("adds treetable object to element", function() { + expect(this.subject.data("treetable")).to.be.undefined; + this.subject.treetable(); + expect(this.subject.data("treetable")).to.be.defined; + }); + + it("adds .treetable css class to element", function() { + expect(this.subject.hasClass("treetable")).to.be.false; + this.subject.treetable(); + expect(this.subject.hasClass("treetable")).to.be.true; + }); + + it("does not initialize twice", function() { + var data; + this.subject.treetable(); + data = this.subject.data("treetable"); + this.subject.treetable(); + expect(this.subject.data("treetable")).to.equal(data); + }); + + it("initializes twice when explicitly requested", function() { + var newData, oldData; + this.subject.treetable(); + oldData = this.subject.data("treetable"); + this.subject.treetable({}, true); + newData = this.subject.data("treetable"); + expect(newData).not.to.equal(oldData); + expect(this.subject.data("treetable")).to.equal(newData); + }); + + describe("destroy()", function() { + it("removes treetable object from element", function() { + this.subject.treetable(); + expect(this.subject.data("treetable")).to.be.defined; + this.subject.treetable("destroy"); + expect(this.subject.data("treetable")).to.be.undefined; + }); + + it("removes .treetable css class from element", function() { + this.subject.treetable(); + expect(this.subject.hasClass("treetable")).to.be.true; + this.subject.treetable("destroy"); + expect(this.subject.hasClass("treetable")).to.be.false; + }); + }); + + describe("with expandable: false", function() { + beforeEach(function() { + this.subject.treetable({ + expandable: false + }).appendTo("body"); + }); + + afterEach(function() { + this.subject.remove(); + }); + + it("all nodes are visible", function() { + var row, _i, _len, _ref, _results; + _ref = this.subject[0].rows; + _results = []; + for (_i = 0, _len = _ref.length; _i < _len; _i++) { + row = _ref[_i]; + _results.push(expect($(row)).to.be.visible); + } + return _results; + }); + }); + + describe("with expandable: true and clickableNodeNames: false", function() { + beforeEach(function() { + this.subject.treetable({ + expandable: true, + initialState: "expanded" + }).appendTo("body"); + }); + + afterEach(function() { + this.subject.remove(); + }); + + it("collapses branch when node toggler clicked", function() { + expect(this.subject.treetable("node", 1).row).to.be.visible; + this.subject.treetable("node", 0).row.find(".indenter a").click(); + expect(this.subject.treetable("node", 1).row).to.not.be.visible; + }); + + it("does not collapse branch when cell clicked", function() { + expect(this.subject.treetable("node", 1).row).to.be.visible; + this.subject.treetable("node", 0).row.find("td").first().click(); + expect(this.subject.treetable("node", 1).row).to.be.visible; + }); + + describe("for nodes with children", function() { + it("renders a clickable node toggler", function() { + expect(this.subject.treetable("node", 0).row).to.have("a"); + }); + }); + + describe("for nodes without children", function() { + it("does not render a clickable node toggler", function() { + expect(this.subject.treetable("node", 1).row).to.not.have("a"); + }); + }); + + describe("for nodes without children but with branch node data attribute", function() { + it("renders a clickable node toggler", function() { + expect(this.subject.treetable("node", 2).row).to.have("a"); + }); + }); + }); + + describe("with expandable: true and clickableNodeNames: true", function() { + beforeEach(function() { + this.subject.treetable({ + expandable: true, + clickableNodeNames: true + }).appendTo("body"); + }); + + afterEach(function() { + this.subject.remove(); + }); + + it("expands branch when node toggler clicked", function() { + expect(this.subject.treetable("node", 1).row).to.not.be.visible; + this.subject.treetable("node", 0).row.find(".indenter a").click(); + expect(this.subject.treetable("node", 1).row).to.be.visible; + }); + + it("expands branch when cell clicked", function() { + expect(this.subject.treetable("node", 1).row).to.not.be.visible; + this.subject.treetable("node", 0).row.find("td").first().click(); + expect(this.subject.treetable("node", 1).row).to.be.visible; + }); + }); + + describe("collapseAll()", function() { + beforeEach(function() { + this.subject.treetable({ + initialState: "expanded" + }); + }); + + it("collapses all nodes", function() { + var row, _i, _len, _ref, _results; + this.subject.treetable("collapseAll"); + _ref = this.subject[0].rows; + _results = []; + for (_i = 0, _len = _ref.length; _i < _len; _i++) { + row = _ref[_i]; + _results.push(expect($(row).hasClass("collapsed")).to.be.true); + } + return _results; + }); + + it("maintains chainability", function() { + expect(this.subject.treetable("collapseAll")).to.equal(this.subject); + }); + }); + + describe("collapseNode()", function() { + beforeEach(function() { + this.subject.treetable({ + initialState: "expanded" + }); + }); + + it("collapses a root node", function() { + var row = $(this.subject[0].rows[0]); + this.subject.treetable("collapseNode", row.data("ttId")); + expect(row.hasClass("collapsed")).to.be.true; + }); + + it("collapses a branch node", function() { + var row = $(this.subject[0].rows[1]); + this.subject.treetable("collapseNode", row.data("ttId")); + expect(row.hasClass("collapsed")).to.be.true; + }); + + it("throws an error for unknown nodes", function() { + var fn, subject; + subject = this.subject; + fn = function() { + subject.treetable("collapseNode", "whatever"); + }; + expect(fn).to["throw"](Error, "Unknown node 'whatever'"); + }); + + it("maintains chainability", function() { + var row = $(this.subject[0].rows[0]); + expect(this.subject.treetable("collapseNode", row.data("ttId"))).to.equal(this.subject); + }); + }); + + describe("expandAll()", function() { + beforeEach(function() { + this.subject.treetable({ + initialState: "collapsed" + }); + }); + + it("expands all nodes", function() { + var row, _i, _len, _ref, _results; + this.subject.treetable("expandAll"); + _ref = this.subject[0].rows; + _results = []; + for (_i = 0, _len = _ref.length; _i < _len; _i++) { + row = _ref[_i]; + _results.push(expect($(row).hasClass("expanded")).to.be.true); + } + return _results; + }); + + it("maintains chainability", function() { + expect(this.subject.treetable("expandAll")).to.equal(this.subject); + }); + }); + + describe("expandNode()", function() { + beforeEach(function() { + this.subject.treetable({ + expandable: true, + initialState: "collapsed" + }); + }); + + it("expands a root node", function() { + var row = $(this.subject[0].rows[0]); + this.subject.treetable("expandNode", row.data("ttId")); + expect(row.hasClass("expanded")).to.be.true; + }); + + it("expands a branch node", function() { + var row = $(this.subject[0].rows[1]); + this.subject.treetable("expandNode", row.data("ttId")); + expect(row.hasClass("expanded")).to.be.true; + }); + + it("throws an error for unknown nodes", function() { + var fn, subject; + subject = this.subject; + fn = function() { + subject.treetable("expandNode", "whatever"); + }; + expect(fn).to["throw"](Error, "Unknown node 'whatever'"); + }); + + it("maintains chainability", function() { + var row = $(this.subject[0].rows[0]); + expect(this.subject.treetable("expandNode", row.data("ttId"))).to.equal(this.subject); + }); + + it("initializes nodes", function() { + var row = $(this.subject[0].rows[2]); + this.subject.treetable("expandNode", row.data("ttId")); + expect(this.subject.treetable("node", row.data("ttId")).initialized).to.be.true; + }); + }); + + describe("loadBranch()", function() { + beforeEach(function() { + this.newRows = "N3N4" + this.moreRows = "N5"; + + this.subject.treetable({ expandable: true }); + this.parentNode = this.subject.treetable("node", 2); + }); + + it("shows expander for parent if neccessary (#79)", function() { + var childRow, + rootNode, + rootRow; + + // This row won't show an expander + rootRow = "N3"; + + // But when this row is added as a child it should add expander to N3 + childRow = "N4"; + + // First add nonBranchRow as a new root node + this.subject.treetable("loadBranch", null, rootRow); + rootNode = this.subject.treetable("node", "3"); + + expect(rootNode.indenter).to.be.empty; + this.subject.treetable("loadBranch", rootNode, childRow); + expect(rootNode.indenter).not.to.be.empty; + }); + + it("shows parent expanded when child nodes loaded (#79)", function() { + var childRow, + rootNode, + rootRow; + + // This row won't show an expander + rootRow = "N3"; + + // But when this row is added as a child it should add expander to N3 + childRow = "N4"; + + // First add nonBranchRow as a new root node + this.subject.treetable("loadBranch", null, rootRow); + rootNode = this.subject.treetable("node", "3"); + + this.subject.treetable("loadBranch", rootNode, childRow); + expect(rootNode.row).to.have.class("expanded"); + }); + + it("inserts rows into DOM, appending new rows to end of children", function() { + expect(this.subject[0].rows.length).to.equal(3); + this.subject.treetable("loadBranch", this.parentNode, this.newRows); + expect(this.subject[0].rows.length).to.equal(5); + this.subject.treetable("loadBranch", this.parentNode, this.moreRows); + expect(this.subject[0].rows.length).to.equal(6); + + // Verify order + var order = _.map(this.subject[0].rows, function(row) { return $(row).data("ttId"); }); + expect(order).to.deep.equal([0,1,2,3,4,5]); + }); + + it("inserts rows after any descendants (#73)", function() { + var childRows = "N6"; + + this.subject.treetable("loadBranch", this.parentNode, this.newRows); + this.subject.treetable("loadBranch", this.parentNode, childRows); + this.subject.treetable("loadBranch", this.parentNode, this.moreRows); + + // Verify order + var order = _.map(this.subject[0].rows, function(row) { return $(row).data("ttId"); }); + expect(order).to.deep.equal([0,1,2,3,4,6,5]); + }); + + it("does not choke when fed a collection object with rows instead of a string", function() { + expect(this.subject.data("treetable").tree[3]).to.be.undefined; + this.subject.treetable("loadBranch", this.parentNode, $.parseHTML(this.newRows)); + expect(this.subject.data("treetable").tree[3]).to.be.defined; + }); + + it("does not choke on leading whitespace", function() { + expect(this.subject.data("treetable").tree[3]).to.be.undefined; + this.subject.treetable("loadBranch", this.parentNode, " N3"); + expect(this.subject.data("treetable").tree[3]).to.be.defined; + }); + + it("does not choke on whitespace between rows", function() { + expect(this.subject.data("treetable").tree[3]).to.be.undefined; + this.subject.treetable("loadBranch", this.parentNode, "N3 N4"); + expect(this.subject.data("treetable").tree[3]).to.be.defined; + }); + + it("does not choke on non-row elements", function() { + expect(this.subject.data("treetable").tree[3]).to.be.undefined; + this.subject.treetable("loadBranch", this.parentNode, "Wish you were hereN3"); + expect(this.subject.data("treetable").tree[3]).to.be.defined; + }); + + it("inserts rows into tree", function() { + expect(this.subject.data("treetable").tree[3]).to.be.undefined; + expect(this.subject.data("treetable").tree[4]).to.be.undefined; + this.subject.treetable("loadBranch", this.parentNode, this.newRows); + expect(this.subject.data("treetable").tree[3]).to.be.defined; + expect(this.subject.data("treetable").tree[4]).to.be.defined; + }); + + it("registers nodes", function() { + expect(this.subject.data("treetable").nodes.length).to.equal(3); + this.subject.treetable("loadBranch", this.parentNode, this.newRows); + expect(this.subject.data("treetable").nodes.length).to.equal(5); + }); + + it("initializes nodes", function() { + this.subject.treetable("loadBranch", this.parentNode, this.newRows); + expect(this.subject.data("treetable").tree[3].initialized).to.be.true; + expect(this.subject.data("treetable").tree[4].initialized).to.be.true; + }); + + it("maintains chainability", function() { + expect(this.subject.treetable("loadBranch", this.parentNode, this.newRows)).to.equal(this.subject); + }); + + describe("adding nodes at root level", function() { + beforeEach(function() { + this.rootRows = "N6"; + }); + + it("registers nodes as root nodes", function () { + expect(this.subject.data("treetable").roots.length).to.equal(1); + this.subject.treetable("loadBranch", null, this.rootRows); + expect(this.subject.data("treetable").roots.length).to.equal(2); + }); + + it("inserts rows into DOM", function () { + this.subject.treetable("loadBranch", null, this.rootRows); + expect($(this.subject[0].rows[3]).data("ttId")).to.equal(6); + }); + + describe("when table uses a tbody element", function() { + beforeEach(function() { + this.subject = $("
                                                                                                                                                                                                                                                                                                        N0
                                                                                                                                                                                                                                                                                                        N1
                                                                                                                                                                                                                                                                                                        N2
                                                                                                                                                                                                                                                                                                        "); + this.subject.treetable(); + }); + + it("appends nodes to tbody", function() { + this.subject.treetable("loadBranch", null, this.rootRows); + expect($(this.subject.find("tbody tr:last")).data("ttId")).to.equal(6); + }); + }); + + describe("when table uses tbody and tfoot elements", function() { + beforeEach(function() { + this.subject = $("
                                                                                                                                                                                                                                                                                                        N0
                                                                                                                                                                                                                                                                                                        N1
                                                                                                                                                                                                                                                                                                        N2
                                                                                                                                                                                                                                                                                                        Footer
                                                                                                                                                                                                                                                                                                        "); + this.subject.treetable(); + }); + + it("still appends nodes to tbody", function() { + this.subject.treetable("loadBranch", null, this.rootRows); + expect($(this.subject.find("tbody tr:last")).data("ttId")).to.equal(6); + }); + }); + }); + }); + + describe("move()", function() { + beforeEach(function() { + this.subject.treetable(); + }); + + it("maintains chainability", function() { + expect(this.subject.treetable("move", 1, 2)).to.equal(this.subject); + }); + }); + + describe("node()", function() { + beforeEach(function() { + this.subject.treetable(); + }); + + it("returns node by id", function() { + expect(this.subject.treetable("node", "0")).to.equal(this.subject.data("treetable").tree[0]); + expect(this.subject.treetable("node", 0)).to.equal(this.subject.data("treetable").tree[0]); + }); + + it("returns undefined for unknown node", function() { + expect(this.subject.treetable("node", "unknown")).to.be.undefined; + }); + }); + + describe("removeNode()", function() { + beforeEach(function() { + this.subject.treetable(); + }); + + it("maintains chainability", function() { + expect(this.subject.treetable("removeNode", "2")).to.equal(this.subject); + }); + }); + + describe("reveal()", function() { + beforeEach(function() { + this.subject.treetable(); + }); + + it("maintains chainability", function() { + expect(this.subject.treetable("reveal", "2")).to.equal(this.subject); + }); + }); + + describe("sortBranch()", function() { + beforeEach(function() { + this.subject = $("
                                                                                                                                                                                                                                                                                                        ROOTCol 2
                                                                                                                                                                                                                                                                                                        C1CC2A
                                                                                                                                                                                                                                                                                                        C1aC2C
                                                                                                                                                                                                                                                                                                        CHILDCol 2
                                                                                                                                                                                                                                                                                                        C1BC2B
                                                                                                                                                                                                                                                                                                        "); + + this.subject.treetable(); + this.parentNode = this.subject.treetable("node", "0"); + }); + + it("defaults to sorting a node's children alphabetically (case-insensitive)", function() { + expect(collectValues(this.parentNode.children)).to.eql(["C1C", " C1a", "C1B"]); + this.subject.treetable("sortBranch", this.parentNode); + expect(collectValues(this.parentNode.children)).to.eql([" C1a", "C1B", "C1C"]); + }); + + it("updates UI", function() { + expect(collectValuesInTable(this.subject)).to.eql(["ROOT", "C1C", " C1a", "CHILD", "C1B"]); + this.subject.treetable("sortBranch", this.parentNode); + expect(collectValuesInTable(this.subject)).to.eql(["ROOT", " C1a", "CHILD", "C1B", "C1C"]); + }); + + it("sorts on chosen column", function() { + expect(collectValues(this.parentNode.children)).to.eql(["C1C", " C1a", "C1B"]); + this.subject.treetable("sortBranch", this.parentNode, 1); + expect(collectValues(this.parentNode.children)).to.eql(["C1C", "C1B", " C1a"]); + }); + + it("accepts custom sorting functions (example: numOfChildren)", function() { + var sortOnNumOfChildrenFun = function(a, b) { + var valA = a.children.length, + valB = b.children.length; + if (valA < valB) return -1; + if (valA > valB) return 1; + return 0; + }; + + expect(collectValues(this.parentNode.children)).to.eql(["C1C", " C1a", "C1B"]); + this.subject.treetable("sortBranch", this.parentNode, sortOnNumOfChildrenFun); + expect(collectValues(this.parentNode.children)).to.eql(["C1C", "C1B", " C1a"]); + }); + + it("accepts custom sorting functions (example: alphabeticallyDescending)", function() { + var sortAlphabeticallyDescending = function(a, b) { + var valA = $.trim(a.row.find("td:eq(0)").text()).toUpperCase(), + valB = $.trim(b.row.find("td:eq(0)").text()).toUpperCase(); + if (valA > valB) return -1; + if (valA < valB) return 1; + return 0; + }; + + expect(collectValues(this.parentNode.children)).to.eql(["C1C", " C1a", "C1B"]); + this.subject.treetable("sortBranch", this.parentNode, sortAlphabeticallyDescending); + expect(collectValues(this.parentNode.children)).to.eql(["C1C", "C1B", " C1a"]); + }); + }); + + describe("unloadBranch()", function() { + beforeEach(function() { + this.newRows = "N3N4" + + this.subject.treetable(); + this.parentNode = this.subject.treetable("node", 2); + this.subject.treetable("loadBranch", this.parentNode, this.newRows); + }); + + it("removes rows from DOM", function() { + expect(this.subject[0].rows.length).to.equal(5); + this.subject.treetable("unloadBranch", this.parentNode); + expect(this.subject[0].rows.length).to.equal(3); + }); + + it("removes rows from tree", function() { + expect(this.subject.data("treetable").tree[3]).to.be.defined; + expect(this.subject.data("treetable").tree[4]).to.be.defined; + this.subject.treetable("unloadBranch", this.parentNode); + expect(this.subject.data("treetable").tree[3]).to.be.undefined; + expect(this.subject.data("treetable").tree[4]).to.be.undefined; + }); + + it("updates the branch and leaf classes", function() { + this.subject.treetable("unloadBranch", this.subject.treetable("node", 0)); + expect($(this.subject[0].rows[0])).to.have.class('leaf'); + }); + + it("updates the branch and leaf classes when has branchAttr", function() { + this.subject.treetable("unloadBranch", this.parentNode); + expect($(this.subject[0].rows[2])).to.have.class('branch'); + }); + + it("removes nodes from node cache", function() { + expect(this.subject.data("treetable").nodes.length).to.equal(5); + this.subject.treetable("unloadBranch", this.parentNode); + expect(this.subject.data("treetable").nodes.length).to.equal(3); + }); + + it("removes nodes from parent's list of children", function() { + expect(this.parentNode.children.length).to.equal(2); + this.subject.treetable("unloadBranch", this.parentNode); + expect(this.parentNode.children.length).to.equal(0); + }); + + it("maintains chainability", function() { + expect(this.subject.treetable("unloadBranch", this.parentNode)).to.equal(this.subject); + }); + }); + + }); + + describe("TreeTable.Node", function() { + describe("addChild()", function() { + beforeEach(function() { + this.table = $("
                                                                                                                                                                                                                                                                                                        N0
                                                                                                                                                                                                                                                                                                        N1
                                                                                                                                                                                                                                                                                                        "); + this.table.treetable(); + this.parent = this.table.data("treetable").tree["n0"]; + this.child = this.table.data("treetable").tree["n1"]; + }); + + it("adds child to collection of children", function() { + expect(this.parent.children).to.be.empty; + this.parent.addChild(this.child); + expect(this.parent.children).to.include(this.child); + }); + }); + + describe("ancestors()", function() { + beforeEach(function() { + this.subject = $("
                                                                                                                                                                                                                                                                                                        N1
                                                                                                                                                                                                                                                                                                        N2
                                                                                                                                                                                                                                                                                                        N3
                                                                                                                                                                                                                                                                                                        N4
                                                                                                                                                                                                                                                                                                        ").treetable().data("treetable").tree; + }); + + it("has correct size", function() { + expect(_.size(this.subject[4].ancestors())).to.equal(3); + }); + + it("includes the parent node", function() { + expect(this.subject[4].ancestors()).to.include(this.subject[4].parentNode()); + }); + + it("includes the parent's parent node", function() { + expect(this.subject[4].ancestors()).to.include(this.subject[3].parentNode()); + }); + + it("includes the root node", function() { + expect(this.subject[4].ancestors()).to.include(this.subject[1]); + }); + + it("does not include node itself", function() { + expect(this.subject[4].ancestors()).to.not.include(this.subject[4]); + }); + }); + + describe("children", function() { + beforeEach(function() { + this.subject = $("
                                                                                                                                                                                                                                                                                                        N1
                                                                                                                                                                                                                                                                                                        N2
                                                                                                                                                                                                                                                                                                        N3
                                                                                                                                                                                                                                                                                                        N5
                                                                                                                                                                                                                                                                                                        N4
                                                                                                                                                                                                                                                                                                        ").treetable().data("treetable").tree; + }); + + it("includes direct children", function() { + expect(_.size(this.subject[2].children)).to.equal(2); + expect(this.subject[2].children).to.include(this.subject[3]); + expect(this.subject[2].children).to.include(this.subject[5]); + }); + + it("does not include grandchildren", function() { + expect(this.subject[2].children).to.not.include(this.subject[4]); + }); + + it("does not include parent", function() { + expect(this.subject[2].children).to.not.include(this.subject[2].parentNode()); + }); + + it("does not include node itself", function() { + expect(this.subject[2].children).to.not.include(this.subject[2]); + }); + }); + + describe("collapse()", function() { + beforeEach(function() { + this.table = $("
                                                                                                                                                                                                                                                                                                        N0
                                                                                                                                                                                                                                                                                                        N1
                                                                                                                                                                                                                                                                                                        N2
                                                                                                                                                                                                                                                                                                        N3
                                                                                                                                                                                                                                                                                                        ").appendTo("body").treetable({ + initialState: "expanded" + }); + this.subject = this.table.data("treetable").tree; + }); + + afterEach(function() { + this.table.remove(); + }); + + it("ignores multiple invokes", function() { + var callback = sinon.spy(), + node = this.subject[0]; + + this.table.data("treetable").settings.onNodeCollapse = callback; + + node.collapse(); + node.collapse(); + expect(callback.calledOnce).to.be.true; + }); + + it("hides children", function() { + expect(this.subject[1].row).to.be.visible; + expect(this.subject[2].row).to.be.visible; + this.subject[0].collapse(); + expect(this.subject[1].row).to.be.hidden; + expect(this.subject[2].row).to.be.hidden; + }); + + it("recursively hides grandchildren", function() { + expect(this.subject[3].row).to.be.visible; + this.subject[0].collapse(); + expect(this.subject[3].row).to.be.hidden; + }); + + it("maintains chainability", function() { + expect(this.subject[0].collapse()).to.equal(this.subject[0]); + }); + }); + + describe("collapsed()", function() { + beforeEach(function() { + this.subject = $("
                                                                                                                                                                                                                                                                                                        Node
                                                                                                                                                                                                                                                                                                        ").treetable().data("treetable").tree[0]; + }); + + it("returns true when collapsed", function() { + this.subject.collapse(); + expect(this.subject.collapsed()).to.be.true; + }); + + it("returns false when expanded", function() { + this.subject.expand(); + expect(this.subject.collapsed()).to.be.false; + }); + }); + + describe("expand()", function() { + beforeEach(function() { + this.table = $("
                                                                                                                                                                                                                                                                                                        N0
                                                                                                                                                                                                                                                                                                        N1
                                                                                                                                                                                                                                                                                                        N2
                                                                                                                                                                                                                                                                                                        N3
                                                                                                                                                                                                                                                                                                        ").appendTo("body").treetable({ + expandable: true + }); + this.subject = this.table.data("treetable").tree; + }); + + afterEach(function() { + this.table.remove(); + }); + + it("shows children", function() { + expect(this.subject[1].row).to.be.hidden; + expect(this.subject[2].row).to.be.hidden; + this.subject[0].expand(); + expect(this.subject[1].row).to.be.visible; + expect(this.subject[2].row).to.be.visible; + }); + + it("ignores multiple invokes", function() { + var callback = sinon.spy(), + node = this.subject[0]; + + this.table.data("treetable").settings.onNodeExpand = callback; + + node.expand(); + node.expand(); + expect(callback.calledOnce).to.be.true; + }); + + it("does not recursively show collapsed grandchildren", function() { + sinon.stub(this.subject[2], "expanded").returns(false); + expect(this.subject[3].row).to.be.hidden; + this.subject[0].expand(); + expect(this.subject[3].row).to.be.hidden; + }); + + it("recursively shows expanded grandchildren", function() { + sinon.stub(this.subject[2], "expanded").returns(true); + expect(this.subject[3].row).to.be.hidden; + this.subject[0].expand(); + expect(this.subject[3].row).to.be.visible; + }); + + it("does not show children if the node is hidden", function() { + expect(this.subject[3].row).to.be.hidden; + this.subject[2].expand(); + expect(this.subject[3].row).to.be.hidden; + }); + + it("maintains chainability", function() { + expect(this.subject[0].expand()).to.equal(this.subject[0]); + }); + }); + + describe("expanded()", function() { + beforeEach(function() { + this.subject = $("
                                                                                                                                                                                                                                                                                                        Node
                                                                                                                                                                                                                                                                                                        ").treetable().data("treetable").tree[0]; + }); + + it("returns true when expanded", function() { + this.subject.expand(); + expect(this.subject.expanded()).to.be.true; + }); + + it("returns false when collapsed", function() { + this.subject.collapse(); + expect(this.subject.expanded()).to.be.false; + }); + }); + + describe("indenter", function() { + beforeEach(function() { + this.table = $("
                                                                                                                                                                                                                                                                                                        Root Node
                                                                                                                                                                                                                                                                                                        Branch Node
                                                                                                                                                                                                                                                                                                        Leaf Node
                                                                                                                                                                                                                                                                                                        ").treetable({ + initialState: "expanded" + }).data("treetable"); + this.rootNode = this.table.tree[0]; + this.branchNode = this.table.tree[1]; + this.leafNode = this.table.tree[2]; + }); + + it("has the 'indenter' class", function() { + expect(this.branchNode.indenter.hasClass("indenter")).to.be.true; + }); + + describe("when root node", function() { + it("is not indented", function() { + expect(this.rootNode.indenter.css("padding-left")).to.equal("0px"); + }); + }); + + describe("when level 1 branch node", function() { + it("is indented 19px", function() { + expect(this.branchNode.indenter.css("padding-left")).to.equal("19px"); + }); + }); + + describe("when level 2 leaf node", function() { + it("is indented 38px", function() { + expect(this.leafNode.indenter.css("padding-left")).to.equal("38px"); + }); + }); + }); + + describe("initialized", function() { + beforeEach(function() { + this.table = $("
                                                                                                                                                                                                                                                                                                        Root Node
                                                                                                                                                                                                                                                                                                        Leaf Node
                                                                                                                                                                                                                                                                                                        "); + }); + + describe("when expandable is false", function() { + beforeEach(function() { + this.subject = this.table.treetable({ + expandable: false + }).data("treetable").tree; + this.rootNode = this.subject[0]; + this.leafNode = this.subject[1]; + }); + + it("initializes root nodes immediately", function() { + expect(this.rootNode.initialized).to.be.true; + }); + + it("initializes non-root nodes immediately", function() { + expect(this.leafNode.initialized).to.be.true; + }); + }); + + describe("when expandable is true and initialState is 'collapsed'", function() { + beforeEach(function() { + this.subject = this.table.treetable({ + expandable: true, + initialState: "collapsed" + }).data("treetable").tree; + this.rootNode = this.subject[0]; + this.leafNode = this.subject[1]; + }); + + it("initializes root nodes immediately", function() { + expect(this.rootNode.initialized).to.be.true; + }); + + it("does not initialize non-root nodes immediately", function() { + expect(this.leafNode.initialized).to.be.false; + }); + }); + + describe("when expandable is true and initialState is 'expanded'", function() { + beforeEach(function() { + this.subject = this.table.treetable({ + expandable: true, + initialState: "expanded" + }).data("treetable").tree; + this.rootNode = this.subject[0]; + this.leafNode = this.subject[1]; + }); + + it("initializes root nodes immediately", function() { + expect(this.rootNode.initialized).to.be.true; + }); + + it("initializes non-root nodes immediately", function() { + expect(this.leafNode.initialized).to.be.true; + }); + }); + }); + + describe("hide()", function() { + beforeEach(function() { + this.table = $("
                                                                                                                                                                                                                                                                                                        N0
                                                                                                                                                                                                                                                                                                        N1
                                                                                                                                                                                                                                                                                                        ").appendTo("body").treetable(); + this.subject = this.table.data("treetable").tree; + this.subject[0].expand(); + }); + + afterEach(function() { + this.table.remove(); + }); + + it("hides table row", function() { + expect(this.subject[0].row).to.be.visible; + this.subject[0].hide(); + expect(this.subject[0].row).to.be.hidden; + }); + + it("recursively hides children", function() { + expect(this.subject[1].row).to.be.visible; + this.subject[0].hide(); + expect(this.subject[1].row).to.be.hidden; + }); + + it("maintains chainability", function() { + expect(this.subject[0].hide()).to.equal(this.subject[0]); + }); + }); + + describe("id", function() { + it("is extracted from row attributes", function() { + var subject; + subject = $("
                                                                                                                                                                                                                                                                                                        N42
                                                                                                                                                                                                                                                                                                        ").treetable().data("treetable").tree[42]; + expect(subject.id).to.equal(42); + }); + }); + + describe("isBranchNode()", function() { + it("is true when node has children", function() { + var subject = $("
                                                                                                                                                                                                                                                                                                        N42
                                                                                                                                                                                                                                                                                                        N21
                                                                                                                                                                                                                                                                                                        ").treetable().data("treetable").tree[42]; + expect(subject.isBranchNode()).to.be.true; + }); + + it("is true when node has data attribute tt-branch with value 'true'", function() { + var subject = $("
                                                                                                                                                                                                                                                                                                        N42
                                                                                                                                                                                                                                                                                                        ").treetable().data("treetable").tree[42]; + expect(subject.isBranchNode()).to.be.true; + }); + + // This would be an error in the tree, but I consider having children + // more important than the ttBranch attribute. + it("is true when node has children but also a tt-branch attribute with value 'false'", function() { + var subject = $("
                                                                                                                                                                                                                                                                                                        N42
                                                                                                                                                                                                                                                                                                        N21
                                                                                                                                                                                                                                                                                                        ").treetable().data("treetable").tree[42]; + expect(subject.isBranchNode()).to.be.true; + }); + + it("is false when node has data attribute tt-branch with value 'false'", function() { + var subject = $("
                                                                                                                                                                                                                                                                                                        N42
                                                                                                                                                                                                                                                                                                        ").treetable().data("treetable").tree[42]; + expect(subject.isBranchNode()).to.be.false; + }); + + it("is false when node has no children and no tt-branch attribute", function() { + var subject = $("
                                                                                                                                                                                                                                                                                                        N42
                                                                                                                                                                                                                                                                                                        ").treetable().data("treetable").tree[42]; + expect(subject.isBranchNode()).to.be.false; + }); + }); + + describe("level()", function() { + beforeEach(function() { + this.subject = $("
                                                                                                                                                                                                                                                                                                        N1
                                                                                                                                                                                                                                                                                                        N2
                                                                                                                                                                                                                                                                                                        N3
                                                                                                                                                                                                                                                                                                        N4
                                                                                                                                                                                                                                                                                                        ").treetable().data("treetable").tree; + }); + + it("equals the number of ancestors", function() { + expect(this.subject[1].level()).to.equal(0); + expect(this.subject[2].level()).to.equal(1); + expect(this.subject[3].level()).to.equal(2); + expect(this.subject[4].level()).to.equal(3); + }); + }); + + describe("parentId", function() { + it("is extracted from row attributes", function() { + var subject; + subject = $("
                                                                                                                                                                                                                                                                                                        N12
                                                                                                                                                                                                                                                                                                        N42
                                                                                                                                                                                                                                                                                                        ").treetable().data("treetable").tree[42]; + expect(subject.parentId).to.equal(12); + }); + + it("is undefined when not available", function() { + var subject; + subject = $("
                                                                                                                                                                                                                                                                                                        N42
                                                                                                                                                                                                                                                                                                        ").treetable().data("treetable").tree[0]; + expect(subject.parentId).to.be.undefined; + }); + + it("is undefined when empty", function() { + var subject; + subject = $("
                                                                                                                                                                                                                                                                                                        N42
                                                                                                                                                                                                                                                                                                        ").treetable().data("treetable").tree[0]; + expect(subject.parentId).to.be.undefined; + }); + }); + + describe("parentNode()", function() { + beforeEach(function() { + this.subject = $("
                                                                                                                                                                                                                                                                                                        N0
                                                                                                                                                                                                                                                                                                        N1
                                                                                                                                                                                                                                                                                                        ").treetable().data("treetable").tree; + }); + + describe("when node has a parent", function() { + beforeEach(function() { + this.subject = this.subject[1]; + }); + + it("is a node object", function() { + // to.be.an.instanceof fails in IE9, is this a chai bug? + expect(this.subject.parentNode()).that.is.an.instanceof(TreeTable.Node); + }); + + it("'s id equals this node's parentId", function() { + expect(this.subject.parentNode().id).to.equal(this.subject.parentId); + }); + }); + + describe("when node has no parent", function() { + beforeEach(function() { + this.subject = this.subject[0]; + }); + + it("is null", function() { + expect(this.subject.parentNode()).to.be.null; + }); + }); + }); + + describe("removeChild()", function() { + beforeEach(function() { + this.table = $("
                                                                                                                                                                                                                                                                                                        N0
                                                                                                                                                                                                                                                                                                        N1
                                                                                                                                                                                                                                                                                                        "); + this.table.treetable(); + this.parent = this.table.data("treetable").tree["n0"]; + this.child = this.table.data("treetable").tree["n1"]; + }); + + it("removes child from collection of children", function() { + expect(this.parent.children).to.include(this.child); + this.parent.removeChild(this.child); + expect(this.parent.children).to.be.empty; + }); + }); + + describe("render()", function() { + it("maintains chainability", function() { + var subject; + subject = $("
                                                                                                                                                                                                                                                                                                        N0
                                                                                                                                                                                                                                                                                                        N1
                                                                                                                                                                                                                                                                                                        ").treetable().data("treetable").tree["n0"]; + expect(subject.render()).to.equal(subject); + }); + }); + + describe("setParent()", function() { + beforeEach(function() { + this.table = $("
                                                                                                                                                                                                                                                                                                        N0
                                                                                                                                                                                                                                                                                                        N1
                                                                                                                                                                                                                                                                                                        N2
                                                                                                                                                                                                                                                                                                        "); + this.table.treetable(); + this.oldParent = this.table.data("treetable").tree["n0"]; + this.subject = this.table.data("treetable").tree["n1"]; + this.newParent = this.table.data("treetable").tree["n2"]; + }); + + it("updates node's parent id", function() { + expect(this.subject.parentId).to.equal("n0"); + this.subject.setParent(this.newParent); + expect(this.subject.parentId).to.equal("n2"); + }); + + it("updates node's parent id data attribute", function() { + expect(this.subject.row.data("ttParentId")).to.equal("n0"); + this.subject.setParent(this.newParent); + expect(this.subject.row.data("ttParentId")).to.equal("n2"); + }); + + it("adds node to new parent's children", function() { + this.subject.setParent(this.newParent); + expect(this.newParent.children).to.include(this.subject); + }); + + it("removes node from old parent's children", function() { + this.subject.setParent(this.newParent); + expect(this.oldParent.children).to.not.include(this.subject); + }); + + it("does not try to remove children from parent when node is a root node", function() { + var fn, newParent, subject; + subject = this.subject; + newParent = this.newParent; + fn = function() { + subject.setParent(newParent); + }; + expect(fn).to.not["throw"](Error); + }); + }); + + describe("show()", function() { + beforeEach(function() { + this.table = $("
                                                                                                                                                                                                                                                                                                        N0
                                                                                                                                                                                                                                                                                                        N1
                                                                                                                                                                                                                                                                                                        ").appendTo("body").treetable(); + this.subject = this.table.data("treetable").tree; + this.subject[0].hide(); + }); + + afterEach(function() { + this.table.remove(); + }); + + it("shows table row", function() { + expect(this.subject[0].row).to.be.hidden; + this.subject[0].show(); + expect(this.subject[0].row).to.be.visible; + }); + + it("maintains chainability", function() { + expect(this.subject[0].show()).to.equal(this.subject[0]); + }); + + describe("when expanded", function() { + beforeEach(function() { + this.subject[0].expand().hide(); + }); + + it("recursively shows children", function() { + expect(this.subject[1].row).to.be.hidden; + this.subject[0].show(); + expect(this.subject[1].row).to.be.visible; + }); + }); + + describe("when collapsed", function() { + beforeEach(function() { + this.subject[0].collapse().hide(); + }); + + it("does not show children", function() { + expect(this.subject[1].row).to.be.hidden; + this.subject[0].show(); + expect(this.subject[1].row).to.be.hidden; + }); + }); + }); + + describe("toggle()", function() { + beforeEach(function() { + this.table = $("
                                                                                                                                                                                                                                                                                                        N42
                                                                                                                                                                                                                                                                                                        N24
                                                                                                                                                                                                                                                                                                        ").appendTo("body").treetable({ + expandable: true + }); + this.subject = this.table.data("treetable").tree; + }); + + afterEach(function() { + this.table.remove(); + }); + + it("toggles child rows", function() { + expect(this.subject[24].row).to.be.hidden; + this.subject[42].toggle(); + expect(this.subject[24].row).to.be.visible; + this.subject[42].toggle(); + expect(this.subject[24].row).to.be.hidden; + }); + + it("maintains chainability", function() { + expect(this.subject[42].toggle()).to.equal(this.subject[42]); + }); + }); + + describe("treeCell", function() { + describe("with default column setting", function() { + beforeEach(function() { + this.subject = $("").treetable().data("treetable").tree[0].treeCell; + }); + + it("is an object", function() { + // to.be.an("object") fails in IE9, is this a chai bug? + expect(this.subject).that.is.an("object"); + }); + + it("maps to a td", function() { + expect(this.subject).to.be("td"); + }); + + it("maps to the first column by default", function() { + expect(this.subject).to.contain("Column 1"); + }); + + it("contains an indenter", function() { + expect(this.subject).to.have("span.indenter"); + }); + }); + + describe("with custom column setting", function() { + beforeEach(function() { + this.subject = $("
                                                                                                                                                                                                                                                                                                        Not part of treeColumn 1Column 2
                                                                                                                                                                                                                                                                                                        Not part of treeColumn 1Column 2
                                                                                                                                                                                                                                                                                                        ").treetable({ + column: 1 + }).data("treetable").tree[0].treeCell; + }); + + it("is configurable", function() { + expect(this.subject).to.contain("Column 2"); + }); + }); + }); + }); + + describe("TreeTable.Tree", function() { + describe("loadRows()", function() { + it("maintains chainability", function() { + var subject = new TreeTable.Tree($("
                                                                                                                                                                                                                                                                                                        "), {}); + expect(subject.loadRows()).to.equal(subject); + }); + + describe("a table without rows", function() { + it("'s tree cache is empty", function() { + var subject = new TreeTable.Tree($("
                                                                                                                                                                                                                                                                                                        "), {}).loadRows().tree; + expect(_.size(subject)).to.equal(0); + }); + }); + + describe("a table with tree rows", function() { + beforeEach(function() { + this.subject = $("
                                                                                                                                                                                                                                                                                                        N0
                                                                                                                                                                                                                                                                                                        N1
                                                                                                                                                                                                                                                                                                        ").treetable().data("treetable").tree; + }); + it("caches all tree nodes", function() { + expect(_.size(this.subject)).to.equal(2); + expect(_.keys(this.subject)).to.include('0'); + expect(_.keys(this.subject)).to.include('1'); + }); + + it("sets branch and leaf classes", function() { + expect(this.subject[0].row).to.have.class('branch'); + expect(this.subject[1].row).to.have.class('leaf'); + }); + }); + + describe("a table without tree rows", function() { + it("results in an empty node cache", function() { + var subject; + subject = $("
                                                                                                                                                                                                                                                                                                        ").treetable().data("treetable").tree; + expect(_.size(subject)).to.equal(0); + }); + }); + + describe("a table with both tree rows and non tree rows", function() { + it("only caches tree nodes", function() { + var subject; + subject = $("
                                                                                                                                                                                                                                                                                                        N21
                                                                                                                                                                                                                                                                                                        ").treetable().data("treetable").tree; + expect(_.size(subject)).to.equal(1); + expect(_.keys(subject)).to.include('21'); + }); + }); + }); + + describe("move()", function() { + beforeEach(function() { + this.table = $("
                                                                                                                                                                                                                                                                                                        N0
                                                                                                                                                                                                                                                                                                        N1
                                                                                                                                                                                                                                                                                                        N2
                                                                                                                                                                                                                                                                                                        N2C1
                                                                                                                                                                                                                                                                                                        N2C2
                                                                                                                                                                                                                                                                                                        N3
                                                                                                                                                                                                                                                                                                        N3C1
                                                                                                                                                                                                                                                                                                        N4
                                                                                                                                                                                                                                                                                                        N5
                                                                                                                                                                                                                                                                                                        "); + this.table.treetable(); + }); + + it("moves node to new destination", function() { + var subject; + subject = this.table.data("treetable").tree["n2"]; + expect(subject.parentId).to.equal("n1"); + this.table.treetable("move", "n2", "n3"); + expect(subject.parentId).to.equal("n3"); + }); + + it("updates UI", function() { + expect(collectValuesInTable(this.table)).to.eql(["N0", "N1", "N2", "N2C1", "N2C2", "N3", "N3C1", "N4", "N5"]); + this.table.treetable("move", "n2", "n3"); + expect(collectValuesInTable(this.table)).to.eql(["N0", "N1", "N3", "N2", "N2C1", "N2C2", "N3C1", "N4", "N5"]); + }); + + it("updates branch and leaf classes when node has siblings", function() { + this.table.treetable("move", "n5", "n0"); + expect(this.table.data("treetable").tree["n0"].row).to.have.class('branch'); + expect(this.table.data("treetable").tree["n3"].row).to.have.class('branch'); + expect(this.table.data("treetable").tree["n5"].row).to.have.class('leaf'); + }); + + it("updates branch and leaf classes when move when node has no siblings", function() { + this.table.treetable("move", "n1", "n3"); + expect(this.table.data("treetable").tree["n0"].row).to.have.class('leaf'); + expect(this.table.data("treetable").tree["n1"].row).to.have.class('branch'); + expect(this.table.data("treetable").tree["n3"].row).to.have.class('branch'); + }); + + it("updates branch and leaf classes when move when destination node has no siblings", function() { + expect(this.table.data("treetable").tree["n5"].row).to.have.class('leaf'); + this.table.treetable("move", "n4", "n5"); + expect(this.table.data("treetable").tree["n3"].row).to.have.class('branch'); + expect(this.table.data("treetable").tree["n4"].row).to.have.class('leaf'); + expect(this.table.data("treetable").tree["n5"].row).to.have.class('branch'); + }); + + it("updates branch and leaf classes when move from node with branchAttr", function() { + expect(this.table.data("treetable").tree["n1"].row).to.have.class('branch'); + this.table.treetable("move", "n2", "n0"); + expect(this.table.data("treetable").tree["n1"].row).to.have.class('branch'); + }); + + it("cannot make node a descendant of itself", function() { + var fn, table; + table = this.table; + fn = function() { + table.treetable("move", "n1", "n2"); + }; + expect(fn).to.not.throw(); + }); + + it("cannot make node a child of itself", function() { + var fn, table; + table = this.table; + fn = function() { + table.treetable("move", "n1", "n1"); + }; + expect(fn).to.not.throw(); + }); + + it("does nothing when node is moved to current location", function() { + // TODO How to test? Nothing is happening... + this.table.treetable("move", "n1", "n0"); + }); + + it("maintains chainability", function() { + var destination, node, tree; + tree = this.table.data("treetable"); + node = this.table.data("treetable").tree["n1"]; + destination = this.table.data("treetable").tree["n3"]; + expect(tree.move(node, destination)).to.equal(tree); + }); + }); + + describe("render()", function() { + it("maintains chainability", function() { + var subject; + subject = new TreeTable.Tree($("
                                                                                                                                                                                                                                                                                                        "), {}); + expect(subject.render()).to.equal(subject); + }); + }); + + describe("reveal()", function() { + beforeEach(function() { + this.table = $("
                                                                                                                                                                                                                                                                                                        N0
                                                                                                                                                                                                                                                                                                        N1
                                                                                                                                                                                                                                                                                                        N2
                                                                                                                                                                                                                                                                                                        ").treetable({ + expandable: true + }).appendTo("body"); + this.subject = this.table.data("treetable"); + }); + + afterEach(function() { + this.table.remove(); + }); + + it("reveals a node", function() { + expect(this.subject.tree[2].row).to.not.be.visible; + this.table.treetable("reveal", 2); + expect(this.subject.tree[2].row).to.be.visible; + }); + + it("expands the ancestors of the node", function() { + expect(this.subject.tree[1].row).to.not.be.visible; + this.table.treetable("reveal", 2); + expect(this.subject.tree[1].row).to.be.visible; + }); + + it("throws an error for unknown nodes", function() { + var fn, table; + table = this.table; + fn = function() { + table.treetable("reveal", "whatever"); + }; + expect(fn).to["throw"](Error, "Unknown node 'whatever'"); + }); + }); + + describe("roots", function() { + describe("when no rows", function() { + it("is empty", function() { + var subject; + subject = $("
                                                                                                                                                                                                                                                                                                        ").treetable().data("treetable"); + expect(_.size(subject.roots)).to.equal(0); + }); + }); + + describe("when single root node", function() { + beforeEach(function() { + this.subject = $("
                                                                                                                                                                                                                                                                                                        N1
                                                                                                                                                                                                                                                                                                        N2
                                                                                                                                                                                                                                                                                                        ").treetable().data("treetable"); + }); + + it("includes root node when only one root node exists", function() { + var roots; + roots = this.subject.roots; + expect(_.size(roots)).to.equal(1); + expect(roots).to.include(this.subject.tree[1]); + }); + + it("does not include non-root nodes", function() { + expect(this.subject.roots).to.not.include(this.subject.tree[2]); + }); + }); + + describe("when multiple root nodes", function() { + beforeEach(function() { + this.subject = $("
                                                                                                                                                                                                                                                                                                        N1
                                                                                                                                                                                                                                                                                                        N2
                                                                                                                                                                                                                                                                                                        N3
                                                                                                                                                                                                                                                                                                        ").treetable().data("treetable"); + }); + + it("includes all root nodes", function() { + var roots; + roots = this.subject.roots; + expect(_.size(roots)).to.equal(2); + expect(roots).to.include(this.subject.tree[1]); + expect(roots).to.include(this.subject.tree[3]); + }); + + it("does not include non-root nodes", function() { + expect(this.subject.roots).to.not.include(this.subject.tree[2]); + }); + }); + }); + }); + + describe("events", function() { + describe("onInitialized", function() { + describe("when no callback function given", function() { + it("does not complain", function() { + var table; + table = $("
                                                                                                                                                                                                                                                                                                        N1
                                                                                                                                                                                                                                                                                                        ").treetable({ + onInitialized: null + }); + }); + }); + + describe("when callback function given", function() { + it("is called when tree has been initialized", function() { + var callback, table; + + callback = sinon.spy(); + table = $("
                                                                                                                                                                                                                                                                                                        N1
                                                                                                                                                                                                                                                                                                        ").treetable({ + onInitialized: callback + }); + + expect(callback.called).to.be.true; + }); + }); + }); + + describe("onNodeCollapse", function() { + describe("when no callback function given", function() { + it("does not complain", function() { + var table; + table = $("
                                                                                                                                                                                                                                                                                                        N1
                                                                                                                                                                                                                                                                                                        N2
                                                                                                                                                                                                                                                                                                        ").treetable({ + expandable: true, + initialState: "expanded", + onNodeCollapse: null + }).data("treetable"); + table.roots[0].collapse(); + }); + }); + + describe("when callback function given", function() { + beforeEach(function() { + this.callback = sinon.spy(); + this.table = $("
                                                                                                                                                                                                                                                                                                        N1
                                                                                                                                                                                                                                                                                                        N2
                                                                                                                                                                                                                                                                                                        ").treetable({ + expandable: true, + initialState: "expanded", + onNodeCollapse: this.callback + }).data("treetable"); + }); + + it("is called when node is being hidden", function() { + this.table.roots[0].collapse(); + expect(this.callback.called).to.be.true; + }); + + it("is not called when node is being shown", function() { + this.table.roots[0].expand(); + expect(this.callback.called).to.be.false; + }); + + it("is not called when node is not initialized yet", function() { + this.table.roots[0].initialized = false; + this.table.roots[0].collapse(); + expect(this.callback.called).to.be.false; + }); + }); + }); + + describe("onNodeInitialized", function() { + describe("when no callback function given", function() { + it("does not complain", function() { + var table; + table = $("
                                                                                                                                                                                                                                                                                                        N1
                                                                                                                                                                                                                                                                                                        ").treetable({ + onNodeInitialized: null + }).data("treetable"); + table.roots[0].initialized = false; + table.roots[0].show(); + }); + }); + + describe("when callback function given", function() { + beforeEach(function() { + this.callback = sinon.spy(); + this.table = $("
                                                                                                                                                                                                                                                                                                        N1
                                                                                                                                                                                                                                                                                                        ").treetable({ + onNodeInitialized: this.callback + }).data("treetable"); + }); + + it("is called when node is not initialized yet", function() { + this.table.roots[0].initialized = false; + this.table.roots[0].show(); + expect(this.callback.called).to.be.true; + }); + + it("is not called again when node is already initialized", function() { + this.table.roots[0].show(); + // Node was initialized before, callback has already been called. I + // check that the callback is not called more than once. + expect(this.callback.calledOnce).to.be.true; + }); + }); + }); + + describe("onNodeExpand", function() { + describe("when no callback given", function() { + it("does not complain", function() { + var table; + table = $("
                                                                                                                                                                                                                                                                                                        N1
                                                                                                                                                                                                                                                                                                        N2
                                                                                                                                                                                                                                                                                                        ").treetable({ + expandable: true, + initialState: "collapsed", + onNodeExpand: null + }).data("treetable"); + table.roots[0].expand(); + }); + }); + + describe("when callback function given", function() { + beforeEach(function() { + this.callback = sinon.spy(); + this.table = $("
                                                                                                                                                                                                                                                                                                        N1
                                                                                                                                                                                                                                                                                                        N2
                                                                                                                                                                                                                                                                                                        ").treetable({ + expandable: true, + initialState: "collapsed", + onNodeExpand: this.callback + }).data("treetable"); + }); + + it("is called when node is being shown", function() { + this.table.roots[0].expand(); + expect(this.callback.called).to.be.true; + }); + + it("is not called when node is being hidden", function() { + this.table.roots[0].collapse(); + expect(this.callback.called).to.be.false; + }); + + it("is not called when node is not initialized yet", function() { + this.table.roots[0].initialized = false; + this.table.roots[0].expand(); + expect(this.callback.called).to.be.false; + }); + }); + }); + }); +}).call(this); diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/jquery-treetable/stylesheets/jquery.treetable.css b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/jquery-treetable/stylesheets/jquery.treetable.css new file mode 100644 index 00000000..4e95bfd3 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/jquery-treetable/stylesheets/jquery.treetable.css @@ -0,0 +1,28 @@ +table.treetable span.indenter { + display: inline-block; + margin: 0; + padding: 0; + text-align: right; + + /* Disable text selection of nodes (for better D&D UX) */ + user-select: none; + -khtml-user-select: none; + -moz-user-select: none; + -o-user-select: none; + -webkit-user-select: none; + + /* Force content-box box model for indenter (Bootstrap compatibility) */ + -webkit-box-sizing: content-box; + -moz-box-sizing: content-box; + box-sizing: content-box; + + width: 19px; +} + +table.treetable span.indenter a { + background-position: left center; + background-repeat: no-repeat; + display: inline-block; + text-decoration: none; + width: 19px; +} diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/jquery-treetable/stylesheets/jquery.treetable.theme.default.css b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/jquery-treetable/stylesheets/jquery.treetable.theme.default.css new file mode 100644 index 00000000..9339a568 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/jquery-treetable/stylesheets/jquery.treetable.theme.default.css @@ -0,0 +1,83 @@ +table.treetable { + border: 1px solid #888; + border-collapse: collapse; + font-size: .8em; + line-height: 1; + margin: .6em 0 1.8em 0; + width: 100%; +} + +table.treetable caption { + font-size: .9em; + font-weight: bold; + margin-bottom: .2em; +} + +table.treetable thead { + background: #aaa url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAZCAYAAADwkER/AAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3AMDOEAuyAAgMADBRiIUpAAR7AGDIIyN4AISZABRG8lc88SuuEOcqAAB4mbI8uSQ5RYFbCC1xB1dXLh4ozkkXKxQ2YQJhmkAuwnmZGTKBNA/g88wAAKCRFRHgg/P9eM4Ors7ONo62Dl8t6r8G/yJiYuP+5c+rcEAAAOF0ftH+LC+zGoA7BoBt/qIl7gRoXgugdfeLZrIPQLUAoOnaV/Nw+H48PEWhkLnZ2eXk5NhKxEJbYcpXff5nwl/AV/1s+X48/Pf14L7iJIEyXYFHBPjgwsz0TKUcz5IJhGLc5o9H/LcL//wd0yLESWK5WCoU41EScY5EmozzMqUiiUKSKcUl0v9k4t8s+wM+3zUAsGo+AXuRLahdYw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m4N2dq0Dd9WtO319kXbL5fNKNu7g7ZDuaO/PLi8ZafJzs07P1SkVPRU+lQ27tLdtWHX+G7R7ht7vPY07NXbW7z3/T7JvttVAVVN1WbVZftJ+7P3P66Jqun4lvttXa1ObXHtxwPSA/0HIw6217nU1R3SPVRSj9Yr60cOxx++/p3vdy0NNg1VjZzG4iNwRHnk6fcJ3/ceDTradox7rOEH0x92HWcdL2pCmvKaRptTmvtbYlu6T8w+0dbq3nr8R9sfD5w0PFl5SvNUyWna6YLTk2fyz4ydlZ19fi753GDborZ752PO32oPb++6EHTh0kX/i+c7vDvOXPK4dPKy2+UTV7hXmq86X23qdOo8/pPTT8e7nLuarrlca7nuer21e2b36RueN87d9L158Rb/1tWeOT3dvfN6b/fF9/XfFt1+cif9zsu72Xcn7q28T7xf9EDtQdlD3YfVP1v+3Njv3H9qwHeg89HcR/cGhYPP/pH1jw9DBY+Zj8uGDYbrnjg+OTniP3L96fynQ89kzyaeF/6i/suuFxYvfvjV69fO0ZjRoZfyl5O/bXyl/erA6xmv28bCxh6+yXgzMV70VvvtwXfcdx3vo98PT+R8IH8o/2j5sfVT0Kf7kxmTk/8EA5jz/GMzLdsAAAAgY0hSTQAAeiUAAICDAAD5/wAAgOkAAHUwAADqYAAAOpgAABdvkl/FRgAAAD9JREFUeNpsxzEKgDAQAMHlQEhpYWuTF+RV+X+fmLU7ItgMDGoPYAXwJPOHkWxFbd9W1Dt7oZ4BTNSCeqDGOwDlRyvLRZQgvgAAAABJRU5ErkJggg==) repeat-x top left; + font-size: .9em; +} + +table.treetable thead tr th { + border: 1px solid #888; + font-weight: normal; + padding: .3em 1em .1em 1em; + text-align: left; +} + +table.treetable tbody tr td { + cursor: default; + padding: .3em 1em; +} + +table.treetable span { + background-position: center left; + background-repeat: no-repeat; + padding: .2em 0 .2em 1.5em; +} + +table.treetable span.file { + background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAQAAAC1+jfqAAAABGdBTUEAAK/INwW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al5K1aAMrq0d6Tm9uI6zjyf75dAe6tx/SsWeD//o2/Ab6IH3/h25pOAAAAAElFTkSuQmCC); +} + +table.treetable tr.collapsed span.indenter a { + background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3AMDOEAuyAAgMADBRiIUpAAR7AGDIIyN4AISZABRG8lc88SuuEOcqAAB4mbI8uSQ5RYFbCC1xB1dXLh4ozkkXKxQ2YQJhmkAuwnmZGTKBNA/g88wAAKCRFRHgg/P9eM4Ors7ONo62Dl8t6r8G/yJiYuP+5c+rcEAAAOF0ftH+LC+zGoA7BoBt/qIl7gRoXgugdfeLZrIPQLUAoOnaV/Nw+H48PEWhkLnZ2eXk5NhKxEJbYcpXff5nwl/AV/1s+X48/Pf14L7iJIEyXYFHBPjgwsz0TKUcz5IJhGLc5o9H/LcL//wd0yLESWK5WCoU41EScY5EmozzMqUiiUKSKcUl0v9k4t8s+wM+3zUAsGo+AXuRLahdYwP2SycQWHTA4vcAAPK7b8HUKAgDgGiD4c93/+8//UegJQCAZkmScQAAXkQkLlTKsz/HCAAARKCBKrBBG/TBGCzABhzBBdzBC/xgNoRCJMTCQhBCCmSAHHJgKayCQiiGzbAdKmAv1EAdNMBR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Iw6217nU1R3SPVRSj9Yr60cOxx++/p3vdy0NNg1VjZzG4iNwRHnk6fcJ3/ceDTradox7rOEH0x92HWcdL2pCmvKaRptTmvtbYlu6T8w+0dbq3nr8R9sfD5w0PFl5SvNUyWna6YLTk2fyz4ydlZ19fi753GDborZ752PO32oPb++6EHTh0kX/i+c7vDvOXPK4dPKy2+UTV7hXmq86X23qdOo8/pPTT8e7nLuarrlca7nuer21e2b36RueN87d9L158Rb/1tWeOT3dvfN6b/fF9/XfFt1+cif9zsu72Xcn7q28T7xf9EDtQdlD3YfVP1v+3Njv3H9qwHeg89HcR/cGhYPP/pH1jw9DBY+Zj8uGDYbrnjg+OTniP3L96fynQ89kzyaeF/6i/suuFxYvfvjV69fO0ZjRoZfyl5O/bXyl/erA6xmv28bCxh6+yXgzMV70VvvtwXfcdx3vo98PT+R8IH8o/2j5sfVT0Kf7kxmTk/8EA5jz/GMzLdsAAAAgY0hSTQAAeiUAAICDAAD5/wAAgOkAAHUwAADqYAAAOpgAABdvkl/FRgAAAHlJREFUeNrcU1sNgDAQ6wgmcAM2MICGGlg1gJnNzWQcvwQGy1j4oUl/7tH0mpwzM7SgQyO+EZAUWh2MkkzSWhJwuRAlHYsJwEwyvs1gABDuzqoJcTw5qxaIJN0bgQRgIjnlmn1heSO5PE6Y2YXe+5Cr5+h++gs12AcAS6FS+7YOsj4AAAAASUVORK5CYII=); +} + +table.treetable tr.expanded span.indenter a { + background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+P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jRoZfyl5O/bXyl/erA6xmv28bCxh6+yXgzMV70VvvtwXfcdx3vo98PT+R8IH8o/2j5sfVT0Kf7kxmTk/8EA5jz/GMzLdsAAAAgY0hSTQAAeiUAAICDAAD5/wAAgOkAAHUwAADqYAAAOpgAABdvkl/FRgAAAHFJREFUeNpi/P//PwMlgImBQsA44C6gvhfa29v3MzAwOODRc6CystIRbxi0t7fjDJjKykpGYrwwi1hxnLHQ3t7+jIGBQRJJ6HllZaUUKYEYRYBPOB0gBShKwKGA////48VtbW3/8clTnBIH3gCKkzJgAGvBX0dDm0sCAAAAAElFTkSuQmCC); +} + +table.treetable tr.branch { + background-color: #f9f9f9; +} + +table.treetable tr.selected { + background-color: #3875d7; + color: #fff; +} + +table.treetable tr.collapsed.selected span.indenter a { + background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3AMDOEAuyAAgMADBRiIUpAAR7AGDIIyN4AISZABRG8lc88SuuEOcqAAB4mbI8uSQ5RYFbCC1xB1dXLh4ozkkXKxQ2YQJhmkAuwnmZGTKBNA/g88wAAKCRFRHgg/P9eM4Ors7ONo62Dl8t6r8G/yJiYuP+5c+rcEAAAOF0ftH+LC+zGoA7BoBt/qIl7g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5zvn//tEsIS4ZK2pYZLVy0dWOa9rGo5sjxxedsK4xUFK4ZWBqw8uIq2Km3VT6vtV5eufr0mek1rgV7ByoLBtQFr6wtVCuWFfevc1+1dT1gvWd+1YfqGnRs+FYmKrhTbF5cVf9go3HjlG4dvyr+Z3JS0qavEuWTPZtJm6ebeLZ5bDpaql+aXDm4N2dq0Dd9WtO319kXbL5fNKNu7g7ZDuaO/PLi8ZafJzs07P1SkVPRU+lQ27tLdtWHX+G7R7ht7vPY07NXbW7z3/T7JvttVAVVN1WbVZftJ+7P3P66Jqun4lvttXa1ObXHtxwPSA/0HIw6217nU1R3SPVRSj9Yr60cOxx++/p3vdy0NNg1VjZzG4iNwRHnk6fcJ3/ceDTradox7rOEH0x92HWcdL2pCmvKaRptTmvtbYlu6T8w+0dbq3nr8R9sfD5w0PFl5SvNUyWna6YLTk2fyz4ydlZ19fi753GDborZ752PO32oPb++6EHTh0kX/i+c7vDvOXPK4dPKy2+UTV7hXmq86X23qdOo8/pPTT8e7nLuarrlca7nuer21e2b36RueN87d9L158Rb/1tWeOT3dvfN6b/fF9/XfFt1+cif9zsu72Xcn7q28T7xf9EDtQdlD3YfVP1v+3Njv3H9qwHeg89HcR/cGhYPP/pH1jw9DBY+Zj8uGDYbrnjg+OTniP3L96fynQ89kzyaeF/6i/suuFxYvfvjV69fO0ZjRoZfyl5O/bXyl/erA6xmv28bCxh6+yXgzMV70VvvtwXfcdx3vo98PT+R8IH8o/2j5sfVT0Kf7kxmTk/8EA5jz/GMzLdsAAAAgY0hSTQAAeiUAAICDAAD5/wAAgOkAAHUwAADqYAAAOpgAABdvkl/FRgAAAFpJREFUeNpi/P//PwMlgHHADWD4//8/NtyAQxwD45KAAQdKDfj//////fgMIsYAZIMw1DKREFwODAwM/4kNRKq64AADA4MjFDOQ6gKyY4HodMA49PMCxQYABgAVYHsjyZ1x7QAAAABJRU5ErkJggg==); +} + +table.treetable tr.expanded.selected span.indenter a { + background-image: url(data:image/png;base64,iVBORw0KGgo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SvNUyWna6YLTk2fyz4ydlZ19fi753GDborZ752PO32oPb++6EHTh0kX/i+c7vDvOXPK4dPKy2+UTV7hXmq86X23qdOo8/pPTT8e7nLuarrlca7nuer21e2b36RueN87d9L158Rb/1tWeOT3dvfN6b/fF9/XfFt1+cif9zsu72Xcn7q28T7xf9EDtQdlD3YfVP1v+3Njv3H9qwHeg89HcR/cGhYPP/pH1jw9DBY+Zj8uGDYbrnjg+OTniP3L96fynQ89kzyaeF/6i/suuFxYvfvjV69fO0ZjRoZfyl5O/bXyl/erA6xmv28bCxh6+yXgzMV70VvvtwXfcdx3vo98PT+R8IH8o/2j5sfVT0Kf7kxmTk/8EA5jz/GMzLdsAAAAgY0hSTQAAeiUAAICDAAD5/wAAgOkAAHUwAADqYAAAOpgAABdvkl/FRgAAAFtJREFUeNpi/P//PwMlgImBQsA44C6giQENDAwM//HgBmLCAF/AMBLjBUeixf///48L7/+PCvZjU4fPAAc0AxywqcMXCwegGJ1NckL6jx5wpKYDxqGXEkkCgAEAmrqBIejdgngAAAAASUVORK5CYII=); +} + +table.treetable tr.accept { + background-color: #a3bce4; + color: #fff +} + +table.treetable tr.collapsed.accept td span.indenter a { + background-image: url(data:image/x-png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgw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YAAAOpgAABdvkl/FRgAAAFpJREFUeNpi/P//PwMlgHHADWD4//8/NtyAQxwD45KAAQdKDfj//////fgMIsYAZIMw1DKREFwODAwM/4kNRKq64AADA4MjFDOQ6gKyY4HodMA49PMCxQYABgAVYHsjyZ1x7QAAAABJRU5ErkJggg==); +} + +table.treetable tr.expanded.accept td span.indenter a { + background-image: url(data:image/x-png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3AMDOEAuyAAgMADBRiIUpAAR7AGDIIyN4AISZABRG8lc88SuuEOcqAAB4mbI8uSQ5RYFbCC1xB1dXLh4ozkkXKxQ2YQJhmkAuwnmZGTKBNA/g88wAAKCRFRHgg/P9eM4Ors7ONo62Dl8t6r8G/yJiYuP+5c+rcEAAAOF0ftH+LC+zGoA7BoBt/qIl7gRoXgugdfeLZrIPQLUAoOnaV/Nw+H48PEWhkLnZ2eXk5NhKxEJbYcpXff5nwl/AV/1s+X48/Pf14L7iJIEyXYFHBPjgwsz0TKUcz5IJhGLc5o9H/LcL//wd0yLESWK5WCoU41EScY5EmozzMqUiiUKSKcUl0v9k4t8s+wM+3zUAsGo+AXuRLahdYwP2SycQWHTA4vcAAPK7b8HUKAgDgGiD4c93/+8//UegJQCA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Jzs07P1SkVPRU+lQ27tLdtWHX+G7R7ht7vPY07NXbW7z3/T7JvttVAVVN1WbVZftJ+7P3P66Jqun4lvttXa1ObXHtxwPSA/0HIw6217nU1R3SPVRSj9Yr60cOxx++/p3vdy0NNg1VjZzG4iNwRHnk6fcJ3/ceDTradox7rOEH0x92HWcdL2pCmvKaRptTmvtbYlu6T8w+0dbq3nr8R9sfD5w0PFl5SvNUyWna6YLTk2fyz4ydlZ19fi753GDborZ752PO32oPb++6EHTh0kX/i+c7vDvOXPK4dPKy2+UTV7hXmq86X23qdOo8/pPTT8e7nLuarrlca7nuer21e2b36RueN87d9L158Rb/1tWeOT3dvfN6b/fF9/XfFt1+cif9zsu72Xcn7q28T7xf9EDtQdlD3YfVP1v+3Njv3H9qwHeg89HcR/cGhYPP/pH1jw9DBY+Zj8uGDYbrnjg+OTniP3L96fynQ89kzyaeF/6i/suuFxYvfvjV69fO0ZjRoZfyl5O/bXyl/erA6xmv28bCxh6+yXgzMV70VvvtwXfcdx3vo98PT+R8IH8o/2j5sfVT0Kf7kxmTk/8EA5jz/GMzLdsAAAAgY0hSTQAAeiUAAICDAAD5/wAAgOkAAHUwAADqYAAAOpgAABdvkl/FRgAAAFtJREFUeNpi/P//PwMlgImBQsA44C6giQENDAwM//HgBmLCAF/AMBLjBUeixf///48L7/+PCvZjU4fPAAc0AxywqcMXCwegGJ1NckL6jx5wpKYDxqGXEkkCgAEAmrqBIejdgngAAAAASUVORK5CYII=); +} diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/jquery-treetable/stylesheets/screen.css b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/jquery-treetable/stylesheets/screen.css new file mode 100644 index 00000000..e233ef6a --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/jquery-treetable/stylesheets/screen.css @@ -0,0 +1,28 @@ +body { + background: #ddd; + color: #000; + font-family: Helvetica, Arial, sans-serif; + line-height: 1.5; + margin: 0; + padding: 0; +} + +#main { + background: #fff; + border-left: 20px solid #eee; + border-right: 20px solid #eee; + margin: 0 auto; + max-width: 800px; + padding: 20px; +} + +pre.listing { + background: #eee; + border: 1px solid #ccc; + margin: .6em 0 .3em 0; + padding: .1em .3em; +} + +pre.listing b { + color: #f00; +} diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/jquery-treetable/test.html b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/jquery-treetable/test.html new file mode 100644 index 00000000..cd8bf7d9 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/jquery-treetable/test.html @@ -0,0 +1,28 @@ + + + + + + jQuery treetable Tests + + + + + + + + + + + + + +
                                                                                                                                                                                                                                                                                                        + + diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/jquery-treetable/treetable.jquery.json b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/jquery-treetable/treetable.jquery.json new file mode 100644 index 00000000..9f35faa6 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/jquery-treetable/treetable.jquery.json @@ -0,0 +1,39 @@ +{ + "name": "treetable", + "title": "jQuery treetable", + "description": "jQuery plugin for displaying a tree structure in a (HTML) table, i.e. a directory structure or a nested list.", + "keywords": [ + "explorer", + "file", + "table", + "tree", + "ui" + ], + "version": "3.1.0", + "author": { + "name": "Ludo van den Boom", + "url": "http://ludovandenboom.com" + }, + "maintainers": [ + { + "name": "Ludo van den Boom", + "url": "http://ludovandenboom.com" + } + ], + "licenses": [ + { + "type": "GPLv2", + "url": "https://github.com/ludo/jquery-treetable/blob/3.1.0/GPL-LICENSE.txt" + }, + { + "type": "MIT", + "url": "https://github.com/ludo/jquery-treetable/blob/3.1.0/MIT-LICENSE.txt" + } + ], + "bugs": "https://github.com/ludo/jquery-treetable/issues", + "homepage": "https://github.com/ludo/jquery-treetable", + "docs": "http://ludo.cubicphuse.nl/jquery-treetable/", + "dependencies": { + "jquery": ">=1.6" + } +} diff --git a/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/js/jquery-1.11.0.min.js b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/js/jquery-1.11.0.min.js new file mode 100644 index 00000000..73f33fb3 --- /dev/null +++ b/shiro-example-chapter23-server/src/main/webapp/WEB-INF/static/js/jquery-1.11.0.min.js @@ -0,0 +1,4 @@ +/*! jQuery v1.11.0 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/license */ +!function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof window?window:this,function(a,b){var c=[],d=c.slice,e=c.concat,f=c.push,g=c.indexOf,h={},i=h.toString,j=h.hasOwnProperty,k="".trim,l={},m="1.11.0",n=function(a,b){return new n.fn.init(a,b)},o=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,p=/^-ms-/,q=/-([\da-z])/gi,r=function(a,b){return b.toUpperCase()};n.fn=n.prototype={jquery:m,constructor:n,selector:"",length:0,toArray:function(){return d.call(this)},get:function(a){return null!=a?0>a?this[a+this.length]:this[a]:d.call(this)},pushStack:function(a){var b=n.merge(this.constructor(),a);return b.prevObject=this,b.context=this.context,b},each:function(a,b){return n.each(this,a,b)},map:function(a){return this.pushStack(n.map(this,function(b,c){return a.call(b,c,b)}))},slice:function(){return this.pushStack(d.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(a){var b=this.length,c=+a+(0>a?b:0);return this.pushStack(c>=0&&b>c?[this[c]]:[])},end:function(){return this.prevObject||this.constructor(null)},push:f,sort:c.sort,splice:c.splice},n.extend=n.fn.extend=function(){var a,b,c,d,e,f,g=arguments[0]||{},h=1,i=arguments.length,j=!1;for("boolean"==typeof g&&(j=g,g=arguments[h]||{},h++),"object"==typeof g||n.isFunction(g)||(g={}),h===i&&(g=this,h--);i>h;h++)if(null!=(e=arguments[h]))for(d in e)a=g[d],c=e[d],g!==c&&(j&&c&&(n.isPlainObject(c)||(b=n.isArray(c)))?(b?(b=!1,f=a&&n.isArray(a)?a:[]):f=a&&n.isPlainObject(a)?a:{},g[d]=n.extend(j,f,c)):void 0!==c&&(g[d]=c));return g},n.extend({expando:"jQuery"+(m+Math.random()).replace(/\D/g,""),isReady:!0,error:function(a){throw new Error(a)},noop:function(){},isFunction:function(a){return"function"===n.type(a)},isArray:Array.isArray||function(a){return"array"===n.type(a)},isWindow:function(a){return null!=a&&a==a.window},isNumeric:function(a){return a-parseFloat(a)>=0},isEmptyObject:function(a){var b;for(b in a)return!1;return!0},isPlainObject:function(a){var b;if(!a||"object"!==n.type(a)||a.nodeType||n.isWindow(a))return!1;try{if(a.constructor&&!j.call(a,"constructor")&&!j.call(a.constructor.prototype,"isPrototypeOf"))return!1}catch(c){return!1}if(l.ownLast)for(b in a)return j.call(a,b);for(b in a);return void 0===b||j.call(a,b)},type:function(a){return null==a?a+"":"object"==typeof a||"function"==typeof a?h[i.call(a)]||"object":typeof a},globalEval:function(b){b&&n.trim(b)&&(a.execScript||function(b){a.eval.call(a,b)})(b)},camelCase:function(a){return a.replace(p,"ms-").replace(q,r)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toLowerCase()===b.toLowerCase()},each:function(a,b,c){var d,e=0,f=a.length,g=s(a);if(c){if(g){for(;f>e;e++)if(d=b.apply(a[e],c),d===!1)break}else for(e in a)if(d=b.apply(a[e],c),d===!1)break}else if(g){for(;f>e;e++)if(d=b.call(a[e],e,a[e]),d===!1)break}else for(e in a)if(d=b.call(a[e],e,a[e]),d===!1)break;return a},trim:k&&!k.call("\ufeff\xa0")?function(a){return null==a?"":k.call(a)}:function(a){return null==a?"":(a+"").replace(o,"")},makeArray:function(a,b){var c=b||[];return null!=a&&(s(Object(a))?n.merge(c,"string"==typeof a?[a]:a):f.call(c,a)),c},inArray:function(a,b,c){var d;if(b){if(g)return g.call(b,a,c);for(d=b.length,c=c?0>c?Math.max(0,d+c):c:0;d>c;c++)if(c in b&&b[c]===a)return c}return-1},merge:function(a,b){var c=+b.length,d=0,e=a.length;while(c>d)a[e++]=b[d++];if(c!==c)while(void 0!==b[d])a[e++]=b[d++];return a.length=e,a},grep:function(a,b,c){for(var d,e=[],f=0,g=a.length,h=!c;g>f;f++)d=!b(a[f],f),d!==h&&e.push(a[f]);return e},map:function(a,b,c){var d,f=0,g=a.length,h=s(a),i=[];if(h)for(;g>f;f++)d=b(a[f],f,c),null!=d&&i.push(d);else for(f in a)d=b(a[f],f,c),null!=d&&i.push(d);return e.apply([],i)},guid:1,proxy:function(a,b){var c,e,f;return"string"==typeof b&&(f=a[b],b=a,a=f),n.isFunction(a)?(c=d.call(arguments,2),e=function(){return a.apply(b||this,c.concat(d.call(arguments)))},e.guid=a.guid=a.guid||n.guid++,e):void 0},now:function(){return+new Date},support:l}),n.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(a,b){h["[object "+b+"]"]=b.toLowerCase()});function s(a){var b=a.length,c=n.type(a);return"function"===c||n.isWindow(a)?!1:1===a.nodeType&&b?!0:"array"===c||0===b||"number"==typeof b&&b>0&&b-1 in a}var t=function(a){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s="sizzle"+-new Date,t=a.document,u=0,v=0,w=eb(),x=eb(),y=eb(),z=function(a,b){return a===b&&(j=!0),0},A="undefined",B=1<<31,C={}.hasOwnProperty,D=[],E=D.pop,F=D.push,G=D.push,H=D.slice,I=D.indexOf||function(a){for(var b=0,c=this.length;c>b;b++)if(this[b]===a)return b;return-1},J="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",K="[\\x20\\t\\r\\n\\f]",L="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",M=L.replace("w","w#"),N="\\["+K+"*("+L+")"+K+"*(?:([*^$|!~]?=)"+K+"*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|("+M+")|)|)"+K+"*\\]",O=":("+L+")(?:\\(((['\"])((?:\\\\.|[^\\\\])*?)\\3|((?:\\\\.|[^\\\\()[\\]]|"+N.replace(3,8)+")*)|.*)\\)|)",P=new RegExp("^"+K+"+|((?:^|[^\\\\])(?:\\\\.)*)"+K+"+$","g"),Q=new RegExp("^"+K+"*,"+K+"*"),R=new RegExp("^"+K+"*([>+~]|"+K+")"+K+"*"),S=new RegExp("="+K+"*([^\\]'\"]*?)"+K+"*\\]","g"),T=new RegExp(O),U=new RegExp("^"+M+"$"),V={ID:new RegExp("^#("+L+")"),CLASS:new RegExp("^\\.("+L+")"),TAG:new RegExp("^("+L.replace("w","w*")+")"),ATTR:new RegExp("^"+N),PSEUDO:new RegExp("^"+O),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+K+"*(even|odd|(([+-]|)(\\d*)n|)"+K+"*(?:([+-]|)"+K+"*(\\d+)|))"+K+"*\\)|)","i"),bool:new RegExp("^(?:"+J+")$","i"),needsContext:new RegExp("^"+K+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+K+"*((?:-\\d)?\\d*)"+K+"*\\)|)(?=[^-]|$)","i")},W=/^(?:input|select|textarea|button)$/i,X=/^h\d$/i,Y=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,$=/[+~]/,_=/'|\\/g,ab=new RegExp("\\\\([\\da-f]{1,6}"+K+"?|("+K+")|.)","ig"),bb=function(a,b,c){var d="0x"+b-65536;return d!==d||c?b:0>d?String.fromCharCode(d+65536):String.fromCharCode(d>>10|55296,1023&d|56320)};try{G.apply(D=H.call(t.childNodes),t.childNodes),D[t.childNodes.length].nodeType}catch(cb){G={apply:D.length?function(a,b){F.apply(a,H.call(b))}:function(a,b){var c=a.length,d=0;while(a[c++]=b[d++]);a.length=c-1}}}function db(a,b,d,e){var f,g,h,i,j,m,p,q,u,v;if((b?b.ownerDocument||b:t)!==l&&k(b),b=b||l,d=d||[],!a||"string"!=typeof a)return d;if(1!==(i=b.nodeType)&&9!==i)return[];if(n&&!e){if(f=Z.exec(a))if(h=f[1]){if(9===i){if(g=b.getElementById(h),!g||!g.parentNode)return d;if(g.id===h)return d.push(g),d}else if(b.ownerDocument&&(g=b.ownerDocument.getElementById(h))&&r(b,g)&&g.id===h)return d.push(g),d}else{if(f[2])return G.apply(d,b.getElementsByTagName(a)),d;if((h=f[3])&&c.getElementsByClassName&&b.getElementsByClassName)return G.apply(d,b.getElementsByClassName(h)),d}if(c.qsa&&(!o||!o.test(a))){if(q=p=s,u=b,v=9===i&&a,1===i&&"object"!==b.nodeName.toLowerCase()){m=ob(a),(p=b.getAttribute("id"))?q=p.replace(_,"\\$&"):b.setAttribute("id",q),q="[id='"+q+"'] ",j=m.length;while(j--)m[j]=q+pb(m[j]);u=$.test(a)&&mb(b.parentNode)||b,v=m.join(",")}if(v)try{return G.apply(d,u.querySelectorAll(v)),d}catch(w){}finally{p||b.removeAttribute("id")}}}return xb(a.replace(P,"$1"),b,d,e)}function eb(){var a=[];function b(c,e){return a.push(c+" ")>d.cacheLength&&delete b[a.shift()],b[c+" "]=e}return b}function fb(a){return a[s]=!0,a}function gb(a){var b=l.createElement("div");try{return!!a(b)}catch(c){return!1}finally{b.parentNode&&b.parentNode.removeChild(b),b=null}}function hb(a,b){var c=a.split("|"),e=a.length;while(e--)d.attrHandle[c[e]]=b}function ib(a,b){var c=b&&a,d=c&&1===a.nodeType&&1===b.nodeType&&(~b.sourceIndex||B)-(~a.sourceIndex||B);if(d)return d;if(c)while(c=c.nextSibling)if(c===b)return-1;return a?1:-1}function jb(a){return function(b){var c=b.nodeName.toLowerCase();return"input"===c&&b.type===a}}function kb(a){return function(b){var c=b.nodeName.toLowerCase();return("input"===c||"button"===c)&&b.type===a}}function lb(a){return fb(function(b){return b=+b,fb(function(c,d){var e,f=a([],c.length,b),g=f.length;while(g--)c[e=f[g]]&&(c[e]=!(d[e]=c[e]))})})}function mb(a){return a&&typeof a.getElementsByTagName!==A&&a}c=db.support={},f=db.isXML=function(a){var b=a&&(a.ownerDocument||a).documentElement;return b?"HTML"!==b.nodeName:!1},k=db.setDocument=function(a){var b,e=a?a.ownerDocument||a:t,g=e.defaultView;return e!==l&&9===e.nodeType&&e.documentElement?(l=e,m=e.documentElement,n=!f(e),g&&g!==g.top&&(g.addEventListener?g.addEventListener("unload",function(){k()},!1):g.attachEvent&&g.attachEvent("onunload",function(){k()})),c.attributes=gb(function(a){return a.className="i",!a.getAttribute("className")}),c.getElementsByTagName=gb(function(a){return a.appendChild(e.createComment("")),!a.getElementsByTagName("*").length}),c.getElementsByClassName=Y.test(e.getElementsByClassName)&&gb(function(a){return a.innerHTML="
                                                                                                                                                                                                                                                                                                        ",a.firstChild.className="i",2===a.getElementsByClassName("i").length}),c.getById=gb(function(a){return m.appendChild(a).id=s,!e.getElementsByName||!e.getElementsByName(s).length}),c.getById?(d.find.ID=function(a,b){if(typeof b.getElementById!==A&&n){var c=b.getElementById(a);return c&&c.parentNode?[c]:[]}},d.filter.ID=function(a){var b=a.replace(ab,bb);return function(a){return a.getAttribute("id")===b}}):(delete d.find.ID,d.filter.ID=function(a){var b=a.replace(ab,bb);return function(a){var c=typeof a.getAttributeNode!==A&&a.getAttributeNode("id");return c&&c.value===b}}),d.find.TAG=c.getElementsByTagName?function(a,b){return typeof b.getElementsByTagName!==A?b.getElementsByTagName(a):void 0}:function(a,b){var c,d=[],e=0,f=b.getElementsByTagName(a);if("*"===a){while(c=f[e++])1===c.nodeType&&d.push(c);return d}return f},d.find.CLASS=c.getElementsByClassName&&function(a,b){return typeof b.getElementsByClassName!==A&&n?b.getElementsByClassName(a):void 0},p=[],o=[],(c.qsa=Y.test(e.querySelectorAll))&&(gb(function(a){a.innerHTML="",a.querySelectorAll("[t^='']").length&&o.push("[*^$]="+K+"*(?:''|\"\")"),a.querySelectorAll("[selected]").length||o.push("\\["+K+"*(?:value|"+J+")"),a.querySelectorAll(":checked").length||o.push(":checked")}),gb(function(a){var b=e.createElement("input");b.setAttribute("type","hidden"),a.appendChild(b).setAttribute("name","D"),a.querySelectorAll("[name=d]").length&&o.push("name"+K+"*[*^$|!~]?="),a.querySelectorAll(":enabled").length||o.push(":enabled",":disabled"),a.querySelectorAll("*,:x"),o.push(",.*:")})),(c.matchesSelector=Y.test(q=m.webkitMatchesSelector||m.mozMatchesSelector||m.oMatchesSelector||m.msMatchesSelector))&&gb(function(a){c.disconnectedMatch=q.call(a,"div"),q.call(a,"[s!='']:x"),p.push("!=",O)}),o=o.length&&new RegExp(o.join("|")),p=p.length&&new RegExp(p.join("|")),b=Y.test(m.compareDocumentPosition),r=b||Y.test(m.contains)?function(a,b){var c=9===a.nodeType?a.documentElement:a,d=b&&b.parentNode;return a===d||!(!d||1!==d.nodeType||!(c.contains?c.contains(d):a.compareDocumentPosition&&16&a.compareDocumentPosition(d)))}:function(a,b){if(b)while(b=b.parentNode)if(b===a)return!0;return!1},z=b?function(a,b){if(a===b)return j=!0,0;var d=!a.compareDocumentPosition-!b.compareDocumentPosition;return d?d:(d=(a.ownerDocument||a)===(b.ownerDocument||b)?a.compareDocumentPosition(b):1,1&d||!c.sortDetached&&b.compareDocumentPosition(a)===d?a===e||a.ownerDocument===t&&r(t,a)?-1:b===e||b.ownerDocument===t&&r(t,b)?1:i?I.call(i,a)-I.call(i,b):0:4&d?-1:1)}:function(a,b){if(a===b)return j=!0,0;var c,d=0,f=a.parentNode,g=b.parentNode,h=[a],k=[b];if(!f||!g)return a===e?-1:b===e?1:f?-1:g?1:i?I.call(i,a)-I.call(i,b):0;if(f===g)return ib(a,b);c=a;while(c=c.parentNode)h.unshift(c);c=b;while(c=c.parentNode)k.unshift(c);while(h[d]===k[d])d++;return d?ib(h[d],k[d]):h[d]===t?-1:k[d]===t?1:0},e):l},db.matches=function(a,b){return db(a,null,null,b)},db.matchesSelector=function(a,b){if((a.ownerDocument||a)!==l&&k(a),b=b.replace(S,"='$1']"),!(!c.matchesSelector||!n||p&&p.test(b)||o&&o.test(b)))try{var d=q.call(a,b);if(d||c.disconnectedMatch||a.document&&11!==a.document.nodeType)return d}catch(e){}return db(b,l,null,[a]).length>0},db.contains=function(a,b){return(a.ownerDocument||a)!==l&&k(a),r(a,b)},db.attr=function(a,b){(a.ownerDocument||a)!==l&&k(a);var e=d.attrHandle[b.toLowerCase()],f=e&&C.call(d.attrHandle,b.toLowerCase())?e(a,b,!n):void 0;return void 0!==f?f:c.attributes||!n?a.getAttribute(b):(f=a.getAttributeNode(b))&&f.specified?f.value:null},db.error=function(a){throw new Error("Syntax error, unrecognized expression: "+a)},db.uniqueSort=function(a){var b,d=[],e=0,f=0;if(j=!c.detectDuplicates,i=!c.sortStable&&a.slice(0),a.sort(z),j){while(b=a[f++])b===a[f]&&(e=d.push(f));while(e--)a.splice(d[e],1)}return i=null,a},e=db.getText=function(a){var b,c="",d=0,f=a.nodeType;if(f){if(1===f||9===f||11===f){if("string"==typeof a.textContent)return a.textContent;for(a=a.firstChild;a;a=a.nextSibling)c+=e(a)}else if(3===f||4===f)return a.nodeValue}else while(b=a[d++])c+=e(b);return c},d=db.selectors={cacheLength:50,createPseudo:fb,match:V,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(a){return a[1]=a[1].replace(ab,bb),a[3]=(a[4]||a[5]||"").replace(ab,bb),"~="===a[2]&&(a[3]=" "+a[3]+" "),a.slice(0,4)},CHILD:function(a){return a[1]=a[1].toLowerCase(),"nth"===a[1].slice(0,3)?(a[3]||db.error(a[0]),a[4]=+(a[4]?a[5]+(a[6]||1):2*("even"===a[3]||"odd"===a[3])),a[5]=+(a[7]+a[8]||"odd"===a[3])):a[3]&&db.error(a[0]),a},PSEUDO:function(a){var b,c=!a[5]&&a[2];return V.CHILD.test(a[0])?null:(a[3]&&void 0!==a[4]?a[2]=a[4]:c&&T.test(c)&&(b=ob(c,!0))&&(b=c.indexOf(")",c.length-b)-c.length)&&(a[0]=a[0].slice(0,b),a[2]=c.slice(0,b)),a.slice(0,3))}},filter:{TAG:function(a){var b=a.replace(ab,bb).toLowerCase();return"*"===a?function(){return!0}:function(a){return a.nodeName&&a.nodeName.toLowerCase()===b}},CLASS:function(a){var b=w[a+" "];return b||(b=new RegExp("(^|"+K+")"+a+"("+K+"|$)"))&&w(a,function(a){return b.test("string"==typeof a.className&&a.className||typeof a.getAttribute!==A&&a.getAttribute("class")||"")})},ATTR:function(a,b,c){return function(d){var e=db.attr(d,a);return null==e?"!="===b:b?(e+="","="===b?e===c:"!="===b?e!==c:"^="===b?c&&0===e.indexOf(c):"*="===b?c&&e.indexOf(c)>-1:"$="===b?c&&e.slice(-c.length)===c:"~="===b?(" "+e+" ").indexOf(c)>-1:"|="===b?e===c||e.slice(0,c.length+1)===c+"-":!1):!0}},CHILD:function(a,b,c,d,e){var f="nth"!==a.slice(0,3),g="last"!==a.slice(-4),h="of-type"===b;return 1===d&&0===e?function(a){return!!a.parentNode}:function(b,c,i){var j,k,l,m,n,o,p=f!==g?"nextSibling":"previousSibling",q=b.parentNode,r=h&&b.nodeName.toLowerCase(),t=!i&&!h;if(q){if(f){while(p){l=b;while(l=l[p])if(h?l.nodeName.toLowerCase()===r:1===l.nodeType)return!1;o=p="only"===a&&!o&&"nextSibling"}return!0}if(o=[g?q.firstChild:q.lastChild],g&&t){k=q[s]||(q[s]={}),j=k[a]||[],n=j[0]===u&&j[1],m=j[0]===u&&j[2],l=n&&q.childNodes[n];while(l=++n&&l&&l[p]||(m=n=0)||o.pop())if(1===l.nodeType&&++m&&l===b){k[a]=[u,n,m];break}}else if(t&&(j=(b[s]||(b[s]={}))[a])&&j[0]===u)m=j[1];else while(l=++n&&l&&l[p]||(m=n=0)||o.pop())if((h?l.nodeName.toLowerCase()===r:1===l.nodeType)&&++m&&(t&&((l[s]||(l[s]={}))[a]=[u,m]),l===b))break;return m-=e,m===d||m%d===0&&m/d>=0}}},PSEUDO:function(a,b){var c,e=d.pseudos[a]||d.setFilters[a.toLowerCase()]||db.error("unsupported pseudo: "+a);return e[s]?e(b):e.length>1?(c=[a,a,"",b],d.setFilters.hasOwnProperty(a.toLowerCase())?fb(function(a,c){var d,f=e(a,b),g=f.length;while(g--)d=I.call(a,f[g]),a[d]=!(c[d]=f[g])}):function(a){return e(a,0,c)}):e}},pseudos:{not:fb(function(a){var b=[],c=[],d=g(a.replace(P,"$1"));return d[s]?fb(function(a,b,c,e){var f,g=d(a,null,e,[]),h=a.length;while(h--)(f=g[h])&&(a[h]=!(b[h]=f))}):function(a,e,f){return b[0]=a,d(b,null,f,c),!c.pop()}}),has:fb(function(a){return function(b){return db(a,b).length>0}}),contains:fb(function(a){return function(b){return(b.textContent||b.innerText||e(b)).indexOf(a)>-1}}),lang:fb(function(a){return U.test(a||"")||db.error("unsupported lang: "+a),a=a.replace(ab,bb).toLowerCase(),function(b){var c;do if(c=n?b.lang:b.getAttribute("xml:lang")||b.getAttribute("lang"))return c=c.toLowerCase(),c===a||0===c.indexOf(a+"-");while((b=b.parentNode)&&1===b.nodeType);return!1}}),target:function(b){var c=a.location&&a.location.hash;return c&&c.slice(1)===b.id},root:function(a){return a===m},focus:function(a){return a===l.activeElement&&(!l.hasFocus||l.hasFocus())&&!!(a.type||a.href||~a.tabIndex)},enabled:function(a){return a.disabled===!1},disabled:function(a){return a.disabled===!0},checked:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&!!a.checked||"option"===b&&!!a.selected},selected:function(a){return a.parentNode&&a.parentNode.selectedIndex,a.selected===!0},empty:function(a){for(a=a.firstChild;a;a=a.nextSibling)if(a.nodeType<6)return!1;return!0},parent:function(a){return!d.pseudos.empty(a)},header:function(a){return X.test(a.nodeName)},input:function(a){return W.test(a.nodeName)},button:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&"button"===a.type||"button"===b},text:function(a){var b;return"input"===a.nodeName.toLowerCase()&&"text"===a.type&&(null==(b=a.getAttribute("type"))||"text"===b.toLowerCase())},first:lb(function(){return[0]}),last:lb(function(a,b){return[b-1]}),eq:lb(function(a,b,c){return[0>c?c+b:c]}),even:lb(function(a,b){for(var c=0;b>c;c+=2)a.push(c);return a}),odd:lb(function(a,b){for(var c=1;b>c;c+=2)a.push(c);return a}),lt:lb(function(a,b,c){for(var d=0>c?c+b:c;--d>=0;)a.push(d);return a}),gt:lb(function(a,b,c){for(var d=0>c?c+b:c;++db;b++)d+=a[b].value;return d}function qb(a,b,c){var d=b.dir,e=c&&"parentNode"===d,f=v++;return b.first?function(b,c,f){while(b=b[d])if(1===b.nodeType||e)return a(b,c,f)}:function(b,c,g){var h,i,j=[u,f];if(g){while(b=b[d])if((1===b.nodeType||e)&&a(b,c,g))return!0}else while(b=b[d])if(1===b.nodeType||e){if(i=b[s]||(b[s]={}),(h=i[d])&&h[0]===u&&h[1]===f)return j[2]=h[2];if(i[d]=j,j[2]=a(b,c,g))return!0}}}function rb(a){return a.length>1?function(b,c,d){var e=a.length;while(e--)if(!a[e](b,c,d))return!1;return!0}:a[0]}function sb(a,b,c,d,e){for(var f,g=[],h=0,i=a.length,j=null!=b;i>h;h++)(f=a[h])&&(!c||c(f,d,e))&&(g.push(f),j&&b.push(h));return g}function tb(a,b,c,d,e,f){return d&&!d[s]&&(d=tb(d)),e&&!e[s]&&(e=tb(e,f)),fb(function(f,g,h,i){var j,k,l,m=[],n=[],o=g.length,p=f||wb(b||"*",h.nodeType?[h]:h,[]),q=!a||!f&&b?p:sb(p,m,a,h,i),r=c?e||(f?a:o||d)?[]:g:q;if(c&&c(q,r,h,i),d){j=sb(r,n),d(j,[],h,i),k=j.length;while(k--)(l=j[k])&&(r[n[k]]=!(q[n[k]]=l))}if(f){if(e||a){if(e){j=[],k=r.length;while(k--)(l=r[k])&&j.push(q[k]=l);e(null,r=[],j,i)}k=r.length;while(k--)(l=r[k])&&(j=e?I.call(f,l):m[k])>-1&&(f[j]=!(g[j]=l))}}else r=sb(r===g?r.splice(o,r.length):r),e?e(null,g,r,i):G.apply(g,r)})}function ub(a){for(var b,c,e,f=a.length,g=d.relative[a[0].type],i=g||d.relative[" "],j=g?1:0,k=qb(function(a){return a===b},i,!0),l=qb(function(a){return I.call(b,a)>-1},i,!0),m=[function(a,c,d){return!g&&(d||c!==h)||((b=c).nodeType?k(a,c,d):l(a,c,d))}];f>j;j++)if(c=d.relative[a[j].type])m=[qb(rb(m),c)];else{if(c=d.filter[a[j].type].apply(null,a[j].matches),c[s]){for(e=++j;f>e;e++)if(d.relative[a[e].type])break;return tb(j>1&&rb(m),j>1&&pb(a.slice(0,j-1).concat({value:" "===a[j-2].type?"*":""})).replace(P,"$1"),c,e>j&&ub(a.slice(j,e)),f>e&&ub(a=a.slice(e)),f>e&&pb(a))}m.push(c)}return rb(m)}function vb(a,b){var c=b.length>0,e=a.length>0,f=function(f,g,i,j,k){var m,n,o,p=0,q="0",r=f&&[],s=[],t=h,v=f||e&&d.find.TAG("*",k),w=u+=null==t?1:Math.random()||.1,x=v.length;for(k&&(h=g!==l&&g);q!==x&&null!=(m=v[q]);q++){if(e&&m){n=0;while(o=a[n++])if(o(m,g,i)){j.push(m);break}k&&(u=w)}c&&((m=!o&&m)&&p--,f&&r.push(m))}if(p+=q,c&&q!==p){n=0;while(o=b[n++])o(r,s,g,i);if(f){if(p>0)while(q--)r[q]||s[q]||(s[q]=E.call(j));s=sb(s)}G.apply(j,s),k&&!f&&s.length>0&&p+b.length>1&&db.uniqueSort(j)}return k&&(u=w,h=t),r};return c?fb(f):f}g=db.compile=function(a,b){var c,d=[],e=[],f=y[a+" "];if(!f){b||(b=ob(a)),c=b.length;while(c--)f=ub(b[c]),f[s]?d.push(f):e.push(f);f=y(a,vb(e,d))}return f};function wb(a,b,c){for(var d=0,e=b.length;e>d;d++)db(a,b[d],c);return c}function xb(a,b,e,f){var h,i,j,k,l,m=ob(a);if(!f&&1===m.length){if(i=m[0]=m[0].slice(0),i.length>2&&"ID"===(j=i[0]).type&&c.getById&&9===b.nodeType&&n&&d.relative[i[1].type]){if(b=(d.find.ID(j.matches[0].replace(ab,bb),b)||[])[0],!b)return e;a=a.slice(i.shift().value.length)}h=V.needsContext.test(a)?0:i.length;while(h--){if(j=i[h],d.relative[k=j.type])break;if((l=d.find[k])&&(f=l(j.matches[0].replace(ab,bb),$.test(i[0].type)&&mb(b.parentNode)||b))){if(i.splice(h,1),a=f.length&&pb(i),!a)return G.apply(e,f),e;break}}}return g(a,m)(f,b,!n,e,$.test(a)&&mb(b.parentNode)||b),e}return c.sortStable=s.split("").sort(z).join("")===s,c.detectDuplicates=!!j,k(),c.sortDetached=gb(function(a){return 1&a.compareDocumentPosition(l.createElement("div"))}),gb(function(a){return a.innerHTML="","#"===a.firstChild.getAttribute("href")})||hb("type|href|height|width",function(a,b,c){return c?void 0:a.getAttribute(b,"type"===b.toLowerCase()?1:2)}),c.attributes&&gb(function(a){return a.innerHTML="",a.firstChild.setAttribute("value",""),""===a.firstChild.getAttribute("value")})||hb("value",function(a,b,c){return c||"input"!==a.nodeName.toLowerCase()?void 0:a.defaultValue}),gb(function(a){return null==a.getAttribute("disabled")})||hb(J,function(a,b,c){var d;return c?void 0:a[b]===!0?b.toLowerCase():(d=a.getAttributeNode(b))&&d.specified?d.value:null}),db}(a);n.find=t,n.expr=t.selectors,n.expr[":"]=n.expr.pseudos,n.unique=t.uniqueSort,n.text=t.getText,n.isXMLDoc=t.isXML,n.contains=t.contains;var u=n.expr.match.needsContext,v=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,w=/^.[^:#\[\.,]*$/;function x(a,b,c){if(n.isFunction(b))return n.grep(a,function(a,d){return!!b.call(a,d,a)!==c});if(b.nodeType)return n.grep(a,function(a){return a===b!==c});if("string"==typeof b){if(w.test(b))return n.filter(b,a,c);b=n.filter(b,a)}return n.grep(a,function(a){return n.inArray(a,b)>=0!==c})}n.filter=function(a,b,c){var d=b[0];return c&&(a=":not("+a+")"),1===b.length&&1===d.nodeType?n.find.matchesSelector(d,a)?[d]:[]:n.find.matches(a,n.grep(b,function(a){return 1===a.nodeType}))},n.fn.extend({find:function(a){var b,c=[],d=this,e=d.length;if("string"!=typeof a)return this.pushStack(n(a).filter(function(){for(b=0;e>b;b++)if(n.contains(d[b],this))return!0}));for(b=0;e>b;b++)n.find(a,d[b],c);return c=this.pushStack(e>1?n.unique(c):c),c.selector=this.selector?this.selector+" "+a:a,c},filter:function(a){return this.pushStack(x(this,a||[],!1))},not:function(a){return this.pushStack(x(this,a||[],!0))},is:function(a){return!!x(this,"string"==typeof a&&u.test(a)?n(a):a||[],!1).length}});var y,z=a.document,A=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,B=n.fn.init=function(a,b){var c,d;if(!a)return this;if("string"==typeof a){if(c="<"===a.charAt(0)&&">"===a.charAt(a.length-1)&&a.length>=3?[null,a,null]:A.exec(a),!c||!c[1]&&b)return!b||b.jquery?(b||y).find(a):this.constructor(b).find(a);if(c[1]){if(b=b instanceof n?b[0]:b,n.merge(this,n.parseHTML(c[1],b&&b.nodeType?b.ownerDocument||b:z,!0)),v.test(c[1])&&n.isPlainObject(b))for(c in b)n.isFunction(this[c])?this[c](b[c]):this.attr(c,b[c]);return this}if(d=z.getElementById(c[2]),d&&d.parentNode){if(d.id!==c[2])return y.find(a);this.length=1,this[0]=d}return this.context=z,this.selector=a,this}return a.nodeType?(this.context=this[0]=a,this.length=1,this):n.isFunction(a)?"undefined"!=typeof y.ready?y.ready(a):a(n):(void 0!==a.selector&&(this.selector=a.selector,this.context=a.context),n.makeArray(a,this))};B.prototype=n.fn,y=n(z);var C=/^(?:parents|prev(?:Until|All))/,D={children:!0,contents:!0,next:!0,prev:!0};n.extend({dir:function(a,b,c){var d=[],e=a[b];while(e&&9!==e.nodeType&&(void 0===c||1!==e.nodeType||!n(e).is(c)))1===e.nodeType&&d.push(e),e=e[b];return d},sibling:function(a,b){for(var c=[];a;a=a.nextSibling)1===a.nodeType&&a!==b&&c.push(a);return c}}),n.fn.extend({has:function(a){var b,c=n(a,this),d=c.length;return this.filter(function(){for(b=0;d>b;b++)if(n.contains(this,c[b]))return!0})},closest:function(a,b){for(var c,d=0,e=this.length,f=[],g=u.test(a)||"string"!=typeof a?n(a,b||this.context):0;e>d;d++)for(c=this[d];c&&c!==b;c=c.parentNode)if(c.nodeType<11&&(g?g.index(c)>-1:1===c.nodeType&&n.find.matchesSelector(c,a))){f.push(c);break}return this.pushStack(f.length>1?n.unique(f):f)},index:function(a){return a?"string"==typeof a?n.inArray(this[0],n(a)):n.inArray(a.jquery?a[0]:a,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(a,b){return this.pushStack(n.unique(n.merge(this.get(),n(a,b))))},addBack:function(a){return this.add(null==a?this.prevObject:this.prevObject.filter(a))}});function E(a,b){do a=a[b];while(a&&1!==a.nodeType);return a}n.each({parent:function(a){var b=a.parentNode;return b&&11!==b.nodeType?b:null},parents:function(a){return n.dir(a,"parentNode")},parentsUntil:function(a,b,c){return n.dir(a,"parentNode",c)},next:function(a){return E(a,"nextSibling")},prev:function(a){return E(a,"previousSibling")},nextAll:function(a){return n.dir(a,"nextSibling")},prevAll:function(a){return n.dir(a,"previousSibling")},nextUntil:function(a,b,c){return n.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return n.dir(a,"previousSibling",c)},siblings:function(a){return n.sibling((a.parentNode||{}).firstChild,a)},children:function(a){return n.sibling(a.firstChild)},contents:function(a){return n.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:n.merge([],a.childNodes)}},function(a,b){n.fn[a]=function(c,d){var e=n.map(this,b,c);return"Until"!==a.slice(-5)&&(d=c),d&&"string"==typeof d&&(e=n.filter(d,e)),this.length>1&&(D[a]||(e=n.unique(e)),C.test(a)&&(e=e.reverse())),this.pushStack(e)}});var F=/\S+/g,G={};function H(a){var b=G[a]={};return n.each(a.match(F)||[],function(a,c){b[c]=!0}),b}n.Callbacks=function(a){a="string"==typeof a?G[a]||H(a):n.extend({},a);var b,c,d,e,f,g,h=[],i=!a.once&&[],j=function(l){for(c=a.memory&&l,d=!0,f=g||0,g=0,e=h.length,b=!0;h&&e>f;f++)if(h[f].apply(l[0],l[1])===!1&&a.stopOnFalse){c=!1;break}b=!1,h&&(i?i.length&&j(i.shift()):c?h=[]:k.disable())},k={add:function(){if(h){var d=h.length;!function f(b){n.each(b,function(b,c){var d=n.type(c);"function"===d?a.unique&&k.has(c)||h.push(c):c&&c.length&&"string"!==d&&f(c)})}(arguments),b?e=h.length:c&&(g=d,j(c))}return this},remove:function(){return h&&n.each(arguments,function(a,c){var d;while((d=n.inArray(c,h,d))>-1)h.splice(d,1),b&&(e>=d&&e--,f>=d&&f--)}),this},has:function(a){return a?n.inArray(a,h)>-1:!(!h||!h.length)},empty:function(){return h=[],e=0,this},disable:function(){return h=i=c=void 0,this},disabled:function(){return!h},lock:function(){return i=void 0,c||k.disable(),this},locked:function(){return!i},fireWith:function(a,c){return!h||d&&!i||(c=c||[],c=[a,c.slice?c.slice():c],b?i.push(c):j(c)),this},fire:function(){return k.fireWith(this,arguments),this},fired:function(){return!!d}};return k},n.extend({Deferred:function(a){var b=[["resolve","done",n.Callbacks("once memory"),"resolved"],["reject","fail",n.Callbacks("once memory"),"rejected"],["notify","progress",n.Callbacks("memory")]],c="pending",d={state:function(){return c},always:function(){return e.done(arguments).fail(arguments),this},then:function(){var a=arguments;return n.Deferred(function(c){n.each(b,function(b,f){var g=n.isFunction(a[b])&&a[b];e[f[1]](function(){var a=g&&g.apply(this,arguments);a&&n.isFunction(a.promise)?a.promise().done(c.resolve).fail(c.reject).progress(c.notify):c[f[0]+"With"](this===d?c.promise():this,g?[a]:arguments)})}),a=null}).promise()},promise:function(a){return null!=a?n.extend(a,d):d}},e={};return d.pipe=d.then,n.each(b,function(a,f){var g=f[2],h=f[3];d[f[1]]=g.add,h&&g.add(function(){c=h},b[1^a][2].disable,b[2][2].lock),e[f[0]]=function(){return e[f[0]+"With"](this===e?d:this,arguments),this},e[f[0]+"With"]=g.fireWith}),d.promise(e),a&&a.call(e,e),e},when:function(a){var b=0,c=d.call(arguments),e=c.length,f=1!==e||a&&n.isFunction(a.promise)?e:0,g=1===f?a:n.Deferred(),h=function(a,b,c){return function(e){b[a]=this,c[a]=arguments.length>1?d.call(arguments):e,c===i?g.notifyWith(b,c):--f||g.resolveWith(b,c)}},i,j,k;if(e>1)for(i=new Array(e),j=new Array(e),k=new Array(e);e>b;b++)c[b]&&n.isFunction(c[b].promise)?c[b].promise().done(h(b,k,c)).fail(g.reject).progress(h(b,j,i)):--f;return f||g.resolveWith(k,c),g.promise()}});var I;n.fn.ready=function(a){return n.ready.promise().done(a),this},n.extend({isReady:!1,readyWait:1,holdReady:function(a){a?n.readyWait++:n.ready(!0)},ready:function(a){if(a===!0?!--n.readyWait:!n.isReady){if(!z.body)return setTimeout(n.ready);n.isReady=!0,a!==!0&&--n.readyWait>0||(I.resolveWith(z,[n]),n.fn.trigger&&n(z).trigger("ready").off("ready"))}}});function J(){z.addEventListener?(z.removeEventListener("DOMContentLoaded",K,!1),a.removeEventListener("load",K,!1)):(z.detachEvent("onreadystatechange",K),a.detachEvent("onload",K))}function K(){(z.addEventListener||"load"===event.type||"complete"===z.readyState)&&(J(),n.ready())}n.ready.promise=function(b){if(!I)if(I=n.Deferred(),"complete"===z.readyState)setTimeout(n.ready);else if(z.addEventListener)z.addEventListener("DOMContentLoaded",K,!1),a.addEventListener("load",K,!1);else{z.attachEvent("onreadystatechange",K),a.attachEvent("onload",K);var c=!1;try{c=null==a.frameElement&&z.documentElement}catch(d){}c&&c.doScroll&&!function e(){if(!n.isReady){try{c.doScroll("left")}catch(a){return setTimeout(e,50)}J(),n.ready()}}()}return I.promise(b)};var L="undefined",M;for(M in n(l))break;l.ownLast="0"!==M,l.inlineBlockNeedsLayout=!1,n(function(){var a,b,c=z.getElementsByTagName("body")[0];c&&(a=z.createElement("div"),a.style.cssText="border:0;width:0;height:0;position:absolute;top:0;left:-9999px;margin-top:1px",b=z.createElement("div"),c.appendChild(a).appendChild(b),typeof b.style.zoom!==L&&(b.style.cssText="border:0;margin:0;width:1px;padding:1px;display:inline;zoom:1",(l.inlineBlockNeedsLayout=3===b.offsetWidth)&&(c.style.zoom=1)),c.removeChild(a),a=b=null)}),function(){var a=z.createElement("div");if(null==l.deleteExpando){l.deleteExpando=!0;try{delete a.test}catch(b){l.deleteExpando=!1}}a=null}(),n.acceptData=function(a){var b=n.noData[(a.nodeName+" ").toLowerCase()],c=+a.nodeType||1;return 1!==c&&9!==c?!1:!b||b!==!0&&a.getAttribute("classid")===b};var N=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,O=/([A-Z])/g;function P(a,b,c){if(void 0===c&&1===a.nodeType){var d="data-"+b.replace(O,"-$1").toLowerCase();if(c=a.getAttribute(d),"string"==typeof c){try{c="true"===c?!0:"false"===c?!1:"null"===c?null:+c+""===c?+c:N.test(c)?n.parseJSON(c):c}catch(e){}n.data(a,b,c)}else c=void 0}return c}function Q(a){var b;for(b in a)if(("data"!==b||!n.isEmptyObject(a[b]))&&"toJSON"!==b)return!1;return!0}function R(a,b,d,e){if(n.acceptData(a)){var f,g,h=n.expando,i=a.nodeType,j=i?n.cache:a,k=i?a[h]:a[h]&&h;if(k&&j[k]&&(e||j[k].data)||void 0!==d||"string"!=typeof b)return k||(k=i?a[h]=c.pop()||n.guid++:h),j[k]||(j[k]=i?{}:{toJSON:n.noop}),("object"==typeof b||"function"==typeof b)&&(e?j[k]=n.extend(j[k],b):j[k].data=n.extend(j[k].data,b)),g=j[k],e||(g.data||(g.data={}),g=g.data),void 0!==d&&(g[n.camelCase(b)]=d),"string"==typeof b?(f=g[b],null==f&&(f=g[n.camelCase(b)])):f=g,f +}}function S(a,b,c){if(n.acceptData(a)){var d,e,f=a.nodeType,g=f?n.cache:a,h=f?a[n.expando]:n.expando;if(g[h]){if(b&&(d=c?g[h]:g[h].data)){n.isArray(b)?b=b.concat(n.map(b,n.camelCase)):b in d?b=[b]:(b=n.camelCase(b),b=b in d?[b]:b.split(" ")),e=b.length;while(e--)delete d[b[e]];if(c?!Q(d):!n.isEmptyObject(d))return}(c||(delete g[h].data,Q(g[h])))&&(f?n.cleanData([a],!0):l.deleteExpando||g!=g.window?delete g[h]:g[h]=null)}}}n.extend({cache:{},noData:{"applet ":!0,"embed ":!0,"object ":"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(a){return a=a.nodeType?n.cache[a[n.expando]]:a[n.expando],!!a&&!Q(a)},data:function(a,b,c){return R(a,b,c)},removeData:function(a,b){return S(a,b)},_data:function(a,b,c){return R(a,b,c,!0)},_removeData:function(a,b){return S(a,b,!0)}}),n.fn.extend({data:function(a,b){var c,d,e,f=this[0],g=f&&f.attributes;if(void 0===a){if(this.length&&(e=n.data(f),1===f.nodeType&&!n._data(f,"parsedAttrs"))){c=g.length;while(c--)d=g[c].name,0===d.indexOf("data-")&&(d=n.camelCase(d.slice(5)),P(f,d,e[d]));n._data(f,"parsedAttrs",!0)}return e}return"object"==typeof a?this.each(function(){n.data(this,a)}):arguments.length>1?this.each(function(){n.data(this,a,b)}):f?P(f,a,n.data(f,a)):void 0},removeData:function(a){return this.each(function(){n.removeData(this,a)})}}),n.extend({queue:function(a,b,c){var d;return a?(b=(b||"fx")+"queue",d=n._data(a,b),c&&(!d||n.isArray(c)?d=n._data(a,b,n.makeArray(c)):d.push(c)),d||[]):void 0},dequeue:function(a,b){b=b||"fx";var c=n.queue(a,b),d=c.length,e=c.shift(),f=n._queueHooks(a,b),g=function(){n.dequeue(a,b)};"inprogress"===e&&(e=c.shift(),d--),e&&("fx"===b&&c.unshift("inprogress"),delete f.stop,e.call(a,g,f)),!d&&f&&f.empty.fire()},_queueHooks:function(a,b){var c=b+"queueHooks";return n._data(a,c)||n._data(a,c,{empty:n.Callbacks("once memory").add(function(){n._removeData(a,b+"queue"),n._removeData(a,c)})})}}),n.fn.extend({queue:function(a,b){var c=2;return"string"!=typeof a&&(b=a,a="fx",c--),arguments.lengthh;h++)b(a[h],c,g?d:d.call(a[h],h,b(a[h],c)));return e?a:j?b.call(a):i?b(a[0],c):f},X=/^(?:checkbox|radio)$/i;!function(){var a=z.createDocumentFragment(),b=z.createElement("div"),c=z.createElement("input");if(b.setAttribute("className","t"),b.innerHTML="
                                                                                                                                                                                                                                                                                                        a",l.leadingWhitespace=3===b.firstChild.nodeType,l.tbody=!b.getElementsByTagName("tbody").length,l.htmlSerialize=!!b.getElementsByTagName("link").length,l.html5Clone="<:nav>"!==z.createElement("nav").cloneNode(!0).outerHTML,c.type="checkbox",c.checked=!0,a.appendChild(c),l.appendChecked=c.checked,b.innerHTML="",l.noCloneChecked=!!b.cloneNode(!0).lastChild.defaultValue,a.appendChild(b),b.innerHTML="",l.checkClone=b.cloneNode(!0).cloneNode(!0).lastChild.checked,l.noCloneEvent=!0,b.attachEvent&&(b.attachEvent("onclick",function(){l.noCloneEvent=!1}),b.cloneNode(!0).click()),null==l.deleteExpando){l.deleteExpando=!0;try{delete b.test}catch(d){l.deleteExpando=!1}}a=b=c=null}(),function(){var b,c,d=z.createElement("div");for(b in{submit:!0,change:!0,focusin:!0})c="on"+b,(l[b+"Bubbles"]=c in a)||(d.setAttribute(c,"t"),l[b+"Bubbles"]=d.attributes[c].expando===!1);d=null}();var Y=/^(?:input|select|textarea)$/i,Z=/^key/,$=/^(?:mouse|contextmenu)|click/,_=/^(?:focusinfocus|focusoutblur)$/,ab=/^([^.]*)(?:\.(.+)|)$/;function bb(){return!0}function cb(){return!1}function db(){try{return z.activeElement}catch(a){}}n.event={global:{},add:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,o,p,q,r=n._data(a);if(r){c.handler&&(i=c,c=i.handler,e=i.selector),c.guid||(c.guid=n.guid++),(g=r.events)||(g=r.events={}),(k=r.handle)||(k=r.handle=function(a){return typeof n===L||a&&n.event.triggered===a.type?void 0:n.event.dispatch.apply(k.elem,arguments)},k.elem=a),b=(b||"").match(F)||[""],h=b.length;while(h--)f=ab.exec(b[h])||[],o=q=f[1],p=(f[2]||"").split(".").sort(),o&&(j=n.event.special[o]||{},o=(e?j.delegateType:j.bindType)||o,j=n.event.special[o]||{},l=n.extend({type:o,origType:q,data:d,handler:c,guid:c.guid,selector:e,needsContext:e&&n.expr.match.needsContext.test(e),namespace:p.join(".")},i),(m=g[o])||(m=g[o]=[],m.delegateCount=0,j.setup&&j.setup.call(a,d,p,k)!==!1||(a.addEventListener?a.addEventListener(o,k,!1):a.attachEvent&&a.attachEvent("on"+o,k))),j.add&&(j.add.call(a,l),l.handler.guid||(l.handler.guid=c.guid)),e?m.splice(m.delegateCount++,0,l):m.push(l),n.event.global[o]=!0);a=null}},remove:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,o,p,q,r=n.hasData(a)&&n._data(a);if(r&&(k=r.events)){b=(b||"").match(F)||[""],j=b.length;while(j--)if(h=ab.exec(b[j])||[],o=q=h[1],p=(h[2]||"").split(".").sort(),o){l=n.event.special[o]||{},o=(d?l.delegateType:l.bindType)||o,m=k[o]||[],h=h[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),i=f=m.length;while(f--)g=m[f],!e&&q!==g.origType||c&&c.guid!==g.guid||h&&!h.test(g.namespace)||d&&d!==g.selector&&("**"!==d||!g.selector)||(m.splice(f,1),g.selector&&m.delegateCount--,l.remove&&l.remove.call(a,g));i&&!m.length&&(l.teardown&&l.teardown.call(a,p,r.handle)!==!1||n.removeEvent(a,o,r.handle),delete k[o])}else for(o in k)n.event.remove(a,o+b[j],c,d,!0);n.isEmptyObject(k)&&(delete r.handle,n._removeData(a,"events"))}},trigger:function(b,c,d,e){var f,g,h,i,k,l,m,o=[d||z],p=j.call(b,"type")?b.type:b,q=j.call(b,"namespace")?b.namespace.split("."):[];if(h=l=d=d||z,3!==d.nodeType&&8!==d.nodeType&&!_.test(p+n.event.triggered)&&(p.indexOf(".")>=0&&(q=p.split("."),p=q.shift(),q.sort()),g=p.indexOf(":")<0&&"on"+p,b=b[n.expando]?b:new n.Event(p,"object"==typeof b&&b),b.isTrigger=e?2:3,b.namespace=q.join("."),b.namespace_re=b.namespace?new RegExp("(^|\\.)"+q.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,b.result=void 0,b.target||(b.target=d),c=null==c?[b]:n.makeArray(c,[b]),k=n.event.special[p]||{},e||!k.trigger||k.trigger.apply(d,c)!==!1)){if(!e&&!k.noBubble&&!n.isWindow(d)){for(i=k.delegateType||p,_.test(i+p)||(h=h.parentNode);h;h=h.parentNode)o.push(h),l=h;l===(d.ownerDocument||z)&&o.push(l.defaultView||l.parentWindow||a)}m=0;while((h=o[m++])&&!b.isPropagationStopped())b.type=m>1?i:k.bindType||p,f=(n._data(h,"events")||{})[b.type]&&n._data(h,"handle"),f&&f.apply(h,c),f=g&&h[g],f&&f.apply&&n.acceptData(h)&&(b.result=f.apply(h,c),b.result===!1&&b.preventDefault());if(b.type=p,!e&&!b.isDefaultPrevented()&&(!k._default||k._default.apply(o.pop(),c)===!1)&&n.acceptData(d)&&g&&d[p]&&!n.isWindow(d)){l=d[g],l&&(d[g]=null),n.event.triggered=p;try{d[p]()}catch(r){}n.event.triggered=void 0,l&&(d[g]=l)}return b.result}},dispatch:function(a){a=n.event.fix(a);var b,c,e,f,g,h=[],i=d.call(arguments),j=(n._data(this,"events")||{})[a.type]||[],k=n.event.special[a.type]||{};if(i[0]=a,a.delegateTarget=this,!k.preDispatch||k.preDispatch.call(this,a)!==!1){h=n.event.handlers.call(this,a,j),b=0;while((f=h[b++])&&!a.isPropagationStopped()){a.currentTarget=f.elem,g=0;while((e=f.handlers[g++])&&!a.isImmediatePropagationStopped())(!a.namespace_re||a.namespace_re.test(e.namespace))&&(a.handleObj=e,a.data=e.data,c=((n.event.special[e.origType]||{}).handle||e.handler).apply(f.elem,i),void 0!==c&&(a.result=c)===!1&&(a.preventDefault(),a.stopPropagation()))}return k.postDispatch&&k.postDispatch.call(this,a),a.result}},handlers:function(a,b){var c,d,e,f,g=[],h=b.delegateCount,i=a.target;if(h&&i.nodeType&&(!a.button||"click"!==a.type))for(;i!=this;i=i.parentNode||this)if(1===i.nodeType&&(i.disabled!==!0||"click"!==a.type)){for(e=[],f=0;h>f;f++)d=b[f],c=d.selector+" ",void 0===e[c]&&(e[c]=d.needsContext?n(c,this).index(i)>=0:n.find(c,this,null,[i]).length),e[c]&&e.push(d);e.length&&g.push({elem:i,handlers:e})}return h]","i"),ib=/^\s+/,jb=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,kb=/<([\w:]+)/,lb=/\s*$/g,sb={option:[1,""],legend:[1,"
                                                                                                                                                                                                                                                                                                        ","
                                                                                                                                                                                                                                                                                                        "],area:[1,"",""],param:[1,"",""],thead:[1,"","
                                                                                                                                                                                                                                                                                                        "],tr:[2,"","
                                                                                                                                                                                                                                                                                                        "],col:[2,"","
                                                                                                                                                                                                                                                                                                        "],td:[3,"","
                                                                                                                                                                                                                                                                                                        "],_default:l.htmlSerialize?[0,"",""]:[1,"X
                                                                                                                                                                                                                                                                                                        ","
                                                                                                                                                                                                                                                                                                        "]},tb=eb(z),ub=tb.appendChild(z.createElement("div"));sb.optgroup=sb.option,sb.tbody=sb.tfoot=sb.colgroup=sb.caption=sb.thead,sb.th=sb.td;function vb(a,b){var c,d,e=0,f=typeof a.getElementsByTagName!==L?a.getElementsByTagName(b||"*"):typeof a.querySelectorAll!==L?a.querySelectorAll(b||"*"):void 0;if(!f)for(f=[],c=a.childNodes||a;null!=(d=c[e]);e++)!b||n.nodeName(d,b)?f.push(d):n.merge(f,vb(d,b));return void 0===b||b&&n.nodeName(a,b)?n.merge([a],f):f}function wb(a){X.test(a.type)&&(a.defaultChecked=a.checked)}function xb(a,b){return n.nodeName(a,"table")&&n.nodeName(11!==b.nodeType?b:b.firstChild,"tr")?a.getElementsByTagName("tbody")[0]||a.appendChild(a.ownerDocument.createElement("tbody")):a}function yb(a){return a.type=(null!==n.find.attr(a,"type"))+"/"+a.type,a}function zb(a){var b=qb.exec(a.type);return b?a.type=b[1]:a.removeAttribute("type"),a}function Ab(a,b){for(var c,d=0;null!=(c=a[d]);d++)n._data(c,"globalEval",!b||n._data(b[d],"globalEval"))}function Bb(a,b){if(1===b.nodeType&&n.hasData(a)){var c,d,e,f=n._data(a),g=n._data(b,f),h=f.events;if(h){delete g.handle,g.events={};for(c in h)for(d=0,e=h[c].length;e>d;d++)n.event.add(b,c,h[c][d])}g.data&&(g.data=n.extend({},g.data))}}function Cb(a,b){var c,d,e;if(1===b.nodeType){if(c=b.nodeName.toLowerCase(),!l.noCloneEvent&&b[n.expando]){e=n._data(b);for(d in e.events)n.removeEvent(b,d,e.handle);b.removeAttribute(n.expando)}"script"===c&&b.text!==a.text?(yb(b).text=a.text,zb(b)):"object"===c?(b.parentNode&&(b.outerHTML=a.outerHTML),l.html5Clone&&a.innerHTML&&!n.trim(b.innerHTML)&&(b.innerHTML=a.innerHTML)):"input"===c&&X.test(a.type)?(b.defaultChecked=b.checked=a.checked,b.value!==a.value&&(b.value=a.value)):"option"===c?b.defaultSelected=b.selected=a.defaultSelected:("input"===c||"textarea"===c)&&(b.defaultValue=a.defaultValue)}}n.extend({clone:function(a,b,c){var d,e,f,g,h,i=n.contains(a.ownerDocument,a);if(l.html5Clone||n.isXMLDoc(a)||!hb.test("<"+a.nodeName+">")?f=a.cloneNode(!0):(ub.innerHTML=a.outerHTML,ub.removeChild(f=ub.firstChild)),!(l.noCloneEvent&&l.noCloneChecked||1!==a.nodeType&&11!==a.nodeType||n.isXMLDoc(a)))for(d=vb(f),h=vb(a),g=0;null!=(e=h[g]);++g)d[g]&&Cb(e,d[g]);if(b)if(c)for(h=h||vb(a),d=d||vb(f),g=0;null!=(e=h[g]);g++)Bb(e,d[g]);else Bb(a,f);return d=vb(f,"script"),d.length>0&&Ab(d,!i&&vb(a,"script")),d=h=e=null,f},buildFragment:function(a,b,c,d){for(var e,f,g,h,i,j,k,m=a.length,o=eb(b),p=[],q=0;m>q;q++)if(f=a[q],f||0===f)if("object"===n.type(f))n.merge(p,f.nodeType?[f]:f);else if(mb.test(f)){h=h||o.appendChild(b.createElement("div")),i=(kb.exec(f)||["",""])[1].toLowerCase(),k=sb[i]||sb._default,h.innerHTML=k[1]+f.replace(jb,"<$1>")+k[2],e=k[0];while(e--)h=h.lastChild;if(!l.leadingWhitespace&&ib.test(f)&&p.push(b.createTextNode(ib.exec(f)[0])),!l.tbody){f="table"!==i||lb.test(f)?""!==k[1]||lb.test(f)?0:h:h.firstChild,e=f&&f.childNodes.length;while(e--)n.nodeName(j=f.childNodes[e],"tbody")&&!j.childNodes.length&&f.removeChild(j)}n.merge(p,h.childNodes),h.textContent="";while(h.firstChild)h.removeChild(h.firstChild);h=o.lastChild}else p.push(b.createTextNode(f));h&&o.removeChild(h),l.appendChecked||n.grep(vb(p,"input"),wb),q=0;while(f=p[q++])if((!d||-1===n.inArray(f,d))&&(g=n.contains(f.ownerDocument,f),h=vb(o.appendChild(f),"script"),g&&Ab(h),c)){e=0;while(f=h[e++])pb.test(f.type||"")&&c.push(f)}return h=null,o},cleanData:function(a,b){for(var d,e,f,g,h=0,i=n.expando,j=n.cache,k=l.deleteExpando,m=n.event.special;null!=(d=a[h]);h++)if((b||n.acceptData(d))&&(f=d[i],g=f&&j[f])){if(g.events)for(e in g.events)m[e]?n.event.remove(d,e):n.removeEvent(d,e,g.handle);j[f]&&(delete j[f],k?delete d[i]:typeof d.removeAttribute!==L?d.removeAttribute(i):d[i]=null,c.push(f))}}}),n.fn.extend({text:function(a){return W(this,function(a){return void 0===a?n.text(this):this.empty().append((this[0]&&this[0].ownerDocument||z).createTextNode(a))},null,a,arguments.length)},append:function(){return this.domManip(arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=xb(this,a);b.appendChild(a)}})},prepend:function(){return this.domManip(arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=xb(this,a);b.insertBefore(a,b.firstChild)}})},before:function(){return this.domManip(arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this)})},after:function(){return this.domManip(arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this.nextSibling)})},remove:function(a,b){for(var c,d=a?n.filter(a,this):this,e=0;null!=(c=d[e]);e++)b||1!==c.nodeType||n.cleanData(vb(c)),c.parentNode&&(b&&n.contains(c.ownerDocument,c)&&Ab(vb(c,"script")),c.parentNode.removeChild(c));return this},empty:function(){for(var a,b=0;null!=(a=this[b]);b++){1===a.nodeType&&n.cleanData(vb(a,!1));while(a.firstChild)a.removeChild(a.firstChild);a.options&&n.nodeName(a,"select")&&(a.options.length=0)}return this},clone:function(a,b){return a=null==a?!1:a,b=null==b?a:b,this.map(function(){return n.clone(this,a,b)})},html:function(a){return W(this,function(a){var b=this[0]||{},c=0,d=this.length;if(void 0===a)return 1===b.nodeType?b.innerHTML.replace(gb,""):void 0;if(!("string"!=typeof a||nb.test(a)||!l.htmlSerialize&&hb.test(a)||!l.leadingWhitespace&&ib.test(a)||sb[(kb.exec(a)||["",""])[1].toLowerCase()])){a=a.replace(jb,"<$1>");try{for(;d>c;c++)b=this[c]||{},1===b.nodeType&&(n.cleanData(vb(b,!1)),b.innerHTML=a);b=0}catch(e){}}b&&this.empty().append(a)},null,a,arguments.length)},replaceWith:function(){var a=arguments[0];return this.domManip(arguments,function(b){a=this.parentNode,n.cleanData(vb(this)),a&&a.replaceChild(b,this)}),a&&(a.length||a.nodeType)?this:this.remove()},detach:function(a){return this.remove(a,!0)},domManip:function(a,b){a=e.apply([],a);var c,d,f,g,h,i,j=0,k=this.length,m=this,o=k-1,p=a[0],q=n.isFunction(p);if(q||k>1&&"string"==typeof p&&!l.checkClone&&ob.test(p))return this.each(function(c){var d=m.eq(c);q&&(a[0]=p.call(this,c,d.html())),d.domManip(a,b)});if(k&&(i=n.buildFragment(a,this[0].ownerDocument,!1,this),c=i.firstChild,1===i.childNodes.length&&(i=c),c)){for(g=n.map(vb(i,"script"),yb),f=g.length;k>j;j++)d=i,j!==o&&(d=n.clone(d,!0,!0),f&&n.merge(g,vb(d,"script"))),b.call(this[j],d,j);if(f)for(h=g[g.length-1].ownerDocument,n.map(g,zb),j=0;f>j;j++)d=g[j],pb.test(d.type||"")&&!n._data(d,"globalEval")&&n.contains(h,d)&&(d.src?n._evalUrl&&n._evalUrl(d.src):n.globalEval((d.text||d.textContent||d.innerHTML||"").replace(rb,"")));i=c=null}return this}}),n.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){n.fn[a]=function(a){for(var c,d=0,e=[],g=n(a),h=g.length-1;h>=d;d++)c=d===h?this:this.clone(!0),n(g[d])[b](c),f.apply(e,c.get());return this.pushStack(e)}});var Db,Eb={};function Fb(b,c){var d=n(c.createElement(b)).appendTo(c.body),e=a.getDefaultComputedStyle?a.getDefaultComputedStyle(d[0]).display:n.css(d[0],"display");return d.detach(),e}function Gb(a){var b=z,c=Eb[a];return c||(c=Fb(a,b),"none"!==c&&c||(Db=(Db||n("
                                                                                                                                                                                                                                                                                                        + +
                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                        • 1、大数据量加载说明

                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                          • 1)、zTree v3.x 针对大数据量一次性加载进行了更深入的优化,实现了延迟加载功能,即不展开的节点不创建子节点的 DOM。
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          • 2)、对于每级节点最多一百左右,但总节点数几千甚至几万,且不是全部展开的数据,一次性加载的效果最明显,速度非常快。
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          • 3)、对于某一级节点数就多达几千的情况 延迟加载无效,这种情况建议考虑分页异步加载。
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          • 4)、对于全部节点都展开显示的情况,延迟加载无效,这种情况建议不要全部展开。
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          • 5)、显示 checkbox / radio 会造成一定程度的性能下降。
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          • 6)、利用 addDiyDom 功能增加自定义控件会影响速度,影响程度受节点数量而定。
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          • 7)、利用 onNodeCreated 事件回调函数对节点 DOM 进行操作会影响速度,影响程度受节点数量而定。
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                                                                                                        • 2、setting 配置信息说明

                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                          • 不需要进行特殊的配置
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                                                                                                        • 3、treeNode 节点数据说明

                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                          • 对 节点数据 没有特殊要求,用户可以根据自己的需求添加自定义属性
                                                                                                                                                                                                                                                                                                          • +
                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                        • +
                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                        +