Package ro.fortsoft.wicket.pivot.PivotTableRenderModel

Examples of ro.fortsoft.wicket.pivot.PivotTableRenderModel.HeaderRenderCell


          tmp = createValueLabel(value.newChildId(), headerValueRenderCell.getRawValue(),
              headerValueRenderCell.getPivotField());
          applyRowColSpan(cell, tmp);
          value.add(tmp);
        } else {
          HeaderRenderCell headerRenderCell = (HeaderRenderCell) cell;
          tmp = createTitleLabel(value.newChildId(), headerRenderCell.getPivotField());
          applyRowColSpan(cell, tmp);
          value.add(tmp);
        }
      }

      // rendering grand total column
      RepeatingView grandTotalColumn = new RepeatingView("grandTotalColumn");
      for (RenderCell cell : row.getGrandTotalColumn()) {
        if (cell instanceof GrandTotalHeaderRenderCell) {
          GrandTotalHeaderRenderCell grandTotalHeaderRenderCell = (GrandTotalHeaderRenderCell) cell;
          if (grandTotalHeaderRenderCell.getRawValue() != null) {
            tmp = new Label(grandTotalColumn.newChildId(), grandTotalHeaderRenderCell.getRawValue()
                .toString());
            applyRowColSpan(cell, tmp);
            grandTotalColumn.add(tmp);
          } else {
            tmp = new WebMarkupContainer(grandTotalColumn.newChildId());
            applyRowColSpan(cell, tmp);
            tmp.add(AttributeModifier.append("class", "empty"));
            grandTotalColumn.add(tmp);
          }
        } else {
          HeaderRenderCell headerCell = (HeaderRenderCell) cell;
          tmp = createTitleLabel(value.newChildId(), headerCell.getPivotField());
          applyRowColSpan(cell, tmp);
          grandTotalColumn.add(tmp);
        }
      }
      grandTotalColumn.setVisible(row.getGrandTotalColumn().size() > 0);
View Full Code Here

TOP

Related Classes of ro.fortsoft.wicket.pivot.PivotTableRenderModel.HeaderRenderCell

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.