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
    }

}

package seedu.taskell.ui;

import jfxtras.scene.control.agenda.Agenda;

/** This class holds the necessary elements to display calendar UI via Agenda API from jfxtras
 * */

public class CalendarView {
    
    private Agenda agenda;
    
    public CalendarView() {
        agenda = new Agenda();
    }
    
    public Agenda getAgenda() {
        return agenda;
    }

}

change CalendarView class structure (not supposed to extend UIPart)