Package fr.ifremer.isisfish.ui.script
Class FileSelectionTableModel
java.lang.Object
javax.swing.table.AbstractTableModel
fr.ifremer.isisfish.ui.script.FileSelectionTableModel
- All Implemented Interfaces:
Serializable
,TableModel
File selection table model displayed in import/export script
for files selection (first column is checkbox).
- Version:
- $Revision$ Last update : $Date$ By : $Author$
- Author:
- chatellier
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionAll files displayed in table.static final String[]
Column names.Only selected files.Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionClass<?>
getColumnClass
(int columnIndex) int
getColumnName
(int column) int
Get current files selection.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) Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener
-
Field Details
-
COLUMN_NAMES
Column names. -
availableFiles
All files displayed in table. -
selectedFiles
Only selected files.
-
-
Constructor Details
-
FileSelectionTableModel
Constructor.- Parameters:
availableFiles
- available file list
-
-
Method Details
-
getColumnCount
public int getColumnCount() -
getColumnName
- Specified by:
getColumnName
in interfaceTableModel
- Overrides:
getColumnName
in classAbstractTableModel
-
getColumnClass
- Specified by:
getColumnClass
in interfaceTableModel
- Overrides:
getColumnClass
in classAbstractTableModel
-
isCellEditable
public boolean isCellEditable(int rowIndex, int columnIndex) - Specified by:
isCellEditable
in interfaceTableModel
- Overrides:
isCellEditable
in classAbstractTableModel
-
getRowCount
public int getRowCount() -
getValueAt
-
setValueAt
- Specified by:
setValueAt
in interfaceTableModel
- Overrides:
setValueAt
in classAbstractTableModel
-
setAllChecked
public void setAllChecked(boolean selection) Set all files selected.- Parameters:
selection
-true
to select all files,false
to unselect all files
-
getSelectedFiles
Get current files selection.- Returns:
- list of selected file path
-