Class PlayersTable.AdvantageCellEditor

  • All Implemented Interfaces:
    java.io.Serializable, javax.swing.CellEditor, javax.swing.table.TableCellEditor, javax.swing.tree.TreeCellEditor
    Enclosing class:
    PlayersTable

    private static class PlayersTable.AdvantageCellEditor
    extends javax.swing.DefaultCellEditor
    A table cell editor that can be used to select a nation.
    • Nested Class Summary

      • Nested classes/interfaces inherited from class javax.swing.DefaultCellEditor

        javax.swing.DefaultCellEditor.EditorDelegate
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private javax.swing.JComboBox<EuropeanNationType> box  
      • Fields inherited from class javax.swing.DefaultCellEditor

        clickCountToStart, delegate, editorComponent
      • Fields inherited from class javax.swing.AbstractCellEditor

        changeEvent, listenerList
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object getCellEditorValue()
      • Methods inherited from class javax.swing.DefaultCellEditor

        cancelCellEditing, getClickCountToStart, getComponent, getTableCellEditorComponent, getTreeCellEditorComponent, isCellEditable, setClickCountToStart, shouldSelectCell, stopCellEditing
      • Methods inherited from class javax.swing.AbstractCellEditor

        addCellEditorListener, fireEditingCanceled, fireEditingStopped, getCellEditorListeners, removeCellEditorListener
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface javax.swing.CellEditor

        addCellEditorListener, removeCellEditorListener
    • Constructor Detail

      • AdvantageCellEditor

        private AdvantageCellEditor​(javax.swing.JComboBox<EuropeanNationType> box)
        Internal constructor.
        Parameters:
        box - The JComboBox to edit.
      • AdvantageCellEditor

        public AdvantageCellEditor​(java.util.List<EuropeanNationType> nationTypes)
        A standard constructor.
        Parameters:
        nationTypes - The list of EuropeanNationTypes.
    • Method Detail

      • getCellEditorValue

        public java.lang.Object getCellEditorValue()
        Specified by:
        getCellEditorValue in interface javax.swing.CellEditor
        Overrides:
        getCellEditorValue in class javax.swing.DefaultCellEditor