Class PropertyPopulator<T>

  • Type Parameters:
    T -
    All Implemented Interfaces:
    Serializable, ICellPopulator<T>, org.apache.wicket.model.IDetachable, org.apache.wicket.util.io.IClusterable

    public class PropertyPopulator<T>
    extends Object
    implements ICellPopulator<T>
    A convenience implementation of ICellPopulator that adds a label that will display the value of the specified property. Non-string properties will be converted to a string before display.

    Example

     ICellPopulator cityPopulator = new PropertyPopulator("address.city");
     
    Author:
    Igor Vaynberg (ivaynberg)
    See Also:
    Serialized Form
    • Constructor Detail

      • PropertyPopulator

        public PropertyPopulator​(String property)
        Constructor
        Parameters:
        property - property whose value will be displayed in the cell. uses wicket's PropertyModel notation.
    • Method Detail

      • detach

        public void detach()
        Specified by:
        detach in interface org.apache.wicket.model.IDetachable
        See Also:
        IDetachable.detach()