public class FileSelectionTableModel extends AbstractTableModel
Modifier and Type | Field and Description |
---|---|
protected List<String> |
availableFiles
All files displayed in table.
|
static String[] |
COLUMN_NAMES
Column names.
|
protected List<String> |
selectedFiles
Only selected files.
|
listenerList
Constructor and Description |
---|
FileSelectionTableModel(List<String> availableFiles)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Class<?> |
getColumnClass(int columnIndex) |
int |
getColumnCount() |
String |
getColumnName(int column) |
int |
getRowCount() |
List<String> |
getSelectedFiles()
Get current files selection.
|
Object |
getValueAt(int rowIndex,
int columnIndex) |
boolean |
isCellEditable(int rowIndex,
int columnIndex) |
void |
setAllChecked(boolean selection)
Set all files selected.
|
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
public int getColumnCount()
public String getColumnName(int column)
getColumnName
in interface TableModel
getColumnName
in class AbstractTableModel
public Class<?> getColumnClass(int columnIndex)
getColumnClass
in interface TableModel
getColumnClass
in class AbstractTableModel
public boolean isCellEditable(int rowIndex, int columnIndex)
isCellEditable
in interface TableModel
isCellEditable
in class AbstractTableModel
public int getRowCount()
public Object getValueAt(int rowIndex, int columnIndex)
public void setValueAt(Object value, int rowIndex, int columnIndex)
setValueAt
in interface TableModel
setValueAt
in class AbstractTableModel
public void setAllChecked(boolean selection)
selection
- true
to select all files, false
to unselect all filesCopyright © 1999–2020 CodeLutin. All rights reserved.