org.openrdf.sesame.config.ui
Class AccessControlTableModel

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

public class AccessControlTableModel
extends XTableModel

Access control XTableModel for AccessControlTable

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

Field Summary
static String ANONYMOUS_LOGIN
          Anonymous login
static int COLUMN_LOGIN
          Access control login column id
static int COLUMN_READ
          Access control read column id
static int COLUMN_WRITE
          Access control write column id
 
Constructor Summary
AccessControlTableModel(String id, SystemConfig config)
          Creates a new AccessControlTableModel with the supplied repository id and SystemConfig.
 
Method Summary
 void configurationChanged()
          SystemConfig changed
 int getIdentifyingColumn()
          Gets the index of the identifying column.
 Object getValueAt(int row, int column)
           
 boolean isCellEditable(int row, int column)
          -anonymous- login is not editable
 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, 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_LOGIN

public static final int COLUMN_LOGIN
Access control login column id

See Also:
Constant Field Values

COLUMN_READ

public static final int COLUMN_READ
Access control read column id

See Also:
Constant Field Values

COLUMN_WRITE

public static final int COLUMN_WRITE
Access control write column id

See Also:
Constant Field Values

ANONYMOUS_LOGIN

public static final String ANONYMOUS_LOGIN
Anonymous login

See Also:
Constant Field Values
Constructor Detail

AccessControlTableModel

public AccessControlTableModel(String id,
                               SystemConfig config)
Creates a new AccessControlTableModel with the supplied repository id and SystemConfig.

Parameters:
id - Repository id
config - SystemConfig
Method Detail

isCellEditable

public boolean isCellEditable(int row,
                              int column)
-anonymous- login is not editable

Specified by:
isCellEditable in interface TableModel
Overrides:
isCellEditable in class XTableModel
See Also:
XTableModel.isCellEditable(int, int)

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



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