org.openrdf.sesame.config.ui
Class RepositoryTableModel

java.lang.Object
  extended byjavax.swing.table.AbstractTableModel
      extended byorg.openrdf.sesame.config.ui.XTableModel
          extended byorg.openrdf.sesame.config.ui.RepositoryTableModel
All Implemented Interfaces:
Serializable, SystemConfigListener, TableModel

public class RepositoryTableModel
extends XTableModel

Repository XTableModel for RepositoryTable

Version:
$Revision: 1.4.4.2 $
Author:
Peter van 't Hof, Arjohn Kampman
See Also:
Serialized Form

Field Summary
static int COLUMN_ID
          Column number for repository ID.
static int COLUMN_TITLE
          Column number for repository title.
 
Constructor Summary
RepositoryTableModel(SystemConfig config)
          Creates a new RepositoryTableModel with the supplied SystemConfig
 
Method Summary
 String cloneRow(int rowIdx)
          Clones the row at row index rowIdx.
 void configurationChanged()
          SystemConfig changed
 int getIdentifyingColumn()
          Gets the index of the identifying column.
 Object getValueAt(int row, int column)
           
 void setValueAt(Object value, int row, int column)
           
 
Methods inherited from class org.openrdf.sesame.config.ui.XTableModel
addNewRow, getColumnAlignment, getColumnCount, getColumnName, getColumnWidth, getRowCount, getRowIndex, isCellEditable, removeNewRow, rowIsNew, valueIsNew
 
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, removeTableModelListener
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COLUMN_ID

public static final int COLUMN_ID
Column number for repository ID.

See Also:
Constant Field Values

COLUMN_TITLE

public static final int COLUMN_TITLE
Column number for repository title.

See Also:
Constant Field Values
Constructor Detail

RepositoryTableModel

public RepositoryTableModel(SystemConfig config)
Creates a new RepositoryTableModel with the supplied SystemConfig

Parameters:
config - SystemConfig
Method Detail

getIdentifyingColumn

public int getIdentifyingColumn()
Description copied from class: XTableModel
Gets the index of the identifying column. Every row in a table is identified by the value of a specific column, e.g. the user table is identified by its login column, the repository table is identified by its repositoryID column, etc.

Specified by:
getIdentifyingColumn in class XTableModel
Returns:
The index of the identifying column (0-based).

getValueAt

public Object getValueAt(int row,
                         int column)

setValueAt

public void setValueAt(Object value,
                       int row,
                       int column)

configurationChanged

public void configurationChanged()
Description copied from interface: SystemConfigListener
SystemConfig changed


cloneRow

public String cloneRow(int rowIdx)
Clones the row at row index rowIdx.

Returns:
The ID of the newly cloned repository.


Copyright © 2002-2006 Aduna BV, GNU LGPL License applies.