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