package caltool.view.options;

import caltool.model.options.*;
import mvp.*;
import javax.swing.*;
import java.awt.*;

public class SchedulingOptionsPanel extends View {

    public SchedulingOptionsPanel(Screen screen, Options options) {
        super(screen, options);
    }

    public Component compose() {

        Box vbox = Box.createVerticalBox();
        Box hbox = Box.createHorizontalBox();

        JTabbedPane pane = new JTabbedPane();

        pane.setPreferredSize(new Dimension(280,200));
        pane.add("Defaults", new JLabel("Defaults tab"));
        pane.add("Overlapping Items", new JLabel("Overlapping Items tab"));
        pane.add("Reminders", new JLabel("Reminders tab"));
        pane.add("Meetings", new JLabel("Meeting Notifications tab"));

        hbox.add(Box.createHorizontalStrut(12));
        hbox.add(pane);
        hbox.add(Box.createHorizontalStrut(12));

        vbox.add(Box.createVerticalStrut(12));
        vbox.add(hbox);
        vbox.add(Box.createVerticalStrut(12));

        return (widget = vbox);

     /*
      * Old stub:
      *
        JPanel panel = new JPanel();
        JLabel label = new JLabel("SchedulingOptionsPanel");

        panel.setLayout(new GridLayout(1,1));
        panel.add(label);
        label.setHorizontalAlignment(SwingConstants.CENTER);
        label.setVerticalAlignment(SwingConstants.CENTER);

        return (widget = panel);
      *
      */

    }
}
