com.scudata.ide.common.control.IconTreeRender Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of esproc Show documentation
Show all versions of esproc Show documentation
SPL(Structured Process Language) A programming language specially for structured data computing.
package com.scudata.ide.common.control;
import java.awt.Component;
import javax.swing.JTree;
import javax.swing.tree.DefaultTreeCellRenderer;
/**
* ??ʾͼ???????????ʾ??
*
*/
public class IconTreeRender extends DefaultTreeCellRenderer {
private static final long serialVersionUID = 1L;
/**
* ???캯??
*/
public IconTreeRender() {
}
/**
* ʵ?ֺ???????DefaultTreeCellRenderer?Ļ????ϼ???ͼ??
*/
public Component getTreeCellRendererComponent(JTree tree, Object value,
boolean sel, boolean expanded, boolean leaf, int row,
boolean hasFocus) {
super.getTreeCellRendererComponent(tree, value, sel, expanded, leaf,
row, hasFocus);
IconTreeNode node = (IconTreeNode) value;
setIcon(node.getDispIcon());
return this;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy