Examples of SortConstraint


Examples of org.apache.tapestry.grid.SortConstraint

    {
        PropertyModel propertyModel = _model.get(propertyName);

        int availableRows = _source.getAvailableRows();

        SortConstraint constraint = new SortConstraint(propertyModel, ascending ? ColumnSort.ASCENDING : ColumnSort.DESCENDING);
        List<SortConstraint> constraints = Collections.singletonList(constraint);

        _source.prepare(0, availableRows - 1, constraints);

        for (int i = 0; i < ids.length; i++)
View Full Code Here

Examples of org.apache.tapestry5.grid.SortConstraint

            if (sortColumnId == null)
                return Collections.emptyList();

            PropertyModel sortModel = getDataModel().getById(sortColumnId);

            SortConstraint constraint = new SortConstraint(sortModel, getColumnSort());

            return Collections.singletonList(constraint);
        }
View Full Code Here

Examples of org.apache.tapestry5.grid.SortConstraint

            if (sortColumnId == null)
                return Collections.emptyList();

            PropertyModel sortModel = getDataModel().getById(sortColumnId);

            SortConstraint constraint = new SortConstraint(sortModel, getColumnSort());

            return Collections.singletonList(constraint);
        }
View Full Code Here

Examples of org.apache.tapestry5.grid.SortConstraint

            if (sortColumnId == null)
                return Collections.emptyList();

            PropertyModel sortModel = getDataModel().getById(sortColumnId);

            SortConstraint constraint = new SortConstraint(sortModel, getColumnSort());

            return Collections.singletonList(constraint);
        }
View Full Code Here

Examples of org.apache.tapestry5.grid.SortConstraint

            if (sortColumnId == null)
                return Collections.emptyList();

            PropertyModel sortModel = getDataModel().getById(sortColumnId);

            SortConstraint constraint = new SortConstraint(sortModel, getColumnSort());

            return Collections.singletonList(constraint);
        }
View Full Code Here

Examples of org.apache.tapestry5.grid.SortConstraint

    {
        PropertyModel propertyModel = model.get(propertyName);

        int availableRows = source.getAvailableRows();

        SortConstraint constraint = new SortConstraint(propertyModel,
                                                       ascending ? ColumnSort.ASCENDING : ColumnSort.DESCENDING);
        List<SortConstraint> constraints = Collections.singletonList(constraint);

        source.prepare(0, availableRows - 1, constraints);
View Full Code Here

Examples of org.apache.tapestry5.grid.SortConstraint

    {
        PropertyModel propertyModel = model.get(propertyName);

        int availableRows = source.getAvailableRows();

        SortConstraint constraint = new SortConstraint(propertyModel,
                                                       ascending ? ColumnSort.ASCENDING : ColumnSort.DESCENDING);
        List<SortConstraint> constraints = Collections.singletonList(constraint);

        source.prepare(0, availableRows - 1, constraints);
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.sorting.SortConstraint

    MasterReport report = (MasterReport) new ResourceManager().createDirectly(url, MasterReport.class).getResource();
    report.setAutoSort(true);
    SortOrderReportPreProcessor p = new SortOrderReportPreProcessor();
    List<SortConstraint> sortConstraints = p.computeSortConstraints(report.getReportFooter().getSubReport(0));
    List<SortConstraint> expectedSortConstraints = new ArrayList<SortConstraint>();
    expectedSortConstraints.add(new SortConstraint("year", true));
    expectedSortConstraints.add(new SortConstraint("month", true));
    Assert.assertEquals(expectedSortConstraints, sortConstraints);
    DebugReportRunner.execGraphics2D(report);
  }
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.sorting.SortConstraint

    final ArrayList<SortConstraint> c = new ArrayList<SortConstraint>(fields.size());
    for (final String field : fields)
    {
      if (!StringUtils.isEmpty(field))
      {
        c.add(new SortConstraint(field, ascending));
      }
    }
    return c;
  }
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.