/** * Returns string representation of vertical alignment. * * @return vertical alignment as CSS value */ public String getVerticalAlignment() { if (isBottom()) { return "bottom"; } else if (isMiddle()) { return "middle"; } return "top"; }
/** * Writes the alignment to the given child element attributes. * * @since 7.6.4 * @param childElement * the child element * @param alignment * the component alignment */ public static void writeAlignment(Element childElement, Alignment alignment) { if (alignment.isMiddle()) { childElement.attr(":middle", true); } else if (alignment.isBottom()) { childElement.attr(":bottom", true); } if (alignment.isCenter()) { childElement.attr(":center", true); } else if (alignment.isRight()) { childElement.attr(":right", true); } }
if (alignment.isMiddle()) { childElement.attr(":middle", true); } else if (alignment.isBottom()) {