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

net.abstractfactory.plum.view.web.CSSAttribute Maven / Gradle / Ivy

There is a newer version: 0.3.21
Show newest version
package net.abstractfactory.plum.view.web;

public class CSSAttribute {
	private String name;
	private String value;

	public CSSAttribute(String name, String value) {
		this.name = name;
		this.value = value;
	}
	
	public  CSSAttribute(String text){
		String[] ss = text.split(":");
		name = ss[0];
		value = ss[1];
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}

	 
	public String toCssText() {

		return String.format("%s : %s", name, value);
	}
	
	
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy