mirror of
https://github.com/frosch95/SmartCSV.fx.git
synced 2026-04-11 21:48:22 +02:00
refresh list after correcting a value
This commit is contained in:
@@ -264,8 +264,8 @@ public class SmartCSVController extends FXMLController {
|
||||
@Override
|
||||
public void handle(TableColumn.CellEditEvent<CSVRow, CSVValue> event) {
|
||||
event.getTableView().getItems().get(event.getTablePosition().getRow()).
|
||||
getColumns().get(header).
|
||||
setValue(event.getNewValue());
|
||||
getColumns().get(header).setValue(event.getNewValue());
|
||||
runLater(() -> model.revalidate());
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
@@ -35,7 +35,7 @@ import java.util.ResourceBundle;
|
||||
import static ninja.javafx.smartcsv.fx.util.I18nValidationUtil.getI18nValidatioMessage;
|
||||
|
||||
/**
|
||||
* TODO: DESCRIPTION!!!
|
||||
* Cell to show the error text
|
||||
*/
|
||||
public class ValidationErrorListCell extends ListCell<ValidationError> {
|
||||
|
||||
|
||||
@@ -109,7 +109,7 @@ public class CSVModel {
|
||||
/**
|
||||
* walks through the data and validates each value
|
||||
*/
|
||||
private void revalidate() {
|
||||
public void revalidate() {
|
||||
validationError.clear();
|
||||
|
||||
if (header != null && validator != null) {
|
||||
|
||||
Reference in New Issue
Block a user