@Override public BorderStyle getBorderBottomEnum() { return getBorderBottom(); }
@Override public BorderStyle getBorderBottomEnum() { return getBorderBottom(); }
/** * Get the type of border to use for the bottom border of the cell * * @return border type as Java enum * @see BorderStyle */ public BorderStyle getBorderBottomEnum() { int style = getBorderBottom(); return BorderStyle.values()[style]; }
private short getBorderStyle(XSSFCellStyle cellStyle, XSSFCellBorder.BorderSide borderSide) { switch (borderSide) { case BOTTOM: return cellStyle.getBorderBottom(); case LEFT: return cellStyle.getBorderLeft(); case RIGHT: return cellStyle.getBorderRight(); case TOP: return cellStyle.getBorderTop(); } throw new IllegalStateException(); }
break; case 'b': b1 = style1.getBorderBottom() == BorderStyle.THIN; b2 = style2.getBorderBottom() == BorderStyle.THIN; borderName = "BOTTOM"; break;
HSSFCellStyle styleNew) { styleNew.setAlignment(styleOld.getAlignment()); styleNew.setBorderBottom(styleOld.getBorderBottom()); styleNew.setBorderLeft(styleOld.getBorderLeft()); styleNew.setBorderRight(styleOld.getBorderRight());