Package org.cfeclipse.cfml.dialogs.objects

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


       
         
      //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());
         
          //Layout for the fields in this tab
          GridLayout gl = new GridLayout();
        gl.numColumns = 2;
       
        //composite, field and label
        Composite mainContents = new Composite(tabFolder, SWT.NONE);
          mainContents.setLayout(gl);   
         
          //Loop through the category getting the parameters
          Iterator tagIter = cat.getParams().iterator();
          while(tagIter.hasNext()){
            Parameter pr = (Parameter)tagIter.next();
            String labelname = pr.getName() + " : ";
          if(pr.isRequired()){
            labelname = pr.getName() + " *: ";
View Full Code Here


    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

Related Classes of org.cfeclipse.cfml.dialogs.objects.Category

Copyright © 2018 www.massapicom. 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.