Package eu.bandm.tools.message
Class MessageStore.TableModel
java.lang.Object
javax.swing.table.AbstractTableModel
eu.bandm.tools.message.MessageStore.TableModel
- All Implemented Interfaces:
Serializable
,TableModel
- Enclosing class:
- MessageStore<M extends Message>
standard specialisation of
AbstractTableModel
.
Usage is like (cf applics/src/eu/bandm/bpm/bpmn/tool/Tool.java) :
frame = new javax.swing.JFrame(); frame.getContentPane().add(new javax.swing.JTable (myMessageStore.getTableModel()) ); frame.pack(); frame.setVisibility(true);Own specializations are inserted by ...
class myTableModel extends MessageStore.TableModel {...} myMessageStore.setTableModel(myMessageStore.new MyTableModel()) ;
- See Also:
-
Field Summary
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
Callback by Swingint
Callback by SwinggetValueAt
(int row, int column) Callback by Swing.boolean
isCellEditable
(int row, int column) Callback by Swingvoid
notifyAdd
(int pos) Wrapper for the swing "event firing", that one row in the data has changed.void
Wrapper for the swing "event firing", that all rows in the data may have changed.Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getColumnName, getListeners, getTableModelListeners, removeTableModelListener, setValueAt
-
Constructor Details
-
TableModel
public TableModel()
-
-
Method Details
-
notifyAdd
public void notifyAdd(int pos) Wrapper for the swing "event firing", that one row in the data has changed. -
notifySortingChanged
public void notifySortingChanged()Wrapper for the swing "event firing", that all rows in the data may have changed. -
getRowCount
public int getRowCount()Callback by Swing -
getColumnCount
public int getColumnCount()Callback by Swing -
isCellEditable
public boolean isCellEditable(int row, int column) Callback by Swing- Specified by:
isCellEditable
in interfaceTableModel
- Overrides:
isCellEditable
in classAbstractTableModel
-
getValueAt
Callback by Swing. Returns simply the Message in this row, not looking at the column number. The renderer of a particular column must extract the info for that column.
-