@Override public void setXslFO(Element foElement) { Highlight shd = ((Highlight) this.getObject()); if (shd.getVal() != null && !shd.getVal().equals("none")) { foElement.setAttribute(FO_NAME, shd.getHexVal()); } }
@Override public String getCssProperty() { Highlight shd = ((Highlight) this.getObject()); if (shd.getVal() != null && !shd.getVal().equals("none")) { return composeCss(CSS_NAME, shd.getHexVal()); } else { return CSS_NULL; } }
public HighlightColor(CSSValue value) { Highlight shd = Context.getWmlObjectFactory().createHighlight(); shd.setVal(value.getCssText()); this.setObject(shd); }