Examples of CategoryInfo


Examples of org.apache.jetspeed.portlets.CategoryInfo

    List list = new ArrayList();
    List tmpList = null;
    List catList = null;
    Iterator iterator = null;
    int portletCount = 0;
    CategoryInfo catInfo = null;
    int strtCnt = getStartRow(pageNumber, portletPerPages);
    int endCnt = getEndRow(pageNumber, portletPerPages);
    try
    {     
      if (category.equalsIgnoreCase("all")) {       
        tmpList = retrievePortlets(request, filter);
        portletCount = tmpList.size();
        if (endCnt > portletCount)
          endCnt = portletCount;
        for (int index = strtCnt; index < endCnt; index++) {
          list.add(tmpList.get(index));
        }
      } else if (category.equalsIgnoreCase("search")) {
        tmpList = retrievePortlets(request, filter);
        portletCount = tmpList.size();
        if (endCnt > portletCount)
          endCnt = portletCount;
        for (int index = strtCnt; index < endCnt; index++) {
          list.add(tmpList.get(index));
        }
      } else {
        tmpList =  retrieveCategories(request);
        iterator = tmpList.iterator();
        while (iterator.hasNext()) {
          catInfo = (CategoryInfo) iterator.next();
          if (catInfo.getName().equalsIgnoreCase(category)) {
            catList = catInfo.getPortlets();
            break;
          }
        }
        portletCount = catList.size();
        if (endCnt > portletCount)
View Full Code Here

Examples of org.eclipse.wb.core.editor.palette.model.CategoryInfo

      ImageBundleInfo bundle = ImageBundleContainerInfo.getBundles(frame).get(0);
      List<ImageBundlePrototypeDescription> prototypes = bundle.getPrototypes();
      prototype = prototypes.get(0);
    }
    // prepare category/entries
    CategoryInfo category = new CategoryInfo();
    category.setId("com.google.gdt.eclipse.designer.ImageBundle");
    List<EntryInfo> entries = Lists.newArrayList();
    // send palette broadcast
    PaletteEventListener listener = frame.getBroadcast(PaletteEventListener.class);
    listener.entries(category, entries);
    // we should have exactly one entry
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.