* @return true, если значение допустимо для указанной ячейки
*/
public boolean validateCell(Object aValue, int row, int column) {
switch (column) {
case 0:
Symbol smb = symbolList.search(aValue.toString(), true);
return smb != null;
case 1: try { return aValue instanceof TaskOrder.Type; } catch (Exception e) {
e.printStackTrace();
return false;
}
case 2:
try {
double vl = Double.parseDouble(aValue.toString());
return vl > 0.0 && vl < 100.0;
} catch (Exception e) { return false; }
case 3: case 4: case 5: case 6: case 7:
try {
int vl = Integer.parseInt(aValue.toString());
if (column < 7) {
Symbol sym = symbolList.search(getOrder(row).symbol, true);
if (vl == 0 && (column >= 4 || column <= 6)) return true;
else return (vl > sym.minSL);
} else return (vl > 0);
} catch (Exception e) { return false; }