public class DefaultTreeTableCellEditor extends DefaultCellEditor implements ITreeTableCellEditor
TreeTable.setCellEditor(Class, ITreeTableCellEditor)
,
Serialized FormDefaultCellEditor.EditorDelegate
clickCountToStart, delegate, editorComponent
changeEvent, listenerList
Constructor and Description |
---|
DefaultTreeTableCellEditor(JCheckBox checkBox)
Constructs a new cell editor.
|
DefaultTreeTableCellEditor(JComboBox comboBox)
Constructs a new cell editor.
|
DefaultTreeTableCellEditor(JTextField textField)
Constructs a new cell editor.
|
Modifier and Type | Method and Description |
---|---|
Component |
getTreeTableCellEditorComponent(TreeTable tree,
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.
|
cancelCellEditing, getCellEditorValue, getClickCountToStart, getComponent, getTableCellEditorComponent, getTreeCellEditorComponent, isCellEditable, setClickCountToStart, shouldSelectCell, stopCellEditing
addCellEditorListener, fireEditingCanceled, fireEditingStopped, getCellEditorListeners, removeCellEditorListener
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addCellEditorListener, cancelCellEditing, getCellEditorValue, isCellEditable, removeCellEditorListener, shouldSelectCell, stopCellEditing
public DefaultTreeTableCellEditor(JTextField textField)
textField
- the text field that will be used for editing the cell valuepublic DefaultTreeTableCellEditor(JCheckBox checkBox)
checkBox
- the checkbox that will be used for editing the cell valuepublic DefaultTreeTableCellEditor(JComboBox comboBox)
comboBox
- the combo box that will be used for editing the cell valuepublic Component getTreeTableCellEditorComponent(TreeTable tree, Object value, boolean selected, int row, int column)
ITreeTableCellEditor
getTreeTableCellEditorComponent
in interface ITreeTableCellEditor
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 locatedCopyright © 2006–2016 Dirk Lemmermann Software & Consulting. All rights reserved.