public class DefaultLabelService extends Object implements LabelService, org.springframework.context.ApplicationContextAware
LabelService that uses Base configuration.| Constructor and Description |
|---|
DefaultLabelService() |
| Modifier and Type | Method and Description |
|---|---|
protected <CONFIG> ConfigContext |
buildConfigurationContext(ConfigContext additionalContext,
Class<CONFIG> configurationType)
Deprecated.
since 6.7 this method has no replacement. If you need to decorate the context for the label service
subclass from this class and implement the decorating logic. This method will be removed along with the
complementary
setContextDecorators(List) method. |
protected String |
getFallbackLabel(Object object) |
protected Labels |
getLabelConfiguration(Object object) |
protected String |
getLabelInternal(Object object,
Function<LabelProvider,String> provider,
Function<Labels,String> handler) |
protected LabelProvider<Object> |
getLabelProvider(Object object,
Labels labelConfig) |
String |
getObjectDescription(Object object)
Returns text description for a given Object.
|
String |
getObjectIconPath(Object object)
Returns icon path for a given Object.
|
String |
getObjectLabel(Object object)
Returns label for a given Object.
|
String |
getShortObjectLabel(Object object)
Returns short label for a given Object.
|
protected String |
getType(Object object) |
protected ModelValueHandler |
getValueHandler() |
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
void |
setCockpitConfigurationService(CockpitConfigurationService cockpitConfigurationService) |
void |
setContextDecorators(List<WidgetConfigurationContextDecorator> contextDecorators)
Deprecated.
since 6.7 this method has no replacement. If you need to decorate the context for the label service
subclass from this class and implement the decorating logic. This method will be removed along with the
complementary
buildConfigurationContext(ConfigContext, Class) method. |
void |
setLabelStringObjectHandler(LabelStringObjectHandler labelStringObjectHandler) |
void |
setModelValueHandlerFactory(ModelValueHandlerFactory modelValueHandlerFactory) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAccessDeniedLabel, getLanguageDisabledLabelpublic void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
setApplicationContext in interface org.springframework.context.ApplicationContextAwarepublic String getObjectLabel(Object object)
LabelServicegetObjectLabel in interface LabelServiceobject - target objectpublic String getShortObjectLabel(Object object)
LabelServiceLabelService.getObjectLabel(Object).getShortObjectLabel in interface LabelServiceobject - target objectLabelService.getObjectLabel(java.lang.Object)protected String getLabelInternal(Object object, Function<LabelProvider,String> provider, Function<Labels,String> handler)
public String getObjectDescription(Object object)
LabelServicegetObjectDescription in interface LabelServiceobject - target objectpublic String getObjectIconPath(Object object)
LabelServicegetObjectIconPath in interface LabelServiceobject - target object@Deprecated protected <CONFIG> ConfigContext buildConfigurationContext(ConfigContext additionalContext, Class<CONFIG> configurationType)
setContextDecorators(List) method.protected LabelProvider<Object> getLabelProvider(Object object, Labels labelConfig)
protected ModelValueHandler getValueHandler()
public void setCockpitConfigurationService(CockpitConfigurationService cockpitConfigurationService)
public void setModelValueHandlerFactory(ModelValueHandlerFactory modelValueHandlerFactory)
@Deprecated public void setContextDecorators(List<WidgetConfigurationContextDecorator> contextDecorators)
buildConfigurationContext(ConfigContext, Class) method.public void setLabelStringObjectHandler(LabelStringObjectHandler labelStringObjectHandler)
Copyright © 2018. All rights reserved.