Class JWatVariableInputTableModel

java.lang.Object
javax.swing.table.AbstractTableModel
jwat.workloadAnalysis.tables.JWatVariableInputTableModel
All Implemented Interfaces:
Serializable, TableModel

public class JWatVariableInputTableModel extends AbstractTableModel
Data model of the j wat variable input table.
See Also:
  • Field Details

    • columnNames

      protected String[] columnNames
    • colClasses

      protected Class<?>[] colClasses
  • Constructor Details

    • JWatVariableInputTableModel

      public JWatVariableInputTableModel()
  • Method Details

    • getColumnName

      public String getColumnName(int columnIndex)
      Returns name for each column (given its index) to be displayed inside table header
      Specified by:
      getColumnName in interface TableModel
      Overrides:
      getColumnName in class AbstractTableModel
    • getColumnClass

      public Class<?> getColumnClass(int index)
      Specified by:
      getColumnClass in interface TableModel
      Overrides:
      getColumnClass in class AbstractTableModel
    • isCellEditable

      public boolean isCellEditable(int rowIndex, int columnIndex)
      Tells whether data contained in a specific cell(given row and column index) is editable or not. In this case distribution column is not editable, as editing functionality is implemented via edit button
      Specified by:
      isCellEditable in interface TableModel
      Overrides:
      isCellEditable in class AbstractTableModel
    • getRowCount

      public int getRowCount()
      Numero delle righe
    • getColumnCount

      public int getColumnCount()
      Numero delle colonne
    • getValueAt

      public Object getValueAt(int row, int col)
    • setValueAt

      public void setValueAt(Object value, int r, int c)
      Specified by:
      setValueAt in interface TableModel
      Overrides:
      setValueAt in class AbstractTableModel
    • addNewRow

      public void addNewRow()
    • deleteRow

      public void deleteRow(int index)
    • resetTable

      public void resetTable()
    • clearTable

      public void clearTable()
    • getVarNames

      public Vector<Object> getVarNames()
    • getType

      public String getType(int index)
    • getSize

      public int getSize()
    • checkInfos

      public boolean checkInfos()
    • addNewRow

      public void addNewRow(String name, String type, String comment, String del, String reg, String def, String rep)
    • getParameter

      public Parameter getParameter()
    • getNames

      public Vector<Object> getNames()
    • getComments

      public Vector getComments()
    • getDelimiters

      public Vector getDelimiters()
    • getRegExpr

      public Vector getRegExpr()
    • getDefaults

      public Vector getDefaults()
    • getReplaces

      public Vector getReplaces()
    • getTypes

      public int[] getTypes()
    • deselectAll

      public void deselectAll()
    • checkTrafficRequirements

      public boolean checkTrafficRequirements()
      Traffic analysis control. Check if one and only one date variable is currently selected
    • checkFittingRequirements

      public boolean checkFittingRequirements()