public class MetierSeasonInfoTargetSpeciesTableModel extends AbstractTableModel implements TableCellRenderer, SensitivityTableModel
MetierSeasonInfo#TargetSpecies.
Columns :
| Modifier and Type | Field and Description |
|---|---|
static String[] |
COLUMN_NAMES
Columns names.
|
protected List<TargetSpecies> |
targetSpeciesList |
listenerList| Constructor and Description |
|---|
MetierSeasonInfoTargetSpeciesTableModel()
Empty constructor.
|
MetierSeasonInfoTargetSpeciesTableModel(List<TargetSpecies> targetSpeciesList)
Constructor with data.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
getBeanAtRow(int rowIndex)
Get value at row.
|
Class<?> |
getColumnClass(int columnIndex) |
int |
getColumnCount() |
String |
getColumnName(int columnIndex) |
String |
getPropertyAtColumn(int column)
Get property name at column.
|
int |
getRowCount() |
Component |
getTableCellRendererComponent(JTable table,
Object value,
boolean isSelected,
boolean hasFocus,
int row,
int column) |
Object |
getValueAt(int rowIndex,
int columnIndex) |
boolean |
isCellEditable(int rowIndex,
int columnIndex) |
void |
setTargetSpecies(List<TargetSpecies> targetSpeciesList)
Set target species list.
|
void |
setValueAt(Object value,
int rowIndex,
int columnIndex) |
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListenerpublic static final String[] COLUMN_NAMES
protected List<TargetSpecies> targetSpeciesList
public MetierSeasonInfoTargetSpeciesTableModel()
public MetierSeasonInfoTargetSpeciesTableModel(List<TargetSpecies> targetSpeciesList)
targetSpeciesList - initial target speciespublic void setTargetSpecies(List<TargetSpecies> targetSpeciesList)
targetSpeciesList - the targetSpecies to setpublic int getColumnCount()
getColumnCount in interface TableModelpublic int getRowCount()
getRowCount in interface TableModelpublic Object getValueAt(int rowIndex, int columnIndex)
getValueAt in interface TableModelpublic Class<?> getColumnClass(int columnIndex)
getColumnClass in interface TableModelgetColumnClass in class AbstractTableModelpublic String getColumnName(int columnIndex)
getColumnName in interface TableModelgetColumnName in class AbstractTableModelpublic boolean isCellEditable(int rowIndex,
int columnIndex)
isCellEditable in interface TableModelisCellEditable in class AbstractTableModelpublic void setValueAt(Object value, int rowIndex, int columnIndex)
setValueAt in interface TableModelsetValueAt in class AbstractTableModelpublic Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column)
getTableCellRendererComponent in interface TableCellRendererpublic String getPropertyAtColumn(int column)
SensitivityTableModelgetPropertyAtColumn in interface SensitivityTableModelcolumn - columnnull)public Object getBeanAtRow(int rowIndex)
SensitivityTableModelgetBeanAtRow in interface SensitivityTableModelrowIndex - row indexCopyright © 1999–2015 CodeLutin. All rights reserved.