FileDocCategorySizeDatePackage
MixerModel.javaAPI DocExample2021Mon Nov 09 12:45:50 GMT 1998None

MixerModel

public class MixerModel extends AbstractTableModel

Fields Summary
String[]
headers
Class[]
columnClasses
Object[]
data
Constructors Summary
Methods Summary
public voiddump()

    for (int i = 0; i < data.length; i++) {
      System.out.print("|");
      for (int j = 0; j < data[0].length; j++) {
        System.out.print(data[i][j] + "|");
      }
      System.out.println();
    }
  
public java.lang.ClassgetColumnClass(int c)

 return columnClasses[c]; 
public intgetColumnCount()

 return data[0].length; 
public java.lang.StringgetColumnName(int c)

 return headers[c]; 
public intgetRowCount()


      return data.length; 
public java.lang.ObjectgetValueAt(int r, int c)

 return data[r][c]; 
public booleanisCellEditable(int r, int c)

 return true; 
public voidsetValueAt(java.lang.Object value, int r, int c)

    if (c >= 3) { ((Volume)data[r][c]).setVolume(value);}
    else {data[r][c] = value;}