Search in sources :

Example 1 with ContainerInformationPanel

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;
}
Also used : ContainerInformationPanel(org.phoenicis.javafx.components.container.control.ContainerInformationPanel) ContainerDTO(org.phoenicis.containers.dto.ContainerDTO) OpenDetailsPanel(org.phoenicis.javafx.components.common.panelstates.OpenDetailsPanel) DetailsPanel(org.phoenicis.javafx.components.common.control.DetailsPanel) Observable(javafx.beans.Observable)

Example 2 with ContainerInformationPanel

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;
}
Also used : ContainerInformationPanel(org.phoenicis.javafx.components.container.control.ContainerInformationPanel) ContainerDTO(org.phoenicis.containers.dto.ContainerDTO) OpenDetailsPanel(org.phoenicis.javafx.components.common.panelstates.OpenDetailsPanel) DetailsPanel(org.phoenicis.javafx.components.common.control.DetailsPanel) Observable(javafx.beans.Observable)

Aggregations

Observable (javafx.beans.Observable)2 ContainerDTO (org.phoenicis.containers.dto.ContainerDTO)2 DetailsPanel (org.phoenicis.javafx.components.common.control.DetailsPanel)2 OpenDetailsPanel (org.phoenicis.javafx.components.common.panelstates.OpenDetailsPanel)2 ContainerInformationPanel (org.phoenicis.javafx.components.container.control.ContainerInformationPanel)2