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, removeTableModelListenerpublic static final String[] COLUMN_NAMES
public int getColumnCount()
public String getColumnName(int column)
getColumnName in interface TableModelgetColumnName in class AbstractTableModelpublic Class<?> getColumnClass(int columnIndex)
getColumnClass in interface TableModelgetColumnClass in class AbstractTableModelpublic boolean isCellEditable(int rowIndex,
int columnIndex)
isCellEditable in interface TableModelisCellEditable in class AbstractTableModelpublic int getRowCount()
public Object getValueAt(int rowIndex, int columnIndex)
public void setValueAt(Object value, int rowIndex, int columnIndex)
setValueAt in interface TableModelsetValueAt in class AbstractTableModelpublic void setAllChecked(boolean selection)
selection - true to select all files, false to unselect all filesCopyright © 1999–2015 CodeLutin. All rights reserved.