Schedule-Creator

Java GUI to create schedules for UNCG students
git clone git://git.wrycode.com/wrycode/archive/Schedule-Creator.git
Log | Files | Refs | README

select_courses.fxml (15591B)


      1 <?xml version="1.0" encoding="UTF-8"?>
      2 
      3 <?import javafx.geometry.Insets?>
      4 <?import javafx.scene.control.Button?>
      5 <?import javafx.scene.control.ComboBox?>
      6 <?import javafx.scene.control.Label?>
      7 <?import javafx.scene.control.ListView?>
      8 <?import javafx.scene.control.TabPane?>
      9 <?import javafx.scene.control.TextField?>
     10 <?import javafx.scene.control.ToolBar?>
     11 <?import javafx.scene.layout.AnchorPane?>
     12 <?import javafx.scene.layout.BorderPane?>
     13 <?import javafx.scene.layout.ColumnConstraints?>
     14 <?import javafx.scene.layout.GridPane?>
     15 <?import javafx.scene.layout.RowConstraints?>
     16 <?import javafx.scene.layout.VBox?>
     17 
     18 <GridPane xmlns="http://javafx.com/javafx/8.0.171" xmlns:fx="http://javafx.com/fxml/1" fx:controller="ScheduleCreator.controllers.CoursesController">
     19    <columnConstraints>
     20       <ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" percentWidth="2.0" prefWidth="20.0" />
     21       <ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" />
     22       <ColumnConstraints fillWidth="false" hgrow="SOMETIMES" minWidth="10.0" percentWidth="2.0" prefWidth="10.0" />
     23    </columnConstraints>
     24    <rowConstraints>
     25       <RowConstraints fillHeight="false" maxHeight="100.0" minHeight="10.0" prefHeight="20.0" vgrow="NEVER" />
     26       <RowConstraints minHeight="10.0" vgrow="SOMETIMES" />
     27       <RowConstraints fillHeight="false" maxHeight="100.0" minHeight="10.0" prefHeight="20.0" vgrow="NEVER" />
     28    </rowConstraints>
     29    <children>
     30       <GridPane GridPane.columnIndex="1" GridPane.rowIndex="1">
     31          <children>
     32             <GridPane hgap="10.0" maxHeight="1.7976931348623157E308" vgap="20.0" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0" GridPane.columnIndex="1">
     33                <children>
     34                   <ComboBox fx:id="semesterComboBox" onAction="#switchSemester" prefHeight="26.0" prefWidth="692.0" promptText="Choose Semester" GridPane.columnSpan="2" GridPane.hgrow="ALWAYS" />
     35                   <TextField fx:id="searchField" onAction="#addSelectedCourse" prefHeight="25.0" prefWidth="262.0" promptText="Search" GridPane.columnSpan="2" GridPane.rowIndex="1" />
     36                   <ListView fx:id="availableCourses" prefHeight="184.0" prefWidth="271.0" GridPane.columnSpan="2" GridPane.rowIndex="2" />
     37                   <Button fx:id="addCourseButton" mnemonicParsing="false" onAction="#addSelectedCourse" prefHeight="26.0" prefWidth="635.0" text="Add Course" GridPane.columnSpan="2" GridPane.rowIndex="3" />
     38                   <ListView fx:id="selectedCoursesListView" maxHeight="1.7976931348623157E308" prefHeight="114.0" prefWidth="454.0" GridPane.columnSpan="2" GridPane.rowIndex="4" />
     39                   <Button fx:id="removeCourseButton" maxWidth="1.7976931348623157E308" mnemonicParsing="false" onAction="#removeSelectedCourse" prefHeight="72.0" prefWidth="172.0" text="Remove" GridPane.hgrow="NEVER" GridPane.rowIndex="5" GridPane.vgrow="NEVER" />
     40                   <Button fx:id="removeAllCoursesButton" mnemonicParsing="false" onAction="#removeAllCourses" prefHeight="26.0" prefWidth="421.0" text="Remove All" GridPane.columnIndex="1" GridPane.rowIndex="5" />
     41                   <Button fx:id="selectAllButton" mnemonicParsing="false" onAction="#selectAll" prefHeight="79.0" prefWidth="517.0" text="Select/Deselect All" GridPane.hgrow="NEVER" GridPane.rowIndex="7" GridPane.vgrow="NEVER" />
     42                   <Button fx:id="sectionsButton" mnemonicParsing="false" onAction="#setSections" prefHeight="43.0" prefWidth="248.0" text="Submit" GridPane.columnIndex="1" GridPane.hgrow="NEVER" GridPane.rowIndex="7" GridPane.vgrow="NEVER" />
     43                   <TabPane fx:id="sectionTabPane" prefHeight="200.0" prefWidth="200.0" style="-fx-border-color: grey;" tabClosingPolicy="UNAVAILABLE" GridPane.columnSpan="2" GridPane.rowIndex="6">
     44                     <tabs>
     45 
     46                     </tabs>
     47                   </TabPane>
     48                </children>
     49                <columnConstraints>
     50                   <ColumnConstraints hgrow="SOMETIMES" maxWidth="469.0" minWidth="10.0" prefWidth="289.0" />
     51                   <ColumnConstraints hgrow="SOMETIMES" maxWidth="342.0" minWidth="10.0" prefWidth="155.0" />
     52                </columnConstraints>
     53                <padding>
     54                   <Insets bottom="5.0" left="5.0" right="5.0" top="5.0" />
     55                </padding>
     56                <rowConstraints>
     57                   <RowConstraints maxHeight="214.0" minHeight="10.0" prefHeight="30.0" vgrow="NEVER" />
     58                   <RowConstraints maxHeight="243.0" minHeight="0.0" prefHeight="35.0" vgrow="NEVER" />
     59                   <RowConstraints maxHeight="123.0" minHeight="10.0" prefHeight="105.0" vgrow="ALWAYS" />
     60                   <RowConstraints maxHeight="375.0" minHeight="0.0" prefHeight="30.0" vgrow="NEVER" />
     61                   <RowConstraints maxHeight="132.0" minHeight="10.0" prefHeight="94.0" vgrow="ALWAYS" />
     62                   <RowConstraints fillHeight="false" maxHeight="30.0" minHeight="10.0" prefHeight="30.0" vgrow="NEVER" />
     63                   <RowConstraints minHeight="10.0" prefHeight="112.0" vgrow="ALWAYS" />
     64                   <RowConstraints maxHeight="305.0" minHeight="10.0" prefHeight="30.0" />
     65                </rowConstraints>
     66             </GridPane>
     67             <GridPane maxHeight="1.7976931348623157E308" maxWidth="1.7976931348623157E308" GridPane.columnIndex="2">
     68                <children>
     69                   <GridPane fx:id="scheduleGridPane" gridLinesVisible="false" maxHeight="1.7976931348623157E308" maxWidth="1050.0" prefHeight="822.0" prefWidth="872.0" GridPane.columnSpan="2" GridPane.vgrow="ALWAYS">
     70                      <children>
     71                         <Label text="Monday" GridPane.columnIndex="1" GridPane.halignment="CENTER" />
     72                         <Label text="Tuesday" GridPane.columnIndex="2" GridPane.halignment="CENTER" />
     73                         <Label text="Wednesday" GridPane.columnIndex="3" GridPane.halignment="CENTER" />
     74                         <Label text="Thursday" GridPane.columnIndex="4" GridPane.halignment="CENTER" />
     75                         <Label text="Friday" GridPane.columnIndex="5" GridPane.halignment="CENTER" />
     76                         <Label text="8:00 AM" GridPane.halignment="CENTER" GridPane.rowIndex="1" GridPane.valignment="TOP" />
     77                         <Label text="9:00 AM" GridPane.halignment="CENTER" GridPane.rowIndex="2" GridPane.valignment="TOP" />
     78                         <Label text="10:00 AM" GridPane.halignment="CENTER" GridPane.rowIndex="3" GridPane.valignment="TOP" />
     79                         <Label text="2:00 PM" GridPane.halignment="CENTER" GridPane.rowIndex="7" GridPane.valignment="TOP" />
     80                         <Label text="1:00 PM" GridPane.halignment="CENTER" GridPane.rowIndex="6" GridPane.valignment="TOP" />
     81                         <Label text="12:00 PM" GridPane.halignment="CENTER" GridPane.rowIndex="5" GridPane.valignment="TOP" />
     82                         <Label text="11:00 AM" GridPane.halignment="CENTER" GridPane.rowIndex="4" GridPane.valignment="TOP" />
     83                         <Label text="3:00 PM" GridPane.halignment="CENTER" GridPane.rowIndex="8" GridPane.valignment="TOP" />
     84                         <Label text="4:00 PM" GridPane.halignment="CENTER" GridPane.rowIndex="9" GridPane.valignment="TOP" />
     85                         <Label text="5:00 PM" GridPane.halignment="CENTER" GridPane.rowIndex="10" GridPane.valignment="TOP" />
     86                         <Label text="6:00 PM" GridPane.halignment="CENTER" GridPane.rowIndex="11" GridPane.valignment="TOP" />
     87                         <Label text="7:00 PM" GridPane.halignment="CENTER" GridPane.rowIndex="12" GridPane.valignment="TOP" />
     88                         <Label text="8:00 PM" GridPane.halignment="CENTER" GridPane.rowIndex="13" GridPane.valignment="TOP" />
     89                         <Label text="9:00 PM" GridPane.halignment="CENTER" GridPane.rowIndex="14" GridPane.valignment="TOP" />
     90                         <VBox fx:id="CRNPane" minHeight="-Infinity" minWidth="-Infinity" prefHeight="96.0" prefWidth="287.0" style="-fx-background-color: white; -fx-border-color: black; -fx-border-width: 2; -fx-border-radius: 2;" visible="false" GridPane.columnIndex="2" GridPane.columnSpan="3" GridPane.hgrow="NEVER" GridPane.rowIndex="6" GridPane.rowSpan="4" GridPane.vgrow="NEVER">
     91                            <children>
     92                               <ToolBar prefHeight="35.0" prefWidth="314.0">
     93                                 <items>
     94                                   <Button mnemonicParsing="false" onAction="#hideCRNs" text="Close" />
     95                                 </items>
     96                               </ToolBar>
     97                               <VBox fx:id="CRNContainer" alignment="CENTER" prefHeight="168.0" prefWidth="321.0" />
     98                            </children>
     99                         </VBox>
    100                      </children>
    101                      <columnConstraints>
    102                         <ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
    103                         <ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
    104                         <ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
    105                         <ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
    106                         <ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
    107                         <ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
    108                      </columnConstraints>
    109                      <rowConstraints>
    110                         <RowConstraints fx:id="topRow" minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
    111                         <RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
    112                         <RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
    113                         <RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
    114                         <RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
    115                         <RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
    116                         <RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
    117                         <RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
    118                         <RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
    119                         <RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
    120                         <RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
    121                         <RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
    122                         <RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
    123                         <RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
    124                         <RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
    125                      </rowConstraints>
    126                   </GridPane>
    127                   <GridPane GridPane.columnSpan="2" GridPane.rowIndex="1">
    128                      <children>
    129                         <BorderPane prefHeight="200.0" prefWidth="200.0" GridPane.rowIndex="1">
    130                            <center>
    131                               <Button fx:id="previousButton" mnemonicParsing="false" onAction="#loadPrevSchedule" text="Previous" BorderPane.alignment="CENTER" />
    132                            </center>
    133                            <padding>
    134                               <Insets left="100.0" />
    135                            </padding>
    136                         </BorderPane>
    137                         <BorderPane prefHeight="200.0" prefWidth="200.0" GridPane.columnIndex="2" GridPane.rowIndex="1">
    138                            <center>
    139                               <Button fx:id="nextButton" mnemonicParsing="false" onAction="#loadNextSchedule" text="  Next  " BorderPane.alignment="CENTER">
    140                                  <BorderPane.margin>
    141                                     <Insets right="100.0" />
    142                                  </BorderPane.margin>
    143                               </Button>
    144                            </center>
    145                         </BorderPane>
    146                         <BorderPane prefHeight="200.0" prefWidth="200.0" GridPane.columnIndex="1" GridPane.rowIndex="1">
    147                            <center>
    148                               <Label fx:id="scheduleLabel" alignment="CENTER" maxWidth="1.7976931348623157E308" text="##" BorderPane.alignment="CENTER" />
    149                            </center>
    150                         </BorderPane>
    151                         <Label fx:id="onlineClassesLabel" text="Online Classes: #" textFill="#da0e0e" GridPane.columnIndex="1" GridPane.columnSpan="2" />
    152                      </children>
    153                      <columnConstraints>
    154                         <ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" />
    155                         <ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" percentWidth="12.0" prefWidth="100.0" />
    156                         <ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" />
    157                      </columnConstraints>
    158                      <rowConstraints>
    159                         <RowConstraints maxHeight="22.0" minHeight="10.0" prefHeight="16.66668701171875" vgrow="SOMETIMES" />
    160                         <RowConstraints maxHeight="27.33331298828125" minHeight="10.0" prefHeight="27.33331298828125" vgrow="SOMETIMES" />
    161                      </rowConstraints>
    162                   </GridPane>
    163                   <Button fx:id="showCRNButton" mnemonicParsing="false" onAction="#showCRNs" text="Show CRNs" translateX="-50.0" GridPane.columnSpan="2" GridPane.halignment="CENTER" GridPane.rowIndex="2" />
    164                   <Button fx:id="emailCRNButton" mnemonicParsing="false" onAction="#popupAction" prefHeight="27.0" prefWidth="97.0" text="Email CRNs" GridPane.columnIndex="1" GridPane.rowIndex="2" />
    165                </children>
    166                <columnConstraints>
    167                   <ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
    168                   <ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
    169                </columnConstraints>
    170                <rowConstraints>
    171                   <RowConstraints fx:id="heightRestricted" minHeight="10.0" prefHeight="489.0" vgrow="SOMETIMES" />
    172                   <RowConstraints maxHeight="57.3333740234375" minHeight="10.0" prefHeight="57.3333740234375" vgrow="SOMETIMES" />
    173                   <RowConstraints maxHeight="32.0" minHeight="0.0" prefHeight="26.6666259765625" vgrow="SOMETIMES" />
    174                </rowConstraints>
    175             </GridPane>
    176          </children>
    177          <columnConstraints>
    178             <ColumnConstraints hgrow="SOMETIMES" maxWidth="539.0" minWidth="0.0" prefWidth="0.0" />
    179             <ColumnConstraints hgrow="SOMETIMES" maxWidth="568.0" minWidth="10.0" prefWidth="568.0" />
    180             <ColumnConstraints hgrow="SOMETIMES" maxWidth="1.7976931348623157E308" minWidth="10.0" prefWidth="642.0" />
    181             <ColumnConstraints hgrow="SOMETIMES" maxWidth="1.7976931348623157E308" minWidth="0.0" prefWidth="0.0" />
    182          </columnConstraints>
    183          <rowConstraints>
    184             <RowConstraints maxHeight="1.7976931348623157E308" minHeight="10.0" prefHeight="669.0" vgrow="SOMETIMES" />
    185             <RowConstraints maxHeight="0.0" minHeight="0.0" prefHeight="0.0" vgrow="SOMETIMES" />
    186          </rowConstraints>
    187       </GridPane>
    188    </children>
    189 </GridPane>