@ SuppressWarnings ( "unchecked" ) public < T > MenuState < T > getMenuState ( MenuItem < T > item ) { return ( MenuState < T > ) menuStates . get ( item . getId ( ) ) ; }
Gets the menu state that s associated with a given menu item . This is the current value for the menu item .