public interface ClientScriptProvidingItem<C extends BaseContext>
Modifier and Type | Method and Description |
---|---|
String |
getIconPath(C context)
Provides the resource path to this item's icon.
|
String |
getLabel(C context)
Provides a label for this item wrt. the given context.
|
String |
getScript(C context)
Returns script code, that will be executed on client-side.
|
@NotNull String getLabel(@NotNull C context)
context
- The context to be considered for providing a label.@Nullable String getIconPath(@NotNull C context)
context
- The context to be considered for providing the path.null
, if the item has no icon.Copyright © 2014 e-Spirit AG. All Rights Reserved. Build 5.0_BETA.500