n="justify">}
return null ;
}
@ Override
public int getColumnCount () {
return 10;
}
@ Override
public String getColumnName ( int columnIndex) {
switch (columnIndex) {
case 0:
return ID raquo ;;
case 1:
return Обсяг raquo ;;
case 2:
return Вага raquo ;;
case 3:
return Кр.1 raquo ;;
case 4:
return Кр.2 raquo ;;
case 5:
return Кр.3 raquo ;;
case 6:
return Кр.4 raquo ;;
case 7:
return Кр.5 raquo ;;
case 8:
return Корисність raquo ;;
case 9:
return Пара raquo ;;
}
return item index error: ngetted index= + ColumnIndex + , nmost admissible index= + (GetColumnCount () - 1);
}
@ Override
public int getRowCount () {
return items. size ();
}
@ Override
public Object getValueAt ( int rowIndex, int columnIndex) {
switch (columnIndex) {
case 0:
return Integer. parseInt (items. get (rowIndex). getId ());
case 1:
return items. get (rowIndex). getVolume ();
case 2:
return items. get (rowIndex). getWeight ();
case 3:
return items. get (rowIndex). getRate1 ();
case 4:
return items. get (rowIndex). getRate2 ();
case 5:
return items. get (rowIndex). getRate3 ();
case 6:
return items. get (rowIndex). getRate4 ();
case 7:
return items. get (rowIndex). getRate5 ();
case 8:
return boss. getUtility (items. get (rowIndex));
case 9:
if (items. get (rowIndex). getPair ()!= null ) {
return items. get (rowIndex). getPair (). getId ();
} else {
return null ;
}
}
return null ;
}
@ Override
public boolean isCellEditable ( int rowIndex, int columnIndex) {
if (columnIndex!=0 amp; amp; columnIndex!=8 amp; amp; columnIndex!=9) {
return true ;
}
return false ;
}
@ Override
public void removeTableModelListener (TableModelListener l) {. remove (l);
}
@ Override
public void setValueAt (Object aValue, int rowIndex, int column...