⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 menutreenode.java

📁 一个自娱自乐的demo 开发环境 apache-tomcat-6.0.16 Mysql 5.1.11 Jdk 1.6 文件结构如下 --MyGame -----MyGam
💻 JAVA
字号:
package com.hb.base.domain.ui;// Generated 2007/12/03 18:44:52 by Hibernate Tools 3.2.0.b11import java.util.ArrayList;import java.util.List;import com.hb.core.bean.BaseHibernateDomainBean;import org.apache.commons.lang.builder.EqualsBuilder;import org.apache.commons.lang.builder.HashCodeBuilder;/** * @author 何 貝 *  * UI Tree信息 */public class MenuTreeNode extends BaseHibernateDomainBean {	/** 页面文件夹类型 */	public final static String FOLDER_TYPE = "folder";	/** 页面文件类型 */	public final static String PAGE_TYPE = "page";	/** 根节点类型 */	public final static String ROOT_TYPE = "root";	/***/	private static final long serialVersionUID = -5718413976225996865L;	/** Tree Node ID */	private String nodeID;	/** 详细描述 */	private String nodeTxt;	/** Node Type */	private String nodeType;	/** 默认权限 "true"无访问限制 "false"有访问限制,具体参照SYS_MENU_TREE_POWER表内容 */	private boolean defaultPower = false;	/** 迁移页面路径 */	private String actionPath;	/** Parent Tree Node ID */	private String parentNodeID;	/** Parent Tree Node ID */	private MenuTreeNode parentNode;	/** Index */	private Integer no;	/** Children Node */	private List<MenuTreeNode> subNodeList = new ArrayList<MenuTreeNode>();	public MenuTreeNode() {	}	public MenuTreeNode(String nodeID, String nodeType, String actionPath, boolean defaultPower) {		this.nodeID = nodeID;		this.nodeType = nodeType;		this.actionPath = actionPath;		this.defaultPower = defaultPower;	}	public MenuTreeNode(String nodeID, String nodeTxt, String nodeType, String actionPath,			MenuTreeNode parentNode, List<MenuTreeNode> subNodeList, boolean defaultPower) {		this.nodeID = nodeID;		this.nodeTxt = nodeTxt;		this.nodeType = nodeType;		this.actionPath = actionPath;		if (parentNode != null) {			this.parentNodeID = parentNode.getNodeID();		}		this.parentNode = parentNode;		this.subNodeList = subNodeList;		this.defaultPower = defaultPower;	}	public String getNodeID() {		return this.nodeID;	}	public void setNodeID(String nodeID) {		this.nodeID = nodeID;	}	public String getNodeTxt() {		return this.nodeTxt;	}	public void setNodeTxt(String nodeTxt) {		this.nodeTxt = nodeTxt;	}	public String getNodeType() {		return this.nodeType;	}	public void setNodeType(String nodeType) {		this.nodeType = nodeType;	}	protected String getParentNodeID() {		return this.parentNodeID;	}	protected void setParentNodeID(String parentNodeID) {		this.parentNodeID = parentNodeID;	}	public MenuTreeNode getParentNode() {		return this.parentNode;	}	public void setParentNode(MenuTreeNode parentNode) {		if (parentNode != null) {			this.parentNodeID = parentNode.getNodeID();		}		this.parentNode = parentNode;	}	public Integer getNo() {		return this.no;	}	public void setNo(Integer no) {		this.no = no;	}	public void addSubNode(MenuTreeNode subNode) {		this.subNodeList.add(subNode);	}	public List<MenuTreeNode> getSubNodeList() {		return this.subNodeList;	}	public void setSubNodeList(List<MenuTreeNode> subNodeList) {		this.subNodeList = subNodeList;	}	public String getActionPath() {		return this.actionPath;	}	public void setActionPath(String actionPath) {		this.actionPath = actionPath;	}	public boolean isLeaf() {		return this.nodeType == PAGE_TYPE ? true : false;	}	public boolean isDefaultPower() {		return defaultPower;	}	public void setDefaultPower(boolean defaultPower) {		this.defaultPower = defaultPower;	}	/**	 * @see java.lang.Object#equals(Object)	 */	public boolean equals(Object object) {		if (!(object instanceof MenuTreeNode)) {			return false;		}		MenuTreeNode rhs = (MenuTreeNode) object;		return new EqualsBuilder().append(this.nodeID, rhs.nodeID).isEquals();	}	/**	 * @see java.lang.Object#hashCode()	 */	public int hashCode() {		return new HashCodeBuilder(-1180466285, -215532685).append(this.nodeID).toHashCode();	}}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -