Class PropertyColumn<T,​S>

    • Constructor Detail

      • PropertyColumn

        public PropertyColumn​(IModel<String> displayModel,
                              S sortProperty,
                              String propertyExpression)
        Creates a property column that is also sortable
        Parameters:
        displayModel - display model
        sortProperty - sort property
        propertyExpression - wicket property expression used by PropertyModel
      • PropertyColumn

        public PropertyColumn​(IModel<String> displayModel,
                              String propertyExpression)
        Creates a non sortable property column
        Parameters:
        displayModel - display model
        propertyExpression - wicket property expression
        See Also:
        PropertyModel
    • Method Detail

      • populateItem

        public void populateItem​(Item<ICellPopulator<T>> item,
                                 String componentId,
                                 IModel<T> rowModel)
        Implementation of populateItem which adds a label to the cell whose model is the provided property expression evaluated against rowModelObject
        Specified by:
        populateItem in interface ICellPopulator<T>
        Parameters:
        item - the item representing the current table cell being rendered
        componentId - the id of the component used to render the cell (only one component should be added to the cell)
        rowModel - the model of the row item being rendered. this model usually contains the model provided by the data provider.
        See Also:
        ICellPopulator.populateItem(Item, String, IModel)