Search in sources :

Example 1 with ContainersFeaturePanel

use of org.phoenicis.javafx.components.container.control.ContainersFeaturePanel in project POL-POM-5 by PlayOnLinux.

the class ViewsConfiguration method viewContainers.

@Bean
public ContainersFeaturePanel viewContainers() {
    final ContainersFeaturePanel containersFeaturePanel = new ContainersFeaturePanel();
    containersFeaturePanel.setJavaFxSettingsManager(javaFxSettingsConfiguration.javaFxSettingsManager());
    final ContainersFilter containersFilter = new ContainersFilter();
    containersFeaturePanel.setFilter(containersFilter);
    return containersFeaturePanel;
}
Also used : ContainersFeaturePanel(org.phoenicis.javafx.components.container.control.ContainersFeaturePanel) ContainersFilter(org.phoenicis.javafx.views.mainwindow.containers.ContainersFilter) Bean(org.springframework.context.annotation.Bean)

Example 2 with ContainersFeaturePanel

use of org.phoenicis.javafx.components.container.control.ContainersFeaturePanel in project POL-POM-5 by PhoenicisOrg.

the class ViewsConfiguration method viewContainers.

@Bean
public ContainersFeaturePanel viewContainers() {
    final ContainersFeaturePanel containersFeaturePanel = new ContainersFeaturePanel();
    containersFeaturePanel.setJavaFxSettingsManager(javaFxSettingsConfiguration.javaFxSettingsManager());
    final ContainersFilter containersFilter = new ContainersFilter();
    containersFeaturePanel.setFilter(containersFilter);
    return containersFeaturePanel;
}
Also used : ContainersFeaturePanel(org.phoenicis.javafx.components.container.control.ContainersFeaturePanel) ContainersFilter(org.phoenicis.javafx.views.mainwindow.containers.ContainersFilter) Bean(org.springframework.context.annotation.Bean)

Example 3 with ContainersFeaturePanel

use of org.phoenicis.javafx.components.container.control.ContainersFeaturePanel in project POL-POM-5 by PlayOnLinux.

the class MainWindow method createContainersTab.

private Tab createContainersTab(ContainersFeaturePanel containers) {
    final Tab containersTab = new Tab(tr("Containers"), containers);
    containersTab.setClosable(false);
    containersTab.setOnSelectionChanged(event -> containers.getContainersManager().fetchContainers(containerCategories -> Platform.runLater(() -> {
        containers.getCategories().setAll(containerCategories);
        containers.setInitialized(true);
    }), e -> Platform.runLater(() -> {
        final ErrorDialog errorDialog = ErrorDialog.builder().withMessage(tr("Loading containers failed.")).withException(e).withOwner(containers.getScene().getWindow()).build();
        errorDialog.showAndWait();
    })));
    return containersTab;
}
Also used : Scene(javafx.scene.Scene) LibraryFeaturePanel(org.phoenicis.javafx.components.library.control.LibraryFeaturePanel) TabIndicator(org.phoenicis.javafx.components.common.control.TabIndicator) IntegerBinding(javafx.beans.binding.IntegerBinding) StringBindings(org.phoenicis.javafx.utils.StringBindings) MappedList(org.phoenicis.javafx.collections.MappedList) Bindings(javafx.beans.binding.Bindings) ErrorDialog(org.phoenicis.javafx.dialogs.ErrorDialog) InstallationDTO(org.phoenicis.javafx.views.mainwindow.installations.dto.InstallationDTO) TabPane(javafx.scene.control.TabPane) JavaFXApplication(org.phoenicis.javafx.JavaFXApplication) ContainersFeaturePanel(org.phoenicis.javafx.components.container.control.ContainersFeaturePanel) InstallationsFeaturePanel(org.phoenicis.javafx.components.installation.control.InstallationsFeaturePanel) SettingsView(org.phoenicis.javafx.views.mainwindow.settings.SettingsView) ApplicationsFeaturePanel(org.phoenicis.javafx.components.application.control.ApplicationsFeaturePanel) InstallationCategoryDTO(org.phoenicis.javafx.views.mainwindow.installations.dto.InstallationCategoryDTO) Localisation.tr(org.phoenicis.configuration.localisation.Localisation.tr) Platform(javafx.application.Platform) JavaFxSettingsManager(org.phoenicis.javafx.settings.JavaFxSettingsManager) Stage(javafx.stage.Stage) SimpleObjectProperty(javafx.beans.property.SimpleObjectProperty) Tab(javafx.scene.control.Tab) ThemeManager(org.phoenicis.javafx.themes.ThemeManager) ConcatenatedList(org.phoenicis.javafx.collections.ConcatenatedList) PhoenicisScene(org.phoenicis.javafx.views.common.PhoenicisScene) Image(javafx.scene.image.Image) EnginesView(org.phoenicis.javafx.views.mainwindow.engines.EnginesView) Tab(javafx.scene.control.Tab) ErrorDialog(org.phoenicis.javafx.dialogs.ErrorDialog)

