public boolean onHome ( ) { if ( ! ( this instanceof BaseScreen ) ) return false ; // This can only be called from the main screen BasePanel screenParent = this . getParentScreen ( ) ; int count = 0 ; while ( screenParent . popHistory ( 1 , false ) != null ) { // Pop all the history. count ++ ; } count -- ; // Want to move back to the first one if ( count > 0 ) screenParent . popHistory ( count , true ) ; // Dump all browser history String strLastCommand = Utility . addURLParam ( null , Params . MENU , Constant . BLANK ) ; //"?menu="; // Blank command = home this . handleCommand ( strLastCommand , this , ScreenConstants . USE_SAME_WINDOW | ScreenConstants . DONT_PUSH_TO_BROWSER ) ; // Process the last command in this window return true ; // Handled }
Process the Home command .