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

    • notifyAdd

      public void notifyAdd(int pos)
      Wrapper for the swing "event firing", that one row in the data is 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 interface TableModel
      Overrides:
      isCellEditable in class AbstractTableModel
    • getValueAt

      public Object getValueAt(int row, int column)
      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.