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
Usage is like (cf applics/src/eu/bandm/bpm/bpmn/tool/Tool.java) :
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
Deliver the number of columns.int
getIndent
(int row) int
Deliver the number of rows.getValueAt
(int row, int column) Returns the message for all columns; -- the renderer of a particular column must extract the info for that column.boolean
isCellEditable
(int row, int column) Return that no cell is editable.void
notifyAdd
(int pos) Nofication that at the given position the data has changed.void
Nofication that potentially everywhere 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
-
getIndent
public int getIndent(int row) -
notifyAdd
public void notifyAdd(int pos) Nofication that at the given position the data has changed. Triggers graphic repainting. -
notifySortingChanged
public void notifySortingChanged()Nofication that potentially everywhere the data may have changed. Triggers graphic repainting. -
getRowCount
public int getRowCount()Deliver the number of rows. Callback needed by the Swing kernel. -
getColumnCount
public int getColumnCount()Deliver the number of columns. Callback needed by the Swing kernel. -
isCellEditable
public boolean isCellEditable(int row, int column) Return that no cell is editable.- Specified by:
isCellEditable
in interfaceTableModel
- Overrides:
isCellEditable
in classAbstractTableModel
-
getValueAt
Returns the message for all columns; -- the renderer of a particular column must extract the info for that column.
-