|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.swing.table.AbstractTableModel
edu.northwestern.at.wordhoard.swing.accounts.groups.GroupMembersModel
class GroupMembersModel
Group model.
Each
group panel has a model which acts as a Swing table model,
manages all communications with the server session, and
maintains the following state information for the panel:
Window components register
listeners on the model to listen for and react appropriately to changes
in the state of the window.
| Field Summary |
|---|
| Fields inherited from class javax.swing.table.AbstractTableModel |
|---|
listenerList |
| Constructor Summary | |
|---|---|
GroupMembersModel(UserGroup userGroup)
Creates a new UserGroup members model. |
|
| Method Summary | |
|---|---|
(package private) void |
addListener(GroupMembersListener listener)
Adds a listener. |
int |
getColumnCount()
Gets the number of columns. |
java.lang.String |
getColumnName(int col)
Gets the name of a column. |
int |
getRowCount()
Gets the number of rows. |
(package private) int[] |
getSelection()
Gets the selection. |
java.lang.Object |
getValueAt(int row,
int col)
Gets the value of a cell. |
(package private) void |
init()
Initializes the model. |
(package private) void |
removeListener(GroupMembersListener listener)
Removes a listener. |
void |
setGroup(UserGroup userGroup)
Sets the UserGroup. |
(package private) void |
setSelection(int[] selection)
Sets the selection. |
| Methods inherited from class javax.swing.table.AbstractTableModel |
|---|
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAt |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
GroupMembersModel(UserGroup userGroup)
throws java.lang.Exception
userGroup - UserGroup.
java.lang.Exception | Method Detail |
|---|
public void setGroup(UserGroup userGroup)
userGroup - UserGroup. public int getRowCount()
public int getColumnCount()
public java.lang.Object getValueAt(int row,
int col)
row - Row index.col - Column index.
public java.lang.String getColumnName(int col)
getColumnName in interface javax.swing.table.TableModelgetColumnName in class javax.swing.table.AbstractTableModelcol - Column index.
void init()
void setSelection(int[] selection)
selection - Array of indexes of selected accounts. void addListener(GroupMembersListener listener)
listener - Account listener. void removeListener(GroupMembersListener listener)
listener - Account listener. int[] getSelection()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||