Package org.apache.tapestry5.internal.services

## Class PropertyValueLabelProvider

- java.lang.Object
- - org.apache.tapestry5.internal.services.PropertyValueLabelProvider

- All Implemented Interfaces:
    `ValueLabelProvider<java.lang.Object>`

      public class PropertyValueLabelProvider
      extends java.lang.Object
      implements ValueLabelProvider<java.lang.Object>

  Provides a label from a property of the passed object.
  Since:
    5.4

- - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `PropertyValueLabelProvider​(ValueEncoderSource valueEncoderSource, PropertyAccess propertyAccess, java.lang.String labelProperty)` |

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `java.lang.String` | `getLabel​(java.lang.Object object)` | Gets label from the value.

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

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

- - ### Constructor Detail

    - #### PropertyValueLabelProvider

          public PropertyValueLabelProvider​(ValueEncoderSource valueEncoderSource,
                                            PropertyAccess propertyAccess,
                                            java.lang.String labelProperty)

  - ### Method Detail

    - #### getLabel

          public java.lang.String getLabel​(java.lang.Object object)

      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<java.lang.Object>`
      Parameters:
        `object` - the value to be label provided from
      Returns: