Esempio n. 1
0
 protected MenuItem findCurrentMenuItem(Place currentPlace) {
   for (MenuItem menuItem : menu.asList()) {
     if (isSamePlace(currentPlace, menuItem.getPlace())) {
       if (menuItem.getWidget() instanceof FocusWidget) {
         ((FocusWidget) menuItem.getWidget()).setFocus(false);
       }
       return menuItem;
     }
   }
   return null;
 }