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

org.wicketstuff.datatables.options.Column Maven / Gradle / Ivy

There is a newer version: 10.3.0
Show newest version
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