dluploadclient
Class FileListTableModel

java.lang.Object
  extended by dluploadclient.FileListTableModel
All Implemented Interfaces:
TableModel

public class FileListTableModel
extends Object
implements TableModel

Modèle de la table des fichiers

Copyright 2008, Maurer Gilles

This file is part of Client dl.free.fr.

Client dl.free.fr is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

Client dl.free.fr is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with Client dl.free.fr. If not, see .

Author:
Maurer Gilles

Constructor Summary
FileListTableModel(Vector<String> columnNames, Vector<UploadFile> data)
          Constructeur par défaut
 
Method Summary
 void addTableModelListener(TableModelListener l)
           
 Class<?> getColumnClass(int columnIndex)
           
 int getColumnCount()
           
 String getColumnName(int columnIndex)
           
 int getRowCount()
           
 Object getValueAt(int rowIndex, int columnIndex)
           
 boolean isCellEditable(int rowIndex, int columnIndex)
           
 void removeAt(int index)
          Permet de supprimer l'élément à l'index index
 void removeTableModelListener(TableModelListener l)
           
 void setValueAt(Object value, int rowIndex, int columnIndex)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileListTableModel

public FileListTableModel(Vector<String> columnNames,
                          Vector<UploadFile> data)
Constructeur par défaut

Parameters:
columnNames - Nom des différentes colonnes du tableau
data - Tableau des fichiers dans le tableau
Method Detail

getColumnClass

public Class<?> getColumnClass(int columnIndex)
Specified by:
getColumnClass in interface TableModel

getColumnCount

public int getColumnCount()
Specified by:
getColumnCount in interface TableModel

getColumnName

public String getColumnName(int columnIndex)
Specified by:
getColumnName in interface TableModel

getRowCount

public int getRowCount()
Specified by:
getRowCount in interface TableModel

getValueAt

public Object getValueAt(int rowIndex,
                         int columnIndex)
Specified by:
getValueAt in interface TableModel

isCellEditable

public boolean isCellEditable(int rowIndex,
                              int columnIndex)
Specified by:
isCellEditable in interface TableModel

addTableModelListener

public void addTableModelListener(TableModelListener l)
Specified by:
addTableModelListener in interface TableModel

removeTableModelListener

public void removeTableModelListener(TableModelListener l)
Specified by:
removeTableModelListener in interface TableModel

setValueAt

public void setValueAt(Object value,
                       int rowIndex,
                       int columnIndex)
Specified by:
setValueAt in interface TableModel

removeAt

public void removeAt(int index)
Permet de supprimer l'élément à l'index index

Parameters:
index - Index de l'élément à supprimer