|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.swing.visuals.dataselectors.dataitems.DisabledDataItemRenderer
public class DisabledDataItemRenderer
A tree cell renderer implementation that allows the nodes of a tree to appear as disabled nodes.
Field Summary | |
---|---|
static java.lang.String |
COLUMNS
Node category key for grouping the nodes as Columns |
static java.lang.String |
DIMENSIONS
Node category key for grouping the nodes as Dimensions |
protected javax.swing.Icon |
disabledClosedIcon
The icon for a disabled collapsed node |
protected javax.swing.Icon |
disabledLeafIcon
The icon for a disabled leaf node |
protected javax.swing.Icon |
disabledOpenIcon
The icon for an disabled expanded node |
static java.lang.String |
HIERARCHIES
Node category key for grouping the nodes as Hierarchies |
static java.lang.String |
LEVELS
Node category key for grouping the nodes as Levels |
static java.lang.String |
MEASURES
Node category key for grouping the nodes as Measures |
Constructor Summary | |
---|---|
DisabledDataItemRenderer()
Default constructor |
Method Summary | |
---|---|
java.awt.Component |
getTreeCellRendererComponent(javax.swing.JTree tree,
java.lang.Object value,
boolean sel,
boolean expanded,
boolean leaf,
int row,
boolean hasFocus)
Configures a renderer based on values on the passed in components. |
void |
setDisabledClosedIcon(javax.swing.Icon icon)
Sets the disabled collapsed node icon |
void |
setDisabledLeafIcon(javax.swing.Icon icon)
Sets the disabled leaf node icon |
void |
setDisabledOpenIcon(javax.swing.Icon icon)
Sets the disabled expanded node icon |
Field Detail |
---|
protected javax.swing.Icon disabledLeafIcon
protected javax.swing.Icon disabledOpenIcon
protected javax.swing.Icon disabledClosedIcon
public static final java.lang.String HIERARCHIES
public static final java.lang.String LEVELS
public static final java.lang.String MEASURES
public static final java.lang.String DIMENSIONS
public static final java.lang.String COLUMNS
Constructor Detail |
---|
public DisabledDataItemRenderer()
Method Detail |
---|
public java.awt.Component getTreeCellRendererComponent(javax.swing.JTree tree, java.lang.Object value, boolean sel, boolean expanded, boolean leaf, int row, boolean hasFocus)
getTreeCellRendererComponent
in interface javax.swing.tree.TreeCellRenderer
getTreeCellRendererComponent
in class javax.swing.tree.DefaultTreeCellRenderer
tree
- - the JTree containing the nodevalue
- - the node to rendersel
- - true if the node is selectedexpanded
- - true if the node is expandedleaf
- - true if the node is a leaf noderow
- - the node's display rowhasFocus
- - true if the node has focuspublic void setDisabledLeafIcon(javax.swing.Icon icon)
icon
- - the disabled leaf node iconpublic void setDisabledOpenIcon(javax.swing.Icon icon)
icon
- - the disabled expanded iconpublic void setDisabledClosedIcon(javax.swing.Icon icon)
icon
- - the disabled collapsed icon
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |