public TextAlignmentVertical(CSSValue value) {
debug(CSS_NAME, value);
CTVerticalJc textAlignment = Context.getWmlObjectFactory().createCTVerticalJc();
if (value.getCssText().toLowerCase().equals("top")) {
textAlignment.setVal(STVerticalJc.TOP);
} else if (value.getCssText().toLowerCase().equals("middle")) {
textAlignment.setVal(STVerticalJc.CENTER);
} else if (value.getCssText().toLowerCase().equals("bottom")) {
textAlignment.setVal(STVerticalJc.BOTTOM);
} else {
log.warn("How to handle vertical-align: " + value.getCssText()); // eg baseline
// Default to top or center..
textAlignment.setVal(STVerticalJc.CENTER);
}
this.setObject( textAlignment );
}