|
@@ -276,11 +276,26 @@ public class BrowserController extends Controller {
|
|
|
//my_movie= my_connector.getMovieInfo(1);
|
|
|
|
|
|
//detailsContent.Text(my_movie.name() + "\n" + my_movie.year() + "\n" + my_movie.duration() + "\n" + my_movie.genre() + "\n" + my_movie.description());
|
|
|
- Text info = new Text("Name:\n " + my_movie.name() + "\n" +
|
|
|
+ String textValue = "Name:\n " + my_movie.name() + "\n" +
|
|
|
+ "Genre: \n " + my_movie.genre() + "\n" +
|
|
|
"Year: \n " + my_movie.year() + "\n" +
|
|
|
"Duration: \n " + my_movie.duration() + "\n" +
|
|
|
- "Genre: \n " + my_movie.genre() + "\n" +
|
|
|
- "Description: \n " + my_movie.description());
|
|
|
+ "Studio: \n " + my_movie.studio() + "\n" +
|
|
|
+ "Director: \n " + my_movie.director() + "\n" +
|
|
|
+ "Artists: \n";
|
|
|
+
|
|
|
+ List<Role> Artists = my_connector.getRoles(my_movie.id());
|
|
|
+ for (Role Artist: Artists) {
|
|
|
+ textValue += " " + Artist.actor() + " - " + Artist.role() + "\n";
|
|
|
+
|
|
|
+ }
|
|
|
+ if (Artists.size() == 0)
|
|
|
+ textValue += " " + "No artists added.\n";
|
|
|
+
|
|
|
+
|
|
|
+ textValue += "Rate: \n " + my_movie.rating() + "\n" +
|
|
|
+ "Description: \n " + my_movie.description();
|
|
|
+ Text info = new Text(textValue);
|
|
|
info.setStyle("-fx-font-size: 14; -fx-fill: #9f9f9f;");
|
|
|
detailsContent.getChildren().clear();
|
|
|
detailsContent.getChildren().add(info);
|
|
@@ -288,7 +303,7 @@ public class BrowserController extends Controller {
|
|
|
detailsPicPane.setImage(null);
|
|
|
//detailsPane.setMaxWidth(300);
|
|
|
//Label movie = e;
|
|
|
- ImageView detailsImage = new ImageView();
|
|
|
+ //ImageView detailsImage = new ImageView();
|
|
|
|
|
|
|
|
|
ImageView image = new ImageView((my_movie.cover()));
|
|
@@ -436,10 +451,10 @@ public class BrowserController extends Controller {
|
|
|
else
|
|
|
moviesGrid.setMinHeight(imageHeight * rows + (moviesGrid.getVgap() * (rows - 1)));
|
|
|
|
|
|
- System.out.println("grid height:" + moviesGrid.getHeight());
|
|
|
- System.out.println("scroll width:" + scrollWidth);
|
|
|
- System.out.println("cols: " + cols);
|
|
|
- System.out.println("rows: " + rows);
|
|
|
+ //System.out.println("grid height:" + moviesGrid.getHeight());
|
|
|
+ //System.out.println("scroll width:" + scrollWidth);
|
|
|
+ //System.out.println("cols: " + cols);
|
|
|
+ //System.out.println("rows: " + rows);
|
|
|
|
|
|
//System.out.println("flow height:" + moviesGrid.getHeight() );
|
|
|
moviesGrid.setMaxWidth(scrollWidth);
|
|
@@ -484,8 +499,8 @@ public class BrowserController extends Controller {
|
|
|
moviesGrid.setMinHeight(imageHeight * rows + (moviesGrid.getVgap() * (rows - 1)));
|
|
|
|
|
|
//System.out.println("scroll width:" + scrollWidth );
|
|
|
- System.out.println("cols: " + cols);
|
|
|
- System.out.println("rows: " + rows);
|
|
|
+ //System.out.println("cols: " + cols);
|
|
|
+ //System.out.println("rows: " + rows);
|
|
|
|
|
|
//System.out.println("flow height:" + moviesGrid.getHeight() );
|
|
|
moviesGrid.setMaxWidth(scrollPane.getWidth());
|