Package org.apache.tapestry5.internal.services

# Class EnumValueLabelProvider<T extends Enum>

java.lang.Object
org.apache.tapestry5.internal.services.EnumValueLabelProvider<T>

All Implemented Interfaces:
  `ValueLabelProvider<T>`

public class EnumValueLabelProvider<T extends Enum> extends Object implements ValueLabelProvider<T>
Provides a label from enum.

Since:
  5.4

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `EnumValueLabelProvider(Messages messages)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `String`
  `getLabel(T value)`
  Gets label from the value.

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### EnumValueLabelProvider

    public EnumValueLabelProvider(Messages messages)

- ## Method Details

  - ### getLabel

    public String getLabel(T 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 interface `ValueLabelProvider<T extends Enum>`
    Parameters:
      `value` - the value to be label provided from
    Returns: