org.apache.tapestry5.internal.services

## Class PropertyValueLabelProvider

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

- All Implemented Interfaces:
    ValueLabelProvider<Object>

      public class PropertyValueLabelProvider
      extends Object
      implements ValueLabelProvider<Object>

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

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `PropertyValueLabelProvider(ValueEncoderSource valueEncoderSource, PropertyAccess propertyAccess, String labelProperty)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `String` | `getLabel(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,
                                    String labelProperty)

  - ### Method Detail

    - #### getLabel

          public String getLabel(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<Object>`
      Parameters:
        `object` - the value to be label provided from
      Returns:

${project.version} - Copyright © 2003-2014 The Apache Software Foundation.