public void displaySelection ( final WComponent selectedComponent ) { WComponent currentComponent = getCurrentComponent ( ) ; if ( selectedComponent == currentComponent ) { // We are already displaying this component, so nothing to do. return ; } // We have a new selection so display it. container . removeAll ( ) ; container . add ( selectedComponent ) ; }
Get the example picker to display the given selected component .