123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102 |
- /*
- * Created on 2006-5-29
- *
- * TODO To change the template for this generated file go to
- * Window - Preferences - Java - Code Style - Code Templates
- */
- package model.setup.constant;
- import com.toolkit.tree.TreeNode;
- /**
- * @author Administrator
- *
- * TODO To change the template for this generated type comment go to
- * Window - Preferences - Java - Code Style - Code Templates
- */
- public class ConstantTreeNode implements TreeNode{
- private String path;
- public String MouseEventName = "";
- public String NodeOnMouseEvent = "";
- public ConstantTreeNode(String[] nodeData, String codeName, String path, String nodeLinkPage) {
- this.path = path;
- this.nodeData = nodeData;
- this.codeName = codeName;
- this.nodeLinkPage = nodeLinkPage;
- }
- private String[] nodeData = null;
- private String nodeLinkPage = "";
- @SuppressWarnings("unused")
- private String codeName = "";
- /*
- * (non-Javadoc)
- *
- * @see com.commons.tree.TreeNode#getNodeID()
- */
- public String getNodeID() {
- return nodeData[0];
- }
- /**
- * @param strings
- */
- public void setNodeData(String[] nodeData) {
- this.nodeData = nodeData;
- }
- /*
- * (non-Javadoc)
- *
- * @see com.commons.tree.TreeNode#getNodeImagePath(boolean)
- */
- public String getNodeImagePath(boolean leaf) {
- return leaf ? path + "/admin/images/tree_images/topic.gif" : "" + path
- + "/admin/images/tree_images/toc_closed.gif";
- }
- /*
- * (non-Javadoc)
- *
- * @see com.commons.tree.TreeNode#getNodeTitle()
- */
- public String getNodeTitle() {
- return nodeData[1];
- }
- /*
- * (non-Javadoc)
- *
- * @see com.commons.tree.TreeNode#getNodeTitleLink()
- */
- public String getNodeTitleLink() {
- return nodeLinkPage;
- }
- /*
- * (non-Javadoc)
- *
- * @see com.commons.tree.TreeNode#getNodeOnMouseEvent()
- */
- public String getMouseEventName() {
- return MouseEventName;
- }
- /*
- * (non-Javadoc)
- *
- * @see com.commons.tree.TreeNode#getNodeOnMouseEvent()
- */
- public String getNodeOnMouseEvent() {
- return NodeOnMouseEvent;
- }
- public String getNodeType() {
- return null;
- }
- }
|