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>

public class MessageStore_.TableModel extends AbstractTableModel
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:
  • 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 interface TableModel
      Overrides:
      isCellEditable in class AbstractTableModel
    • getValueAt

      public Object getValueAt(int row, int column)
      Returns the message for all columns; -- the renderer of a particular column must extract the info for that column.