com.dlsc.flexgantt.swing.treetable
Class TreeTable.ColorEditor
java.lang.Object
javax.swing.AbstractCellEditor
com.dlsc.flexgantt.swing.treetable.TreeTable.ColorEditor
- All Implemented Interfaces:
- ITreeTableCellEditor, java.io.Serializable, javax.swing.CellEditor
- Enclosing class:
- TreeTable
public static class TreeTable.ColorEditor
- extends javax.swing.AbstractCellEditor
- implements ITreeTableCellEditor
An editor 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 |
getTreeTableCellEditorComponent(TreeTable tree,
java.lang.Object value,
boolean selected,
int row,
int column)
Returns the editor component that will be placed inside the cell so that
the user can edit the cell's value. |
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 |
Methods inherited from interface javax.swing.CellEditor |
addCellEditorListener, cancelCellEditing, isCellEditable, removeCellEditorListener, shouldSelectCell, stopCellEditing |
TreeTable.ColorEditor
public TreeTable.ColorEditor()
- Constructs a new editor for
Color
values.
- Since:
- 1.0
getTreeTableCellEditorComponent
public java.awt.Component getTreeTableCellEditorComponent(TreeTable tree,
java.lang.Object value,
boolean selected,
int row,
int column)
- Description copied from interface:
ITreeTableCellEditor
- Returns the editor component that will be placed inside the cell so that
the user can edit the cell's value.
- Specified by:
getTreeTableCellEditorComponent
in interface ITreeTableCellEditor
- Parameters:
tree
- the tree table component to which the editor component will be
addedvalue
- the current value shown in the tree table cellselected
- a flag that signals whether the row in which the cell is
located is currently selectedrow
- the row in which the cell is locatedcolumn
- the column in which the cell is located
- Returns:
- a component used for editing the value of the given tree table
cell
getCellEditorValue
public java.lang.Object getCellEditorValue()
- Specified by:
getCellEditorValue
in interface javax.swing.CellEditor