public static class TreeTable.ColorRenderer extends AbstractCellEditor implements ITreeTableCellRenderer
Color
.changeEvent, listenerList
Constructor and Description |
---|
ColorRenderer() |
Modifier and Type | Method and Description |
---|---|
Object |
getCellEditorValue() |
Component |
getTreeTableCellRendererComponent(TreeTable tree,
Object node,
Object value,
int depth,
boolean selected,
boolean expanded,
boolean leaf,
int row,
int column,
boolean hasFocus)
Returns a component suitable for rendering the given value object inside
a cell of the given tree table.
|
addCellEditorListener, cancelCellEditing, fireEditingCanceled, fireEditingStopped, getCellEditorListeners, isCellEditable, removeCellEditorListener, shouldSelectCell, stopCellEditing
public Component getTreeTableCellRendererComponent(TreeTable tree, Object node, Object value, int depth, boolean selected, boolean expanded, boolean leaf, int row, int column, boolean hasFocus)
ITreeTableCellRenderer
getTreeTableCellRendererComponent
in interface ITreeTableCellRenderer
tree
- 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)hasFocus
- a flag signalling whether the cell is the focus ownerpublic Object getCellEditorValue()
getCellEditorValue
in interface CellEditor
Copyright © 2006–2020 Dirk Lemmermann Software & Consulting. All rights reserved.