Examples of CategoryList


Examples of org.apache.rave.rest.model.CategoryList

    private CategoryService categoryService;
    private UserService userService;

    @Override
    public Response getCategories() {
        CategoryList categoryList = new CategoryList();
        for (org.apache.rave.model.Category category : categoryService.getAll()) {
            categoryList.getCategories().add(new Category((category)));
        }

        return Response.ok(categoryList).build();
    }
View Full Code Here

Examples of org.cfeclipse.cfml.dialogs.objects.CategoryList

     
    return tabFolder;
  }
  */
  private TabFolder parseTagCategories(TabFolder tabFolder){
          CategoryList cl = getParameterCategories();
   
         
       
         
      //Now create the tabs initially:
        Iterator tabIter = cl.getCategories().iterator();
        while(tabIter.hasNext()){
          Category cat = (Category)tabIter.next();
          TabItem tabItem = new TabItem(tabFolder, SWT.NONE);
          tabItem.setText(cat.getName());
         
View Full Code Here

Examples of org.cfeclipse.cfml.dialogs.objects.CategoryList

       
    return tabFolder;
  }
 
  private CategoryList getParameterCategories(){
    CategoryList cl = new CategoryList();
   
    if (this.attributes != null) {
   
      Iterator i = this.attributes.iterator();
      while(i.hasNext()){
        Parameter pr = (Parameter) i.next();
        Category cat = null;
       
        if(!cl.hasCategory(pr.getCategory())){
          cat = new Category(pr.getCategory());
         
          //add the Parameter
          cat.addParameter(pr);
          cl.addCategory(cat);
        }
        else {
          cat = cl.getCategory(pr.getCategory());
          cat.addParameter(pr);
        }
       
      }
    }
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.