public static void setBorderRight(Worksheet sheet,int row,int col,String color, short linestyle){
setBorder(sheet,row,col, BookHelper.HTMLToColor(sheet.getWorkbook(), color), linestyle, 0x2);
}
public static void setBorder(Worksheet sheet,int row,int col, short color, short lineStyle, int at){
final Cell cell = Utils.getOrCreateCell(sheet,row,col);
final CellStyle style = cloneCellStyle(cell);
if((at & BookHelper.BORDER_EDGE_LEFT)!=0) {
style.setBorderLeft(lineStyle);
}
if((at & BookHelper.BORDER_EDGE_TOP)!=0){
style.setTopBorderColor(color);
style.setBorderTop(lineStyle);
}
if((at & BookHelper.BORDER_EDGE_RIGHT)!=0){
style.setRightBorderColor(color);
style.setBorderRight(lineStyle);
}
if((at & BookHelper.BORDER_EDGE_BOTTOM)!=0){
style.setBottomBorderColor(color);
style.setBorderBottom(lineStyle);
}
cell.setCellStyle(style);
}