use of org.phoenicis.javafx.components.common.control.DetailsPanel in project POL-POM-5 by PhoenicisOrg.
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;
}
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;
}
use of org.phoenicis.javafx.components.common.control.DetailsPanel in project POL-POM-5 by PlayOnLinux.
the class LibraryFeaturePanelSkin method createShortcutInformationDetailsPanel.
private DetailsPanel createShortcutInformationDetailsPanel(ShortcutInformation action) {
final ShortcutInformationPanel shortcutInformationPanel = new ShortcutInformationPanel();
shortcutInformationPanel.javaFxSettingsManagerProperty().bind(getControl().javaFxSettingsManagerProperty());
shortcutInformationPanel.setShortcut(action.getShortcut());
shortcutInformationPanel.objectMapperProperty().bind(getControl().objectMapperProperty());
shortcutInformationPanel.setOnShortcutRun(getControl()::runShortcut);
shortcutInformationPanel.setOnShortcutStop(getControl()::stopShortcut);
shortcutInformationPanel.setOnShortcutUninstall(getControl()::uninstallShortcut);
shortcutInformationPanel.setOnShortcutEdit(shortcut -> getControl().setOpenedDetailsPanel(new ShortcutEditing(getControl().getSelectedShortcut())));
final DetailsPanel detailsPanel = new DetailsPanel();
detailsPanel.titleProperty().bind(StringBindings.map(getControl().selectedShortcutProperty(), shortcut -> shortcut.getInfo().getName()));
detailsPanel.setContent(shortcutInformationPanel);
detailsPanel.setOnClose(getControl()::closeDetailsPanel);
detailsPanel.prefWidthProperty().bind(getControl().widthProperty().divide(3));
return detailsPanel;
}
Aggregations