use of org.phoenicis.javafx.components.container.control.ContainerInformationPanel 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.container.control.ContainerInformationPanel 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;
}
Aggregations