code: public void onLeafClick(LeafClickEvent event) {
  		try {
  			if (isIconTargetClicked()) {
  				onIconClick(event.getLeaf());
  			} else {
  				LayerTreeTreeNode layerTreeNode = (LayerTreeTreeNode) event.getLeaf();
  				mapModel.selectLayer(layerTreeNode.getLayer());
  			}
  		} catch (Exception e) { // NOSONAR
  			Log.logError(e.getMessage());
  			// some other unusable element
  		}
  	}
docs: When the user clicks on a leaf the headertext of the treetable is changed to the selected leaf and the toolbar
  buttons are updated to represent the correct state of the buttons.
  
  @param event
  event