コード例 #1
0
 /** 获取所有非关联且应用了view_List版型的属性例表. */
 public static List<Property> getApplyViewSearchPropertiesFromSimple(Class element) {
   List<Property> propertyList = new ArrayList<Property>();
   Iterator<Property> i = ClassHelper.getAllSimpleProperties(element);
   for (; i.hasNext(); ) {
     Property property = i.next();
     if (isSearch(property)) propertyList.add(property);
   }
   return propertyList;
 }
コード例 #2
0
 public static List<Property> getSearchCheckboxFieldPropertiesFromSimple(Class element) {
   List<Property> propertyList = new ArrayList<Property>();
   Iterator<Property> i = ClassHelper.getAllSimpleProperties(element);
   for (; i.hasNext(); ) {
     Property property = (Property) i.next();
     if (isSearch(property)) {
       if (ViewInputHelper.isViewInputCheckbox(property)) {
         propertyList.add(property);
       }
     }
   }
   return propertyList;
 }