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

added javadoc and changed the default heit for empty cells

parent 08df1d16
No related branches found
No related tags found
1 merge request!6Issue 11 allow user to enter and update metadata about the latlong points
...@@ -5,7 +5,7 @@ import javafx.scene.layout.Region; ...@@ -5,7 +5,7 @@ import javafx.scene.layout.Region;
import simpleex.core.LatLong; import simpleex.core.LatLong;
/** /**
* * Renderer for a listview item containg a LatLong object
* @author Adrian Stoica * @author Adrian Stoica
* *
*/ */
...@@ -17,14 +17,12 @@ public class LatLongCell extends ListCell<LatLong> { ...@@ -17,14 +17,12 @@ public class LatLongCell extends ListCell<LatLong> {
if(empty || location == null) { if(empty || location == null) {
setText(null); setText(null);
setGraphic(null); setGraphic(null);
setPrefHeight(25.0); setPrefHeight(30.0);
} else { } else {
LatLongCellController latLongCellController = new LatLongCellController(); LatLongCellController latLongCellController = new LatLongCellController();
latLongCellController.setLatLong(location); latLongCellController.setLatLong(location);
setGraphic(latLongCellController.getCellView(this.isSelected())); setGraphic(latLongCellController.getCellView(this.isSelected()));
setPrefHeight(Region.USE_COMPUTED_SIZE); setPrefHeight(Region.USE_COMPUTED_SIZE);
//setPrefHeight(50.0);
} }
} }
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment