private void updateSelection ( ) { Dateitem selectedItem = getSelectedItem ( ) ; if ( selectedItem == null ) { addStyle ( "color" , "gray" ) ; } else { addStyle ( "color" , "inherit" ) ; } setFocus ( false ) ; }
Updates the visual appearance of the current selection .