/**
  * Sets the "selected" attribute of the Material controller in order to display its data in its
  * View dialog.
  *
  * @param event Event object for the widget that triggered an action
  */
 public void prepareIdMaterial(ActionEvent event) {
   if (this.getSelected() != null && idMaterialController.getSelected() == null) {
     idMaterialController.setSelected(this.getSelected().getIdMaterial());
   }
 }