attributeCellTable.redraw();
}
} );
//Partial Score column
final EditTextCell partialScoreCell = new EditTextCell();
final Column<Attribute, String> partialScoreColumn = new Column<Attribute, String>( partialScoreCell ) {
public String getValue( final Attribute attribute ) {
return "" + attribute.getPartialScore();
}
};
partialScoreColumn.setFieldUpdater( new FieldUpdater<Attribute, String>() {
public void update( int index,
Attribute object,
String value ) {
try {
double d = Double.parseDouble( value );
object.setPartialScore( d );
} catch ( Exception e1 ) {
partialScoreCell.clearViewData( object );
}
attributeCellTable.redraw();
}
} );
//Reason Code column
final Column<Attribute, String> reasonCodeColumn = new Column<Attribute, String>( new EditTextCell() ) {
public String getValue( final Attribute attribute ) {
return attribute.getReasonCode();
}
};
reasonCodeColumn.setFieldUpdater( new FieldUpdater<Attribute, String>() {