[Groovy] Class ButtonOrTextEditor
- groovy.inspect.swingui.ButtonOrTextEditor
- All Implemented Interfaces and Traits:
- TableCellEditor
@CompileStatic @Deprecated 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
Modifiers | Name | Description |
---|---|---|
protected JComponent | editorComponent | The Swing component being edited. |
Constructor Summary
Constructor and description |
---|
ButtonOrTextEditor
() |
Methods Summary
Type Params | Return Type | Name and description |
---|---|---|
Object |
getCellEditorValue() | |
Component |
getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column) |
Inherited Methods Summary
Methods inherited from class | Name |
---|---|
class AbstractCellEditor | isCellEditable, shouldSelectCell, getCellEditorListeners, stopCellEditing, addCellEditorListener, cancelCellEditing, removeCellEditorListener, 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 Object getCellEditorValue()
@Override Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column)
© 2003-2020 The Apache Software Foundation
Licensed under the Apache license.
https://docs.groovy-lang.org/3.0.7/html/gapi/groovy/inspect/swingui/ButtonOrTextEditor.html