Changeset 3928


Ignore:
Timestamp:
Nov 1, 2010, 9:34:49 AM (13 years ago)
Author:
Gregory Vincic
Message:

Refs #698. Removed method getFileProtocolTypeForm and SelectProtocolType? action as the are not used anywhere. Added ProtocolTypeSelect? class.

Location:
trunk/client/servlet/src/org/proteios
Files:
1 added
1 deleted
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/client/servlet/src/org/proteios/gui/form/FormFactory.java

    r3927 r3928  
    30823082
    30833083    //Cleaning up from here       
    3084    
    3085    
    3086     public Form getFileProtocolTypeForm(ProtocolType protocolType)
    3087     {
    3088         Form form = new Form("ProtocolType");
    3089         form.setTitle("ProtocolType");
    3090         Fieldset fs = new Fieldset();
    3091         fs.setTitle("ProtocolType");
    3092         // Protocol Type Select Box
    3093         Select<VString> typeS = new Select<VString>(VTYPE);
    3094         typeS.setLabel("ProtocolType");
    3095         DbControl dc = sc.newDbControl();
    3096         ItemQuery<ProtocolType> query = ProtocolType.getQuery();
    3097         query.order(Orders.asc(Hql.property("name")));
    3098         ItemResultList<ProtocolType> types = query.list(dc);
    3099         //
    3100         for (ProtocolType type : types)
    3101         {
    3102             Option o = new Option(type.getSystemId());
    3103             o.setContent(type.getName());
    3104             typeS.addOption(o);
    3105             if (protocolType != null)
    3106             {
    3107                 if (type.equals(protocolType))
    3108                 {
    3109                     o.setSelected(true);
    3110                 }
    3111             }
    3112         }
    3113         dc.close();
    3114         fs.add(typeS);
    3115         form.addFieldset(fs);
    3116         return form;
    3117     }
    3118    
     3084
    31193085    /**
    31203086        * Form for new Protocol item. The difference between calling
Note: See TracChangeset for help on using the changeset viewer.