com.jwebmp.plugins.skycons.SkyconOptions Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jwebmp-skycons Show documentation
Show all versions of jwebmp-skycons Show documentation
The JWebMP implementation for SkyCons
The newest version!
package com.jwebmp.plugins.skycons;
import com.jwebmp.core.htmlbuilder.javascript.JavaScriptPart;
import javax.validation.constraints.NotNull;
/**
* The options available for the skycons
*
* @param
*/
public class SkyconOptions>
extends JavaScriptPart
{
private String colour;
private Boolean resizeClear;
public SkyconOptions()
{
//No config required
}
/**
* Sets the colour going to be used for all skycons in the collection
*
* @return
*/
public String getColour()
{
return colour;
}
/**
* Sets the colour to be used
*
* @param colour
*
* @return
*/
@SuppressWarnings("unchecked")
@NotNull
public J setColour(String colour)
{
this.colour = colour;
return (J) this;
}
/**
* on Android, a nasty hack is needed: {"resizeClear": true}
*
* @return if it is set
*/
public Boolean getResizeClear()
{
return resizeClear;
}
/**
* on Android, a nasty hack is needed: {"resizeClear": true}
*
* @param resizeClear
*
* @return
*/
@SuppressWarnings("unchecked")
@NotNull
public J setResizeClear(Boolean resizeClear)
{
this.resizeClear = resizeClear;
return (J) this;
}
}