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;
}
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;
}
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;
}
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;
}
Aggregations