Skip to content

Commit

Permalink
Add TableView.fxml to create a table (#54)
Browse files Browse the repository at this point in the history
* Edit User Guide in display

* Edit User Guide in display (#42) (#3)

* Cleanup the User Guide format

* Edit the User Guide to sort the flow of guide (#43) (#4)

* Edit User Guide in display

* Edit User Guide in display (#42) (#3)

* Cleanup the User Guide format

* Add help and edit features into the User Guide

* Add help and edit features into User Guide (#44) (#5)

* Edit User Guide in display

* Edit User Guide in display (#42) (#3)

* Cleanup the User Guide format

* Edit the User Guide to sort the flow of guide (#43) (#4)

* Edit User Guide in display

* Edit User Guide in display (#42) (#3)

* Cleanup the User Guide format

* Add help and edit features into the User Guide

* Add TableView.fxml skeleton

* Edit TableView.fxml

* Add textfield and user input field into TableView.fxml
  • Loading branch information
mrchensheng21 authored Oct 9, 2019
1 parent 95db0b6 commit f266710
Showing 1 changed file with 73 additions and 0 deletions.
73 changes: 73 additions & 0 deletions src/main/resources/view/TableView.fxml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
<?xml version="1.0" encoding="UTF-8"?>

<?import javafx.scene.control.TableColumn?>
<?import javafx.scene.control.TableView?>
<?import javafx.scene.control.TextField?>
<?import javafx.scene.control.cell.PropertyValueFactory?>
<?import javafx.scene.layout.AnchorPane?>
<?import javafx.scene.layout.VBox?>
<?import javafx.scene.control.ScrollPane?>

<AnchorPane maxHeight="593.0" maxWidth="726.0" minHeight="593.0" minWidth="726.0" prefHeight="593.0" prefWidth="726.0" styleClass="root" xmlns="http://javafx.com/javafx/8.0.111" xmlns:fx="http://javafx.com/fxml/1" fx:controller="seedu.address.ui.MainWindow">
<children>
<VBox prefHeight="400.0" prefWidth="600.0" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0">
<children>
<ScrollPane fx:id="scrollPane" hbarPolicy="AS_NEEDED" vbarPolicy="AS_NEEDED" hvalue="1.0" layoutX="4.0" prefHeight="593.0" prefWidth="726.0" vvalue="1.0">
<content>
<TableView fx:id="table" prefHeight="520.0" prefWidth="932.0" VBox.vgrow="ALWAYS">
<columns>
<TableColumn prefWidth="130.0" text="Full Name">
<cellValueFactory>
<PropertyValueFactory property="fullName" />
</cellValueFactory>
</TableColumn>
<TableColumn fx:id="nusEmailColumn" prefWidth="120.0" text="NUS Email">
<cellValueFactory>
<PropertyValueFactory property="nusEmail" />
</cellValueFactory>
</TableColumn>
<TableColumn prefWidth="120.0" text="Personal Email">
<cellValueFactory>
<PropertyValueFactory property="personalEmail" />
</cellValueFactory>
</TableColumn>
<TableColumn fx:id="mobileNumberColumn" prefWidth="90.0" text="Mobile">
<cellValueFactory>
<PropertyValueFactory property="mobileNumber" />
</cellValueFactory>
</TableColumn>
<TableColumn fx:id="schoolColumn" prefWidth="90.0" text="School/Faculty">
<cellValueFactory>
<PropertyValueFactory property="school" />
</cellValueFactory>
</TableColumn>
<TableColumn fx:id="acadYearColumn" prefWidth="50.0" text="Acad Year">
<cellValueFactory>
<PropertyValueFactory property="acadYear" />
</cellValueFactory>
</TableColumn>
<TableColumn fx:id="choiceOneColumn" prefWidth="90.0" text="Choice of Department 1">
<cellValueFactory>
<PropertyValueFactory property="choiceOne" />
</cellValueFactory>
</TableColumn>
<TableColumn fx:id="choiceTwoColumn" prefWidth="90.0" text="Choice of Department 2">
<cellValueFactory>
<PropertyValueFactory property="choiceTwo" />
</cellValueFactory>
</TableColumn>
<TableColumn fx:id="timeSlotColumn" prefWidth="150.0" text="Preferred Time">
<cellValueFactory>
<PropertyValueFactory property="timeSlot" />
</cellValueFactory>
</TableColumn>
</columns>
</TableView>
</content>
</ScrollPane>
<TextField fx:id="userInput" layoutX="7.0" layoutY="538.0" prefHeight="100.0" prefWidth="329.0" />
<TextField fx:id="outputMessage" layoutX="7.0" layoutY="538.0" prefHeight="200.0" prefWidth="329.0"/>
</children>
</VBox>
</children>
</AnchorPane>

0 comments on commit f266710

Please sign in to comment.