public class DefaultSpreadsheetCellEditor extends DefaultCellEditor implements ISpreadsheetCellEditor
SpreadsheetLayer.setCellEditor(Class, ISpreadsheetCellEditor)
,
Serialized FormDefaultCellEditor.EditorDelegate
clickCountToStart, delegate, editorComponent
changeEvent, listenerList
Constructor and Description |
---|
DefaultSpreadsheetCellEditor(JCheckBox checkBox)
Constructs a new cell editor.
|
DefaultSpreadsheetCellEditor(JComboBox comboBox)
Constructs a new cell editor.
|
DefaultSpreadsheetCellEditor(JTextField textField)
Constructs a new cell editor.
|
Modifier and Type | Method and Description |
---|---|
Component |
getSpreadsheetCellEditorComponent(SpreadsheetLayer spreadsheet,
Object value,
int row,
ITimeSpan span)
Returns a component for editing the spreadsheet cell at the given row and
time span.
|
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 DefaultSpreadsheetCellEditor(JTextField textField)
textField
- the text field that will be used for editing the cell valuepublic DefaultSpreadsheetCellEditor(JCheckBox checkBox)
checkBox
- the checkbox that will be used for editing the cell valuepublic DefaultSpreadsheetCellEditor(JComboBox comboBox)
comboBox
- the combo box that will be used for editing the cell valuepublic Component getSpreadsheetCellEditorComponent(SpreadsheetLayer spreadsheet, Object value, int row, ITimeSpan span)
ISpreadsheetCellEditor
getSpreadsheetCellEditorComponent
in interface ISpreadsheetCellEditor
spreadsheet
- the spreadsheet component that requests the cell editorvalue
- the current value of the cellrow
- the row in which the cell is locatedspan
- the time span of the cellCopyright © 2006–2020 Dirk Lemmermann Software & Consulting. All rights reserved.