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

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

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

import de.agilecoders.wicket.jquery.AbstractConfig;
import de.agilecoders.wicket.jquery.IKey;
import de.agilecoders.wicket.jquery.Key;

/**
 * https://datatables.net/extensions/scroller/
 */
public class ScrollerOptions extends AbstractConfig {

	/**
	 * https://datatables.net/reference/option/scroller.loadingIndicator
	 */
	private static final IKey LoadingIndicator = new Key<>("loadingIndicator", false);

	/**
	 * https://datatables.net/reference/option/scroller.boundaryScale
	 */
	private static final IKey BoundaryScale = new Key<>("boundaryScale", 0.5d);

	/**
	 * https://datatables.net/reference/option/scroller.displayBuffer
	 */
	private static final IKey DisplayBuffer = new Key<>("displayBuffer", 20);

	/**
	 * https://datatables.net/reference/option/scroller.serverWait
	 * https://datatables.net/extensions/scroller/examples/initialisation/server-side_processing.html
	 */
	private static final IKey ServerWait = new Key<>("serverWait", 200);

	public ScrollerOptions loadingIndicator(boolean loadingIndicator) {
		put(LoadingIndicator, loadingIndicator);
		return this;
	}

	public ScrollerOptions displayBuffer(int displayBuffer) {
		put(DisplayBuffer, displayBuffer);
		return this;
	}

	public ScrollerOptions serverWait(int serverWait) {
		put(ServerWait, serverWait);
		return this;
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy