org.openrdf.sesame.config.ui
Class ParameterTableModel

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

public class ParameterTableModel
extends XTableModel

Parameter XTableModel for ParameterTable

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

Field Summary
static int COLUMN_KEY
          Parameter key column id
static int COLUMN_VALUE
          Parameter value column id
 
Constructor Summary
ParameterTableModel(String id, SystemConfig config)
          Creates a new ParameterTableModel with the supplied repository id, sail class and SystemConfig
 
Method Summary
 void configurationChanged()
          SystemConfig changed
 int getIdentifyingColumn()
          Gets the index of the identifying column.
 Object getValueAt(int row, int column)
           
 void setSailClass(String sailClass)
          Sets the class to the supplied class
 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_KEY

public static final int COLUMN_KEY
Parameter key column id

See Also:
Constant Field Values

COLUMN_VALUE

public static final int COLUMN_VALUE
Parameter value column id

See Also:
Constant Field Values
Constructor Detail

ParameterTableModel

public ParameterTableModel(String id,
                           SystemConfig config)
Creates a new ParameterTableModel with the supplied repository id, sail class and SystemConfig

Parameters:
id - Repository id
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)

setSailClass

public void setSailClass(String sailClass)
Sets the class to the supplied class

Parameters:
sailClass - Sail class

configurationChanged

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



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