treenode.java

来自「企业进销存源码」· Java 代码 · 共 46 行

JAVA
46
字号
package com.web.util;

/**
 * 
 *
 * 树型结构树结点抽象类
 */
public abstract class TreeNode {
	protected TreeNodeValue treeNodeValue;
	protected TreeNode[] childNode;
	
	public abstract void setChildNodeValue(TreeNode node);
	/**
	 * Returns the childNode.
	 * @return TreeNode[]
	 */
	public TreeNode[] getChildNode() {
		return childNode;
	}

	/**
	 * Returns the treeNodeValue.
	 * @return TreeNodeValue
	 */
	public TreeNodeValue getTreeNodeValue() {
		return treeNodeValue;
	}

	/**
	 * Sets the childNode.
	 * @param childNode The childNode to set
	 */
	public void setChildNode(TreeNode[] childNode) {
		this.childNode = childNode;
	}

	/**
	 * Sets the treeNodeValue.
	 * @param treeNodeValue The treeNodeValue to set
	 */
	public void setTreeNodeValue(TreeNodeValue treeNodeValue) {
		this.treeNodeValue = treeNodeValue;
	}

}

⌨️ 快捷键说明

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