protected void updateStatusBar ( ) { if ( statusBar != null ) { int all = getBaseEventList ( ) . size ( ) ; int showing = getFinalEventList ( ) . size ( ) ; String msg ; if ( all == showing ) { String [ ] keys = new String [ ] { modelId + "." + SHOWINGALL_MSG_KEY , SHOWINGALL_MSG_KEY } ; msg = getApplicationConfig ( ) . messageResolver ( ) . getMessage ( keys , new Object [ ] { "" + all , ( all != 1 ) ? objectPluralName : objectSingularName } ) ; } else { String [ ] keys = new String [ ] { modelId + "." + SHOWINGN_MSG_KEY , SHOWINGN_MSG_KEY } ; msg = getApplicationConfig ( ) . messageResolver ( ) . getMessage ( keys , new Object [ ] { "" + showing , ( showing != 1 ) ? objectPluralName : objectSingularName , "" + all } ) ; } // Now add the selection info int nselected = getTable ( ) . getSelectedRowCount ( ) ; if ( nselected > 0 ) { String [ ] keys = new String [ ] { modelId + "." + SELECTEDN_MSG_KEY , SELECTEDN_MSG_KEY } ; msg += getApplicationConfig ( ) . messageResolver ( ) . getMessage ( keys , new Object [ ] { "" + nselected } ) ; } statusBar . setMessage ( msg . toString ( ) ) ; } }
Update the status bar with the current display counts .