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();
|
|
|
}
|