com.retek.rsm.user.administration
Class RoleTableModel
java.lang.Object
|
+--javax.swing.table.AbstractTableModel
|
+--com.retek.rsm.user.administration.RoleTableModel
- All Implemented Interfaces:
- java.io.Serializable, javax.swing.table.TableModel
- public class RoleTableModel
- extends javax.swing.table.AbstractTableModel
RoleTableModel is the table model used with the Role Table in
UserEditContainer. RoleTableModel holds the user roles to be edited for
a particular user
- See Also:
- Serialized Form
Fields inherited from class javax.swing.table.AbstractTableModel |
listenerList |
Methods inherited from class javax.swing.table.AbstractTableModel |
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAt |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RoleTableModel
public RoleTableModel()
- Empty constructor
getRoles
public java.util.Vector getRoles()
- method getRoles() returns all the user roles contined in
Role Table inside UserEditContainer
- Returns:
- Returns the roles.
getRowCount
public int getRowCount()
getColumnCount
public int getColumnCount()
getValueAt
public java.lang.Object getValueAt(int rowIndex,
int columnIndex)
getRoleAt
public java.lang.Object getRoleAt(int row)
getColumnClass
public java.lang.Class getColumnClass(int columnIndex)
- Specified by:
getColumnClass
in interface javax.swing.table.TableModel
- Overrides:
getColumnClass
in class javax.swing.table.AbstractTableModel
getColumnName
public java.lang.String getColumnName(int column)
- Specified by:
getColumnName
in interface javax.swing.table.TableModel
- Overrides:
getColumnName
in class javax.swing.table.AbstractTableModel
setRoles
public void setRoles(java.util.Vector roles)
- Sets the roles in the table
- Parameters:
roles
- The roles to set.
insertRole
public void insertRole(int row,
UserRoleVo roleVo)
- inserts a role at the given row
- Parameters:
row
- table row number where the UserRoleVo is insertedroleVo
- UserRoleVo which needs to be inserted