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

📄 grouptreenode.java

📁 采用tapestry的简单OA系统
💻 JAVA
字号:
package com.ejsun.entapps.presentation.pages.organization;

import org.apache.tapestry.contrib.tree.simple.TreeNode;

import com.ejsun.entapps.domain.organization.Group;

public class GroupTreeNode extends TreeNode {
	private Group group;
	private String m_strValue;
		
	public GroupTreeNode(Group group) {
		super(null);
		this.m_strValue = group.getName();
		this.group = group;
	}

	public Group getGroup() {
		return group;
	}
	
	public String toString(){
		return m_strValue;
	}

	public int hashCode(){
		return m_strValue.hashCode();
	}

	public boolean equals(Object objTarget){
		if(objTarget == this)
			return true;
		if(! (objTarget instanceof GroupTreeNode))
			return false;

		GroupTreeNode objTargetNode = (GroupTreeNode)objTarget;
		return this.getValue().equals(objTargetNode.getValue());
	}

	/**
	 * Returns the value.
	 * @return String
	 */
	public String getValue() {
		return m_strValue;
	}

}

⌨️ 快捷键说明

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