private void setSelectionState ( Object node , State state , boolean propagate ) { Objects . requireNonNull ( state , "The state may not be null" ) ; Objects . requireNonNull ( node , "The node may not be null" ) ; State oldState = selectionStates . put ( node , state ) ; if ( ! state . equals ( oldState ) ) { fireStateChanged ( node , oldState , state ) ; if ( propagate ) { updateSelection ( node ) ; } } repaint ( ) ; }
Set the selection state of the given node