net.sf.latexdraw.badaboom
Class BadaboomTableModel

java.lang.Object
  extended by javax.swing.table.AbstractTableModel
      extended by net.sf.latexdraw.badaboom.BadaboomTableModel
All Implemented Interfaces:
java.io.Serializable, javax.swing.table.TableModel

public class BadaboomTableModel
extends javax.swing.table.AbstractTableModel

Defines a table model for the 'Bordel !' manager.

This file is part of LaTeXDraw.
Copyright (c) 2005-2012 Arnaud BLOUIN

LaTeXDraw 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 2 of the License, or (at your option) any later version.
LaTeXDraw is distributed 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.

02/18/2008

Since:
3.0
Version:
3.0
Author:
Arnaud BLOUIN
See Also:
Serialized Form

Field Summary
protected  BadaboomCollector collector
          The table data.
protected static java.lang.String NAME_COL1
           
protected static java.lang.String NAME_COL2
           
protected static java.lang.String NAME_COL3
           
private static long serialVersionUID
           
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Constructor Summary
BadaboomTableModel(BadaboomCollector collector)
          Creates and initialises a table model for the 'Bordel !'
 
Method Summary
 int getColumnCount()
           
 java.lang.String getColumnName(int column)
           
 int getRowCount()
           
 java.lang.String getValueAt(int rowIndex, int columnIndex)
           
 
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAt
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

NAME_COL1

protected static final java.lang.String NAME_COL1
See Also:
Constant Field Values

NAME_COL2

protected static final java.lang.String NAME_COL2
See Also:
Constant Field Values

NAME_COL3

protected static final java.lang.String NAME_COL3
See Also:
Constant Field Values

collector

protected BadaboomCollector collector
The table data.

Constructor Detail

BadaboomTableModel

public BadaboomTableModel(BadaboomCollector collector)
Creates and initialises a table model for the 'Bordel !' manager.

Parameters:
collector - The exceptions collector.
Throws:
java.lang.IllegalArgumentException - If the given collector is null.
Method Detail

getColumnName

public java.lang.String getColumnName(int column)
Specified by:
getColumnName in interface javax.swing.table.TableModel
Overrides:
getColumnName in class javax.swing.table.AbstractTableModel

getColumnCount

public int getColumnCount()

getRowCount

public int getRowCount()

getValueAt

public java.lang.String getValueAt(int rowIndex,
                                   int columnIndex)