org.sourcejammer.client.gui
Class UserListTableModel

java.lang.Object
  |
  +--javax.swing.table.AbstractTableModel
        |
        +--javax.swing.table.DefaultTableModel
              |
              +--org.sourcejammer.client.gui.UserListTableModel
All Implemented Interfaces:
java.io.Serializable, javax.swing.table.TableModel

public class UserListTableModel
extends javax.swing.table.DefaultTableModel

Title: SourceJammer 1.2 Description: Copyright: Copyright (c) 2002 Company: SourceJammer Project

Version:
1.0
Author:
Robert MacGrogan
See Also:
Serialized Form

Field Summary
static java.lang.String ADMIN_SYMBOL
           
private  java.util.Hashtable mhshUsers
           
private  java.util.Vector mvecUsers
           
static java.lang.String NON_ADMIN_SYMBOL
           
 
Fields inherited from class javax.swing.table.DefaultTableModel
columnIdentifiers, dataVector
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Constructor Summary
UserListTableModel()
           
 
Method Summary
 void addUser(org.sourcejammer.project.view.UserInfo user)
          Adds one user to the end of this table model.
 void addUsers(org.sourcejammer.project.view.UserInfo[] users)
          Adds all users to the end of this table model.
 org.sourcejammer.project.view.UserInfo getUserAt(int row)
          Returns UserInfo object at specified row.
 boolean isCellEditable(int row, int column)
           
 
Methods inherited from class javax.swing.table.DefaultTableModel
addColumn, addColumn, addColumn, addRow, addRow, convertToVector, convertToVector, getColumnCount, getColumnName, getDataVector, getRowCount, getValueAt, insertRow, insertRow, moveRow, newDataAvailable, newRowsAdded, removeRow, rowsRemoved, setColumnCount, setColumnIdentifiers, setColumnIdentifiers, setDataVector, setDataVector, setNumRows, setRowCount, setValueAt
 
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mhshUsers

private java.util.Hashtable mhshUsers

mvecUsers

private java.util.Vector mvecUsers

ADMIN_SYMBOL

public static final java.lang.String ADMIN_SYMBOL
See Also:
Constant Field Values

NON_ADMIN_SYMBOL

public static final java.lang.String NON_ADMIN_SYMBOL
See Also:
Constant Field Values
Constructor Detail

UserListTableModel

public UserListTableModel()
Method Detail

addUser

public void addUser(org.sourcejammer.project.view.UserInfo user)
             throws org.sourcejammer.project.NodeExistsException
Adds one user to the end of this table model.

Throws:
org.sourcejammer.project.NodeExistsException - if the user already exists in the list.

addUsers

public void addUsers(org.sourcejammer.project.view.UserInfo[] users)
              throws org.sourcejammer.project.NodeExistsException
Adds all users to the end of this table model.

Throws:
org.sourcejammer.project.NodeExistsException - if the user already exists in the list.

getUserAt

public org.sourcejammer.project.view.UserInfo getUserAt(int row)
                                                 throws org.sourcejammer.project.NodeDoesNotExistException
Returns UserInfo object at specified row.

org.sourcejammer.project.NodeDoesNotExistException

isCellEditable

public boolean isCellEditable(int row,
                              int column)
Specified by:
isCellEditable in interface javax.swing.table.TableModel
Overrides:
isCellEditable in class javax.swing.table.DefaultTableModel


Copyright 2003 Soucejammer project.