package seedu.taskell.ui;

import javafx.scene.Node;
import jfxtras.scene.control.agenda.Agenda;

public class CalendarView extends UiPart {
    
    public void load() {
        // create Agenda
        Agenda agenda = new Agenda();

        // add an appointment
        agenda.appointments().addAll();

    }

    @Override
    public void setNode(Node node) {
        //not applicable
    }

    @Override
    public String getFxmlPath() {
        return null;    //not applicable
    }

}

@@ -24,34 +24,8 @@
 i;%0A%0A
-import javafx.scene.Node;%0A
 impo
@@ -69,319 +69,244 @@
 a;%0A%0A
-public class CalendarView extends UiPart %7B%0A    %0A    public void load() %7B%0A        // create Agenda%0A        Agenda agenda = new Agenda();%0A
+/** This class holds the necessary elements to display calendar UI via Agenda API from jfxtras%0A * */%0A%0Apublic class CalendarView %7B
 %0A    
+%0A
     
-// add an appointment%0A        agenda.appointments().addAll();%0A%0A    %7D%0A%0A    @Override%0A    public void setNode(Node node) %7B%0A        //not applicable
+private Agenda agenda;%0A    %0A    public CalendarView() %7B%0A        agenda = new Agenda();
 %0A    %7D%0A
-%0A
     
-@Override
 %0A   
@@ -317,26 +317,24 @@
 lic 
-String getFxmlPath
+Agenda getAgenda
 () %7B
@@ -353,33 +353,15 @@
 urn 
-null;    //not applicable
+agenda;
 %0A   

change CalendarView class structure (not supposed to extend UIPart)