Class ContextTableModel

  • All Implemented Interfaces:
    java.io.Serializable, javax.swing.table.TableModel

    public class ContextTableModel
    extends javax.swing.table.AbstractTableModel
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected ModelContainer modelcontainer
      The model container
      • Fields inherited from class javax.swing.table.AbstractTableModel

        listenerList
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addParameter()
      Adds a new parameter.
      java.lang.Class<?> getColumnClass​(int columnIndex)
      Gets the column class.
      int getColumnCount()
      Get the column count.
      java.lang.String getColumnName​(int column)
      Gets the column name.
      int getRowCount()
      Get the row count.
      java.lang.Object getValueAt​(int rowIndex, int columnIndex)
      Get the value.
      boolean isCellEditable​(int rowIndex, int columnIndex)
      Test if cell is editable.
      void removeParameter​(int index)
      Removes a parameter.
      void removeParameters​(int[] indexes)
      Removes parameters.
      void setValueAt​(java.lang.Object aValue, int rowIndex, int columnIndex)
      Set a value.
      • Methods inherited from class javax.swing.table.AbstractTableModel

        addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • modelcontainer

        protected ModelContainer modelcontainer
        The model container
    • Constructor Detail

      • ContextTableModel

        public ContextTableModel​(ModelContainer modelcontainer)
        Creates the table model.
    • Method Detail

      • addParameter

        public void addParameter()
        Adds a new parameter.
      • removeParameter

        public void removeParameter​(int index)
        Removes a parameter.
        Parameters:
        index - The parameter index.
      • removeParameters

        public void removeParameters​(int[] indexes)
        Removes parameters.
        Parameters:
        indexes - The parameter indexes.
      • getRowCount

        public int getRowCount()
        Get the row count.
      • getColumnCount

        public int getColumnCount()
        Get the column count.
      • getValueAt

        public java.lang.Object getValueAt​(int rowIndex,
                                           int columnIndex)
        Get the value.
      • setValueAt

        public void setValueAt​(java.lang.Object aValue,
                               int rowIndex,
                               int columnIndex)
        Set a value.
        Specified by:
        setValueAt in interface javax.swing.table.TableModel
        Overrides:
        setValueAt in class javax.swing.table.AbstractTableModel
      • getColumnName

        public java.lang.String getColumnName​(int column)
        Gets the column name.
        Specified by:
        getColumnName in interface javax.swing.table.TableModel
        Overrides:
        getColumnName in class javax.swing.table.AbstractTableModel
      • getColumnClass

        public java.lang.Class<?> getColumnClass​(int columnIndex)
        Gets the column class.
        Specified by:
        getColumnClass in interface javax.swing.table.TableModel
        Overrides:
        getColumnClass in class javax.swing.table.AbstractTableModel
      • isCellEditable

        public boolean isCellEditable​(int rowIndex,
                                      int columnIndex)
        Test if cell is editable.
        Specified by:
        isCellEditable in interface javax.swing.table.TableModel
        Overrides:
        isCellEditable in class javax.swing.table.AbstractTableModel