Package net.sf.freecol.client.gui.panel
Class PlayersTable.AdvantageCellEditor
- java.lang.Object
-
- javax.swing.AbstractCellEditor
-
- javax.swing.DefaultCellEditor
-
- net.sf.freecol.client.gui.panel.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.
-
-
Field Summary
Fields Modifier and Type Field Description private javax.swing.JComboBox<EuropeanNationType>
box
-
Constructor Summary
Constructors Modifier Constructor Description AdvantageCellEditor(java.util.List<EuropeanNationType> nationTypes)
A standard constructor.private
AdvantageCellEditor(javax.swing.JComboBox<EuropeanNationType> box)
Internal constructor.
-
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
-
-
-
-
Field Detail
-
box
private final javax.swing.JComboBox<EuropeanNationType> box
-
-
Constructor Detail
-
AdvantageCellEditor
private AdvantageCellEditor(javax.swing.JComboBox<EuropeanNationType> box)
Internal constructor.- Parameters:
box
- TheJComboBox
to edit.
-
AdvantageCellEditor
public AdvantageCellEditor(java.util.List<EuropeanNationType> nationTypes)
A standard constructor.- Parameters:
nationTypes
- The list ofEuropeanNationType
s.
-
-