use of org.phoenicis.javafx.components.common.control.DetailsPanel in project POL-POM-5 by PlayOnLinux.
the class ContainersFeaturePanelSkin method createContainerInformationDetailsPanel.
private DetailsPanel createContainerInformationDetailsPanel(ContainerInformation action) {
final ContainerDTO container = action.getContainer();
final ContainerInformationPanel containerInformationPanel = new ContainerInformationPanel();
containerInformationPanel.setContainer(container);
containerInformationPanel.enginesManagerProperty().bind(getControl().enginesManagerProperty());
containerInformationPanel.verbsManagerProperty().bind(getControl().verbsManagerProperty());
containerInformationPanel.engineToolsManagerProperty().bind(getControl().engineToolsManagerProperty());
containerInformationPanel.setOnDeleteContainer(getControl()::deleteContainer);
containerInformationPanel.setOnChangeEngineVersion(getControl()::changeEngineVersion);
containerInformationPanel.setOnOpenFileBrowser(getControl()::openFileBrowser);
getControl().getEngineSettings().addListener((Observable invalidation) -> updateEngineSettings(containerInformationPanel));
getControl().getVerbs().addListener((Observable invalidation) -> updateVerbs(containerInformationPanel));
getControl().getEngineTools().addListener((Observable invalidation) -> updateEngineTools(containerInformationPanel));
updateEngineSettings(containerInformationPanel);
updateVerbs(containerInformationPanel);
updateEngineTools(containerInformationPanel);
final DetailsPanel containerDetailsPanel = new DetailsPanel();
containerDetailsPanel.setTitle(container.getName());
containerDetailsPanel.setContent(containerInformationPanel);
containerDetailsPanel.setOnClose(getControl()::closeDetailsPanel);
containerDetailsPanel.prefWidthProperty().bind(getControl().widthProperty().divide(3));
return containerDetailsPanel;
}
use of org.phoenicis.javafx.components.common.control.DetailsPanel 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;
}
use of org.phoenicis.javafx.components.common.control.DetailsPanel in project POL-POM-5 by PlayOnLinux.
the class InstallationsFeaturePanelSkin method createInstallationDetailsPanel.
private DetailsPanel createInstallationDetailsPanel(Installation action) {
final InstallationDTO installation = action.getInstallation();
final DetailsPanel detailsPanel = new DetailsPanel();
detailsPanel.setTitle(installation.getName());
detailsPanel.setContent(installation.getNode());
detailsPanel.setOnClose(getControl()::closeDetailsPanel);
detailsPanel.prefWidthProperty().bind(getControl().widthProperty().divide(3));
return detailsPanel;
}
use of org.phoenicis.javafx.components.common.control.DetailsPanel in project POL-POM-5 by PlayOnLinux.
the class LibraryFeaturePanelSkin method createShortcutCreationDetailsPanel.
private DetailsPanel createShortcutCreationDetailsPanel() {
final ShortcutCreationPanel shortcutCreationPanel = new ShortcutCreationPanel();
shortcutCreationPanel.setOnCreateShortcut(getControl()::createShortcut);
shortcutCreationPanel.containersPathProperty().bind(getControl().containersPathProperty());
final DetailsPanel detailsPanel = new DetailsPanel();
detailsPanel.setTitle(tr("Create a new shortcut"));
detailsPanel.setContent(shortcutCreationPanel);
detailsPanel.setOnClose(getControl()::closeDetailsPanel);
detailsPanel.prefWidthProperty().bind(getControl().widthProperty().divide(3));
return detailsPanel;
}
use of org.phoenicis.javafx.components.common.control.DetailsPanel in project POL-POM-5 by PlayOnLinux.
the class LibraryFeaturePanelSkin method createShortcutEditingDetailsPanel.
private DetailsPanel createShortcutEditingDetailsPanel(ShortcutEditing action) {
final ShortcutEditingPanel shortcutEditingPanel = new ShortcutEditingPanel();
shortcutEditingPanel.onShortcutChangedProperty().bind(ObjectBindings.map(getControl().shortcutManagerProperty(), shortcutManager -> shortcutManager::updateShortcut));
shortcutEditingPanel.objectMapperProperty().bind(getControl().objectMapperProperty());
shortcutEditingPanel.setShortcut(action.getShortcut());
final DetailsPanel detailsPanel = new DetailsPanel();
detailsPanel.titleProperty().bind(StringBindings.map(getControl().selectedShortcutProperty(), shortcut -> shortcut.getInfo().getName()));
detailsPanel.setContent(shortcutEditingPanel);
detailsPanel.setOnClose(getControl()::closeDetailsPanel);
detailsPanel.prefWidthProperty().bind(getControl().widthProperty().divide(3));
return detailsPanel;
}
Aggregations