Example 4 with ContainersFeaturePanel

use of org.phoenicis.javafx.components.container.control.ContainersFeaturePanel in project POL-POM-5 by PhoenicisOrg.

the class MainWindow method createContainersTab.

private Tab createContainersTab(ContainersFeaturePanel containers) {
    final Tab containersTab = new Tab(tr("Containers"), containers);
    containersTab.setClosable(false);
    containersTab.setOnSelectionChanged(event -> containers.getContainersManager().fetchContainers(containerCategories -> Platform.runLater(() -> {
        containers.getCategories().setAll(containerCategories);
        containers.setInitialized(true);
    }), e -> Platform.runLater(() -> {
        final ErrorDialog errorDialog = ErrorDialog.builder().withMessage(tr("Loading containers failed.")).withException(e).withOwner(containers.getScene().getWindow()).build();
        errorDialog.showAndWait();
    })));
    return containersTab;
}
Also used : Scene(javafx.scene.Scene) LibraryFeaturePanel(org.phoenicis.javafx.components.library.control.LibraryFeaturePanel) TabIndicator(org.phoenicis.javafx.components.common.control.TabIndicator) IntegerBinding(javafx.beans.binding.IntegerBinding) StringBindings(org.phoenicis.javafx.utils.StringBindings) MappedList(org.phoenicis.javafx.collections.MappedList) Bindings(javafx.beans.binding.Bindings) ErrorDialog(org.phoenicis.javafx.dialogs.ErrorDialog) InstallationDTO(org.phoenicis.javafx.views.mainwindow.installations.dto.InstallationDTO) TabPane(javafx.scene.control.TabPane) JavaFXApplication(org.phoenicis.javafx.JavaFXApplication) ContainersFeaturePanel(org.phoenicis.javafx.components.container.control.ContainersFeaturePanel) InstallationsFeaturePanel(org.phoenicis.javafx.components.installation.control.InstallationsFeaturePanel) SettingsView(org.phoenicis.javafx.views.mainwindow.settings.SettingsView) ApplicationsFeaturePanel(org.phoenicis.javafx.components.application.control.ApplicationsFeaturePanel) InstallationCategoryDTO(org.phoenicis.javafx.views.mainwindow.installations.dto.InstallationCategoryDTO) Localisation.tr(org.phoenicis.configuration.localisation.Localisation.tr) Platform(javafx.application.Platform) JavaFxSettingsManager(org.phoenicis.javafx.settings.JavaFxSettingsManager) Stage(javafx.stage.Stage) SimpleObjectProperty(javafx.beans.property.SimpleObjectProperty) Tab(javafx.scene.control.Tab) ThemeManager(org.phoenicis.javafx.themes.ThemeManager) ConcatenatedList(org.phoenicis.javafx.collections.ConcatenatedList) PhoenicisScene(org.phoenicis.javafx.views.common.PhoenicisScene) Image(javafx.scene.image.Image) EnginesView(org.phoenicis.javafx.views.mainwindow.engines.EnginesView) Tab(javafx.scene.control.Tab) ErrorDialog(org.phoenicis.javafx.dialogs.ErrorDialog)

Aggregations

ContainersFeaturePanel (org.phoenicis.javafx.components.container.control.ContainersFeaturePanel)4 Platform (javafx.application.Platform)2 Bindings (javafx.beans.binding.Bindings)2 IntegerBinding (javafx.beans.binding.IntegerBinding)2 SimpleObjectProperty (javafx.beans.property.SimpleObjectProperty)2 Scene (javafx.scene.Scene)2 Tab (javafx.scene.control.Tab)2 TabPane (javafx.scene.control.TabPane)2 Image (javafx.scene.image.Image)2 Stage (javafx.stage.Stage)2 Localisation.tr (org.phoenicis.configuration.localisation.Localisation.tr)2 JavaFXApplication (org.phoenicis.javafx.JavaFXApplication)2 ConcatenatedList (org.phoenicis.javafx.collections.ConcatenatedList)2 MappedList (org.phoenicis.javafx.collections.MappedList)2 ApplicationsFeaturePanel (org.phoenicis.javafx.components.application.control.ApplicationsFeaturePanel)2 TabIndicator (org.phoenicis.javafx.components.common.control.TabIndicator)2 InstallationsFeaturePanel (org.phoenicis.javafx.components.installation.control.InstallationsFeaturePanel)2 LibraryFeaturePanel (org.phoenicis.javafx.components.library.control.LibraryFeaturePanel)2 ErrorDialog (org.phoenicis.javafx.dialogs.ErrorDialog)2 JavaFxSettingsManager (org.phoenicis.javafx.settings.JavaFxSettingsManager)2