Ejemplo n.º 1
0
 protected void menuTriggerLogic() {
   if (nearestMenu.timer.item == this || !nearestMenu.clickToggles) {
     if (nearestMenu.singletNavigation && parent != null) {
       parent.closeMyChildren();
       menu.open(this);
     } else menu.open(this);
   } else if (nearestMenu.clickToggles) {
     if (nearestMenu.singletNavigation) {
       if (parent != null) {
         if (isOpen()) parent.closeMyChildren();
         else {
           parent.closeMyChildren();
           menu.open(this);
         }
       }
     } else toggleChildren();
   }
 }
Ejemplo n.º 2
0
 protected void toggleChildren() {
   if (isOpen) menu.close(this);
   else menu.open(this);
 }