au.edu.swin.synergy.plugin.rtp
Class BResFileModel
java.lang.Object
|
+--javax.swing.table.AbstractTableModel
|
+--au.edu.swin.synergy.plugin.rtp.BResFileModel
- Direct Known Subclasses:
- BCOFileModel
- public class BResFileModel
- extends AbstractTableModel
class which supplies the table model for the repository client
- Author:
- Shane Fitzgibbon
- Copyright Belongs To:
- Synergy Software 1999
- See Also:
- Serialized Form
Method Summary |
void |
addDir(String filename,
long date,
int owner,
String type,
int version)
adds a directory to the table model |
void |
addFile(String filename,
long date,
int owner,
String type,
int version,
long size)
Adds a file to the table model |
void |
clear()
Clears the contents of the table model. |
Class |
getColumnClass(int colIndex)
Gets the type of class that is in each column of the table model |
int |
getColumnCount()
gets the number of columns in the table model |
String |
getColumnName(int index)
gets the name of each of the columns |
Object |
getFileAt(int row)
|
int |
getRowCount()
gets the number of rows in the table model |
String |
getType(String filename)
|
Object |
getValueAt(int row,
int column)
gets the value of a specified cell |
int |
getVersion(String filename)
|
Methods inherited from class javax.swing.table.AbstractTableModel |
addTableModelListener,
findColumn,
fireTableCellUpdated,
fireTableChanged,
fireTableDataChanged,
fireTableRowsDeleted,
fireTableRowsInserted,
fireTableRowsUpdated,
fireTableStructureChanged,
isCellEditable,
removeTableModelListener,
setValueAt |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
BResFileModel
public BResFileModel()
getRowCount
public int getRowCount()
- gets the number of rows in the table model
- Overrides:
- getRowCount in class AbstractTableModel
getColumnCount
public int getColumnCount()
- gets the number of columns in the table model
- Overrides:
- getColumnCount in class AbstractTableModel
getColumnName
public String getColumnName(int index)
- gets the name of each of the columns
- Parameters:
index
- the index of the column- Overrides:
- getColumnName in class AbstractTableModel
getValueAt
public Object getValueAt(int row,
int column)
- gets the value of a specified cell
- Parameters:
row
- the row that the cell is incolumn
- the column the cell is in- Overrides:
- getValueAt in class AbstractTableModel
getFileAt
public Object getFileAt(int row)
getType
public String getType(String filename)
getVersion
public int getVersion(String filename)
getColumnClass
public Class getColumnClass(int colIndex)
- Gets the type of class that is in each column of the table model
- Parameters:
colIndex
- the index of the column of the table that contains the requested class- Overrides:
- getColumnClass in class AbstractTableModel
addFile
public void addFile(String filename,
long date,
int owner,
String type,
int version,
long size)
- Adds a file to the table model
- Parameters:
filename
- String containing the name of the filedate
- String containing the date teh file was createdowner
- String containing the name of the ownertype
- String containint the type of file that it isverion
- the version number of the filesize
- the size of the file
addDir
public void addDir(String filename,
long date,
int owner,
String type,
int version)
- adds a directory to the table model
- Parameters:
filename
- String containing the name of the filedate
- String containing the date teh file was createdowner
- String containing the name of the ownertype
- String containint the type of file that it isverion
- the version number of the file
clear
public void clear()
- Clears the contents of the table model.
It then advises all listeners of this change