com.dlsc.flexgantt.swing.treetable
Class TreeTable.ColorRenderer
java.lang.Object
javax.swing.AbstractCellEditor
com.dlsc.flexgantt.swing.treetable.TreeTable.ColorRenderer
- All Implemented Interfaces:
- ITreeTableCellRenderer, java.io.Serializable, javax.swing.CellEditor
- Enclosing class:
- TreeTable
public static class TreeTable.ColorRenderer
- extends javax.swing.AbstractCellEditor
- implements ITreeTableCellRenderer
A renderer for values of type Color
.
- Since:
- 1.0
- See Also:
- Serialized Form
Fields inherited from class javax.swing.AbstractCellEditor |
changeEvent, listenerList |
Method Summary |
java.lang.Object |
getCellEditorValue()
|
java.awt.Component |
getTreeTableCellRendererComponent(TreeTable tree,
java.lang.Object node,
java.lang.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. |
Methods inherited from class javax.swing.AbstractCellEditor |
addCellEditorListener, cancelCellEditing, fireEditingCanceled, fireEditingStopped, getCellEditorListeners, isCellEditable, removeCellEditorListener, shouldSelectCell, stopCellEditing |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TreeTable.ColorRenderer
public TreeTable.ColorRenderer()
getTreeTableCellRendererComponent
public java.awt.Component getTreeTableCellRendererComponent(TreeTable tree,
java.lang.Object node,
java.lang.Object value,
int depth,
boolean selected,
boolean expanded,
boolean leaf,
int row,
int column,
boolean hasFocus)
- Description copied from interface:
ITreeTableCellRenderer
- Returns a component suitable for rendering the given value object inside
a cell of the given tree table.
- Specified by:
getTreeTableCellRendererComponent
in interface ITreeTableCellRenderer
- Parameters:
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 owner
- Returns:
- a component suitable for rendering the given value object in the
given table cell
getCellEditorValue
public java.lang.Object getCellEditorValue()
- Specified by:
getCellEditorValue
in interface javax.swing.CellEditor