Package mekhq.gui.model
Class LootTableModel
java.lang.Object
javax.swing.table.AbstractTableModel
mekhq.gui.model.LootTableModel
- All Implemented Interfaces:
Serializable
,TableModel
A table model for displaying loot for scenarios and missions
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
protected String[]
static final int
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
int
getAlignment
(int col) Class<?>
getColumnClass
(int c) int
getColumnName
(int column) int
getColumnWidth
(int c) getLootAt
(int row) int
getTooltip
(int row, int col) getValueAt
(int row, int col) boolean
isCellEditable
(int row, int col) void
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener, setValueAt
-
Field Details
-
columnNames
-
data
-
COL_NAME
public static final int COL_NAME- See Also:
-
COL_MONEY
public static final int COL_MONEY- See Also:
-
COL_MEKS
public static final int COL_MEKS- See Also:
-
COL_PARTS
public static final int COL_PARTS- See Also:
-
N_COL
public static final int N_COL- See Also:
-
-
Constructor Details
-
LootTableModel
-
-
Method Details
-
getRowCount
public int getRowCount() -
getColumnCount
public int getColumnCount() -
getColumnName
- Specified by:
getColumnName
in interfaceTableModel
- Overrides:
getColumnName
in classAbstractTableModel
-
getValueAt
-
isCellEditable
public boolean isCellEditable(int row, int col) - Specified by:
isCellEditable
in interfaceTableModel
- Overrides:
isCellEditable
in classAbstractTableModel
-
getColumnClass
- Specified by:
getColumnClass
in interfaceTableModel
- Overrides:
getColumnClass
in classAbstractTableModel
-
getLootAt
-
addLoot
-
getAllLoot
-
getColumnWidth
public int getColumnWidth(int c) -
getAlignment
public int getAlignment(int col) -
getTooltip
-
setData
-
getRenderer
-