public void toggle(){
  if (!mOpen) {
    open();
  }
 else {
    close();
  }
}

public void toggle ( ) { if ( ! mOpen ) { open ( ) ; } else { close ( ) ; } }
toggles the menu between open and closed , depending on its current state .
