if (tblBorders.getInsideV()!=null) { if (tblBorders.getInsideV().getVal()==STBorder.NONE || tblBorders.getInsideV().getVal()==STBorder.NIL || tblBorders.getInsideV().getSz()==BigInteger.ZERO ) { properties.add( new AdHocProperty("border-left-style", "none", null, null)); properties.add( new AdHocProperty("border-left-width", "0mm", null, null));
properties.add(new BorderBottom(tblBorders.getBottom())); if (tblBorders.getInsideV()!=null) { properties.add(new BorderRight(tblBorders.getRight())); properties.add(new BorderLeft(tblBorders.getLeft()));
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()) ); }
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.getInsideV()!=null) { if (tblBorders.getInsideV().getVal()==STBorder.NONE || tblBorders.getInsideV().getVal()==STBorder.NIL || tblBorders.getInsideV().getSz()==BigInteger.ZERO ) { properties.add( new AdHocProperty("border-left-style", "none", null, null)); properties.add( new AdHocProperty("border-left-width", "0mm", null, null));
properties.add(new BorderBottom(tblBorders.getBottom())); if (tblBorders.getInsideV()!=null) { properties.add(new BorderRight(tblBorders.getRight())); properties.add(new BorderLeft(tblBorders.getLeft()));
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()) ); }
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; }