Examples of sortBy()


Examples of com.echonest.api.v4.SongParams.sortBy()

        shell.add("hot_songs", new ShellCommand() {
            public String execute(Shell ci, String[] args) throws Exception {
                boolean old_way = true;
                SongParams p = new SongParams();
                p.sortBy(SongParams.SORT_SONG_HOTTTNESSS, false);

                String description = Shell.mash(args, 1);

                if (old_way) {
                    p.addDescription(description);
View Full Code Here

Examples of com.knowgate.dataobjs.DBSubset.sortBy()

      oCalendarsByCountry.setElementAt("","nm_country",c);   
    }
    oRSet.close();
    } // next
  oStmt.close();
  oCalendarsByCountry.sortBy(oCalendarsByCountry.getColumnPosition("nm_country"));
    return oCalendarsByCountry;
  } // byCountry

  // --------------------------------------------------------------------------
View Full Code Here

Examples of com.knowgate.dataobjs.DBSubset.sortBy()

      oCalendarsByState.setElementAt("",DB.nm_state,c);   
    }
    oRSet.close();
    } // next
  oStmt.close();
  oCalendarsByState.sortBy(oCalendarsByState.getColumnPosition(DB.nm_state));
    return oCalendarsByState;
  } // byState

  // --------------------------------------------------------------------------
View Full Code Here

Examples of com.mucommander.ui.main.table.FileTable.sortBy()

        init(new FolderPanel(this, leftTabs, indexOfLeftSelectedTab, leftTableConf),
           new FolderPanel(this, rightTabs, indexOfRightSelectedTab, rightTableConf));

        for (boolean isLeft = true; ; isLeft=false) {
          FileTable fileTable = isLeft ? leftTable : rightTable;
          fileTable.sortBy(Column.valueOf(MuConfigurations.getSnapshot().getVariable(MuSnapshot.getFileTableSortByVariable(0, isLeft), MuSnapshot.DEFAULT_SORT_BY).toUpperCase()),
                    !MuConfigurations.getSnapshot().getVariable(MuSnapshot.getFileTableSortOrderVariable(0, isLeft), MuSnapshot.DEFAULT_SORT_ORDER).equals(MuSnapshot.SORT_ORDER_DESCENDING));
         
          FolderPanel folderPanel = isLeft ? leftFolderPanel : rightFolderPanel;
          folderPanel.setTreeWidth(MuConfigurations.getSnapshot().getVariable(MuSnapshot.getTreeWidthVariable(0, isLeft), 150));
          folderPanel.setTreeVisible(MuConfigurations.getSnapshot().getVariable(MuSnapshot.getTreeVisiblityVariable(0, isLeft), false));
View Full Code Here

Examples of org.odbms.Query.sortBy()

  private void showAlbum()
  {
    try {
      Query query = gtm.query(Album.class);
      query.sortBy("year");

      ObjectSet<Album> items = query.execute();

      int cnt = 0;
      for (Album album : items) {
View Full Code Here

Examples of org.odbms.Query.sortBy()

    Query q1 = gtm.query(Disc.class);
    q1.constrain("DGENRE", OP.EQUALS, FUNCTION.TO_UPPER, "Jazz");
    q1.constrain("DTITLE", OP.CONTAINS, FUNCTION.TO_UPPER, searchFor);
    q1.constrain("DYEAR", OP.GREATER, 1999);
    q1.sortBy("DYEAR");
    ObjectSet<Disc> discs = q1.execute();

    Util.printObjectSet(discs);
    q1.printConstraintInfo();
    gtm.printCacheStatistics();
View Full Code Here

Examples of org.odbms.Query.sortBy()

  {
    Query q1 = db.query(Disc.class);
    q1.constrain("DTITLE", OP.CONTAINS, FUNCTION.TO_UPPER, "the");
    q1.constrain("DYEAR", OP.RANGE, 2000, 2009);

    q1.sortBy("DTITLE");
    q1.sortBy("DGENRE");
    q1.sortByDescending("DYEAR");

    ObjectSet<Disc> discs = q1.execute();
    int discsSize = discs.size();
View Full Code Here

Examples of org.odbms.Query.sortBy()

    Query q1 = db.query(Disc.class);
    q1.constrain("DTITLE", OP.CONTAINS, FUNCTION.TO_UPPER, "the");
    q1.constrain("DYEAR", OP.RANGE, 2000, 2009);

    q1.sortBy("DTITLE");
    q1.sortBy("DGENRE");
    q1.sortByDescending("DYEAR");

    ObjectSet<Disc> discs = q1.execute();
    int discsSize = discs.size();
View Full Code Here

Examples of org.rhq.core.domain.util.PageControl.sortBy()

            UIData data = FacesComponentUtility.getAncestorOfType(sortableColumnHeader, UIData.class);
            PagedListDataModel<?> model = (PagedListDataModel<?>) data.getValue();

            PageControl pageControl = model.getPageControl();
            pageControl.sortBy(sortBy);
            // Even though its the same PageControl instance, call setPageControl() so the updated version gets
            // persisted.
            model.setPageControl(pageControl);
        }
    }
View Full Code Here

Examples of org.rhq.core.domain.util.PageControl.sortBy()

        PageControlView pageControlView = model.getPageControlView();
        PagedDataTableUIBean pagedDataTableUIBean = pageControlView.getPagedDataTableUIBean();
        pagedDataTableUIBean.setDataModel(null);

        PageControl pc = model.getPageControl();
        pc.sortBy(sort);
        model.setPageControl(pc);
    }
}
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.