Ejemplo n.º 1
0
 public void viewSelectedCategoryProjects(Map<Integer, Project> projectList) {
   int i = 1;
   for (Project p : projectList.values()) {
     System.out.println("Press " + i + " to select -> " + p.getTitle());
     i++;
   }
 }
Ejemplo n.º 2
0
 public void singleCategorysProjectsView(Project p) {
   System.out.println(
       "\nProject Title : "
           + p.getTitle()
           + "\n Project Discription :"
           + p.getDiscription()
           + "\n Project History : "
           + p.getProjectHistory()
           + "\n Video Link : "
           + p.getVideoLink()
           + "\n Required Sum :"
           + p.getRequiredSum()
           + "\n Gained Sum :"
           + p.getGainedSum()
           + "\n Days Left :"
           + p.getDaysLeft()
           + "\n QustionSection : "
           + p.getQuestionSection());
 }
Ejemplo n.º 3
0
 public void categorysProjectsView(Map<Integer, Project> projectList) {
   if (projectList.size() == 1) {
     for (Project p : projectList.values()) {
       System.out.println(
           "Project Title : "
               + p.getTitle()
               + "\n Project Discription :"
               + p.getDiscription()
               + "\n Project History : "
               + p.getProjectHistory()
               + "\n Video Link : "
               + p.getVideoLink()
               + "\n Required Sum :"
               + p.getRequiredSum()
               + "\n Gained Sum :"
               + p.getGainedSum()
               + "\n Days Left :"
               + p.getDaysLeft()
               + "\n");
     }
   } else {
     for (Project p : projectList.values()) {
       System.out.println(
           "Project Title : "
               + p.getTitle()
               + "\n Project Discription :"
               + p.getDiscription()
               + "\n Required Sum :"
               + p.getRequiredSum()
               + "\n Gained Sum :"
               + p.getGainedSum()
               + "\n Days Left :"
               + p.getDaysLeft()
               + "\n");
     }
   }
 }
Ejemplo n.º 4
0
 public void addNewQuestion(String newQuestion, int projectNumber, String categoryTitle) {
   Project p = prm.getOne(categoryTitle, projectNumber);
   String questionSection = p.getQuestionSection();
   p.setQuestionSection(questionSection += newQuestion + "\n");
 }