Class DataTableRenderer

    • Constructor Detail

      • DataTableRenderer

        public DataTableRenderer()
    • Method Detail

      • decode

        public void decode​(javax.faces.context.FacesContext context,
                           javax.faces.component.UIComponent component)
        Overrides:
        decode in class javax.faces.render.Renderer
      • encodeEnd

        public void encodeEnd​(javax.faces.context.FacesContext context,
                              javax.faces.component.UIComponent component)
                       throws IOException
        Overrides:
        encodeEnd in class javax.faces.render.Renderer
        Throws:
        IOException
      • preRender

        protected void preRender​(javax.faces.context.FacesContext context,
                                 DataTable table)
      • encodeRegularTable

        protected void encodeRegularTable​(javax.faces.context.FacesContext context,
                                          DataTable table)
                                   throws IOException
        Throws:
        IOException
      • encodeScrollableTable

        protected void encodeScrollableTable​(javax.faces.context.FacesContext context,
                                             DataTable table)
                                      throws IOException
        Throws:
        IOException
      • encodeFrozenScrollableTable

        protected void encodeFrozenScrollableTable​(javax.faces.context.FacesContext context,
                                                   DataTable table,
                                                   int frozenColumns)
                                            throws IOException
        Throws:
        IOException
      • encodeScrollAreaEnd

        protected void encodeScrollAreaEnd​(javax.faces.context.FacesContext context)
                                    throws IOException
        Throws:
        IOException
      • encodeScrollBody

        protected void encodeScrollBody​(javax.faces.context.FacesContext context,
                                        DataTable table,
                                        String tableStyle,
                                        String tableStyleClass,
                                        int columnStart,
                                        int columnEnd,
                                        String tbodyId)
                                 throws IOException
        Throws:
        IOException
      • encodeVirtualScrollBody

        protected void encodeVirtualScrollBody​(javax.faces.context.FacesContext context,
                                               DataTable table,
                                               String tableStyle,
                                               String tableStyleClass,
                                               int columnStart,
                                               int columnEnd,
                                               String tbodyId)
                                        throws IOException
        Throws:
        IOException
      • resolveDefaultSortIcon

        protected String resolveDefaultSortIcon​(SortMeta sortMeta)
      • encodeDefaultFilter

        protected void encodeDefaultFilter​(javax.faces.context.FacesContext context,
                                           DataTable table,
                                           UIColumn column,
                                           javax.faces.context.ResponseWriter writer)
                                    throws IOException
        Throws:
        IOException
      • encodeFilterInputSelect

        protected void encodeFilterInputSelect​(UIColumn column,
                                               javax.faces.context.ResponseWriter writer,
                                               boolean disableTabbing,
                                               String filterId,
                                               String filterStyleClass,
                                               Object filterValue,
                                               String ariaLabelId)
                                        throws IOException
        Throws:
        IOException
      • encodeFilterInputText

        protected void encodeFilterInputText​(UIColumn column,
                                             javax.faces.context.ResponseWriter writer,
                                             boolean disableTabbing,
                                             String filterId,
                                             String filterStyleClass,
                                             Object filterValue,
                                             String ariaLabelId)
                                      throws IOException
        Throws:
        IOException
      • findFilterValueForColumn

        protected Object findFilterValueForColumn​(javax.faces.context.FacesContext context,
                                                  DataTable table,
                                                  UIColumn column,
                                                  String filterId)
      • getFilterOptions

        protected javax.faces.model.SelectItem[] getFilterOptions​(UIColumn column)
      • encodeThead

        protected void encodeThead​(javax.faces.context.FacesContext context,
                                   DataTable table,
                                   int columnStart,
                                   int columnEnd,
                                   String theadId,
                                   String columnGroupType)
                            throws IOException
        Throws:
        IOException
      • encodeTbody

        public void encodeTbody​(javax.faces.context.FacesContext context,
                                DataTable table,
                                boolean dataOnly)
                         throws IOException
        Throws:
        IOException
      • encodeTbody

        public void encodeTbody​(javax.faces.context.FacesContext context,
                                DataTable table,
                                boolean dataOnly,
                                int columnStart,
                                int columnEnd,
                                String tbodyId)
                         throws IOException
        Throws:
        IOException
      • encodeRows

        protected void encodeRows​(javax.faces.context.FacesContext context,
                                  DataTable table,
                                  int first,
                                  int last,
                                  int columnStart,
                                  int columnEnd)
                           throws IOException
        Throws:
        IOException
      • encodeFrozenRows

        protected void encodeFrozenRows​(javax.faces.context.FacesContext context,
                                        DataTable table,
                                        int columnStart,
                                        int columnEnd)
                                 throws IOException
        Throws:
        IOException
      • encodeRow

        public boolean encodeRow​(javax.faces.context.FacesContext context,
                                 DataTable table,
                                 String clientId,
                                 int rowIndex,
                                 int columnStart,
                                 int columnEnd)
                          throws IOException
        Throws:
        IOException
      • encodeCell

        protected void encodeCell​(javax.faces.context.FacesContext context,
                                  DataTable table,
                                  UIColumn column,
                                  boolean selected,
                                  boolean disabled,
                                  int rowIndex)
                           throws IOException
        Throws:
        IOException
      • encodeDefaultFieldCell

        protected void encodeDefaultFieldCell​(javax.faces.context.FacesContext context,
                                              DataTable table,
                                              UIColumn column,
                                              javax.faces.context.ResponseWriter writer)
                                       throws IOException
        Throws:
        IOException
      • encodeTFoot

        protected void encodeTFoot​(javax.faces.context.FacesContext context,
                                   DataTable table,
                                   int columnStart,
                                   int columnEnd,
                                   String tfootId,
                                   String columnGroupType)
                            throws IOException
        Throws:
        IOException
      • encodeFacet

        protected void encodeFacet​(javax.faces.context.FacesContext context,
                                   DataTable table,
                                   javax.faces.component.UIComponent facet,
                                   String styleClass)
                            throws IOException
        Throws:
        IOException
      • encodeChildren

        public void encodeChildren​(javax.faces.context.FacesContext context,
                                   javax.faces.component.UIComponent component)
                            throws IOException
        Overrides:
        encodeChildren in class javax.faces.render.Renderer
        Throws:
        IOException
      • getRendersChildren

        public boolean getRendersChildren()
        Overrides:
        getRendersChildren in class javax.faces.render.Renderer
      • encodeRadio

        protected void encodeRadio​(javax.faces.context.FacesContext context,
                                   DataTable table,
                                   boolean checked,
                                   boolean disabled)
                            throws IOException
        Throws:
        IOException
      • encodeColumnSelection

        protected void encodeColumnSelection​(javax.faces.context.FacesContext context,
                                             DataTable table,
                                             UIColumn column,
                                             boolean selected,
                                             boolean disabled)
                                      throws IOException
        Throws:
        IOException
      • encodeCheckbox

        protected void encodeCheckbox​(javax.faces.context.FacesContext context,
                                      DataTable table,
                                      boolean checked,
                                      boolean disabled,
                                      String styleClass,
                                      boolean isHeaderCheckbox)
                               throws IOException
        Throws:
        IOException
      • encodeNativeCheckbox

        protected void encodeNativeCheckbox​(javax.faces.context.FacesContext context,
                                            DataTable table,
                                            boolean checked,
                                            boolean disabled,
                                            boolean isHeaderCheckbox)
                                     throws IOException
        Throws:
        IOException
      • encodeNativeRadio

        protected void encodeNativeRadio​(javax.faces.context.FacesContext context,
                                         DataTable table,
                                         boolean checked,
                                         boolean disabled)
                                  throws IOException
        Throws:
        IOException
      • isInSameGroup

        protected boolean isInSameGroup​(javax.faces.context.FacesContext context,
                                        DataTable table,
                                        int currentRowIndex,
                                        int step,
                                        javax.el.ValueExpression groupByVE,
                                        javax.el.ELContext eLContext)
      • encodeSortableHeaderOnReflow

        protected void encodeSortableHeaderOnReflow​(javax.faces.context.FacesContext context,
                                                    DataTable table)
                                             throws IOException
        Throws:
        IOException
      • getSortableHeadersText

        protected List<String> getSortableHeadersText​(javax.faces.context.FacesContext context,
                                                      DataTable table)
      • hasColumnDefaultRendering

        protected boolean hasColumnDefaultRendering​(DataTable table,
                                                    UIColumn column)