package com.example.schedulerapp; import javafx.scene.control.Button; //stores the shift for easy retrieval public class ShiftButton extends Button { Shift shift; public ShiftButton(String text, Shift newShift){ super(text); shift = newShift; } public Shift getShift(){ return shift; } }