org.wicketstuff.datatables.columns.SpanColumn Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of wicketstuff-datatables Show documentation
Show all versions of wicketstuff-datatables Show documentation
DataTables jQuery integration for Wicket
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