Class ArgumentTableModel

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

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

      Fields 
      Modifier and Type Field Description
      protected java.util.Map<java.lang.String,​java.lang.String> arguments
      The edited arguments.
      static java.lang.String[] COLUMN_NAMES
      The column names.
      protected java.lang.String config
      The currently selected configuration.
      protected IModelInfo mi
      The model info.
      • Fields inherited from class javax.swing.table.AbstractTableModel

        listenerList
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Map<java.lang.String,​java.lang.String> getArguments()
      Get the edited arguments.
      int getColumnCount()
      Get the number of columns.
      java.lang.String getColumnName​(int column)
      Get the name of a column.
      int getRowCount()
      Get the number of rows.
      java.lang.Object getValueAt​(int row, int column)
      Get a table cell value.
      boolean isCellEditable​(int row, int column)
      Ask if cell may be edited.
      void setConfiguration​(java.lang.String config)
      Set the selected configuration.
      void setValueAt​(java.lang.Object val, int row, int column)
      Set a cell value.
      • Methods inherited from class javax.swing.table.AbstractTableModel

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

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

      • COLUMN_NAMES

        public static final java.lang.String[] COLUMN_NAMES
        The column names.
      • arguments

        protected java.util.Map<java.lang.String,​java.lang.String> arguments
        The edited arguments.
      • config

        protected java.lang.String config
        The currently selected configuration.
    • Constructor Detail

      • ArgumentTableModel

        public ArgumentTableModel​(IModelInfo mi)
        Create an argument table model.
    • Method Detail

      • getColumnCount

        public int getColumnCount()
        Get the number of columns.
      • getColumnName

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

        public int getRowCount()
        Get the number of rows.
      • getValueAt

        public java.lang.Object getValueAt​(int row,
                                           int column)
        Get a table cell value.
      • isCellEditable

        public boolean isCellEditable​(int row,
                                      int column)
        Ask if cell may be edited.
        Specified by:
        isCellEditable in interface javax.swing.table.TableModel
        Overrides:
        isCellEditable in class javax.swing.table.AbstractTableModel
      • setValueAt

        public void setValueAt​(java.lang.Object val,
                               int row,
                               int column)
        Set a cell value.
        Specified by:
        setValueAt in interface javax.swing.table.TableModel
        Overrides:
        setValueAt in class javax.swing.table.AbstractTableModel
      • setConfiguration

        public void setConfiguration​(java.lang.String config)
        Set the selected configuration.
      • getArguments

        public java.util.Map<java.lang.String,​java.lang.String> getArguments()
        Get the edited arguments.