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, removeTableModelListener
public 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 TableModel
public int getRowCount()
getRowCount
in interface TableModel
public Object getValueAt(int rowIndex, int columnIndex)
getValueAt
in interface TableModel
public Class<?> getColumnClass(int columnIndex)
getColumnClass
in interface TableModel
getColumnClass
in class AbstractTableModel
public String getColumnName(int columnIndex)
getColumnName
in interface TableModel
getColumnName
in class AbstractTableModel
public boolean isCellEditable(int rowIndex, int columnIndex)
isCellEditable
in interface TableModel
isCellEditable
in class AbstractTableModel
public void setValueAt(Object value, int rowIndex, int columnIndex)
setValueAt
in interface TableModel
setValueAt
in class AbstractTableModel
public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column)
getTableCellRendererComponent
in interface TableCellRenderer
public String getPropertyAtColumn(int column)
SensitivityTableModel
getPropertyAtColumn
in interface SensitivityTableModel
column
- columnnull
)public Object getBeanAtRow(int rowIndex)
SensitivityTableModel
getBeanAtRow
in interface SensitivityTableModel
rowIndex
- row indexCopyright © 1999–2020 CodeLutin. All rights reserved.