/** * Gets the style class for the table header. */ private static String getHeaderClass(HtmlNewspaperTable newspaperTable) { if(newspaperTable instanceof HtmlDataTable) { return ((HtmlDataTable)newspaperTable).getHeaderClass(); } else { return (String)newspaperTable.getAttributes().get(JSFAttr.HEADER_CLASS_ATTR); } } /**
/** * Gets the headerClass attribute of the given <code>UIComponent</code>. * @param component the <code>UIComponent</code>. * @return the headerClass attribute of the given <code>UIComponent</code>. */ protected static String getHeaderClass(UIComponent component) { if (component instanceof HtmlDataTable) { return ((HtmlDataTable) component).getHeaderClass(); } else { return (String) component.getAttributes().get(org.apache.myfaces.shared_tomahawk.renderkit.JSFAttr.HEADER_CLASS_ATTR); } }
/** * Gets the headerClass attribute of the given <code>UIComponent</code>. * @param component the <code>UIComponent</code>. * @return the headerClass attribute of the given <code>UIComponent</code>. */ protected static String getHeaderClass(UIComponent component) { if (component instanceof HtmlDataTable) { return ((HtmlDataTable) component).getHeaderClass(); } else { return (String) component.getAttributes().get( org.apache.myfaces.shared.renderkit.JSFAttr.HEADER_CLASS_ATTR); } }
/** * Gets the headerClass attribute of the given <code>UIComponent</code>. * @param component the <code>UIComponent</code>. * @return the headerClass attribute of the given <code>UIComponent</code>. */ protected static String getHeaderClass(UIComponent component) { if (component instanceof HtmlDataTable) { return ((HtmlDataTable) component).getHeaderClass(); } else { return (String) component.getAttributes().get(org.apache.myfaces.shared_orchestra.renderkit.JSFAttr.HEADER_CLASS_ATTR); } }
/** * Gets the headerClass attribute of the given <code>UIComponent</code>. * @param component the <code>UIComponent</code>. * @return the headerClass attribute of the given <code>UIComponent</code>. */ protected static String getHeaderClass(UIComponent component) { if (component instanceof HtmlDataTable) { return ((HtmlDataTable) component).getHeaderClass(); } else { return (String) component.getAttributes().get(org.apache.myfaces.shared_impl.renderkit.JSFAttr.HEADER_CLASS_ATTR); } }
/** * Gets the headerClass attribute of the given <code>UIComponent</code>. * @param component the <code>UIComponent</code>. * @return the headerClass attribute of the given <code>UIComponent</code>. */ protected static String getHeaderClass(UIComponent component) { if (component instanceof HtmlDataTable) { return ((HtmlDataTable) component).getHeaderClass(); } else { return (String) component.getAttributes().get(org.apache.myfaces.shared_impl.renderkit.JSFAttr.HEADER_CLASS_ATTR); } }
/** * Gets the headerClass attribute of the given <code>UIComponent</code>. * @param component the <code>UIComponent</code>. * @return the headerClass attribute of the given <code>UIComponent</code>. */ protected static String getHeaderClass(UIComponent component) { if (component instanceof HtmlDataTable) { return ((HtmlDataTable) component).getHeaderClass(); } else { return (String) component.getAttributes().get(org.apache.myfaces.shared_impl.renderkit.JSFAttr.HEADER_CLASS_ATTR); } }
/** * Gets the headerClass attribute of the given <code>UIComponent</code>. * @param component the <code>UIComponent</code>. * @return the headerClass attribute of the given <code>UIComponent</code>. */ protected static String getHeaderClass(UIComponent component) { if (component instanceof HtmlDataTable) { return ((HtmlDataTable) component).getHeaderClass(); } else { return (String) component.getAttributes().get( org.apache.myfaces.shared.renderkit.JSFAttr.HEADER_CLASS_ATTR); } }
RendererUtil.renderAttribute(writer, JsfConstants.CLASS_ATTR, htmlDataTable .getHeaderClass(), JsfConstants.HEADER_CLASS_ATTR); encodeComponent(context, tableHeader); RendererUtil.renderAttribute(writer, JsfConstants.CLASS_ATTR, htmlDataTable .getHeaderClass(), JsfConstants.HEADER_CLASS_ATTR); UIColumn column = (UIColumn) it.next();