public class LabelsTemplateValuesProvider extends Object implements TemplateValuesProvider
VALUE_NAME_LABELS:
VALUE_NAME_LOCAL: local widgets labelsVALUE_NAME_GLOBAL: global labels
Labels are available as nested map elements (i.e. $labels.local.some.label.key
| Constructor and Description |
|---|
LabelsTemplateValuesProvider() |
| Modifier and Type | Method and Description |
|---|---|
protected CockpitComponentDefinitionService |
getComponentDefinitionService() |
protected WidgetLibUtils |
getWidgetLibUtils() |
Map<String,Object> |
provideTemplateValues(Object context,
String templateId)
Method allows to define values available in template.
|
void |
setComponentDefinitionService(CockpitComponentDefinitionService componentDefinitionService) |
void |
setWidgetLibUtils(WidgetLibUtils widgetLibUtils) |
public Map<String,Object> provideTemplateValues(Object context, String templateId)
TemplateValuesProviderprovideTemplateValues in interface TemplateValuesProvidercontext - object against which a template is to be resolvedtemplateId - identity of a template to be resolvedprotected WidgetLibUtils getWidgetLibUtils()
public void setWidgetLibUtils(WidgetLibUtils widgetLibUtils)
protected CockpitComponentDefinitionService getComponentDefinitionService()
public void setComponentDefinitionService(CockpitComponentDefinitionService componentDefinitionService)
Copyright © 2018. All rights reserved.