[Groovy] Class ButtonOrTextEditor
- groovy.console.ui.ButtonOrTextEditor
-
All Implemented Interfaces and Traits:
-
TableCellEditor
@CompileStatic
class ButtonOrTextEditor
extends AbstractCellEditor
implements TableCellEditor
A table cell editor that will return a button automatically if it is the cell value, a text field if the value exists, or null otherwise (non editable cell). This hack allows to interact with buttons in a cell.
Field Summary
Constructor Summary
Methods Summary
Inherited Methods Summary
Inherited Methods
Methods inherited from class |
Name |
class AbstractCellEditor |
isCellEditable, stopCellEditing, addCellEditorListener, cancelCellEditing, removeCellEditorListener, shouldSelectCell, getCellEditorListeners, wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll, getCellEditorValue |
Field Detail
protected JComponent editorComponent
The Swing component being edited.
Constructor Detail
ButtonOrTextEditor()
Method Detail
@Override Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column)