Examples of FooterProperty


Examples of org.gwt.mosaic.ui.client.table.property.FooterProperty

    int footerCounts[] = new int[columnCount];
    int maxFooterCount = 0;
    for (int col = 0; col < columnCount; col++) {
      // Get the header property.
      ColumnDefinition<RowType, ?> colDef = visibleColumns.get(col);
      FooterProperty prop = colDef.getColumnProperty(FooterProperty.TYPE);
      int footerCount = prop.getFooterCount();
      footerCounts[col] = footerCount;
      maxFooterCount = Math.max(maxFooterCount, footerCount);

      // Add each ColumnHeaderInfo
      List<ColumnHeaderInfo> infos = new ArrayList<ColumnHeaderInfo>();
      ColumnHeaderInfo prev = null;
      for (int row = 0; row < footerCount; row++) {
        Object footer = prop.getFooter(row, col);
        if (prev != null && prev.header.equals(footer)) {
          prev.incrementRowSpan();
        } else {
          prev = new ColumnHeaderInfo(footer);
          infos.add(prev);
View Full Code Here

Examples of org.gwt.mosaic.ui.client.table.property.FooterProperty

   *
   * @param row the row index from the top
   * @param footer the footer
   */
  public void setFooter(int row, Object footer) {
    FooterProperty prop = properties.getColumnProperty(FooterProperty.TYPE,
        false);
    if (prop == null) {
      prop = new FooterProperty();
      setColumnProperty(FooterProperty.TYPE, prop);
    }
    prop.setFooter(row, footer);
  }
View Full Code Here

Examples of org.gwt.mosaic.ui.client.table.property.FooterProperty

   * Set the number of footers below the column.
   *
   * @param footerCount the number of footers
   */
  public void setFooterCount(int footerCount) {
    FooterProperty prop = properties.getColumnProperty(FooterProperty.TYPE,
        false);
    if (prop == null) {
      prop = new FooterProperty();
      setColumnProperty(FooterProperty.TYPE, prop);
    }
    prop.setFooterCount(footerCount);
  }
View Full Code Here

Examples of org.gwt.mosaic.ui.client.table.property.FooterProperty

    int footerCounts[] = new int[columnCount];
    int maxFooterCount = 0;
    for (int col = 0; col < columnCount; col++) {
      // Get the header property.
      ColumnDefinition<RowType, ?> colDef = visibleColumns.get(col);
      FooterProperty prop = colDef.getColumnProperty(FooterProperty.TYPE);
      int footerCount = prop.getFooterCount();
      footerCounts[col] = footerCount;
      maxFooterCount = Math.max(maxFooterCount, footerCount);

      // Add each ColumnHeaderInfo
      List<ColumnHeaderInfo> infos = new ArrayList<ColumnHeaderInfo>();
      ColumnHeaderInfo prev = null;
      for (int row = 0; row < footerCount; row++) {
        Object footer = prop.getFooter(row, col);
        if (prev != null && prev.header.equals(footer)) {
          prev.incrementRowSpan();
        } else {
          prev = new ColumnHeaderInfo(footer);
          infos.add(prev);
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.