Class MuLiMessageStore.TableModel

java.lang.Object
javax.swing.table.AbstractTableModel
eu.bandm.tools.muli.MuLiMessageStore.TableModel
All Implemented Interfaces:
Serializable, TableModel
Enclosing class:
MuLiMessageStore<D>

public class MuLiMessageStore.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
                                 (myMuLiMessageStore.getTableModel())
                               );
     frame.pack();
     frame.setVisibility(true);
  
Own specializations are inserted by ...
     class myTableModel extends MuLiMessageStore.TableModel {...}
     myMuLiMessageStore.setTableModel(myMuLiMessageStore.new MyTableModel()) ;
  
See Also:
  • Constructor Details

    • TableModel

      public TableModel()
  • Method Details

    • notifyAdd

      public void notifyAdd(int pos)
    • notifyLanguageChanged

      public void notifyLanguageChanged()
    • getRowCount

      public int getRowCount()
    • getColumnCount

      public int getColumnCount()
    • getColumnName

      public String getColumnName(int col)
      Specified by:
      getColumnName in interface TableModel
      Overrides:
      getColumnName in class AbstractTableModel
    • isCellEditable

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