Skip to content
Snippets Groups Projects

New explore

Merged Stian Fjæran Mogen requested to merge new_explore into dev
All threads resolved!
1 file
+ 3
7
Compare changes
  • Side-by-side
  • Inline
@@ -85,6 +85,7 @@ public class Search implements Initializable {
pane.setPrefHeight(300);
ImageView imageView = new ImageView();
imageView.setId(String.valueOf(images.get(i).getId()));
imageView.setImage(ImageUtil.convertToFXImage(images.get(i)));
imageView.setFitHeight(300);
imageView.setFitWidth(500);
@@ -234,15 +235,10 @@ public class Search implements Initializable {
* @throws IOException
*/
public void switchToPicture(MouseEvent mouseEvent) throws IOException {
boolean imageIdFound = false;
long imageId = 0;
Node node = (Node) mouseEvent.getSource();
while (!imageIdFound){
if (node.getId() != null){
imageId = Long.parseLong(node.getId());
imageIdFound = true;
}
node = node.getParent();
if (node.getId() != null){
imageId = Long.parseLong(node.getId());
}
if (imageId != 0) {
Loading