Package mekhq.gui.model
Class ObjectiveTableModel
java.lang.Object
javax.swing.table.AbstractTableModel
mekhq.gui.model.ObjectiveTableModel
- All Implemented Interfaces:
- Serializable,- TableModel
TableModel for displaying information about a scenario objective
- See Also:
- 
Nested Class SummaryNested Classes
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intprotected String[]protected List<ScenarioObjective>static final intFields inherited from class javax.swing.table.AbstractTableModellistenerList
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddObjective(ScenarioObjective objective) intgetAlignment(int col) intgetColumnName(int column) intgetColumnWidth(int c) getObjectiveAt(int row) intgetTooltip(int row, int col) getValueAt(int row, int col) voidsetData(List<ScenarioObjective> objectives) Methods inherited from class javax.swing.table.AbstractTableModeladdTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAt
- 
Field Details- 
columnNames
- 
data
- 
COL_CRITERIONpublic static final int COL_CRITERION- See Also:
 
- 
COL_AMOUNTpublic static final int COL_AMOUNT- See Also:
 
- 
COL_TIMEpublic static final int COL_TIME- See Also:
 
- 
COL_SUCCESS_EFFECTpublic static final int COL_SUCCESS_EFFECT- See Also:
 
- 
COL_FAILURE_EFFECTpublic static final int COL_FAILURE_EFFECT- See Also:
 
- 
N_COLpublic static final int N_COL- See Also:
 
 
- 
- 
Constructor Details- 
ObjectiveTableModel
 
- 
- 
Method Details- 
getRowCountpublic int getRowCount()
- 
getColumnCountpublic int getColumnCount()
- 
getColumnName- Specified by:
- getColumnNamein interface- TableModel
- Overrides:
- getColumnNamein class- AbstractTableModel
 
- 
addObjective
- 
getValueAt
- 
getObjectiveAt
- 
getColumnWidthpublic int getColumnWidth(int c) 
- 
getAlignmentpublic int getAlignment(int col) 
- 
getTooltip
- 
setData
- 
getRenderer
 
-