Package: groovy.inspect.swingui

## [Groovy] Class ButtonOrTextEditor

- groovy.inspect.swingui.ButtonOrTextEditor

- All Implemented Interfaces and Traits:
    TableCellEditor

      @CompileStatic
      class ButtonOrTextEditor
      extends AbstractCellEditor

  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

    Fields
    Modifiers | Name | Description
    --- | --- | ---
    `protected JComponent` | `editorComponent` | The Swing component being edited.

  - ### Methods Summary

    Methods
    Type Params | Return Type | Name and description
    --- | --- | ---
    `` | `Object` | `getCellEditorValue()`
    `` | `Component` | `getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column)`

  - ### Inherited Methods Summary

    Inherited Methods
    Methods inherited from class | Name
    --- | ---
    `class AbstractCellEditor` | `isCellEditable, getCellEditorListeners, shouldSelectCell, addCellEditorListener, cancelCellEditing, removeCellEditorListener, stopCellEditing, wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll, getCellEditorValue`
    `class Object` | `wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll`

- - ### Field Detail

    - #### protected JComponent editorComponent

      The Swing component being edited.

  - ### Method Detail

    - #### @Override Object getCellEditorValue()

    - #### @Override Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column)