com.actionbarsherlock.internal.view.menu
Interface MenuPresenter.Callback

All Known Implementing Classes:
ActionBarSherlockCompat
Enclosing interface:
MenuPresenter

public static interface MenuPresenter.Callback

Called by menu implementation to notify another component of open/close events.


Method Summary
 void onCloseMenu(MenuBuilder menu, boolean allMenusAreClosing)
          Called when a menu is closing.
 boolean onOpenSubMenu(MenuBuilder subMenu)
          Called when a submenu opens.
 

Method Detail

onCloseMenu

void onCloseMenu(MenuBuilder menu,
                 boolean allMenusAreClosing)
Called when a menu is closing.

Parameters:
menu -
allMenusAreClosing -

onOpenSubMenu

boolean onOpenSubMenu(MenuBuilder subMenu)
Called when a submenu opens. Useful for notifying the application of menu state so that it does not attempt to hide the action bar while a submenu is open or similar.

Parameters:
subMenu - Submenu currently being opened
Returns:
true if the Callback will handle presenting the submenu, false if the presenter should attempt to do so.


Copyright © 2012-2013. All Rights Reserved.