Examples of UIColumns


Examples of org.apache.myfaces.component.UIColumns

            UIComponent child = (UIComponent) it.next();
            if (child instanceof UIColumns)
            {
              if (child.isRendered())
              {
                UIColumns columns = (UIColumns) child;
                for (int colIndex = 0, size = columns.getRowCount(); colIndex < size; colIndex++)
                {
                  columns.setRowIndex(colIndex);
                  for (Iterator columnChildIter = child.getChildren().iterator(); columnChildIter
                      .hasNext();)
                  {
                    UIComponent columnChild = (UIComponent) columnChildIter.next();
                    process(context, columnChild, processAction);
                  }
                }
                columns.setRowIndex(-1);
              }
            }
          }
        }
      }
View Full Code Here

Examples of org.apache.myfaces.component.UIColumns

        UIComponent child = (UIComponent) childIter.next();
        if (child instanceof UIColumns)
        {
          if(child.isRendered())
          {
            UIColumns columns = (UIColumns) child;
            for (int i = 0, size = columns.getRowCount(); i < size; i++)
            {
              columns.setRowIndex(i);
              for (Iterator facetsIter = child.getFacets().values().iterator(); facetsIter.hasNext();)
              {
                UIComponent facet = (UIComponent) facetsIter.next();
                process(context, facet, processAction);
              }
            }
            columns.setRowIndex(-1);
          }
        }
      }
    }
View Full Code Here

Examples of org.apache.myfaces.component.UIColumns

                        String columnStyle = styles.getColumnStyle(j);
                          renderColumnBody(facesContext, writer, uiData, child, columnStyle);
                    }
                    else if (child instanceof UIColumns)
                    {
                        UIColumns columns = (UIColumns) child;
                        for (int k = 0, colSize = columns.getRowCount(); k < colSize; k++)
                        {
                            columns.setRowIndex(k);
                            String columnStyle = styles.getColumnStyle(j);
                            renderColumnBody(facesContext, writer, uiData, child, columnStyle);
                        }
                        columns.setRowIndex(-1);
                    }
                }
            }
            renderRowEnd(facesContext, writer, uiData);
View Full Code Here

Examples of org.apache.myfaces.component.UIColumns

                              .getFooter() != null;
                  }
              }
              else if (uiComponent instanceof UIColumns)
              {
                  UIColumns columns = (UIColumns) uiComponent;
                  colspan += columns.getRowCount();
                  if (!hasColumnFacet)
                  {
                      hasColumnFacet = header ? columns.getHeader() != null : columns.getFooter() != null;
                  }
              }
            }
        }
View Full Code Here

Examples of org.apache.myfaces.component.UIColumns

                          ((UIColumn) uiComponent).getFooter(), styleClass, 0);
                  }
              }
              else if (uiComponent instanceof UIColumns)
              {
                  UIColumns columns = (UIColumns) uiComponent;
                  for (int i = 0, size = columns.getRowCount(); i < size; i++)
                  {
                      columns.setRowIndex(i);
                      if (header)
                      {
                          renderColumnHeaderCell(facesContext, writer, columns, columns.getHeader(),
                              styleClass, 0);
                      }
                      else
                      {
                          renderColumnFooterCell(facesContext, writer, columns, columns.getFooter(),
                              styleClass, 0);
                      }
                  }
                  columns.setRowIndex(-1);
              }
            }
        }
        writer.endElement(HTML.TR_ELEM);
    }
View Full Code Here

Examples of org.apache.myfaces.custom.crosstable.UIColumns

                        childIter.hasNext();)
                    {
                        UIComponent childComp = (UIComponent) childIter.next();
                        if (childComp instanceof UIColumns)
                        {
                            UIColumns v = (UIColumns) childComp;
                            childCount += v.getRowCount();
                        }
                        else
                        {
                            childCount++;
                        }
View Full Code Here

Examples of org.apache.myfaces.custom.crosstable.UIColumns

        columnStyleIndex = getColumnStyleIndex(uiData, columnStyleIndex);
        super.encodeColumnChild(facesContext, writer, uiData, component,
            styles, columnStyleIndex);
        if (component instanceof UIColumns)
        {
            UIColumns columns = (UIColumns) component;
            for (int k = 0, colSize = columns.getRowCount(); k < colSize; k++)
            {
                columns.setRowIndex(k);
                renderColumnBody(facesContext, writer, uiData, component,
                    styles, columnStyleIndex + k);
            }
            columns.setRowIndex(-1);
        }
    }
View Full Code Here

Examples of org.apache.myfaces.custom.crosstable.UIColumns

        UIComponent uiComponent, String styleClass, boolean header)
        throws IOException {
        super.renderColumnChildHeaderOrFooterRow(facesContext, writer,
            uiComponent, styleClass, header);
        if (uiComponent instanceof UIColumns) {
            UIColumns columns = (UIColumns) uiComponent;
            for (int i = 0, size = columns.getRowCount(); i < size; i++) {
                columns.setRowIndex(i);
                if (header) {
                    renderColumnHeaderCell(facesContext, writer, columns,
                        columns.getHeader(), styleClass, 0);
                }
                else {
                    renderColumnFooterCell(facesContext, writer, columns,
                        columns.getFooter(), styleClass, 0);
                }
            }
            columns.setRowIndex(-1);
        }
    }
View Full Code Here

Examples of org.apache.myfaces.custom.crosstable.UIColumns

    protected boolean hasFacet(boolean header, UIComponent uiComponent) {
        boolean result = super.hasFacet(header, uiComponent);
        if (!result && uiComponent instanceof UIColumns) {
            // Why is this necessary? It seems to me that the inherited
            // implementation will work fine with a UIColumns component...
            UIColumns columns = (UIColumns) uiComponent;
            result = header ? columns.getHeader() != null : columns.getFooter() != null;
        }
        return result;
    }
View Full Code Here

Examples of org.apache.myfaces.custom.crosstable.UIColumns

                        childIter.hasNext();)
                    {
                        UIComponent childComp = (UIComponent) childIter.next();
                        if (childComp instanceof UIColumns)
                        {
                            UIColumns v = (UIColumns) childComp;
                            childCount += v.getRowCount();
                        }
                        else
                        {
                            childCount++;
                        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.