@Component(value="tapirCustomLabelAwareLabelProvider") public class CustomLabelAwareLabelProvider extends Object implements LabelProvider
LabelProvider
is aware of classes which implement CustomLabeled
. getLabel
returns the custom label if the class implements CustomLabeled
and falls back to toString()
otherwise.Constructor and Description |
---|
CustomLabelAwareLabelProvider() |
Modifier and Type | Method and Description |
---|---|
String |
getLabel(Object object)
Returns the label of the given object.
|
public String getLabel(Object object)
LabelProvider
toString()
.getLabel
in interface LabelProvider
object
- The object which's label should be returnedCopyright © 2018 b+m Informatik AG. All rights reserved.