use of org.phoenicis.javafx.components.library.panelstates.ShortcutEditing in project POL-POM-5 by PhoenicisOrg.
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;
}
use of org.phoenicis.javafx.components.library.panelstates.ShortcutEditing 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.library.panelstates.ShortcutEditing 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.library.panelstates.ShortcutEditing 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