org.wicketstuff.datatables.options.Column 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.options;
import de.agilecoders.wicket.jquery.util.Json;
import java.io.Serializable;
/**
* The definition of a column.
*
* @see DataTables columns
*/
public class Column implements Serializable {
/**
* https://datatables.net/reference/option/columns.data
*/
private final String data;
/**
* https://datatables.net/reference/option/columns.orderable
*/
private final boolean orderable;
/**
* https://datatables.net/reference/option/columns.render
*/
private Json.RawValue render;
public Column(final String data) {
this(data, true);
}
public Column(final String data, final boolean orderable) {
this.data = data;
this.orderable = orderable;
}
public String getData() {
return data;
}
public boolean isOrderable() {
return orderable;
}
public Json.RawValue getRender() {
return render;
}
public void setRender(final Json.RawValue renderFunction) {
this.render = renderFunction;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy