APISonar


mediathek.mainwindow.MediathekGui.ui

> mediathek > mainwindow > MediathekGui > ui
mediathek APIs mainwindow APIs MediathekGui APIs ui APIs

Example 1
public void actionPerformed(ActionEvent e) {
        if (!MediathekGui.ui().getFilmInfoDialog().isVisible()) {
            MediathekGui.ui().getFilmInfoDialog().showInfo();
        }
    }
Example 2
private void installWindowListener() {
        MediathekGui.ui().addWindowListener(new WindowAdapter() {
            @Override
            public void windowActivated(WindowEvent e) {
                timeline.play();
            }

            @Override
            public void windowDeactivated(WindowEvent e) {
                timeline.pause();
            }
        });
    }
Example 3
private Button createFilmInformationButton() {
        Button btnFilmInformation = new FilmInformationButton();
        btnFilmInformation.setOnAction(e -> SwingUtilities.invokeLater(MediathekGui.ui().getFilmInfoDialog()::showInfo));

        return btnFilmInformation;
    }
Example 4
private void setupWebsiteLink() {
        websiteLink.setOnAction(e -> {
            final var link = currentFilm.getWebsiteLink();
            SwingUtilities.invokeLater(() -> {
                try {
                    UrlHyperlinkAction.openURL(MediathekGui.ui(), link);
                } catch (URISyntaxException ex) {
                    logger.error("Failed to launch web browser for URL: {}", link);
                }
            });
        });
    }
Example 5
private void createFilterDialog() {
        VBox vb = getFilterDialogContent();
        SwingUtilities.invokeLater(() -> filterDialog = new SwingFilterDialog(MediathekGui.ui(), vb));
    }
Example 6
public void actionPerformed(ActionEvent e) {
        DialogLeer dialog = new DialogLeer(parent, true);
        dialog.init("Blacklist", new PanelBlacklist(daten, MediathekGui.ui(), PanelBlacklist.class.getName() + PANEL_BLACKLIST_NAME_POSTFIX));
        dialog.setVisible(true);
    }
Example 7
private void setupSearchField() {
        jfxSearchField = new JFXSearchPanel();
        jfxSearchField.setTooltip(themaTitelTooltip);
        jfxSearchField.setPromptText(PROMPT_THEMA_TITEL);

        final StringProperty textProperty = jfxSearchField.textProperty();

        pause2.setOnFinished(evt -> checkPatternValidity());
        textProperty.addListener((observable, oldValue, newValue) -> pause2.playFromStart());

        pause3.setOnFinished(evt -> SwingUtilities.invokeLater(() -> MediathekGui.ui().tabFilme.filterFilmAction.actionPerformed(null)));
        textProperty.addListener((observable, oldValue, newValue) -> pause3.playFromStart());

        roSearchStringProperty.bind(textProperty);
    }
Example 8
private void printHttpErrorMessage(Response response) {
        final String responseCode = "Responsecode: " + response.code() + '\n' + response.message();
        logger.error("HTTP-Fehler: {} {}", response.code(), response.message());

        if (!(start.countRestarted < Konstanten.MAX_DOWNLOAD_RESTARTS)) {
            SwingUtilities.invokeLater(() -> new MeldungDownloadfehler(MediathekGui.ui(), "URL des Films:\n"
                    + datenDownload.arr[DatenDownload.DOWNLOAD_URL] + "\n\n"
                    + responseCode + '\n', datenDownload).setVisible(true));
        }

        state = HttpDownloadState.ERROR;
        start.status = Start.STATUS_ERR;
    }
Example 9
private void getColor(MVC mvc) {
        DialogFarbe dialog = new DialogFarbe(parentComponent, true, mvc.color);
        dialog.setVisible(true);
        if (dialog.farbe != null) {
            if (!dialog.farbe.equals(mvc.color)) {
                mvc.set(dialog.farbe);
                jTable1.setModel(getModel());
                GuiFunktionen.updateGui(MediathekGui.ui());
                Daten.mVColor.save();
            }
        }
    }