public class MessageGroupCatalogTM
extends javax.swing.table.AbstractTableModel
MessageGroupCatalog
,
Serialized FormConstructor 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, removeTableModelListener
public 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.TableModel
getColumnClass
in class javax.swing.table.AbstractTableModel
columnIndex
- the column being queriedpublic java.lang.String getColumnName(int column)
getColumnName
in interface javax.swing.table.TableModel
getColumnName
in class javax.swing.table.AbstractTableModel
column
- the column being queriedcolumn
public boolean isCellEditable(int rowIndex, int columnIndex)
isCellEditable
in interface javax.swing.table.TableModel
isCellEditable
in class javax.swing.table.AbstractTableModel
rowIndex
- 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.TableModel
setValueAt
in class javax.swing.table.AbstractTableModel
aValue
- 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