Class EditableHeader

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, EventListener, Accessible, CellEditorListener, TableColumnModelListener

public class EditableHeader extends JTableHeader implements CellEditorListener
See Also:
  • Field Details

    • HEADER_ROW

      public final int HEADER_ROW
      See Also:
    • editingColumn

      protected transient int editingColumn
    • cellEditor

      protected transient TableCellEditor cellEditor
    • editorComp

      protected transient Component editorComp
  • Constructor Details

  • Method Details

    • updateUI

      public void updateUI()
      Overrides:
      updateUI in class JTableHeader
    • recreateTableColumn

      protected void recreateTableColumn(TableColumnModel columnModel)
    • editCellAt

      public boolean editCellAt(int index)
    • editCellAt

      public boolean editCellAt(int index, EventObject e)
    • isCellEditable

      public boolean isCellEditable(int index)
    • getCellEditor

      public TableCellEditor getCellEditor(int index)
    • setCellEditor

      public void setCellEditor(TableCellEditor newEditor)
    • prepareEditor

      public Component prepareEditor(TableCellEditor editor, int index)
    • getCellEditor

      public TableCellEditor getCellEditor()
    • getEditorComponent

      public Component getEditorComponent()
    • setEditingColumn

      public void setEditingColumn(int aColumn)
    • getEditingColumn

      public int getEditingColumn()
    • removeEditor

      public void removeEditor()
    • isEditing

      public boolean isEditing()
    • editingStopped

      public void editingStopped(ChangeEvent e)
      Specified by:
      editingStopped in interface CellEditorListener
    • editingCanceled

      public void editingCanceled(ChangeEvent e)
      Specified by:
      editingCanceled in interface CellEditorListener