Пример #1
0
 @MethodFilter
 public List<String> getViewComponentIds() {
   User user = Common.getUser();
   List<String> result = new ArrayList<String>();
   for (ViewComponent vc : user.getView().getViewComponents()) result.add(vc.getId());
   return result;
 }
Пример #2
0
 private ViewComponent getViewComponent(View view, String viewComponentId) {
   for (ViewComponent viewComponent : view.getViewComponents()) {
     if (viewComponent.getId().equals(viewComponentId)) return viewComponent;
   }
   return null;
 }