Exemple #1
0
 public void bringViewToFront(String id) {
   for (View view : getViews()) {
     if (view.getId() != null && view.getId().equals(id)) {
       Util.bringToFront(view);
       // Carry on until all views with the specified
       // view id are in front
     }
   }
 }
Exemple #2
0
 public boolean containsView(String id) {
   for (View view : getViews()) {
     if (id.equals(view.getId())) {
       return true;
     }
   }
   return false;
 }
Exemple #3
0
 private View getView(String id, Component c) {
   Collection<View> views = UIUtil.getComponentsExtending(c, View.class);
   for (View view : views) {
     if (view.getId().equals(id)) {
       return view;
     }
   }
   return null;
 }