protected boolean hasColumnFooter(List<UIColumn> columns) { for (UIColumn column : columns) { if (column.getFooter() != null) { return true; } } return false; }
protected boolean hasColumnFooter(List<UIColumn> columns) { for (UIColumn column : columns) { if (column.getFooter() != null) { return true; } } return false; }
protected boolean hasColumnFooter(List<UIColumn> columns) { for (UIColumn column : columns) { if (column.getFooter() != null) return true; if (column instanceof Column) { if (((Column) column).getFooterText() != null) return true; } } 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; }
/** * @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 footer facet for the given <code>UIColumn</code>. * @param facesContext the <code>FacesContext</code>. * @param writer the <code>ResponseWriter</code>. * @param uiColumn the <code>UIComponent</code>. * @param footerStyleClass the styleClass of the footer facet. * @param colspan the colspan for the tableData element in which the footer facet * will be wrapped. * @throws IOException */ protected void renderColumnFooterCell(FacesContext facesContext, ResponseWriter writer, UIColumn uiColumn, String footerStyleClass, int colspan) throws IOException { renderColumnFooterCell(facesContext, writer, uiColumn, uiColumn.getFooter(), footerStyleClass, colspan); }
/** * Renders the footer facet for the given <code>UIColumn</code>. * @param facesContext the <code>FacesContext</code>. * @param writer the <code>ResponseWriter</code>. * @param uiColumn the <code>UIComponent</code>. * @param footerStyleClass the styleClass of the footer facet. * @param colspan the colspan for the tableData element in which the footer facet * will be wrapped. * @throws IOException */ protected void renderColumnFooterCell(FacesContext facesContext, ResponseWriter writer, UIColumn uiColumn, String footerStyleClass, int colspan) throws IOException { renderColumnFooterCell(facesContext, writer, uiColumn, uiColumn.getFooter(), footerStyleClass, colspan); }
/** * Renders the footer facet for the given <code>UIColumn</code>. * @param facesContext the <code>FacesContext</code>. * @param writer the <code>ResponseWriter</code>. * @param uiColumn the <code>UIComponent</code>. * @param footerStyleClass the styleClass of the footer facet. * @param colspan the colspan for the tableData element in which the footer facet * will be wrapped. * @throws IOException */ protected void renderColumnFooterCell(FacesContext facesContext, ResponseWriter writer, UIColumn uiColumn, String footerStyleClass, int colspan) throws IOException { renderColumnFooterCell(facesContext, writer, uiColumn, uiColumn.getFooter(), footerStyleClass, colspan); }
/** * Renders the footer facet for the given <code>UIColumn</code>. * @param facesContext the <code>FacesContext</code>. * @param writer the <code>ResponseWriter</code>. * @param uiColumn the <code>UIComponent</code>. * @param footerStyleClass the styleClass of the footer facet. * @param colspan the colspan for the tableData element in which the footer facet * will be wrapped. * @throws IOException */ protected void renderColumnFooterCell(FacesContext facesContext, ResponseWriter writer, UIColumn uiColumn, String footerStyleClass, int colspan) throws IOException { renderColumnFooterCell(facesContext, writer, uiColumn, uiColumn.getFooter(), footerStyleClass, colspan); }
/** * Renders the footer facet for the given <code>UIColumn</code>. * @param facesContext the <code>FacesContext</code>. * @param writer the <code>ResponseWriter</code>. * @param uiColumn the <code>UIComponent</code>. * @param footerStyleClass the styleClass of the footer facet. * @param colspan the colspan for the tableData element in which the footer facet * will be wrapped. * @throws IOException */ protected void renderColumnFooterCell(FacesContext facesContext, ResponseWriter writer, UIColumn uiColumn, String footerStyleClass, int colspan) throws IOException { renderColumnFooterCell(facesContext, writer, uiColumn, uiColumn.getFooter(), footerStyleClass, colspan); }
/** * Renders the footer facet for the given <code>UIColumn</code>. * @param facesContext the <code>FacesContext</code>. * @param writer the <code>ResponseWriter</code>. * @param uiColumn the <code>UIComponent</code>. * @param footerStyleClass the styleClass of the footer facet. * @param colspan the colspan for the tableData element in which the footer facet * will be wrapped. * @throws IOException */ protected void renderColumnFooterCell(FacesContext facesContext, ResponseWriter writer, UIColumn uiColumn, String footerStyleClass, int colspan) throws IOException { renderColumnFooterCell(facesContext, writer, uiColumn, uiColumn.getFooter(), footerStyleClass, colspan); }
/** * Renders the footer facet for the given <code>UIColumn</code>. * @param facesContext the <code>FacesContext</code>. * @param writer the <code>ResponseWriter</code>. * @param uiColumn the <code>UIComponent</code>. * @param footerStyleClass the styleClass of the footer facet. * @param colspan the colspan for the tableData element in which the footer facet * will be wrapped. * @throws IOException */ protected void renderColumnFooterCell(FacesContext facesContext, ResponseWriter writer, UIColumn uiColumn, String footerStyleClass, int colspan) throws IOException { renderColumnFooterCell(facesContext, writer, uiColumn, uiColumn.getFooter(), footerStyleClass, colspan); }
/** * Tests if the specified facet exists for the specified newspaper table. */ private boolean hasFacet(HtmlNewspaperTable newspaperTable, boolean header) { for(Iterator it = newspaperTable.getChildren().iterator(); it.hasNext(); ) { // get the column UIComponent uiComponent = (UIComponent)it.next(); if(!(uiComponent instanceof UIColumn)) continue; UIColumn column = (UIColumn)uiComponent; if(!column.isRendered()) continue; // test the facet if(header && ((UIColumn)uiComponent).getHeader() != null) return true; if(!header && ((UIColumn)uiComponent).getFooter() != null) return true; } return false; }
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); } } }
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); } } }