/** Method implementation of the ControlledScreen interface. @see ControlledScreen */
 @Override
 public void setParentScreen(ScreenController parent) {
   try {
     super.loadShell();
     refreshList();
   } catch (ClassNotFoundException | SQLException | IOException e) {
     // TODO Auto-generated catch block
     e.printStackTrace();
   }
   controller = parent;
 }
  /**
   * It's responsible for refreshing the application's task list when the "Refresh" button is
   * pressed.
   *
   * @throws ClassNotFoundException
   * @throws SQLException
   * @throws IOException
   */
  @FXML
  public void refreshList() throws ClassNotFoundException, SQLException, IOException {

    super.loadShell();

    super.loadLog();

    lstView.setItems(FXCollections.observableArrayList(shl.mapToSet()));
    // lstView.setCellFactory(ComboBoxListCell.forListView(FXCollections.observableArrayList(data)));
    // lstView.getSelectionModel().setSelectionMode(SelectionMode.SINGLE);
    lstView.setEditable(true);

    lstView.setOnMouseClicked(
        new EventHandler<MouseEvent>() {

          @Override
          public void handle(MouseEvent event) {

            System.out.println("clicked on " + lstView.getSelectionModel().getSelectedItem());

            shl.setCurrentTab((Task) lstView.getSelectionModel().getSelectedItem());
            whatever();

            taskName.setText(shl.getCurrentTab().getName());
            description.setText(shl.getCurrentTaskDescription());
            name.setText(shl.getCurrentTab().getAssignee());
            authorname.setText(shl.getCurrentTab().getAuthor());
            comment.setText(shl.getCurrentTab().getComment());
            lastEditor.setText(shl.getCurrentTab().getLastEditor().getID());
            status.setText(statusCheck());
            statusV.setText(statusVCheck());
            lastEditDate.setText(shl.getCurrentTab().getLastEditDate());
            creationDate.setText(shl.getCurrentTab().getCreationDate());
            verificationDate.setText(shl.getCurrentTab().getVerificationDate());
            completionDate.setText(shl.getCurrentTab().getCompletionDate());
            // authorname.setText(shl.getCurrentTab().getAuthor().getName());

            if (shl.getCurrentTab().getFileDemo() != null) {
              fileLabel.setText(shl.getCurrentTab().getFileDemo().toString());

            } else fileLabel.setText("No file uploaded");

            if (shl.getCurrentTab().isLOCKED()) {
              comment.setDisable(true);

            } else comment.setDisable(false);

            /*if(shl.getCurrentTab().getStatus()==true && shl.getCurrentTab().getStatusV()==true){
            	set background color green
            }*/
          }
        });
  }