com.jwebmp.plugins.bootstrapswitch.BootstrapSwitchReferencePool Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jwebmp-bootstrap-switch Show documentation
Show all versions of jwebmp-bootstrap-switch Show documentation
The JWebSwing implementation for Bootstrap Switch
The newest version!
package com.jwebmp.plugins.bootstrapswitch;
import com.jwebmp.core.base.references.CSSReference;
import com.jwebmp.core.base.references.JavascriptReference;
import com.jwebmp.core.base.servlets.enumarations.RequirementsPriority;
import com.jwebmp.core.base.servlets.interfaces.ReferencePool;
/**
* References for angular
*
* @author GedMarc
* @since 09 Jun 2017
*/
enum BootstrapSwitchReferencePool
implements ReferencePool
{
BootstrapSwitch(new JavascriptReference("BootstrapSwitch", 3.3, "bower_components/bootstrap-switch/dist/js/bootstrap-switch.js"),
new CSSReference("BootstrapSwitch", 3.3, "bower_components/bootstrap-switch/dist/css/bootstrap3/bootstrap-switch.css"));
/**
* Any sub data
*/
private String data;
private JavascriptReference javaScriptReference;
private CSSReference cssReference;
/**
* A new AngularSlimScrollReferencePool
*/
BootstrapSwitchReferencePool()
{
}
BootstrapSwitchReferencePool(JavascriptReference javaScriptReference, CSSReference cssReference)
{
this.javaScriptReference = javaScriptReference;
if (this.javaScriptReference != null)
{
this.javaScriptReference.setPriority(RequirementsPriority.DontCare);
}
this.cssReference = cssReference;
if (this.cssReference != null)
{
this.cssReference.setPriority(RequirementsPriority.DontCare);
}
}
@Override
public CSSReference getCssReference()
{
return cssReference;
}
@Override
public void setCssReference(CSSReference cssReference)
{
this.cssReference = cssReference;
}
@Override
public JavascriptReference getJavaScriptReference()
{
return javaScriptReference;
}
@Override
public void setJavaScriptReference(JavascriptReference javaScriptReference)
{
this.javaScriptReference = javaScriptReference;
}
/**
* Returns the name or the data contained within
*
* @return
*/
@Override
public String toString()
{
if (data != null && !data.isEmpty())
{
return data;
}
else
{
return name();
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy