/
rgd045
/
crypt-file
Обзор
Документация
Войти
/
rgd045
/
crypt-file
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
develop
src/main/java/org/cryptomator/ui/mainwindow/MainWindowComponent.java
41 строка
1 KB
Sebastian Stenzel
Single maven module (#1676)
04 июн 2021, 21:09
Не верифицирован
04 июн 2021, 21:09
7fac6da
Код
Авторство
О чём код?
/******************************************************************************* * Copyright (c) 2017 Skymatic UG (haftungsbeschränkt). * All rights reserved. This program and the accompanying materials * are made available under the terms of the accompanying LICENSE file. *******************************************************************************/ package org.cryptomator.ui.mainwindow; import dagger.Lazy; import dagger.Subcomponent; import org.cryptomator.ui.common.FxmlFile; import org.cryptomator.ui.common.FxmlScene; import javafx.scene.Scene; import javafx.stage.Stage; @MainWindowScoped @Subcomponent(modules = {MainWindowModule.class}) public interface MainWindowComponent { @MainWindow Stage window(); @FxmlScene(FxmlFile.MAIN_WINDOW) Lazy<Scene> scene(); default Stage showMainWindow() { Stage stage = window(); stage.setScene(scene().get()); stage.show(); stage.toFront(); stage.requestFocus(); return stage; } @Subcomponent.Builder interface Builder { MainWindowComponent build(); } }