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 {
locationListView.getSelectionModel().selectedIndexProperty()
.addListener((prop, oldValue, newValue) -> updateMapMarker(true));
//connect the cell renderer to the list
locationListView.setCellFactory(new Callback<ListView<LatLong>, ListCell<LatLong>>() {
@Override
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
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment