Package com.hybris.cockpitng.labels.impl
Class DefaultCollectionLabelProvider
- java.lang.Object
-
- com.hybris.cockpitng.labels.impl.DefaultCollectionLabelProvider
-
- All Implemented Interfaces:
LabelProvider<java.util.Collection<?>>
public class DefaultCollectionLabelProvider extends java.lang.Object implements LabelProvider<java.util.Collection<?>>
Provides a string label for collection of objects. UsesLabelServicefor every instance in the collection and spring configured separator. SeesetSeparator(String).
-
-
Constructor Summary
Constructors Constructor Description DefaultCollectionLabelProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetDescription(java.util.Collection<?> object)Returns text description for a given Object.java.lang.StringgetIconPath(java.util.Collection<?> object)Returns icon path for a given Object.java.lang.StringgetLabel(java.util.Collection<?> collection)Returns label for a given Object.protected LabelServicegetLabelService()protected java.lang.StringgetSeparator()voidsetLabelService(LabelService labelService)voidsetSeparator(java.lang.String separator)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.hybris.cockpitng.labels.LabelProvider
getShortLabel
-
-
-
-
Method Detail
-
getLabel
public java.lang.String getLabel(java.util.Collection<?> collection)
Description copied from interface:LabelProviderReturns label for a given Object.- Specified by:
getLabelin interfaceLabelProvider<java.util.Collection<?>>- Returns:
- label for a given object
-
getSeparator
protected java.lang.String getSeparator()
-
setSeparator
public void setSeparator(java.lang.String separator)
- Parameters:
separator- the separator to set
-
getDescription
public java.lang.String getDescription(java.util.Collection<?> object)
Description copied from interface:LabelProviderReturns text description for a given Object.- Specified by:
getDescriptionin interfaceLabelProvider<java.util.Collection<?>>- Returns:
- description for a given object
-
getIconPath
public java.lang.String getIconPath(java.util.Collection<?> object)
Description copied from interface:LabelProviderReturns icon path for a given Object.- Specified by:
getIconPathin interfaceLabelProvider<java.util.Collection<?>>- Returns:
- icon path for a given object
-
getLabelService
protected LabelService getLabelService()
- Returns:
- the labelService
-
setLabelService
public void setLabelService(LabelService labelService)
-
-