Commit 4c42b010 authored by George Adrian Stoica's avatar George Adrian Stoica

simplified setting of cellFactory using lambda

parent 5888890a
......@@ -87,12 +87,7 @@ public abstract class AbstractFxAppController {
.addListener((prop, oldValue, newValue) -> updateMapMarker(true));
//connect the cell renderer to the list
locationListView.setCellFactory(new Callback<ListView<LatLong>, ListCell<LatLong>>() {
public ListCell<LatLong> call(ListView<LatLong> listView) {
return new LatLongCell();
locationListView.setCellFactory(listView -> new LatLongCell());
private void handleMapDragged(final Node node, final double dx, final double dy) {
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment