this.setObject(val);
}
public VerticalAlignment(CSSValue value) {
CTVerticalAlignRun vAlign = Context.getWmlObjectFactory().createCTVerticalAlignRun();
if (value.getCssText().toLowerCase().equals("top")) {
vAlign.setVal(STVerticalAlignRun.SUPERSCRIPT);
this.setObject( vAlign );
} else if (value.getCssText().toLowerCase().equals("super")) {
vAlign.setVal(STVerticalAlignRun.SUPERSCRIPT);
this.setObject( vAlign );
} else if (value.getCssText().toLowerCase().equals("bottom")
|| value.getCssText().toLowerCase().equals("sub")) {
vAlign.setVal(STVerticalAlignRun.SUBSCRIPT);
this.setObject( vAlign );
} else {
log.warn("What to do with value: " + value.getCssText());
}
}