public interface ITreeTableCellRenderer extends IRenderer
TreeTable.setCellRenderer(Class, ITreeTableCellRenderer)
,
TableCellRenderer
Modifier and Type | Method and Description |
---|---|
Component |
getTreeTableCellRendererComponent(TreeTable table,
Object node,
Object value,
int depth,
boolean selected,
boolean expanded,
boolean leaf,
int row,
int column,
boolean focus)
Returns a component suitable for rendering the given value object inside
a cell of the given tree table.
|
Component getTreeTableCellRendererComponent(TreeTable table, Object node, Object value, int depth, boolean selected, boolean expanded, boolean leaf, int row, int column, boolean focus)
table
- the tree table component in which the cell gets rendererdnode
- the hierarchy node that gets displayed in the row where the
cell is locatedvalue
- the value object stored in the celldepth
- the hierarcy depth of the row in which the cell is locatedselected
- a flag signalling whether the cell has been selected by the
userexpanded
- a flag signalling whether the hierarcy node to which the cell
belongs is currently in an expanded state (opened)leaf
- a flag signalling whether the hierarchy node to which the cell
belongs is a leaf (has no children)row
- the row in which the cell is locatedcolumn
- the column in which the cell is located (not the model index)focus
- a flag signalling whether the cell is the focus ownerCopyright © 2006–2020 Dirk Lemmermann Software & Consulting. All rights reserved.