Skip to content

Commit

Permalink
- add normal and hq url to details dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
derreisende77 committed Oct 22, 2024
1 parent 0773ea4 commit 9871224
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ public DuplicateFilmDetailsDialog(Window owner, @NotNull DatenFilm film) {

table1.getColumnModel().getColumn(0).setPreferredWidth(90);
table1.getColumnModel().getColumn(1).setPreferredWidth(120);
table1.getColumnModel().getColumn(2).setPreferredWidth(120);
table1.getColumnModel().getColumn(2).setPreferredWidth(200);
table1.getColumnModel().getColumn(5).setPreferredWidth(400);
table1.getColumnModel().getColumn(6).setPreferredWidth(400);

var url = film.getUrlNormalQuality();
Daten.getInstance().getListeFilme().parallelStream()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public Comparator getColumnComparator(int column) {

@Override
public int getColumnCount() {
return 5;
return 7;
}

@Override
Expand All @@ -33,6 +33,8 @@ public String getColumnName(int column) {
case 2 -> "Titel";
case 3 -> "Datum";
case 4 -> "Sendezeit";
case 5 -> "URL HQ";
case 6 -> "URL";
default -> "X" + column;
};
}
Expand All @@ -45,6 +47,8 @@ public Object getColumnValue(DatenFilm baseObject, int column) {
case 2 -> baseObject.getTitle();
case 3 -> baseObject.getSendeDatum();
case 4 -> baseObject.getSendeZeit();
case 5 -> baseObject.getHighQualityUrl();
case 6 -> baseObject.getUrlNormalQuality();
default -> "XX";
};
}
Expand Down

0 comments on commit 9871224

Please sign in to comment.