public static boolean areEqual(CTTblCellMar margin1, CTTblCellMar margin2) { return (margin1 == margin2) || ((margin1 != null) && (margin2 != null) && areEqual(margin1.getBottom(), margin2.getBottom()) && areEqual(margin1.getLeft(), margin2.getLeft()) && areEqual(margin1.getRight(), margin2.getRight()) && areEqual(margin1.getTop(), margin2.getTop()) ); }
if (tblCellMargin.getBottom() != null) properties.add(new CellMarginBottom(tblCellMargin.getBottom())); if (tblCellMargin.getLeft() != null) properties.add(new CellMarginLeft(tblCellMargin.getLeft())); if (tblCellMargin.getRight() != null) properties.add(new CellMarginRight(tblCellMargin.getRight()));
public static boolean isEmpty(CTTblCellMar margin) { return (margin == null) || (isEmpty(margin.getBottom()) && isEmpty(margin.getLeft()) && isEmpty(margin.getRight()) && isEmpty(margin.getTop()) ); }
public static CTTblCellMar apply(CTTblCellMar source, CTTblCellMar destination) { if (!isEmpty(source)) { if (destination == null) destination = Context.getWmlObjectFactory().createCTTblCellMar(); destination.setBottom(apply(source.getBottom(), destination.getBottom())); destination.setLeft(apply(source.getLeft(), destination.getLeft())); destination.setRight(apply(source.getRight(), destination.getRight())); destination.setTop(apply(source.getTop(), destination.getTop())); } return destination; }
private long getLeftPlusRightMarginsValue(CTTblCellMar cellMar) { return cellMar.getLeft().getW().longValue() + cellMar.getRight().getW().longValue(); }
public static boolean areEqual(CTTblCellMar margin1, CTTblCellMar margin2) { return (margin1 == margin2) || ((margin1 != null) && (margin2 != null) && areEqual(margin1.getBottom(), margin2.getBottom()) && areEqual(margin1.getLeft(), margin2.getLeft()) && areEqual(margin1.getRight(), margin2.getRight()) && areEqual(margin1.getTop(), margin2.getTop()) ); }
if (tblCellMargin.getBottom() != null) properties.add(new CellMarginBottom(tblCellMargin.getBottom())); if (tblCellMargin.getLeft() != null) properties.add(new CellMarginLeft(tblCellMargin.getLeft())); if (tblCellMargin.getRight() != null) properties.add(new CellMarginRight(tblCellMargin.getRight()));
public static boolean isEmpty(CTTblCellMar margin) { return (margin == null) || (isEmpty(margin.getBottom()) && isEmpty(margin.getLeft()) && isEmpty(margin.getRight()) && isEmpty(margin.getTop()) ); }
public static CTTblCellMar apply(CTTblCellMar source, CTTblCellMar destination) { if (!isEmpty(source)) { if (destination == null) destination = Context.getWmlObjectFactory().createCTTblCellMar(); destination.setBottom(apply(source.getBottom(), destination.getBottom())); destination.setLeft(apply(source.getLeft(), destination.getLeft())); destination.setRight(apply(source.getRight(), destination.getRight())); destination.setTop(apply(source.getTop(), destination.getTop())); } return destination; }