Package org.apache.myfaces.component

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


        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

                        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

                              .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

                          ((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

TOP

Related Classes of org.apache.myfaces.component.UIColumns

Copyright © 2018 www.massapicom. 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.