gate.gui
Class CorpusEditor.DocumentTableModel

java.lang.Object
  extended by javax.swing.table.AbstractTableModel
      extended by gate.gui.CorpusEditor.DocumentTableModel
All Implemented Interfaces:
Serializable, TableModel
Enclosing class:
CorpusEditor

 class CorpusEditor.DocumentTableModel
extends AbstractTableModel


Field Summary
private static int COL_INDEX
           
private static int COL_NAME
           
private static int COLUMN_COUNT
           
private  String[] COLUMN_NAMES
           
private  List<String> documentNames
           
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Constructor Summary
CorpusEditor.DocumentTableModel()
           
 
Method Summary
private  void dataChanged()
          Called externally when the underlying corpus has changed.
 Class<?> getColumnClass(int columnIndex)
           
 int getColumnCount()
           
 String getColumnName(int column)
           
 int getRowCount()
           
 Object getValueAt(int rowIndex, int columnIndex)
           
 boolean isCellEditable(int rowIndex, int columnIndex)
           
 
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener, setValueAt
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

documentNames

private List<String> documentNames

COLUMN_NAMES

private final String[] COLUMN_NAMES

COL_INDEX

private static final int COL_INDEX
See Also:
Constant Field Values

COL_NAME

private static final int COL_NAME
See Also:
Constant Field Values

COLUMN_COUNT

private static final int COLUMN_COUNT
See Also:
Constant Field Values
Constructor Detail

CorpusEditor.DocumentTableModel

public CorpusEditor.DocumentTableModel()
Method Detail

dataChanged

private void dataChanged()
Called externally when the underlying corpus has changed.


getColumnCount

public int getColumnCount()

getRowCount

public int getRowCount()

getValueAt

public Object getValueAt(int rowIndex,
                         int columnIndex)

getColumnClass

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

getColumnName

public String getColumnName(int column)
Specified by:
getColumnName in interface TableModel
Overrides:
getColumnName in class AbstractTableModel

isCellEditable

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