org.metawidget.faces.renderkit.html

Class HtmlTableLayoutRenderer

    • Method Summary

      Methods 
      Modifier and Type Method and Description
      void encodeBegin(javax.faces.context.FacesContext context, javax.faces.component.UIComponent metawidgetComponent) 
      void encodeChildren(javax.faces.context.FacesContext context, javax.faces.component.UIComponent metawidget) 
      void encodeEnd(javax.faces.context.FacesContext context, javax.faces.component.UIComponent metawidget) 
      protected String getCssId(javax.faces.component.UIComponent metawidget) 
      protected boolean hasHtmlInputHiddenChildren(javax.faces.component.UIComponent metawidget)
      Determines if the Metawidget has children which are instances of javax.faces.component.html.HtmlInputHidden.
      protected void layoutAfterChild(javax.faces.context.FacesContext context, javax.faces.component.UIComponent metawidget, javax.faces.component.UIComponent childComponent) 
      protected void layoutBeforeChild(javax.faces.context.FacesContext context, javax.faces.component.UIComponent metawidget, javax.faces.component.UIComponent childComponent) 
      protected void layoutHtmlInputHiddenChildren(javax.faces.context.FacesContext context, javax.faces.component.UIComponent metawidget)
      Layout any javax.faces.component.html.HtmlInputHidden children first, before the <table>.
      protected boolean layoutLabel(javax.faces.context.FacesContext context, javax.faces.component.UIComponent metawidget, javax.faces.component.UIComponent componentNeedingLabel)
      Render the label text.
      protected void layoutRequired(javax.faces.context.FacesContext context, javax.faces.component.UIComponent metawidget, javax.faces.component.UIComponent child) 
      protected void writeColumnStyleClass(javax.faces.component.UIComponent metawidget, javax.faces.context.ResponseWriter writer, int columnStyleClass) 
      protected void writeRowStyleClass(javax.faces.component.UIComponent metawidget, javax.faces.context.ResponseWriter writer, int rowStyleClass) 
      • Methods inherited from class javax.faces.render.Renderer

        convertClientId, decode, getConvertedValue
    • Constructor Detail

      • HtmlTableLayoutRenderer

        public HtmlTableLayoutRenderer()
    • Method Detail

      • hasHtmlInputHiddenChildren

        protected boolean hasHtmlInputHiddenChildren(javax.faces.component.UIComponent metawidget)
        Determines if the Metawidget has children which are instances of javax.faces.component.html.HtmlInputHidden. If so, the hidden fields will be written as siblings of the <table> and the whole thing wrapped in an outer <div>.
      • layoutHtmlInputHiddenChildren

        protected void layoutHtmlInputHiddenChildren(javax.faces.context.FacesContext context,
                                         javax.faces.component.UIComponent metawidget)
                                              throws IOException
        Layout any javax.faces.component.html.HtmlInputHidden children first, before the <table>.
        Throws:
        IOException
      • encodeChildren

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

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

        protected void layoutBeforeChild(javax.faces.context.FacesContext context,
                             javax.faces.component.UIComponent metawidget,
                             javax.faces.component.UIComponent childComponent)
                                  throws IOException
        Throws:
        IOException
      • layoutLabel

        protected boolean layoutLabel(javax.faces.context.FacesContext context,
                          javax.faces.component.UIComponent metawidget,
                          javax.faces.component.UIComponent componentNeedingLabel)
                               throws IOException
        Description copied from class: HtmlLayoutRenderer
        Render the label text. Rendering is done via an HtmlOutputText renderer, so that it is properly escaped. Any JSF EL expressions embedded in the label should have already been evaluated by FacesInspectionResultProcessor.
        Overrides:
        layoutLabel in class HtmlLayoutRenderer
        Returns:
        whether a label was written
        Throws:
        IOException
      • layoutAfterChild

        protected void layoutAfterChild(javax.faces.context.FacesContext context,
                            javax.faces.component.UIComponent metawidget,
                            javax.faces.component.UIComponent childComponent)
                                 throws IOException
        Throws:
        IOException
      • layoutRequired

        protected void layoutRequired(javax.faces.context.FacesContext context,
                          javax.faces.component.UIComponent metawidget,
                          javax.faces.component.UIComponent child)
                               throws IOException
        Throws:
        IOException
      • getCssId

        protected String getCssId(javax.faces.component.UIComponent metawidget)
      • writeColumnStyleClass

        protected void writeColumnStyleClass(javax.faces.component.UIComponent metawidget,
                                 javax.faces.context.ResponseWriter writer,
                                 int columnStyleClass)
                                      throws IOException
        Throws:
        IOException
      • writeRowStyleClass

        protected void writeRowStyleClass(javax.faces.component.UIComponent metawidget,
                              javax.faces.context.ResponseWriter writer,
                              int rowStyleClass)
                                   throws IOException
        Throws:
        IOException

Copyright © 2015. All Rights Reserved.