Преглед изворни кода

Added Class: EditGradesCommand

BlackPhreak пре 6 година
родитељ
комит
c44d9d67af

+ 4 - 1
src/me/blackphreak/CommandHandling/CommandManager.java

@@ -1,12 +1,15 @@
 package me.blackphreak.CommandHandling;
 
 import me.blackphreak.CommandHandling.Handlers.CreateStudentCommand;
+import me.blackphreak.CommandHandling.Handlers.EditGradesCommand;
+import me.blackphreak.CommandHandling.Handlers.EditStudentCommand;
 import me.blackphreak.CommandHandling.Handlers.SearchStudentCommand;
 
 public class CommandManager {
 	public static void registerCommands() {
 		CommandHandler.registerHandler("Search Student",    new SearchStudentCommand("Search student(s) from database with condition(s)"));
 		CommandHandler.registerHandler("Create Student",    new CreateStudentCommand("Insert a new student record to database"));
-		CommandHandler.registerHandler("Edit Student",      new EditStudentCommand("Modify the information of a selected student"));
+		CommandHandler.registerHandler("Edit Student",      new EditStudentCommand("Modify a information of selected student"));
+		CommandHandler.registerHandler("Edit Grades",       new EditGradesCommand("Modify grades of a selected student"));
 	}
 }

+ 16 - 0
src/me/blackphreak/CommandHandling/Handlers/EditGradesCommand.java

@@ -0,0 +1,16 @@
+package me.blackphreak.CommandHandling.Handlers;
+
+import me.blackphreak.CommandHandling.AbstractCommandHandler;
+
+public class EditGradesCommand extends AbstractCommandHandler {
+	
+	public EditGradesCommand(String desc) {
+		super(desc);
+	}
+	
+	@Override
+	public boolean handle() {
+		
+		return false;
+	}
+}

+ 2 - 2
src/me/blackphreak/CommandHandling/EditStudentCommand.java → src/me/blackphreak/CommandHandling/Handlers/EditStudentCommand.java

@@ -1,6 +1,6 @@
-package me.blackphreak.CommandHandling;
+package me.blackphreak.CommandHandling.Handlers;
 
-import me.blackphreak.CommandHandling.Handlers.SearchStudentCommand;
+import me.blackphreak.CommandHandling.AbstractCommandHandler;
 import me.blackphreak.Database;
 import me.blackphreak.Debug.Debug;