mirror of
https://github.com/frosch95/SmartCSV.fx.git
synced 2026-04-11 13:38:23 +02:00
formal revision
This commit is contained in:
@@ -53,7 +53,7 @@ public class ErrorSideBar extends Region {
|
|||||||
|
|
||||||
private static final double WIDTH = 20.0;
|
private static final double WIDTH = 20.0;
|
||||||
|
|
||||||
private ListChangeListener<ValidationError> errorListListener = c -> {setErrorMarker();};
|
private ListChangeListener<ValidationError> errorListListener = c -> setErrorMarker();
|
||||||
private WeakListChangeListener<ValidationError> weakErrorListListener = new WeakListChangeListener<>(errorListListener);
|
private WeakListChangeListener<ValidationError> weakErrorListListener = new WeakListChangeListener<>(errorListListener);
|
||||||
private ObjectProperty<CSVModel> model = new SimpleObjectProperty<>();
|
private ObjectProperty<CSVModel> model = new SimpleObjectProperty<>();
|
||||||
private ObjectProperty<ValidationError> selectedValidationError = new SimpleObjectProperty<>();
|
private ObjectProperty<ValidationError> selectedValidationError = new SimpleObjectProperty<>();
|
||||||
@@ -62,11 +62,14 @@ public class ErrorSideBar extends Region {
|
|||||||
|
|
||||||
public ErrorSideBar(ResourceBundle resourceBundle) {
|
public ErrorSideBar(ResourceBundle resourceBundle) {
|
||||||
this.resourceBundle = resourceBundle;
|
this.resourceBundle = resourceBundle;
|
||||||
|
initPopOver();
|
||||||
setFixWidth();
|
setFixWidth();
|
||||||
addModelListener();
|
addModelListener();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void initPopOver() {
|
||||||
popOver.setAutoHide(true);
|
popOver.setAutoHide(true);
|
||||||
popOver.setArrowLocation(PopOver.ArrowLocation.RIGHT_CENTER);
|
popOver.setArrowLocation(PopOver.ArrowLocation.RIGHT_CENTER);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setModel(CSVModel model) {
|
public void setModel(CSVModel model) {
|
||||||
|
|||||||
Reference in New Issue
Block a user