Package org.apache.tapestry5.internal
Class DefaultValueLabelProvider
- java.lang.Object
-
- org.apache.tapestry5.internal.DefaultValueLabelProvider
-
- All Implemented Interfaces:
ValueLabelProvider<Object>
public class DefaultValueLabelProvider extends Object implements ValueLabelProvider<Object>
Uses theTypeCoercer
to convert an arbitrary value to a string.- Since:
- 5.4
-
-
Constructor Summary
Constructors Constructor Description DefaultValueLabelProvider(TypeCoercer coercer)
-
-
-
Constructor Detail
-
DefaultValueLabelProvider
public DefaultValueLabelProvider(TypeCoercer coercer)
-
-
Method Detail
-
getLabel
public String getLabel(Object value)
Description copied from interface:ValueLabelProvider
Gets label from the value. The label is used as user-presentable label for a value.- Specified by:
getLabel
in interfaceValueLabelProvider<Object>
- Parameters:
value
- the value to be label provided from- Returns:
-
-