Browse Source

fix typo in SeriesDVEpisode class name

dev
Jannik 4 months ago
parent
commit
9b5fdaa418
Signed by: Seil0
GPG Key ID: E8459F3723C52C24
  1. 10
      src/main/java/org/mosad/homeflix/application/MainWindowController.java
  2. 4
      src/main/java/org/mosad/homeflix/application/view/SeriesDetailView.java
  3. 6
      src/main/java/org/mosad/homeflix/datatypes/SeriesDVEpisode.java
  4. 2
      src/main/java/org/mosad/homeflix/player/Player.java

10
src/main/java/org/mosad/homeflix/application/MainWindowController.java

@ -106,7 +106,7 @@ public class MainWindowController {
private String btnStyle;
private ObservableList<PosterModeElement> posterEmenents = FXCollections.observableArrayList();
private LocalDate lastValidCache = LocalDate.now().minusDays(30); // current date - 30 days is the last valid cache date
private final LocalDate lastValidCache = LocalDate.now().minusDays(30); // current date - 30 days is the last valid cache date
public MainWindowController() {
// the constructor
@ -158,7 +158,7 @@ public class MainWindowController {
// general actions
HamburgerBackArrowBasicTransition burgerTask = new HamburgerBackArrowBasicTransition(menuHam);
menuHam.addEventHandler(MouseEvent.MOUSE_PRESSED, (e) -> {
menuHam.addEventHandler(MouseEvent.MOUSE_PRESSED, e -> {
if (menuTrue) {
sideMenuSlideOut();
@ -380,7 +380,7 @@ public class MainWindowController {
LOGGER.error(e);
}
System.out.println("finished refresh");
LOGGER.info("finished refresh");
}
/**
@ -393,7 +393,7 @@ public class MainWindowController {
// add button onAction
for (PosterModeElement element : posterEmenents) {
element.getButton().addEventHandler(MouseEvent.MOUSE_CLICKED, (event) -> {
element.getButton().addEventHandler(MouseEvent.MOUSE_CLICKED, event -> {
enableBlur(); // blur the FlowPane
// if the selected element is a file it's a film, else a series
@ -409,8 +409,6 @@ public class MainWindowController {
posterModeFlowPane.getChildren().clear(); // remove all GUIElements from the posterModeFlowPane
posterModeFlowPane.getChildren().addAll(posterEmenents); // add all films/series as new GUIElements to the posterModeFlowPane
System.out.println("added gui elements");
}
// TODO can this be done in dbController? with dbController.refreshDataBase();

4
src/main/java/org/mosad/homeflix/application/view/SeriesDetailView.java

@ -31,7 +31,7 @@ import org.apache.logging.log4j.Logger;
import org.mosad.homeflix.controller.DBController;
import org.mosad.homeflix.controller.XMLController;
import org.mosad.homeflix.datatypes.OMDbAPIResponseDataType;
import org.mosad.homeflix.datatypes.SeriresDVEpisode;
import org.mosad.homeflix.datatypes.SeriesDVEpisode;
import org.mosad.homeflix.player.Player;
import com.jfoenix.controls.JFXButton;
@ -205,7 +205,7 @@ public class SeriesDetailView extends DetailView {
} catch (Exception e) {
poster = new Image("icons/Homeflix_Poster.png");
}
hBoxEpisodes.getChildren().add(new SeriresDVEpisode(episodePoster[0], episodePoster[1], poster));
hBoxEpisodes.getChildren().add(new SeriesDVEpisode(episodePoster[0], episodePoster[1], poster));
}
}

6
src/main/java/org/mosad/homeflix/datatypes/SeriresDVEpisode.java → src/main/java/org/mosad/homeflix/datatypes/SeriesDVEpisode.java

@ -8,13 +8,13 @@ import javafx.scene.image.ImageView;
import javafx.scene.input.MouseEvent;
import javafx.scene.layout.AnchorPane;
public class SeriresDVEpisode extends AnchorPane {
public class SeriesDVEpisode extends AnchorPane {
private String streamURL;
private Label label = new Label();
private ImageView imageView = new ImageView();
public SeriresDVEpisode() {
public SeriesDVEpisode() {
super.getChildren().addAll(imageView, label);
super.prefWidth(200);
super.prefHeight(112);
@ -28,7 +28,7 @@ public class SeriresDVEpisode extends AnchorPane {
super.setLeftAnchor(label, 7.0);
}
public SeriresDVEpisode(String streamURL, String episode, Image poster) {
public SeriesDVEpisode(String streamURL, String episode, Image poster) {
this();
this.streamURL = streamURL;

2
src/main/java/org/mosad/homeflix/player/Player.java

@ -68,7 +68,7 @@ public class Player {
* @param streamURL
*/
private void defaultPlayer(String mediaURL) {
playerController = new PlayerController(this, mediaURL);
playerController = new PlayerController(this, mediaURL);
try {
FXMLLoader fxmlLoader = new FXMLLoader();

Loading…
Cancel
Save

Du besuchst diese Seite mit einem veralteten IPv4-Internetzugang. Möglicherweise treten in Zukunft Probleme mit der Erreichbarkeit und Performance auf. Bitte frage deinen Internetanbieter oder Netzwerkadministrator nach IPv6-Unterstützung.
You are visiting this site with an outdated IPv4 internet access. You may experience problems with accessibility and performance in the future. Please ask your ISP or network administrator for IPv6 support.
Weitere Infos | More Information
Klicke zum schließen | Click to close