Search in sources :

Example 1 with ImmediateNotificationController

use of com.faforever.client.notification.ImmediateNotificationController in project downlords-faf-client by FAForever.

the class MainController method displayImmediateNotification.

private void displayImmediateNotification(ImmediateNotification notification) {
    ImmediateNotificationController controller = uiService.loadFxml("theme/immediate_notification.fxml");
    controller.setNotification(notification);
    Stage userInfoWindow = new Stage(StageStyle.TRANSPARENT);
    userInfoWindow.initModality(Modality.NONE);
    userInfoWindow.initOwner(StageHolder.getStage().getOwner());
    WindowController windowController = uiService.loadFxml("theme/window.fxml");
    windowController.configure(userInfoWindow, controller.getRoot(), true, CLOSE, MAXIMIZE_RESTORE);
    userInfoWindow.show();
}
Also used : ImmediateNotificationController(com.faforever.client.notification.ImmediateNotificationController) Stage(javafx.stage.Stage) WindowController(com.faforever.client.fx.WindowController)

Aggregations

WindowController (com.faforever.client.fx.WindowController)1 ImmediateNotificationController (com.faforever.client.notification.ImmediateNotificationController)1 Stage (javafx.stage.Stage)1