All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.wicketstuff.datatables.columns.SpanColumn Maven / Gradle / Ivy

There is a newer version: 10.3.0
Show newest version
package org.wicketstuff.datatables.columns;

import org.apache.wicket.extensions.markup.html.repeater.data.grid.ICellPopulator;
import org.apache.wicket.extensions.markup.html.repeater.data.table.AbstractColumn;
import org.apache.wicket.markup.html.basic.Label;
import org.apache.wicket.markup.repeater.Item;
import org.apache.wicket.model.IModel;
import org.wicketstuff.datatables.IDataTablesColumn;

/**
 *
 */
public class SpanColumn extends AbstractColumn implements IDataTablesColumn {

    public SpanColumn(IModel displayModel, S sortProperty) {
        super(displayModel, sortProperty);
    }

    @Override
    public int getColspan() {
        return 0;
    }

    @Override
    public int getRowspan() {
        return 0;
    }

    @Override
    public void populateItem(Item> cellItem, String componentId, IModel rowModel) {
        cellItem.add(new Label(componentId, rowModel));
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy