1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
package com.vci.client.portal.NewNewUI.Export;
 
import java.awt.Color;
import java.io.Serializable;
 
/**
 * 导出节点所继承的父类,主要用来设置是否为子节点
 * 在ExportTreeCellRenderer中用到
 * @author VCI-STGK004
 *
 */
public abstract class BaseExportNode implements Serializable{
    private static final long serialVersionUID = 1L;
    public static final int IS_LEAF = 1 ;
    public static final int IS_NOT_LEAF = 2 ;
    public static final int IS_Expanded_LEAF = 3 ;
    public static final int IS_A_Message = 4 ;
    
    protected int leaf = 1;
    protected Object bean ;
    protected Color fontColor = Color.BLACK;
    protected String message = null;
    
    public String getMessage() {
        return message;
    }
 
    public void setMessage(String message) {
        this.fontColor = Color.red;
        this.message = message;
    }
    public void setMessage(String message,Color fontColor) {
    this.setMessage(message);
    this.setFontColor(fontColor);
    }
 
    public Color getFontColor() {
        return fontColor;
    }
 
    public void setFontColor(Color fontColor) {
        this.fontColor = fontColor;
    }
 
    public abstract Object  getBean() ; 
 
    public void setBean(Object bean) {
        this.bean = bean;
    }
    
    public int getLeaf() {
        return leaf;
    }
 
    public void setLeaf(int leaf) {
        this.leaf = leaf;
    }
  /**
   * 将作为节点名称显示
   */
    public abstract String toString();    
    
 
}