Class SynchroTableModel
java.lang.Object
javax.swing.table.AbstractTableModel
javax.swing.table.DefaultTableModel
be.gaudry.swing.file.synchro.utils.SynchroTableModel
- All Implemented Interfaces:
IClearable
,IFileTableModel
,Serializable
,TableModel
The goal of this class is to add files synchro informations into a table.
Provided by the broldev.file.synchro.swing project.
- Since:
- 1.0 (Dec 05, 2011), broldev.file.synchro.swing 0.0.1-SNAPSHOT dependency
- Version:
- 1.0 (Dec 05, 2011)
- Author:
- Steph GAUDRY
- See Also:
- Serialized Form
-
Field Summary
Fields inherited from class javax.swing.table.DefaultTableModel
columnIdentifiers, dataVector
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
-
Constructor Summary
ConstructorDescriptionSynchroTableModel(RefreshSynchroParser sourceParser, RefreshSynchroParser targetParser)
Structure : Synchro type (seeESynchroDirection
) file type (extension) file name relative path -
Method Summary
Modifier and TypeMethodDescriptionvoid
add(ESynchroDirection synchro, String ext, String name, String relPath)
void
clear()
The expected behavior of the implementation is to put the informations into an uninitialized state.boolean
Class<?>
getColumnClass(int columnIndex)
getFileAt(int row)
getFiles(boolean selectedOnly)
Methods inherited from class javax.swing.table.DefaultTableModel
addColumn, addColumn, addColumn, addRow, addRow, convertToVector, convertToVector, getColumnCount, getColumnName, getDataVector, getRowCount, getValueAt, insertRow, insertRow, isCellEditable, moveRow, newDataAvailable, newRowsAdded, removeRow, rowsRemoved, setColumnCount, setColumnIdentifiers, setColumnIdentifiers, setDataVector, setDataVector, setNumRows, setRowCount, setValueAt
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface javax.swing.table.TableModel
addTableModelListener, getColumnCount, getColumnName, getRowCount, getValueAt, isCellEditable, removeTableModelListener, setValueAt
-
Constructor Details
-
SynchroTableModel
Structure :- Synchro type (see
ESynchroDirection
) - file type (extension)
- file name
- relative path
- Parameters:
sourceParser
-targetParser
-
- Synchro type (see
-
-
Method Details
-
add
-
contains
-
clear
public void clear()Description copied from interface:IClearable
The expected behavior of the implementation is to put the informations into an uninitialized state. See the implementation to know the fields affected by this method.- Specified by:
clear
in interfaceIClearable
-
getFiles
- Specified by:
getFiles
in interfaceIFileTableModel
-
getFileAt
- Specified by:
getFileAt
in interfaceIFileTableModel
- Parameters:
row
-- Returns:
File
at the given row, or null
-
getColumnClass
- Specified by:
getColumnClass
in interfaceTableModel
- Overrides:
getColumnClass
in classAbstractTableModel
-