kz.greetgo.msoffice.docx.Shd Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of greetgo.msoffice Show documentation
Show all versions of greetgo.msoffice Show documentation
greetgo library to generate or parse MS Office files
package kz.greetgo.msoffice.docx;
import kz.greetgo.msoffice.util.UtilOffice;
import java.awt.*;
import java.io.PrintStream;
public class Shd implements XmlWriter {
private String val;
private String fill;
private Color color = null;
@Override
public void write(PrintStream out) {
if (getVal() == null) return;
if (getFill() == null) return;
String sColor = "auto";
if (getColor() != null) {
sColor = UtilOffice.toHEX(getColor());
}
out.print(" ");
}
public String getVal() {
return val;
}
public void setVal(String val) {
this.val = val;
}
public Color getColor() {
return color;
}
public void setColor(Color color) {
this.color = color;
}
public String getFill() {
return fill;
}
public void setFill(String fill) {
this.fill = fill;
}
}