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

cz.vutbr.web.csskit.StyleSheetImpl Maven / Gradle / Ivy

package cz.vutbr.web.csskit;

import cz.vutbr.web.css.RuleBlock;
import cz.vutbr.web.css.StyleSheet;

/**
 * CSS style sheet, entry point.
 * Allows 
 * 
 * @author kapy
 * 
 */
public class StyleSheetImpl extends AbstractRule> implements StyleSheet {
	
    private Origin origin;

	protected StyleSheetImpl() {
    	this.origin = StyleSheet.Origin.AUTHOR;
    }    
    
	@Override
	public void setOrigin(Origin o)
	{
		this.origin = o;
	}

	@Override
	public Origin getOrigin()
	{
		return origin;
	}

	@Override
	public void add(int index, RuleBlock element)
	{
		element.setStyleSheet(this);
		super.add(index, element);
	}

	@Override
	public boolean add(RuleBlock o)
	{
		o.setStyleSheet(this);
		return super.add(o);
	}
   
	
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy