Files
Se302/src/main/resources/org/example/se302/view/schedule-classroom-view.fxml

49 lines
2.1 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<?import javafx.geometry.Insets?>
<?import javafx.scene.control.*?>
<?import javafx.scene.layout.*?>
<BorderPane xmlns="http://javafx.com/javafx"
xmlns:fx="http://javafx.com/fxml"
fx:controller="org.example.se302.controller.ScheduleClassroomController"
styleClass="content-pane">
<top>
<VBox spacing="10">
<padding>
<Insets top="20" right="20" bottom="10" left="20"/>
</padding>
<Label text="Classroom Schedule View" styleClass="section-title"/>
<HBox spacing="10" alignment="CENTER_LEFT">
<Label text="Select Classroom:"/>
<ComboBox fx:id="classroomComboBox" promptText="Choose a classroom..." prefWidth="200"/>
<Button text="Show Schedule" onAction="#onShowSchedule" styleClass="primary-button"/>
<Button text="📥 Export CSV" onAction="#onExportCSV"/>
</HBox>
</VBox>
</top>
<center>
<VBox spacing="10">
<padding>
<Insets top="10" right="20" bottom="20" left="20"/>
</padding>
<Label fx:id="selectedClassroomLabel" text="No classroom selected" styleClass="subsection-title"/>
<TableView fx:id="scheduleTable" VBox.vgrow="ALWAYS">
<columns>
<TableColumn fx:id="dateColumn" text="Date" prefWidth="150"/>
<TableColumn fx:id="timeColumn" text="Time" prefWidth="150"/>
<TableColumn fx:id="courseColumn" text="Course" prefWidth="150"/>
<TableColumn fx:id="studentsColumn" text="Students" prefWidth="100"/>
<TableColumn fx:id="utilizationColumn" text="Utilization" prefWidth="100"/>
</columns>
<placeholder>
<Label text="Select a classroom to view its exam schedule"/>
</placeholder>
</TableView>
<Label fx:id="utilizationLabel" text="Overall Utilization: 0%"/>
</VBox>
</center>
</BorderPane>