@Override public void setXslFO(Element foElement) { if (((Jc)this.getObject()).getVal()==null) { log.error("justification missing value"); return; } String val = ((Jc)this.getObject()).getVal().value(); if (val.equals("left") || val.equals("center") || val.equals("right")) { foElement.setAttribute(FO_NAME, val); } else if (val.equals("both")) { foElement.setAttribute(FO_NAME, "justify"); } // ignore the other possibilities for now }
@Override public String getCssProperty() { String val = ((Jc)this.getObject()).getVal().value(); if (val.equals("left") || val.equals("center") || val.equals("right")) { return composeCss(CSS_NAME, val); } else if (val.equals("both")) { return composeCss(CSS_NAME, "justify"); // IE only: text-justify:inter-ideograph;" ); } // ignore the other possibilities for now else { return CSS_NULL; } }
@Override public void setXslFO(Element foElement) { if (((Jc)this.getObject()).getVal()==null) { log.error("justification missing value"); return; } String val = ((Jc)this.getObject()).getVal().value(); if (val.equals("left") || val.equals("center") || val.equals("right")) { foElement.setAttribute(FO_NAME, val); } else if (val.equals("both")) { foElement.setAttribute(FO_NAME, "justify"); } // ignore the other possibilities for now }
@Override public String getCssProperty() { String val = ((Jc)this.getObject()).getVal().value(); if (val.equals("left") || val.equals("center") || val.equals("right")) { return composeCss(CSS_NAME, val); } else if (val.equals("both")) { return composeCss(CSS_NAME, "justify"); // IE only: text-justify:inter-ideograph;" ); } // ignore the other possibilities for now else { return CSS_NULL; } }