Collection[] collections = Collection.findAll(c); localCollections = new ArrayList<Integer>(); for (Collection collection : collections)
Collection[] allCols = Collection.findAll(context); StringBuffer spec = null; for (int i = 0; i < allCols.length; i++)
request .setAttribute("all_collections", Collection .findAll(context));
Collection[] collections = Collection.findAll(context); for (Collection collection : collections) { indexContent(context, collection, force);
protected void buildSearchControls(Division div) throws WingException, SQLException { Request request = ObjectModelHelper.getRequest(objectModel); Table controlsTable = div.addTable("search-controls", 1, 3); Row controlsRow = controlsTable.addRow(Row.ROLE_DATA); // Create a control for the number of records to display Cell rppCell = controlsRow.addCell(); rppCell.addContent("pagesize"); Select rppSelect = rppCell.addSelect("rpp"); for (int i : RESULTS_PER_PAGE_PROGRESSION) { rppSelect.addOption((i == getParameterRpp()), i, Integer.toString(i)); } Cell filterCell = controlsRow.addCell(); // Create a drop down of the different sort columns available int selectedCollectionId = Util.getIntParameter(request, "filter_collection"); filterCell.addContent("Collection filter:"); Select sortSelect = filterCell.addSelect("filter_collection"); sortSelect.addOption(-1 == selectedCollectionId,-1, "None"); Collection[] collections = Collection.findAll(context); for (Collection collection : collections) { sortSelect.addOption(collection.getID() == selectedCollectionId, collection.getID(), collection.getName()); } controlsRow.addCell().addButton("submit_search_controls").setValue(T_go); }
Collection[] possibleList = Collection.findAll(context);
collectionsSelect.setMultiple(true); collectionsSelect.setSize(15); for (Collection collection : Collection.findAll(context))