Interface ApplicationPlugin
Definition of a plug-in describing an application connected to FirstSpirit.
- Since:
- 5.2.1904
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic enum
The contextual icon type. -
Method Summary
Modifier and TypeMethodDescription@Nullable String
A description for the application, ornull
.@NotNull Image<?>
getIcon
(@NotNull ApplicationPlugin.IconType type) Returns the icon representing the application.@NotNull String
getLabel()
The label to be displayed at the application icon.@NotNull String
getUrl()
Returns the URL to be opened when starting the application on the webstart page.boolean
Returns whether or not the application should be enabled in the current context.boolean
Returns whether or not the application should be visible in the current context.
-
Method Details
-
getIcon
Returns the icon representing the application.- Parameters:
type
- The type of requested icon.- Returns:
- The icon.
- Since:
- 5.2.1904
-
getLabel
The label to be displayed at the application icon.- Returns:
- The label.
- Since:
- 5.2.1904
-
getDescription
A description for the application, ornull
.- Returns:
- The description.
- Since:
- 5.2.1904
-
getUrl
Returns the URL to be opened when starting the application on the webstart page.- Returns:
- The application URL.
- Since:
- 5.2.1904
-
isVisible
boolean isVisible()Returns whether or not the application should be visible in the current context.- Returns:
true
if the application should be visible,false
otherwise.- Since:
- 5.2.1904
-
isEnabled
boolean isEnabled()Returns whether or not the application should be enabled in the current context.- Returns:
true
if the application should be enabled,false
otherwise.- Since:
- 5.2.1904
-