vc.gui.client.handling
Class FileTableModal
java.lang.Object
|
+--javax.swing.table.AbstractTableModel
|
+--vc.gui.common.handling.GenericTableModel
|
+--vc.gui.client.handling.FileTableModal
- All Implemented Interfaces:
- java.io.Serializable, javax.swing.table.TableModel
- public class FileTableModal
- extends GenericTableModel
FileTableModal is the model(pattern) class for the GUI classes that show the
details of files in a table. This manages the information about the files and it
offers a standerdized interface for presinting the information to the GUI classes.
- See Also:
- Serialized Form
|
Field Summary |
java.lang.String |
directoryID
ID of the diretory whose files are being displayed currently |
| Fields inherited from class javax.swing.table.AbstractTableModel |
listenerList |
|
Constructor Summary |
FileTableModal(java.lang.String[] columnNames,
java.util.Vector data)
Constructs and initializes the object with the data from parameteres and
with the help of super class functionality |
|
Method Summary |
void |
addFilesToTable(java.lang.String directoryID,
File[] files)
This adds multiple files to the table and displays them. |
void |
changeCheckingStatusOfFileInTable(int index,
java.lang.String fileID,
boolean ckeckedOut,
java.lang.String checkOutUser)
This changes the checking status of a particular file being shown in the table |
void |
deleteFileInTable(int index,
java.lang.String fileID)
This deletes a particular file being shown in the table |
void |
refreshRowsFromFileData()
Refreshes the content and display of the files of a directory whose files
are being shown currently |
void |
updateFileInTable(int index,
File file)
This updates a particular file being shown in the table |
| Methods inherited from class javax.swing.table.AbstractTableModel |
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, isCellEditable, removeTableModelListener, setValueAt |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
directoryID
public java.lang.String directoryID
- ID of the diretory whose files are being displayed currently
FileTableModal
public FileTableModal(java.lang.String[] columnNames,
java.util.Vector data)
- Constructs and initializes the object with the data from parameteres and
with the help of super class functionality
- Parameters:
columnNames - Column names or heading of the table contentsdata - a vector of vectors where outer vector represents a row of data
and inner vector represents data for columns in a row
addFilesToTable
public void addFilesToTable(java.lang.String directoryID,
File[] files)
- This adds multiple files to the table and displays them.
- Parameters:
directoryID - ID of the diretory whose files are being displayed currentlyfiles - All the file objects that are to be shown in the table
updateFileInTable
public void updateFileInTable(int index,
File file)
- This updates a particular file being shown in the table
- Parameters:
index - index of the file in the table that is being updatedfile - content of the file in the table that is being updated
refreshRowsFromFileData
public void refreshRowsFromFileData()
- Refreshes the content and display of the files of a directory whose files
are being shown currently
deleteFileInTable
public void deleteFileInTable(int index,
java.lang.String fileID)
- This deletes a particular file being shown in the table
- Parameters:
index - index of the file in the table that is being deletedfileID - ID of the file in the table that is being deleted
changeCheckingStatusOfFileInTable
public void changeCheckingStatusOfFileInTable(int index,
java.lang.String fileID,
boolean ckeckedOut,
java.lang.String checkOutUser)
- This changes the checking status of a particular file being shown in the table
- Parameters:
index - index of the file in the table whose checking status is being changedfile - content of the file in the table whose checking status is being changedckeckedOut - if true then the file will be checked out, or else chcked in or undo check out.checkOutUser - ID of the user doing the checking operation