use of org.phoenicis.javafx.components.common.control.DetailsPanel in project POL-POM-5 by PlayOnLinux.
the class ApplicationsFeaturePanelSkin method createApplicationInformationDetailsPanel.
private DetailsPanel createApplicationInformationDetailsPanel(ApplicationInformation action) {
final ApplicationInformationPanel applicationPanel = new ApplicationInformationPanel();
applicationPanel.scriptInterpreterProperty().bind(getControl().scriptInterpreterProperty());
applicationPanel.setApplication(action.getApplication());
applicationPanel.operatingSystemProperty().bind(getControl().operatingSystemProperty());
applicationPanel.containCommercialApplicationsProperty().bind(getControl().containCommercialApplicationsProperty());
applicationPanel.containRequiresPatchApplicationsProperty().bind(getControl().containRequiresPatchApplicationsProperty());
applicationPanel.containAllOSCompatibleApplicationsProperty().bind(getControl().containAllOSCompatibleApplicationsProperty());
applicationPanel.containTestingApplicationsProperty().bind(getControl().containTestingApplicationsProperty());
// TODO: change to a binding
applicationPanel.setShowScriptSource(getControl().getJavaFxSettingsManager().isViewScriptSource());
// TODO: change to an `ObjectBindings.flatMap` call
applicationPanel.webEngineStylesheetProperty().bind(getControl().getThemeManager().webEngineStylesheetProperty());
final DetailsPanel detailsPanel = new DetailsPanel();
detailsPanel.titleProperty().bind(StringBindings.map(getControl().selectedApplicationProperty(), ApplicationDTO::getName));
detailsPanel.setContent(applicationPanel);
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 PhoenicisOrg.
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 PhoenicisOrg.
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 PhoenicisOrg.
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;
}
Aggregations