Search in sources :

Example 1 with EngineInformationPanel

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

the class EnginesView method createEngineDetailsPanel.

private DetailsPanel createEngineDetailsPanel() {
    final EngineInformationPanel engineInformationPanel = new EngineInformationPanel();
    engineInformationPanel.engineDTOProperty().bind(engineDTO);
    engineInformationPanel.engineProperty().bind(engine);
    engineInformationPanel.setOnEngineInstall(this::installEngine);
    engineInformationPanel.setOnEngineDelete(this::deleteEngine);
    final DetailsPanel detailsPanel = new DetailsPanel();
    detailsPanel.titleProperty().bind(StringBindings.map(engineDTO, engine -> engine.getCategory() + " " + engine.getSubCategory()));
    detailsPanel.setContent(engineInformationPanel);
    detailsPanel.setOnClose(this::closeDetailsView);
    detailsPanel.prefWidthProperty().bind(content.widthProperty().divide(3));
    return detailsPanel;
}
Also used : EngineSidebar(org.phoenicis.javafx.components.engine.control.EngineSidebar) java.util(java.util) EngineSubCategoryPanel(org.phoenicis.javafx.components.engine.control.EngineSubCategoryPanel) StringBindings(org.phoenicis.javafx.utils.StringBindings) MappedList(org.phoenicis.javafx.collections.MappedList) FXCollections(javafx.collections.FXCollections) Engine(org.phoenicis.engines.Engine) Bindings(javafx.beans.binding.Bindings) TabPane(javafx.scene.control.TabPane) EngineCategoryDTO(org.phoenicis.engines.dto.EngineCategoryDTO) ListWidgetType(org.phoenicis.javafx.components.common.widgets.utils.ListWidgetType) ObjectProperty(javafx.beans.property.ObjectProperty) FilteredList(javafx.collections.transformation.FilteredList) Localisation.tr(org.phoenicis.configuration.localisation.Localisation.tr) Observable(javafx.beans.Observable) Collectors(java.util.stream.Collectors) Platform(javafx.application.Platform) Consumer(java.util.function.Consumer) EngineDTO(org.phoenicis.engines.dto.EngineDTO) JavaFxSettingsManager(org.phoenicis.javafx.settings.JavaFxSettingsManager) SimpleObjectProperty(javafx.beans.property.SimpleObjectProperty) Tab(javafx.scene.control.Tab) DetailsPanel(org.phoenicis.javafx.components.common.control.DetailsPanel) ThemeManager(org.phoenicis.javafx.themes.ThemeManager) MainWindowView(org.phoenicis.javafx.views.mainwindow.ui.MainWindowView) ObservableList(javafx.collections.ObservableList) ConcatenatedList(org.phoenicis.javafx.collections.ConcatenatedList) EngineInformationPanel(org.phoenicis.javafx.components.engine.control.EngineInformationPanel) EngineSubCategoryDTO(org.phoenicis.engines.dto.EngineSubCategoryDTO) EngineInformationPanel(org.phoenicis.javafx.components.engine.control.EngineInformationPanel) DetailsPanel(org.phoenicis.javafx.components.common.control.DetailsPanel)

Aggregations

java.util (java.util)1 Consumer (java.util.function.Consumer)1 Collectors (java.util.stream.Collectors)1 Platform (javafx.application.Platform)1 Observable (javafx.beans.Observable)1 Bindings (javafx.beans.binding.Bindings)1 ObjectProperty (javafx.beans.property.ObjectProperty)1 SimpleObjectProperty (javafx.beans.property.SimpleObjectProperty)1 FXCollections (javafx.collections.FXCollections)1 ObservableList (javafx.collections.ObservableList)1 FilteredList (javafx.collections.transformation.FilteredList)1 Tab (javafx.scene.control.Tab)1 TabPane (javafx.scene.control.TabPane)1 Localisation.tr (org.phoenicis.configuration.localisation.Localisation.tr)1 Engine (org.phoenicis.engines.Engine)1 EngineCategoryDTO (org.phoenicis.engines.dto.EngineCategoryDTO)1 EngineDTO (org.phoenicis.engines.dto.EngineDTO)1 EngineSubCategoryDTO (org.phoenicis.engines.dto.EngineSubCategoryDTO)1 ConcatenatedList (org.phoenicis.javafx.collections.ConcatenatedList)1 MappedList (org.phoenicis.javafx.collections.MappedList)1