if (tblBorders.getInsideH()!=null) { properties.add(new BorderTop(tblBorders.getTop())); properties.add(new BorderBottom(tblBorders.getBottom()));
public static boolean areEqual(TblBorders borders1, TblBorders borders2) { return (borders1 == borders2) || ((borders1 != null) && (borders2 != null) && areEqual(borders1.getBottom(), borders2.getBottom()) && areEqual(borders1.getLeft(), borders2.getLeft()) && areEqual(borders1.getRight(), borders2.getRight()) && areEqual(borders1.getTop(), borders2.getTop()) && areEqual(borders1.getInsideH(), borders2.getInsideH()) && areEqual(borders1.getInsideV(), borders2.getInsideV()) ); }
} else { properties.add( new BorderTop(tblBorders.getTop() )); properties.add( new BorderBottom(tblBorders.getBottom() ));
public static boolean isEmpty(TblBorders borders) { return (borders == null) || (isEmpty(borders.getBottom()) && isEmpty(borders.getLeft()) && isEmpty(borders.getRight()) && isEmpty(borders.getTop()) && isEmpty(borders.getInsideH()) && isEmpty(borders.getInsideV()) ); }
public static TblBorders apply(TblBorders source, TblBorders destination) { if (!isEmpty(source)) { if (destination == null) destination = Context.getWmlObjectFactory().createTblBorders(); 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())); destination.setInsideH(apply(source.getInsideH(), destination.getInsideH())); destination.setInsideV(apply(source.getInsideV(), destination.getInsideV())); } return destination; }
if (tblBorders.getInsideH()!=null) { properties.add(new BorderTop(tblBorders.getTop())); properties.add(new BorderBottom(tblBorders.getBottom()));
public static boolean areEqual(TblBorders borders1, TblBorders borders2) { return (borders1 == borders2) || ((borders1 != null) && (borders2 != null) && areEqual(borders1.getBottom(), borders2.getBottom()) && areEqual(borders1.getLeft(), borders2.getLeft()) && areEqual(borders1.getRight(), borders2.getRight()) && areEqual(borders1.getTop(), borders2.getTop()) && areEqual(borders1.getInsideH(), borders2.getInsideH()) && areEqual(borders1.getInsideV(), borders2.getInsideV()) ); }
} else { properties.add( new BorderTop(tblBorders.getTop() )); properties.add( new BorderBottom(tblBorders.getBottom() ));
public static boolean isEmpty(TblBorders borders) { return (borders == null) || (isEmpty(borders.getBottom()) && isEmpty(borders.getLeft()) && isEmpty(borders.getRight()) && isEmpty(borders.getTop()) && isEmpty(borders.getInsideH()) && isEmpty(borders.getInsideV()) ); }
public static TblBorders apply(TblBorders source, TblBorders destination) { if (!isEmpty(source)) { if (destination == null) destination = Context.getWmlObjectFactory().createTblBorders(); 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())); destination.setInsideH(apply(source.getInsideH(), destination.getInsideH())); destination.setInsideV(apply(source.getInsideV(), destination.getInsideV())); } return destination; }