com.jwebmp.plugins.pace.PaceLoaderOptions Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jwebmp-pace-loader Show documentation
Show all versions of jwebmp-pace-loader Show documentation
The JWebSwing implementation for Pace Loader
/*
* Copyright (C) 2017 GedMarc
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*/
package com.jwebmp.plugins.pace;
import com.jwebmp.core.htmlbuilder.javascript.JavaScriptPart;
import javax.validation.constraints.NotNull;
/**
* The window options for the pace loader
*
* @param
*/
public class PaceLoaderOptions>
extends JavaScriptPart
{
private boolean elements;
private boolean restartOnRequestAfter;
private boolean ajax;
private boolean document;
private boolean eventLag;
private boolean restartOnPushState;
public PaceLoaderOptions()
{
//Nothing Needed
}
public boolean isElements()
{
return elements;
}
@NotNull
@SuppressWarnings("unchecked")
public J setElements(boolean elements)
{
this.elements = elements;
return (J) this;
}
public boolean isRestartOnRequestAfter()
{
return restartOnRequestAfter;
}
@NotNull
@SuppressWarnings("unchecked")
public J setRestartOnRequestAfter(boolean restartOnRequestAfter)
{
this.restartOnRequestAfter = restartOnRequestAfter;
return (J) this;
}
public boolean isAjax()
{
return ajax;
}
@NotNull
@SuppressWarnings("unchecked")
public J setAjax(boolean ajax)
{
this.ajax = ajax;
return (J) this;
}
public boolean isDocument()
{
return document;
}
@NotNull
@SuppressWarnings("unchecked")
public J setDocument(boolean document)
{
this.document = document;
return (J) this;
}
public boolean isEventLag()
{
return eventLag;
}
@NotNull
@SuppressWarnings("unchecked")
public J setEventLag(boolean eventLag)
{
this.eventLag = eventLag;
return (J) this;
}
public boolean isRestartOnPushState()
{
return restartOnPushState;
}
@NotNull
@SuppressWarnings("unchecked")
public J setRestartOnPushState(boolean restartOnPushState)
{
this.restartOnPushState = restartOnPushState;
return (J) this;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy