Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit d85a4fd

Browse files
committedMar 9, 2025·
wip
1 parent 0ef0869 commit d85a4fd

File tree

4 files changed

+28
-13
lines changed

4 files changed

+28
-13
lines changed
 
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
package mediathek.gui.messages;
22

3-
public class AboListChangedEvent extends BaseEvent {
3+
public class AboListChangedEvent extends ReloadTableDataEvent {
44
}
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
package mediathek.gui.messages;
22

3-
public class BlacklistChangedEvent extends BaseEvent {
3+
public class BlacklistChangedEvent extends ReloadTableDataEvent {
44
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
/*
2+
* Copyright (c) 2025 derreisende77.
3+
* This code was developed as part of the MediathekView project https://github.com/mediathekview/MediathekView
4+
*
5+
* This program is free software: you can redistribute it and/or modify
6+
* it under the terms of the GNU General Public License as published by
7+
* the Free Software Foundation, either version 3 of the License, or
8+
* (at your option) any later version.
9+
*
10+
* This program is distributed in the hope that it will be useful,
11+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13+
* GNU General Public License for more details.
14+
*
15+
* You should have received a copy of the GNU General Public License
16+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
17+
*/
18+
19+
package mediathek.gui.messages;
20+
21+
public class ReloadTableDataEvent extends BaseEvent {
22+
}

‎src/main/java/mediathek/gui/tabs/tab_film/GuiFilme.java

+4-11
Original file line numberDiff line numberDiff line change
@@ -420,16 +420,6 @@ private void handleButtonStart(ButtonStartEvent e) {
420420
});
421421
}
422422

423-
@Handler
424-
private void handleAboListChanged(AboListChangedEvent e) {
425-
Platform.runLater(reloadTableDataTransition::playFromStart);
426-
}
427-
428-
@Handler
429-
private void handleBlacklistChangedEvent(BlacklistChangedEvent e) {
430-
Platform.runLater(reloadTableDataTransition::playFromStart);
431-
}
432-
433423
@Handler
434424
private void handleStartEvent(StartEvent msg) {
435425
SwingUtilities.invokeLater(this::updateStartInfoProperty);
@@ -640,7 +630,10 @@ private void setupDataTransitions() {
640630

641631
private static class FilterZeitraumEvent extends BaseEvent {}
642632

643-
private static class ReloadTableDataEvent extends BaseEvent {}
633+
/**
634+
* Update table data when receiving ReloadTableDataEvent or subclasses of it.
635+
* @param e event
636+
*/
644637
@Handler
645638
private void handleReloadTableDataEvent(ReloadTableDataEvent e) {
646639
Platform.runLater(reloadTableDataTransition::playFromStart);

0 commit comments

Comments
 (0)
Please sign in to comment.