Interface ClientScriptProvidingInlineEditItem
- All Superinterfaces:
ClientScriptProvidingItem<InlineEditContext>
,InlineEditItem
,Item<InlineEditContext>
public interface ClientScriptProvidingInlineEditItem
extends InlineEditItem, ClientScriptProvidingItem<InlineEditContext>
Item providing a native script for client-side execution in the context of inline editing.
- Since:
- 5.0.103
-
Method Summary
Modifier and TypeMethodDescription@Nullable String
getIconPath
(@NotNull InlineEditContext context) Returns a URL for the button item's icon graphic that will be shown in the WebClient.@NotNull String
getLabel
(@NotNull InlineEditContext context) Provides a label for this item.@Nullable String
getScript
(InlineEditContext context) Returns client script code that will be executed within the WebClient interface.Methods inherited from interface de.espirit.firstspirit.webedit.plugin.inlineedit.InlineEditItem
isEnabled, isVisible
-
Method Details
-
getLabel
Provides a label for this item.- Specified by:
getLabel
in interfaceClientScriptProvidingItem<InlineEditContext>
- Parameters:
context
- The item's operational context.- Returns:
- The item label.
- Since:
- 5.0.103
-
getIconPath
Returns a URL for the button item's icon graphic that will be shown in the WebClient. The URL may be relative to the WebClient web application's root directory or absolute.- Specified by:
getIconPath
in interfaceClientScriptProvidingItem<InlineEditContext>
- Parameters:
context
- The item's operational context.- Returns:
- A resource path to the icon file or
null
if the item has no icon (in this case, a default icon may be displayed). - Since:
- 5.0.103
-
getScript
Returns client script code that will be executed within the WebClient interface.- Specified by:
getScript
in interfaceClientScriptProvidingItem<InlineEditContext>
- Parameters:
context
- The item's operational context.- Returns:
- Native client script or
null
. - Since:
- 5.0.103
-