diff --git a/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/src/main/java/com/example/PrimaryController.java b/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/src/main/java/com/example/PrimaryController.java deleted file mode 100644 index b058b06..0000000 --- a/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/src/main/java/com/example/PrimaryController.java +++ /dev/null @@ -1,77 +0,0 @@ -package com.example; - -import javafx.collections.FXCollections; -import javafx.collections.ObservableList; -import javafx.fxml.FXML; -import javafx.scene.control.ListCell; -import javafx.scene.control.ListView; -import javafx.scene.layout.HBox; -import javafx.scene.text.Text; - -public class PrimaryController { - - @FXML - private ListView cartList; - - @FXML - public void initialize() { - // Sample data - ObservableList items = FXCollections.observableArrayList( - new Item("Book 1", "Fantasy adventure novel", 3, 19.99), - new Item("Book 2", "Science fiction thriller", 1, 25.50)); - - cartList.setItems(items); - - // Custom cell factory to display items - cartList.setCellFactory(param -> new ListCell() { - @Override - protected void updateItem(Item item, boolean empty) { - super.updateItem(item, empty); - if (empty || item == null) { - setText(null); - } else { - // Create a custom layout for each item - HBox hbox = new HBox(); - Text titleText = new Text(item.getTitle()); - Text descText = new Text(item.getDescription()); - Text quantityText = new Text("Quantity: " + item.getQuantity()); - Text priceText = new Text("Price: $" + item.getPrice()); - - hbox.getChildren().addAll(titleText, descText, quantityText, priceText); - setGraphic(hbox); - } - } - }); - } - - // Item class to hold data - public static class Item { - private String title; - private String description; - private int quantity; - private double price; - - public Item(String title, String description, int quantity, double price) { - this.title = title; - this.description = description; - this.quantity = quantity; - this.price = price; - } - - public String getTitle() { - return title; - } - - public String getDescription() { - return description; - } - - public int getQuantity() { - return quantity; - } - - public double getPrice() { - return price; - } - } -} diff --git a/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/src/main/java/com/example/SecondaryController.java b/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/src/main/java/com/example/SecondaryController.java deleted file mode 100644 index 4cbf23d..0000000 --- a/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/src/main/java/com/example/SecondaryController.java +++ /dev/null @@ -1,12 +0,0 @@ -package com.example; - -import java.io.IOException; -import javafx.fxml.FXML; - -public class SecondaryController { - - @FXML - private void switchToPrimary() throws IOException { - App.setRoot("primary"); - } -} \ No newline at end of file diff --git a/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/src/main/java/com/example/cartController.java b/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/src/main/java/com/example/cartController.java new file mode 100644 index 0000000..9e7ba91 --- /dev/null +++ b/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/src/main/java/com/example/cartController.java @@ -0,0 +1,5 @@ +package com.example; + +public class cartController { + +} diff --git a/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/src/main/java/com/example/checkOutController.java b/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/src/main/java/com/example/checkOutController.java new file mode 100644 index 0000000..f6863b0 --- /dev/null +++ b/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/src/main/java/com/example/checkOutController.java @@ -0,0 +1,45 @@ +package com.example; + +import javafx.fxml.FXML; +import javafx.scene.control.Button; +import javafx.scene.control.ComboBox; +import javafx.scene.control.PasswordField; +import javafx.scene.control.TextField; +import javafx.scene.layout.GridPane; + +public class checkOutController { + + @FXML + private TextField addressField; + + @FXML + private TextField addressField1; + + @FXML + private GridPane billingForm; + + @FXML + private TextField cardHolderNameField; + + @FXML + private TextField cardNumberField; + + @FXML + private TextField cityField; + + @FXML + private ComboBox countryComboBox; + + @FXML + private PasswordField cvvField; + + @FXML + private TextField expiryDateField; + + @FXML + private Button submitButton; + + @FXML + private TextField zipField; + +} diff --git a/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/src/main/java/com/example/loginController.java b/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/src/main/java/com/example/loginController.java new file mode 100644 index 0000000..e278e2a --- /dev/null +++ b/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/src/main/java/com/example/loginController.java @@ -0,0 +1,5 @@ +package com.example; + +public class loginController { + +} diff --git a/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/src/main/java/com/example/registerController.java b/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/src/main/java/com/example/registerController.java new file mode 100644 index 0000000..8fc8916 --- /dev/null +++ b/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/src/main/java/com/example/registerController.java @@ -0,0 +1,5 @@ +package com.example; + +public class registerController { + +} diff --git a/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/src/main/java/com/example/shopController.java b/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/src/main/java/com/example/shopController.java new file mode 100644 index 0000000..e21935c --- /dev/null +++ b/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/src/main/java/com/example/shopController.java @@ -0,0 +1,5 @@ +package com.example; + +public class shopController { + +} diff --git a/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/src/main/resources/com/example/cart.fxml b/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/src/main/resources/com/example/cart.fxml index b72a16b..7049760 100644 --- a/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/src/main/resources/com/example/cart.fxml +++ b/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/src/main/resources/com/example/cart.fxml @@ -13,7 +13,7 @@ - + diff --git a/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/src/main/resources/com/example/checkOut.fxml b/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/src/main/resources/com/example/checkOut.fxml index 8325c27..6750bc2 100644 --- a/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/src/main/resources/com/example/checkOut.fxml +++ b/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/src/main/resources/com/example/checkOut.fxml @@ -14,7 +14,7 @@ - + diff --git a/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/src/main/resources/com/example/login.fxml b/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/src/main/resources/com/example/login.fxml index 9cf0c34..dce202f 100644 --- a/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/src/main/resources/com/example/login.fxml +++ b/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/src/main/resources/com/example/login.fxml @@ -13,7 +13,7 @@ - + diff --git a/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/src/main/resources/com/example/register.fxml b/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/src/main/resources/com/example/register.fxml index 6a542fa..626c80f 100644 --- a/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/src/main/resources/com/example/register.fxml +++ b/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/src/main/resources/com/example/register.fxml @@ -12,7 +12,7 @@ - + diff --git a/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/src/main/resources/com/example/shop.fxml b/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/src/main/resources/com/example/shop.fxml index 9f180ce..13438a4 100644 --- a/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/src/main/resources/com/example/shop.fxml +++ b/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/src/main/resources/com/example/shop.fxml @@ -12,7 +12,7 @@ - + diff --git a/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/target/classes/com/example/PrimaryController$1.class b/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/target/classes/com/example/PrimaryController$1.class deleted file mode 100644 index f5bd4f3..0000000 Binary files a/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/target/classes/com/example/PrimaryController$1.class and /dev/null differ diff --git a/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/target/classes/com/example/PrimaryController$Item.class b/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/target/classes/com/example/PrimaryController$Item.class deleted file mode 100644 index ef5fe21..0000000 Binary files a/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/target/classes/com/example/PrimaryController$Item.class and /dev/null differ diff --git a/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/target/classes/com/example/PrimaryController.class b/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/target/classes/com/example/PrimaryController.class deleted file mode 100644 index 856a0b3..0000000 Binary files a/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/target/classes/com/example/PrimaryController.class and /dev/null differ diff --git a/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/target/classes/com/example/SecondaryController.class b/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/target/classes/com/example/SecondaryController.class deleted file mode 100644 index 30c3cb0..0000000 Binary files a/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/target/classes/com/example/SecondaryController.class and /dev/null differ diff --git a/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/target/classes/com/example/cart.fxml b/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/target/classes/com/example/cart.fxml index b72a16b..7049760 100644 --- a/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/target/classes/com/example/cart.fxml +++ b/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/target/classes/com/example/cart.fxml @@ -13,7 +13,7 @@ - + diff --git a/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/target/classes/com/example/cartController.class b/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/target/classes/com/example/cartController.class new file mode 100644 index 0000000..68dd3c7 Binary files /dev/null and b/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/target/classes/com/example/cartController.class differ diff --git a/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/target/classes/com/example/checkOut.fxml b/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/target/classes/com/example/checkOut.fxml index 8325c27..6750bc2 100644 --- a/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/target/classes/com/example/checkOut.fxml +++ b/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/target/classes/com/example/checkOut.fxml @@ -14,7 +14,7 @@ - + diff --git a/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/target/classes/com/example/checkOutController.class b/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/target/classes/com/example/checkOutController.class new file mode 100644 index 0000000..599ed2c Binary files /dev/null and b/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/target/classes/com/example/checkOutController.class differ diff --git a/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/target/classes/com/example/login.fxml b/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/target/classes/com/example/login.fxml index 9cf0c34..dce202f 100644 --- a/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/target/classes/com/example/login.fxml +++ b/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/target/classes/com/example/login.fxml @@ -13,7 +13,7 @@ - + diff --git a/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/target/classes/com/example/loginController.class b/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/target/classes/com/example/loginController.class new file mode 100644 index 0000000..e2201cd Binary files /dev/null and b/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/target/classes/com/example/loginController.class differ diff --git a/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/target/classes/com/example/register.fxml b/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/target/classes/com/example/register.fxml index 6a542fa..626c80f 100644 --- a/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/target/classes/com/example/register.fxml +++ b/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/target/classes/com/example/register.fxml @@ -12,7 +12,7 @@ - + diff --git a/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/target/classes/com/example/registerController.class b/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/target/classes/com/example/registerController.class new file mode 100644 index 0000000..8a0b94b Binary files /dev/null and b/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/target/classes/com/example/registerController.class differ diff --git a/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/target/classes/com/example/shop.fxml b/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/target/classes/com/example/shop.fxml index 9f180ce..13438a4 100644 --- a/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/target/classes/com/example/shop.fxml +++ b/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/target/classes/com/example/shop.fxml @@ -12,7 +12,7 @@ - + diff --git a/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/target/classes/com/example/shopController.class b/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/target/classes/com/example/shopController.class new file mode 100644 index 0000000..0dc9379 Binary files /dev/null and b/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/target/classes/com/example/shopController.class differ