/** * @param header * @param uiComponent * @return boolean */ protected boolean hasFacet(boolean header, UIComponent uiComponent) { if (uiComponent instanceof UIColumn) { UIColumn uiColumn = (UIColumn) uiComponent; return header ? uiColumn.getHeader() != null : uiColumn.getFooter() != null; } return false; }
/** * @param header * @param uiComponent * @return boolean */ protected boolean hasFacet(boolean header, UIComponent uiComponent) { if (uiComponent instanceof UIColumn) { UIColumn uiColumn = (UIColumn) uiComponent; return header ? uiColumn.getHeader() != null : uiColumn.getFooter() != null; } return false; }
/** * @param header * @param uiComponent * @return boolean */ protected boolean hasFacet(boolean header, UIComponent uiComponent) { if (uiComponent instanceof UIColumn) { UIColumn uiColumn = (UIColumn) uiComponent; return header ? uiColumn.getHeader() != null : uiColumn.getFooter() != null; } return false; }
/** * @param header * @param uiComponent * @return boolean */ protected boolean hasFacet(boolean header, UIComponent uiComponent) { if (uiComponent instanceof UIColumn) { UIColumn uiColumn = (UIColumn) uiComponent; return header ? uiColumn.getHeader() != null : uiColumn.getFooter() != null; } return false; }
/** * @param header * @param uiComponent * @return boolean */ protected boolean hasFacet(boolean header, UIComponent uiComponent) { if (uiComponent instanceof UIColumn) { UIColumn uiColumn = (UIColumn) uiComponent; return header ? uiColumn.getHeader() != null : uiColumn.getFooter() != null; } return false; }
/** * Renders the header facet for the given <code>UIColumn</code>. * @param facesContext the <code>FacesContext</code>. * @param writer the <code>ResponseWriter</code>. * @param uiColumn the <code>UIColumn</code>. * @param headerStyleClass the styleClass of the header facet. * @param colspan the colspan for the tableData element in which the header facet * will be wrapped. * @throws IOException */ protected void renderColumnHeaderCell(FacesContext facesContext, ResponseWriter writer, UIColumn uiColumn, String headerStyleClass, int colspan) throws IOException { renderColumnHeaderCell(facesContext, writer, uiColumn, uiColumn.getHeader(), headerStyleClass, colspan); }
/** * @param header * @param uiComponent * @return boolean */ protected boolean hasFacet(boolean header, UIComponent uiComponent) { if (uiComponent instanceof UIColumn) { UIColumn uiColumn = (UIColumn) uiComponent; return header ? uiColumn.getHeader() != null : uiColumn.getFooter() != null; } return false; }
/** * Renders the header facet for the given <code>UIColumn</code>. * @param facesContext the <code>FacesContext</code>. * @param writer the <code>ResponseWriter</code>. * @param uiColumn the <code>UIColumn</code>. * @param headerStyleClass the styleClass of the header facet. * @param colspan the colspan for the tableData element in which the header facet * will be wrapped. * @throws IOException */ protected void renderColumnHeaderCell(FacesContext facesContext, ResponseWriter writer, UIColumn uiColumn, String headerStyleClass, int colspan) throws IOException { renderColumnHeaderCell(facesContext, writer, uiColumn, uiColumn.getHeader(), headerStyleClass, colspan); }
/** * @param header * @param uiComponent * @return boolean */ protected boolean hasFacet(boolean header, UIComponent uiComponent) { if (uiComponent instanceof UIColumn) { UIColumn uiColumn = (UIColumn) uiComponent; return header ? uiColumn.getHeader() != null : uiColumn.getFooter() != null; } return false; }
/** * Renders the header facet for the given <code>UIColumn</code>. * @param facesContext the <code>FacesContext</code>. * @param writer the <code>ResponseWriter</code>. * @param uiColumn the <code>UIColumn</code>. * @param headerStyleClass the styleClass of the header facet. * @param colspan the colspan for the tableData element in which the header facet * will be wrapped. * @throws IOException */ protected void renderColumnHeaderCell(FacesContext facesContext, ResponseWriter writer, UIColumn uiColumn, String headerStyleClass, int colspan) throws IOException { renderColumnHeaderCell(facesContext, writer, uiColumn, uiColumn.getHeader(), headerStyleClass, colspan); }
/** * Renders the header facet for the given <code>UIColumn</code>. * @param facesContext the <code>FacesContext</code>. * @param writer the <code>ResponseWriter</code>. * @param uiColumn the <code>UIColumn</code>. * @param headerStyleClass the styleClass of the header facet. * @param colspan the colspan for the tableData element in which the header facet * will be wrapped. * @throws IOException */ protected void renderColumnHeaderCell(FacesContext facesContext, ResponseWriter writer, UIColumn uiColumn, String headerStyleClass, int colspan) throws IOException { renderColumnHeaderCell(facesContext, writer, uiColumn, uiColumn.getHeader(), headerStyleClass, colspan); }
/** * Renders the header facet for the given <code>UIColumn</code>. * @param facesContext the <code>FacesContext</code>. * @param writer the <code>ResponseWriter</code>. * @param uiColumn the <code>UIColumn</code>. * @param headerStyleClass the styleClass of the header facet. * @param colspan the colspan for the tableData element in which the header facet * will be wrapped. * @throws IOException */ protected void renderColumnHeaderCell(FacesContext facesContext, ResponseWriter writer, UIColumn uiColumn, String headerStyleClass, int colspan) throws IOException { renderColumnHeaderCell(facesContext, writer, uiColumn, uiColumn.getHeader(), headerStyleClass, colspan); }
/** * Renders the header facet for the given <code>UIColumn</code>. * @param facesContext the <code>FacesContext</code>. * @param writer the <code>ResponseWriter</code>. * @param uiColumn the <code>UIColumn</code>. * @param headerStyleClass the styleClass of the header facet. * @param colspan the colspan for the tableData element in which the header facet * will be wrapped. * @throws IOException */ protected void renderColumnHeaderCell(FacesContext facesContext, ResponseWriter writer, UIColumn uiColumn, String headerStyleClass, int colspan) throws IOException { renderColumnHeaderCell(facesContext, writer, uiColumn, uiColumn.getHeader(), headerStyleClass, colspan); }
/** * Renders the header facet for the given <code>UIColumn</code>. * @param facesContext the <code>FacesContext</code>. * @param writer the <code>ResponseWriter</code>. * @param uiColumn the <code>UIColumn</code>. * @param headerStyleClass the styleClass of the header facet. * @param colspan the colspan for the tableData element in which the header facet * will be wrapped. * @throws IOException */ protected void renderColumnHeaderCell(FacesContext facesContext, ResponseWriter writer, UIColumn uiColumn, String headerStyleClass, int colspan) throws IOException { renderColumnHeaderCell(facesContext, writer, uiColumn, uiColumn.getHeader(), headerStyleClass, colspan); }
private void addColumnHeaders(HSSFSheet sheet, List columns) { HSSFRow rowHeader = sheet.createRow(0); for(int i=0; i < columns.size(); i++) { UIColumn column = (UIColumn) columns.get(i); addColumnValue(rowHeader, column.getHeader(), i); } }
private static void addColumnHeaders(HSSFSheet sheet, List columns) { HSSFRow rowHeader = sheet.createRow(0); for (int i = 0; i < columns.size(); i++) { UIColumn column = (UIColumn) columns.get(i); addColumnValue(rowHeader, column.getHeader(), i); } }
private static void addColumnHeaders(HSSFSheet sheet, List columns) { HSSFRow rowHeader = sheet.createRow(0); for (int i = 0; i < columns.size(); i++) { UIColumn column = (UIColumn) columns.get(i); addColumnValue(rowHeader, column.getHeader(), i); } }
private static void generateTableHeader(PdfPTable pdfTable, List columns) { for (int i = 0; i < columns.size(); i++) { UIColumn column = (UIColumn) columns.get(i); UIComponent columnHeaderCell = column.getHeader(); if (columnHeaderCell instanceof ValueHolder) { String cellValue = ComponentUtils.getStringValue(FacesContext .getCurrentInstance(), columnHeaderCell); pdfTable.addCell(cellValue); } } }
private static void generateTableHeader(PdfPTable pdfTable, List columns) { for (int i = 0; i < columns.size(); i++) { UIColumn column = (UIColumn) columns.get(i); UIComponent columnHeaderCell = column.getHeader(); if (columnHeaderCell instanceof ValueHolder) { String cellValue = ComponentUtils.getStringValue(FacesContext .getCurrentInstance(), columnHeaderCell); pdfTable.addCell(cellValue); } } }
protected void renderColumnChildHeaderOrFooterRow(FacesContext facesContext, ResponseWriter writer, UIComponent uiComponent, String styleClass, boolean header) throws IOException { if (uiComponent instanceof UIColumn) { if (header) { renderColumnHeaderCell(facesContext, writer, uiComponent, ((UIColumn) uiComponent).getHeader(), styleClass, 0); } else { renderColumnFooterCell(facesContext, writer, uiComponent, ((UIColumn) uiComponent).getFooter(), styleClass, 0); } } }