public class MessageGroupCatalogTM
extends javax.swing.table.AbstractTableModel
MessageGroupCatalog,
Serialized Form| Constructor and Description |
|---|
MessageGroupCatalogTM()
Create a table model for viewing the currently defined message groups.
|
| Modifier and Type | Method and Description |
|---|---|
int |
addRow()
Create a new empty entry in the
MessageGroupCatalog for the user
to fill in. |
void |
deleteRow(int rowIndex)
Delete an entry from the
MessageGroupCatalog. |
java.lang.Class<?> |
getColumnClass(int columnIndex)
Returns the data Class for the specified column.
|
int |
getColumnCount()
Returns the number of columns in the model.
|
java.lang.String |
getColumnName(int column)
Returns the localized name for the column.
|
int |
getRowCount()
Returns the number of rows in the model.
|
java.lang.Object |
getValueAt(int rowIndex,
int columnIndex)
Returns the value for the cell at
columnIndex and
rowIndex. |
boolean |
isCellEditable(int rowIndex,
int columnIndex)
Indicate whether the specified table cell's value can be edited by the user.
|
void |
setValueAt(java.lang.Object aValue,
int rowIndex,
int columnIndex)
Specify the new value for a cell in the table.
|
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListenerpublic MessageGroupCatalogTM()
public int getColumnCount()
getRowCount()public int getRowCount()
getColumnCount()public java.lang.Object getValueAt(int rowIndex,
int columnIndex)
columnIndex and
rowIndex.rowIndex - the row whose value is to be queriedcolumnIndex - the column whose value is to be queriedpublic java.lang.Class<?> getColumnClass(int columnIndex)
getColumnClass in interface javax.swing.table.TableModelgetColumnClass in class javax.swing.table.AbstractTableModelcolumnIndex - the column being queriedpublic java.lang.String getColumnName(int column)
getColumnName in interface javax.swing.table.TableModelgetColumnName in class javax.swing.table.AbstractTableModelcolumn - the column being queriedcolumnpublic boolean isCellEditable(int rowIndex,
int columnIndex)
isCellEditable in interface javax.swing.table.TableModelisCellEditable in class javax.swing.table.AbstractTableModelrowIndex - zero-based int row index of cellcolumnIndex - zero-based int column index of cellpublic void setValueAt(java.lang.Object aValue,
int rowIndex,
int columnIndex)
setValueAt in interface javax.swing.table.TableModelsetValueAt in class javax.swing.table.AbstractTableModelaValue - Object containing new value; should be of class reported by getColumnClass()
for the specified columnrowIndex - zero-based int row index of cellcolumnIndex - zero-based int column index of cellpublic int addRow()
MessageGroupCatalog for the user
to fill in.public void deleteRow(int rowIndex)
MessageGroupCatalog.rowIndex - zero-based int table row index of entry to delete