Class EnumCellEditor<E extends java.lang.Enum<E>>

  • All Implemented Interfaces:
    java.io.Serializable, javax.swing.CellEditor, javax.swing.table.TableCellEditor

    public abstract class EnumCellEditor<E extends java.lang.Enum<E>>
    extends javax.swing.AbstractCellEditor
    implements javax.swing.table.TableCellEditor
    Author:
    klausj
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.lang.Class<E> enumClass  
      • Fields inherited from class javax.swing.AbstractCellEditor

        changeEvent, listenerList
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected EnumCellEditor​(java.lang.Class<E> enumClass)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object getCellEditorValue()  
      java.awt.Component getTableCellEditorComponent​(javax.swing.JTable arg0, java.lang.Object value, boolean arg2, int arg3, int arg4)  
      • Methods inherited from class javax.swing.AbstractCellEditor

        addCellEditorListener, cancelCellEditing, fireEditingCanceled, fireEditingStopped, getCellEditorListeners, isCellEditable, removeCellEditorListener, shouldSelectCell, stopCellEditing
      • Methods inherited from interface javax.swing.CellEditor

        addCellEditorListener, cancelCellEditing, isCellEditable, removeCellEditorListener, shouldSelectCell, stopCellEditing
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • enumClass

        protected java.lang.Class<E extends java.lang.Enum<E>> enumClass
    • Constructor Detail

      • EnumCellEditor

        protected EnumCellEditor​(java.lang.Class<E> enumClass)
    • Method Detail

      • getCellEditorValue

        public java.lang.Object getCellEditorValue()
        Specified by:
        getCellEditorValue in interface javax.swing.CellEditor
      • getTableCellEditorComponent

        public java.awt.Component getTableCellEditorComponent​(javax.swing.JTable arg0,
                                                              java.lang.Object value,
                                                              boolean arg2,
                                                              int arg3,
                                                              int arg4)
        Specified by:
        getTableCellEditorComponent in interface javax.swing.table.TableCellEditor