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

com.jwebmp.plugins.skycons.Skycon Maven / Gradle / Ivy

package com.jwebmp.plugins.skycons;

import com.jwebmp.core.base.html.Canvas;
import com.jwebmp.plugins.skycons.configurator.SkyconStartFeature;

import javax.validation.constraints.NotNull;

public class Skycon>
		extends Canvas
{
	private SkyIcon icon;
	private SkyconFeature feature;
	private SkyconStartFeature startFeature;

	public Skycon(@NotNull String id, int widthHeight, SkyIcon skycon)
	{
		setID(id);
		addAttribute("width", Integer.toString(widthHeight));
		addAttribute("height", Integer.toString(widthHeight));
		this.icon = skycon;
		addFeature(feature = new SkyconFeature(this));
		addFeature(startFeature = new SkyconStartFeature());
	}

	public SkyIcon getIcon()
	{
		return icon;
	}

	@SuppressWarnings("unchecked")
	@NotNull
	public J setIcon(SkyIcon icon)
	{
		this.icon = icon;
		return (J) this;
	}

	@Override
	public SkyconOptions getOptions()
	{
		return feature.getOptions();
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy