Package de.xima.fc.gui.bean.plugin
Class PluginStoreBean
- java.lang.Object
-
- de.xima.fc.gui.bean.plugin.PluginStoreBean
-
- All Implemented Interfaces:
Serializable
@ViewScoped @Named public class PluginStoreBean extends Object implements Serializable
Beans for the plugin store UI.- Since:
- 8.0.0
- Author:
- XIMA MEDIA GmbH
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PluginStoreBean()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PluginStoreModel
getModel()
SelectedPluginStoreItem
getSelected()
Gets the currently selected store item, if any.void
onCloseDetailsClicked()
Callback invoked by the UI when the user clicks on the button to close the details view.void
onInstallClicked(String pluginKey)
Callback invoked by the UI when the user clicks on the install button of a plugin.void
onMoreInfoClicked()
Callback invoked by the UI when the user clicks on the more-info button of a plugin.void
onOpenDialog()
Callback invoked by the UI when the plugin store is opened.
-
-
-
Method Detail
-
getModel
public PluginStoreModel getModel()
- Returns:
- The model for the plugin store with the available items.
-
getSelected
public SelectedPluginStoreItem getSelected()
Gets the currently selected store item, if any. If none is selected, the overview with all items should be shown. Otherwise, the details page for the selected item should be shown.- Returns:
- The selected store item, or
null
if none is selected.
-
onCloseDetailsClicked
public void onCloseDetailsClicked()
Callback invoked by the UI when the user clicks on the button to close the details view. Unsets the selected plugin item, causing the UI to switch back to the overview view with all available plugins.
-
onInstallClicked
public void onInstallClicked(String pluginKey)
Callback invoked by the UI when the user clicks on the install button of a plugin.- Parameters:
pluginKey
- Plugin key of the plugin on which the user clicked.
-
onMoreInfoClicked
public void onMoreInfoClicked()
Callback invoked by the UI when the user clicks on the more-info button of a plugin. Loads the details for the selected plugin, causing the UI to switch to the details view with the details of the selected plugin.
-
onOpenDialog
public void onOpenDialog()
Callback invoked by the UI when the plugin store is opened.
-
-