public class DefaultSelectableBandsTableModel extends javax.swing.table.AbstractTableModel implements SelectableBandsTableModel
Modifier and Type | Class and Description |
---|---|
static class |
DefaultSelectableBandsTableModel.SelectableBand |
Constructor and Description |
---|
DefaultSelectableBandsTableModel(BandInfo[] bandsInfo) |
Modifier and Type | Method and Description |
---|---|
void |
down(int rowIndex) |
java.lang.Class<?> |
getColumnClass(int col) |
int |
getColumnCount() |
java.lang.String |
getColumnName(int column) |
int |
getRowCount() |
java.util.List<java.lang.Integer> |
getSelectedBands() |
java.lang.Object |
getValueAt(int rowIndex,
int columnIndex) |
boolean |
isCellEditable(int row,
int col) |
void |
selectAllBands() |
void |
selectBand(int band) |
void |
setValueAt(java.lang.Object aValue,
int rowIndex,
int columnIndex) |
void |
unselectAllBands() |
void |
unselectBand(int band) |
void |
up(int rowIndex) |
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener
public DefaultSelectableBandsTableModel(BandInfo[] bandsInfo)
bandsInfo
- public int getRowCount()
getRowCount
in interface javax.swing.table.TableModel
public int getColumnCount()
getColumnCount
in interface javax.swing.table.TableModel
public java.lang.Object getValueAt(int rowIndex, int columnIndex)
getValueAt
in interface javax.swing.table.TableModel
public void setValueAt(java.lang.Object aValue, int rowIndex, int columnIndex)
setValueAt
in interface javax.swing.table.TableModel
setValueAt
in class javax.swing.table.AbstractTableModel
public java.lang.String getColumnName(int column)
getColumnName
in interface javax.swing.table.TableModel
getColumnName
in class javax.swing.table.AbstractTableModel
public boolean isCellEditable(int row, int col)
isCellEditable
in interface javax.swing.table.TableModel
isCellEditable
in class javax.swing.table.AbstractTableModel
public java.lang.Class<?> getColumnClass(int col)
getColumnClass
in interface javax.swing.table.TableModel
getColumnClass
in class javax.swing.table.AbstractTableModel
public void up(int rowIndex)
up
in interface SelectableBandsTableModel
rowIndex
- public void down(int rowIndex)
down
in interface SelectableBandsTableModel
rowIndex
- public java.util.List<java.lang.Integer> getSelectedBands()
getSelectedBands
in interface SelectableBandsTableModel
public void selectBand(int band)
selectBand
in interface SelectableBandsTableModel
public void unselectBand(int band)
unselectBand
in interface SelectableBandsTableModel
public void selectAllBands()
selectAllBands
in interface SelectableBandsTableModel
public void unselectAllBands()
unselectAllBands
in interface SelectableBandsTableModel