![JAR search and dependency download from the Maven repository](/logo.png)
net.abstractfactory.plum.view.web.CSSAttribute Maven / Gradle / Ivy
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