org.spiffyui.client.nav
Interface NavBarListener


public interface NavBarListener

A listener for events on the navigation bar or the header (for any panel changing including logout).


Method Summary
 void itemSelected(NavItem item)
          Called when a navigation item is selected
 boolean preItemSelected(NavItem item)
          Give the listener a chance to cancel the itemSelected event
 

Method Detail

preItemSelected

boolean preItemSelected(NavItem item)
Give the listener a chance to cancel the itemSelected event

Parameters:
item - the item that was selected
Returns:
boolean true if NavBar should continue on to itemSelected, false to cancel

itemSelected

void itemSelected(NavItem item)
Called when a navigation item is selected

Parameters:
item - the item that was selected