123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147 |
- package com.xt.dsp.common;
- import java.util.HashMap;
- import java.util.Map;
- /**
- * 树类
- *
- */
- public class TreeNode {
- /**
- * 树id
- */
- protected String id;
- /**
- * 树tid可存放code代码
- */
- protected String tId;
- /**
- * 树名称
- */
- protected String name;
- /**
- * 父节点
- */
- protected String pId;
- /**
- * 是否父节点(父节点存在时,改字段可以不实用)
- */
- protected Long isParent;
- /**
- * icon图标
- */
- protected String iconSkin;
- /**
- * 节点是否可以展开
- */
- protected String open;
- protected String icon;
-
- /**
- * 自定义属性
- */
- private Map<String, String> attributes = new HashMap<String, String>();
-
- public String getIconSkin() {
- return this.iconSkin;
- }
- public String getId() {
- return this.id;
- }
- public Long getIsParent() {
- return this.isParent;
- }
- public String getName() {
- return this.name;
- }
- public String getOpen() {
- return this.open;
- }
- public String getpId() {
- return this.pId;
- }
- public String gettId() {
- return this.tId;
- }
- public void setIconSkin(String iconSkin) {
- this.iconSkin = iconSkin;
- }
- public void setId(String id) {
- this.id = id;
- }
- public void setIsParent(Long isParent) {
- this.isParent = isParent;
- }
- public void setName(String name) {
- this.name = name;
- }
- public void setOpen(String open) {
- this.open = open;
- }
- public void setpId(String pId) {
- this.pId = pId;
- }
- public void settId(String tId) {
- this.tId = tId;
- }
- public String getIcon() {
- return icon;
- }
- public void setIcon(String icon) {
- this.icon = icon;
- }
-
- public void addAttribute(String name, String value) {
- this.attributes.put(name, value);
- }
- public String getAttribute(String name) {
- return this.attributes.get(name);
- }
- public Map<String, String> getAttributes() {
- return this.attributes;
- }
- }
|