Skip to content
Snippets Groups Projects
Commit 4c42b010 authored by George Adrian Stoica's avatar George Adrian Stoica
Browse files

simplified setting of cellFactory using lambda

parent 5888890a
No related branches found
No related tags found
1 merge request!6Issue 11 allow user to enter and update metadata about the latlong points
...@@ -87,12 +87,7 @@ public abstract class AbstractFxAppController { ...@@ -87,12 +87,7 @@ public abstract class AbstractFxAppController {
locationListView.getSelectionModel().selectedIndexProperty() locationListView.getSelectionModel().selectedIndexProperty()
.addListener((prop, oldValue, newValue) -> updateMapMarker(true)); .addListener((prop, oldValue, newValue) -> updateMapMarker(true));
//connect the cell renderer to the list //connect the cell renderer to the list
locationListView.setCellFactory(new Callback<ListView<LatLong>, ListCell<LatLong>>() { locationListView.setCellFactory(listView -> new LatLongCell());
@Override
public ListCell<LatLong> call(ListView<LatLong> listView) {
return new LatLongCell();
}
});
} }
private void handleMapDragged(final Node node, final double dx, final double dy) { private void handleMapDragged(final Node node, final double dx, final double dy) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment