Package de.xima.fc.gui.bean.plugin
Class PluginStoreBean
java.lang.Object
de.xima.fc.gui.bean.plugin.PluginStoreBean
- All Implemented Interfaces:
Serializable
Beans for the plugin store UI.
- Since:
- 8.0.0
- Author:
- XIMA MEDIA GmbH
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
checkOverload
(PluginStoreItem plugin) Checks if a client can install a plugin, which already is installed in the system scope.getInstallButtonText
(PluginStoreItem plugin) Checks if a client can install a plugin, which already is installed in the system scope.getModel()
Gets the currently selected store item, if any.void
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
Callback invoked by the UI when the user clicks on the more-info button of a plugin.void
Callback invoked by the UI when the plugin store is opened.
-
Constructor Details
-
PluginStoreBean
public PluginStoreBean()
-
-
Method Details
-
checkOverload
Checks if a client can install a plugin, which already is installed in the system scope.- Parameters:
plugin
- the plugin which may be overloaded.- Returns:
true
if overloading is possible.
-
getInstallButtonText
Checks if a client can install a plugin, which already is installed in the system scope.- Parameters:
plugin
- the plugin which may be overloaded.- Returns:
true
if overloading is possible.
-
getModel
- Returns:
- The model for the plugin store with the available items.
-
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
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.
-