List of usage examples for org.apache.poi.ss.usermodel Font U_NONE
byte U_NONE
To view the source code for org.apache.poi.ss.usermodel Font U_NONE.
Click Source Link
From source file:com.globalsight.everest.webapp.pagehandler.administration.reports.JobStatusXlsReportProcessor.java
License:Apache License
private CellStyle getRejectedStyle(Workbook p_workbook) throws Exception { if (rejectedStyle == null) { Font rejectedFont = p_workbook.createFont(); rejectedFont.setFontName("Times"); rejectedFont.setUnderline(Font.U_NONE); rejectedFont.setFontHeightInPoints((short) 11); rejectedFont.setBoldweight(Font.BOLDWEIGHT_BOLD); rejectedFont.setColor(IndexedColors.RED.getIndex()); CellStyle style = p_workbook.createCellStyle(); style.setFont(rejectedFont);/*from www. ja v a 2s . c o m*/ style.setWrapText(true); rejectedStyle = style; } return rejectedStyle; }
From source file:com.globalsight.everest.webapp.pagehandler.administration.reports.JobStatusXlsReportProcessor.java
License:Apache License
private CellStyle getRedStyle(Workbook p_workbook) throws Exception { if (redStyle == null) { Font redFont = p_workbook.createFont(); redFont.setFontName("Arial"); redFont.setUnderline(Font.U_NONE); redFont.setFontHeightInPoints((short) 10); CellStyle style = p_workbook.createCellStyle(); style.setFont(redFont);// w w w.j a v a2 s .co m style.setWrapText(true); style.setFillPattern(CellStyle.SOLID_FOREGROUND); style.setFillForegroundColor(IndexedColors.RED.getIndex()); redStyle = style; } return redStyle; }
From source file:com.globalsight.everest.webapp.pagehandler.administration.reports.ReviewerLisaQAXlsReportHelper.java
License:Apache License
/** * Add title to the sheet/*w ww. ja v a 2 s. c o m*/ * * @param p_sheet * the sheet * @throws Exception */ private void addTitle(Workbook p_workbook, Sheet p_sheet) throws Exception { ResourceBundle bundle = PageHandler.getBundle(request.getSession()); // Title font is black bold on white Font titleFont = p_workbook.createFont(); titleFont.setUnderline(Font.U_NONE); titleFont.setFontName("Times"); titleFont.setFontHeightInPoints((short) 14); titleFont.setBoldweight(Font.BOLDWEIGHT_BOLD); titleFont.setColor(IndexedColors.BLACK.getIndex()); CellStyle titleStyle = p_workbook.createCellStyle(); titleStyle.setFont(titleFont); titleStyle.setWrapText(false); Row titleRow = getRow(p_sheet, 0); Cell titleCell = getCell(titleRow, 0); titleCell.setCellValue(bundle.getString("implemented_comments_check_report")); titleCell.setCellStyle(titleStyle); p_sheet.setColumnWidth(0, 40 * 256); }
From source file:com.globalsight.everest.webapp.pagehandler.administration.reports.ReviewerVendorPoXlsReportHelper.java
License:Apache License
private void addTitle(Workbook p_workbook, Sheet p_sheet) throws Exception { Font titleFont = p_workbook.createFont(); titleFont.setUnderline(Font.U_NONE); titleFont.setFontName("Arial"); titleFont.setFontHeightInPoints((short) 14); titleFont.setBoldweight(Font.BOLDWEIGHT_BOLD); titleFont.setColor(IndexedColors.BLACK.getIndex()); CellStyle titleStyle = p_workbook.createCellStyle(); titleStyle.setWrapText(false);//from www. j a v a 2 s. com titleStyle.setFont(titleFont); Row titleRow = getRow(p_sheet, 0); Cell titleCell = getCell(titleRow, 0); titleCell.setCellValue(EMEA + " " + bundle.getString("lb_reviewer_po")); titleCell.setCellStyle(titleStyle); p_sheet.setColumnWidth(0, 20 * 256); }
From source file:com.globalsight.everest.webapp.pagehandler.administration.reports.ReviewerVendorPoXlsReportHelper.java
License:Apache License
private CellStyle getWrongJobStyle(Workbook p_workbook) throws Exception { if (wrongJobStyle == null) { Font wrongJobFont = p_workbook.createFont(); wrongJobFont.setBoldweight(Font.BOLDWEIGHT_BOLD); wrongJobFont.setColor(IndexedColors.GREY_50_PERCENT.getIndex()); wrongJobFont.setUnderline(Font.U_NONE); wrongJobFont.setFontName("Times"); wrongJobFont.setFontHeightInPoints((short) 11); CellStyle cs = p_workbook.createCellStyle(); cs.setFont(wrongJobFont);/* w w w. j a v a2 s.c o m*/ wrongJobStyle = cs; } return wrongJobStyle; }
From source file:com.globalsight.everest.webapp.pagehandler.administration.reports.ReviewerVendorPoXlsReportHelper.java
License:Apache License
private CellStyle getSubTotalStyle(Workbook p_workbook) throws Exception { if (subTotalStyle == null) { Font subTotalFont = p_workbook.createFont(); subTotalFont.setBoldweight(Font.BOLDWEIGHT_BOLD); subTotalFont.setColor(IndexedColors.BLACK.getIndex()); subTotalFont.setUnderline(Font.U_NONE); subTotalFont.setFontName("Arial"); subTotalFont.setFontHeightInPoints((short) 10); CellStyle cs = p_workbook.createCellStyle(); cs.setFont(subTotalFont);/*from ww w . ja v a2 s . com*/ cs.setWrapText(true); cs.setBorderTop(CellStyle.BORDER_THIN); cs.setBorderBottom(CellStyle.BORDER_THIN); cs.setFillPattern(CellStyle.SOLID_FOREGROUND); cs.setFillForegroundColor(IndexedColors.GREY_25_PERCENT.getIndex()); subTotalStyle = cs; } return subTotalStyle; }
From source file:com.globalsight.everest.webapp.pagehandler.administration.reports.SlaXlsReportHelper.java
License:Apache License
private void addTitle(Workbook p_workbook) throws Exception { Sheet theSheet = data.generalSheet;/* w w w . j ava2s .c o m*/ // title font is black bold on white Font titleFont = p_workbook.createFont(); titleFont.setUnderline(Font.U_NONE); titleFont.setFontName("Arial"); titleFont.setFontHeightInPoints((short) 14); titleFont.setBoldweight(Font.BOLDWEIGHT_BOLD); titleFont.setColor(IndexedColors.BLACK.getIndex()); CellStyle titleStyle = p_workbook.createCellStyle(); titleStyle.setWrapText(false); titleStyle.setFont(titleFont); Cell titleCell = getCell(getRow(theSheet, 0), 0); titleCell.setCellValue(bundle.getString("translation_sla_performance")); titleCell.setCellStyle(titleStyle); theSheet.setColumnWidth(0, 20 * 256); }
From source file:com.globalsight.everest.webapp.pagehandler.administration.reports.SlaXlsReportHelper.java
License:Apache License
private CellStyle getHeaderStyle(Workbook p_workbook) throws Exception { if (headerStyle == null) { Font font = p_workbook.createFont(); font.setBoldweight(Font.BOLDWEIGHT_BOLD); font.setColor(IndexedColors.BLACK.getIndex()); font.setUnderline(Font.U_NONE); font.setFontName("Arial"); font.setFontHeightInPoints((short) 9); CellStyle cs = p_workbook.createCellStyle(); cs.setFont(font);//w w w. j a va 2s .com cs.setWrapText(true); cs.setFillPattern(CellStyle.SOLID_FOREGROUND); cs.setFillForegroundColor(IndexedColors.GREY_25_PERCENT.getIndex()); cs.setBorderTop(CellStyle.BORDER_THIN); cs.setBorderRight(CellStyle.BORDER_THIN); cs.setBorderBottom(CellStyle.BORDER_THIN); cs.setBorderLeft(CellStyle.BORDER_THIN); headerStyle = cs; } return headerStyle; }
From source file:com.globalsight.everest.webapp.pagehandler.administration.reports.TranslationProgressReportHelper.java
License:Apache License
private void addTitle(Workbook p_workbook, Sheet p_sheet) throws Exception { // title font is black bold on white // String EMEA = CompanyWrapper.getCurrentCompanyName(); Font titleFont = p_workbook.createFont(); titleFont.setUnderline(Font.U_NONE); titleFont.setFontName("Times"); titleFont.setFontHeightInPoints((short) 14); titleFont.setBoldweight(Font.BOLDWEIGHT_BOLD); titleFont.setColor(IndexedColors.BLACK.getIndex()); CellStyle titleStyle = p_workbook.createCellStyle(); titleStyle.setWrapText(false);// www . java 2 s. c o m titleStyle.setFont(titleFont); Row titleRow = getRow(p_sheet, 0); Cell cell_A_Title = getCell(titleRow, 0); cell_A_Title.setCellValue(bundle.getString("review_translation_progress_report")); cell_A_Title.setCellStyle(titleStyle); p_sheet.setColumnWidth(0, 22 * 256); }
From source file:com.globalsight.everest.webapp.pagehandler.administration.reports.VendorPOXlsReport.java
License:Apache License
private void addTitle(Workbook p_workbook, Sheet p_sheet) throws Exception { // title font is black bold on white String EMEA = CompanyWrapper.getCurrentCompanyName(); Font titleFont = p_workbook.createFont(); titleFont.setUnderline(Font.U_NONE); titleFont.setFontName("Arial"); titleFont.setFontHeightInPoints((short) 14); titleFont.setBoldweight(Font.BOLDWEIGHT_BOLD); titleFont.setColor(IndexedColors.BLACK.getIndex()); CellStyle titleStyle = p_workbook.createCellStyle(); titleStyle.setWrapText(false);/*from w w w. j a v a2 s . c o m*/ titleStyle.setFont(titleFont); Row titleRow = getRow(p_sheet, 0); Cell cell_A_Title = getCell(titleRow, 0); cell_A_Title.setCellValue(EMEA + " " + bundle.getString("lb_po")); cell_A_Title.setCellStyle(titleStyle); p_sheet.setColumnWidth(0, 20 * 256); }