7 changed files with 97 additions and 20 deletions
@ -1,18 +1,44 @@
|
||||
package kellerkinder.HomeFlix.application; |
||||
|
||||
import com.jfoenix.controls.JFXButton; |
||||
|
||||
import javafx.fxml.FXML; |
||||
import javafx.scene.control.Label; |
||||
import javafx.scene.image.Image; |
||||
import javafx.scene.image.ImageView; |
||||
import javafx.scene.layout.AnchorPane; |
||||
import javafx.scene.text.Text; |
||||
|
||||
public class FilmDetailView { |
||||
|
||||
@FXML private Label lblFilm; |
||||
@FXML private AnchorPane filmDVPane; |
||||
@FXML private Label lblTitle; |
||||
@FXML private Label lblYear; |
||||
@FXML private Label lblScore; |
||||
|
||||
@FXML private JFXButton btnWhishlist; |
||||
@FXML private JFXButton btnFavourite; |
||||
|
||||
@FXML private Text textPlot; |
||||
|
||||
public void initialize() { |
||||
System.out.println("init nested controller"); |
||||
filmDVPane.setStyle("-fx-background-color: rgba(89,89,89,0.9);"); |
||||
btnWhishlist.setGraphic(new ImageView(new Image("icons/ic_play_arrow_black_18dp_1x.png"))); |
||||
} |
||||
|
||||
public void foo() { |
||||
System.out.println("test"); |
||||
} |
||||
|
||||
@FXML |
||||
private void btnWhishlistAction() { |
||||
|
||||
} |
||||
|
||||
@FXML |
||||
private void btnFavouriteAction() { |
||||
|
||||
} |
||||
|
||||
} |
||||
|
@ -1,10 +1,61 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?> |
||||
|
||||
<?import com.jfoenix.controls.JFXButton?> |
||||
<?import javafx.geometry.Insets?> |
||||
<?import javafx.scene.control.Label?> |
||||
<?import javafx.scene.image.Image?> |
||||
<?import javafx.scene.image.ImageView?> |
||||
<?import javafx.scene.layout.AnchorPane?> |
||||
<?import javafx.scene.layout.HBox?> |
||||
<?import javafx.scene.text.Font?> |
||||
<?import javafx.scene.text.Text?> |
||||
<?import javafx.scene.text.TextFlow?> |
||||
|
||||
<AnchorPane prefHeight="568.0" prefWidth="980.0" xmlns="http://javafx.com/javafx/11.0.1" xmlns:fx="http://javafx.com/fxml/1" fx:controller="kellerkinder.HomeFlix.application.FilmDetailView"> |
||||
<AnchorPane fx:id="filmDVPane" mouseTransparent="true" prefHeight="568.0" prefWidth="1130.0" style="-fx-background-color: #595959;" visible="false" xmlns="http://javafx.com/javafx/11.0.1" xmlns:fx="http://javafx.com/fxml/1" fx:controller="kellerkinder.HomeFlix.application.FilmDetailView"> |
||||
<children> |
||||
<Label fx:id="lblFilm" layoutX="461.0" layoutY="277.0" text="Test Pane" /> |
||||
<HBox layoutX="22.0" layoutY="21.0" prefWidth="808.0" spacing="10.0" AnchorPane.leftAnchor="22.0" AnchorPane.rightAnchor="300.0" AnchorPane.topAnchor="22.0"> |
||||
<children> |
||||
<Label fx:id="lblTitle" minHeight="-Infinity" prefHeight="29.0" text="Spider-Man: A New Universe" textFill="#ecebed"> |
||||
<font> |
||||
<Font name="System Bold" size="24.0" /> |
||||
</font> |
||||
</Label> |
||||
<Label fx:id="lblYear" maxHeight="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="29.0" prefWidth="71.0" text="(2018)" textFill="#ecebed"> |
||||
<font> |
||||
<Font size="24.0" /> |
||||
</font> |
||||
</Label> |
||||
</children> |
||||
</HBox> |
||||
<HBox alignment="CENTER_LEFT" layoutY="71.0" spacing="10.0" AnchorPane.leftAnchor="22.0" AnchorPane.topAnchor="80.0"> |
||||
<children> |
||||
<HBox alignment="CENTER_LEFT"> |
||||
<children> |
||||
<Label fx:id="lblScore" text="Wertung: 80%" textFill="#ecebed" /> |
||||
</children> |
||||
<padding> |
||||
<Insets right="20.0" /> |
||||
</padding> |
||||
</HBox> |
||||
<JFXButton fx:id="btnWhishlist" buttonType="RAISED" contentDisplay="CENTER" maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" onAction="#btnWhishlistAction" prefHeight="40.0" prefWidth="40.0" style="-fx-background-color: #ffffff; -fx-background-radius: 40px;" /> |
||||
<JFXButton fx:id="btnFavourite" buttonType="RAISED" contentDisplay="CENTER" maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" onAction="#btnFavouriteAction" prefHeight="40.0" prefWidth="40.0" style="-fx-background-color: #ffffff; -fx-background-radius: 40px;" /> |
||||
</children> |
||||
</HBox> |
||||
<TextFlow layoutX="22.0" layoutY="150.0" lineSpacing="1.0" prefHeight="200.0" AnchorPane.leftAnchor="22.0" AnchorPane.rightAnchor="300.0" AnchorPane.topAnchor="130.0"> |
||||
<children> |
||||
<Text fx:id="textPlot" fill="#ecebed" strokeType="OUTSIDE" strokeWidth="0.0" text="Handlung Miles Morales wurde von einer genetisch veränderten Spinne gebissen. Das macht ihn schnell zum neuen Spider-Man mit den bekannten Fähigkeiten. Aber Miles ist ein Teenager ohne Ahnung von der verantwortungsvollen Nutzung seiner eigenen Kräfte. Doch Hilfe naht, denn durch eine scheinbar zufällig auftretende Verkettung mehrerer Paralleluniversen trifft Miles auf Spider-Man aka Peter Parker und dieser unterweist ihn in den neuen Superkräften und überträgt ihm Verantwortung. Während beide einen Reifeprozess durchmachen, der eine als Schüler, der andere als Lehrer, treffen immer mehr Superhelden mit ähnlichen Kräften ein - ihre bösen Gegenspieler aber auch ..."> |
||||
<font> |
||||
<Font size="15.0" /> |
||||
</font> |
||||
</Text> |
||||
</children> |
||||
</TextFlow> |
||||
<ImageView fitHeight="400.0" fitWidth="267.0" layoutX="849.0" layoutY="14.0" pickOnBounds="true" preserveRatio="true" AnchorPane.rightAnchor="22.0" AnchorPane.topAnchor="22.0"> |
||||
<image> |
||||
<Image url="@../icons/spider-man.jpg" /> |
||||
</image> |
||||
</ImageView> |
||||
<Label layoutX="29.0" layoutY="338.0" text="Crew:" textFill="#ecebed" /> |
||||
<JFXButton buttonType="RAISED" layoutX="1016.0" layoutY="514.0" prefWidth="100.0" style="-fx-background-color: #456789;" text="Play" /> |
||||
</children> |
||||
</AnchorPane> |
||||
|
After Width: | Height: | Size: 237 KiB |
Loading…
Reference in new issue