From 1662d09ef6cc1bf46cb2db39774b32cb30d2b098 Mon Sep 17 00:00:00 2001 From: Patrick Date: Mon, 13 Jan 2025 20:11:17 +0100 Subject: [PATCH] spaghetti --- .../main/java/com/example/CartController.java | 4 ++-- .../java/com/example/CheckOutController.java | 4 ++-- .../java/com/example/LoginController.java | 7 ++++++- .../java/com/example/RegisterController.java | 4 ++-- .../main/java/com/example/ShopController.java | 4 ++-- .../classes/com/example/CartController.class | Bin 4539 -> 4568 bytes .../com/example/CheckOutController.class | Bin 4439 -> 4468 bytes .../classes/com/example/LoginController.class | Bin 3052 -> 3180 bytes .../com/example/RegisterController.class | Bin 3377 -> 3406 bytes .../classes/com/example/ShopController.class | Bin 4168 -> 4197 bytes 10 files changed, 14 insertions(+), 9 deletions(-) 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 index 021611c..bbc6f73 100644 --- 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 @@ -44,8 +44,8 @@ public class CartController { private final ObservableList cartItems = FXCollections.observableArrayList(); @FXML - void handleTitleClick(MouseEvent event) { - + void handleTitleClick(MouseEvent event) throws IOException { + App.setRoot("shop"); } @FXML 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 index 6150400..5edfd47 100644 --- 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 @@ -73,8 +73,8 @@ public class CheckOutController { } @FXML - void handleTitleClick(MouseEvent event) { - + void handleTitleClick(MouseEvent event) throws IOException { + App.setRoot("shop"); } @FXML 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 index 470f174..863f39f 100644 --- 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 @@ -112,7 +112,7 @@ public class LoginController { private Label usernameLabel; @FXML - void handleTitleClick(MouseEvent event) { + void handleLoginButton(ActionEvent event) { } @@ -121,6 +121,11 @@ public class LoginController { } + @FXML + void handleTitleClick(MouseEvent event) throws IOException { + App.setRoot("shop"); + } + @FXML private void handleCartButton() throws IOException { App.setRoot("cart"); 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 index 7b6db85..1e627d7 100644 --- 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 @@ -47,8 +47,8 @@ public class RegisterController { private Label footerCopyText; @FXML - void handleTitleClick(MouseEvent event) { - + void handleTitleClick(MouseEvent event) throws IOException { + App.setRoot("shop"); } @FXML 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 index 0e1c5ba..fe027d2 100644 --- 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 @@ -38,8 +38,8 @@ public class ShopController { } @FXML - void handleTitleClick(MouseEvent event) { - + void handleTitleClick(MouseEvent event) throws IOException { + App.setRoot("shop"); } @FXML 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 index 2a987f59b1a207edf958c87f31f54af0a6659f53..783abbe8c4b3a306984eaa89a2de3d87fc712cac 100644 GIT binary patch delta 1386 zcmZ`(YgANK6#fo#XYQRl7iJhB5t4YA3m9;;RilA|lVM6TVu%t}(llI|fq6OiVqg!- z9+pLEr!snwJ!pC>XoD~*StdpA`qPir%GLkY>bF0#eFt;dkJg%V&;IuP_CEXD``pP? z{aPi@|2=aWz$*MQA@36M<(9#qn$W}Xm?mNsLjh;jf{hYxWDvAaJRzeIYelSKum|H& zw>lVzCL*fan@A{VLNkM?sd{@nt}_%>`}zWV0`5p4*6ZG?C&RH`-Y+yMH!CPak%$cp z%lTjCB0evaF4;)=V}YnDqXn%BD$y*%hs`4V4CTZsv8|6s2BI+qZP>z_%^qL7f<-8j z(7|BqQMF()oGsf5hV2T9jaRobNV^9DF+Hpg8U7s#N(}#<4CX{K9Hi42b}H!RXUt`J z0R;}^%Lqah(Zl~VSDAL9mls$(EX-Rir5*hY&a9$v+`S0JJ>t^h5FSQqmyO_A5zo-M zSBzmuqjMD;#362x%CGT&D|jCJ80216_p6!~=vAF`A6`^&7%%aiQcK0lcvZwJr0ZYp zTWFLz4O9(Krq|HS&q_fy&a17+)b-KjeB@1uW7g&Rg|1cWFAOV z1~ABc%%4GsLi@U$(i9?7h;B~dY9lOzMAu@$nG_14PhrnAhH}tJ$%eZcgt?37>(8N) z&?6~a?;~3@Y}c&cH3zBAmqM`KYC;QE2zI=IH>u{gs8$cG7l~#T!9?uO{z4+&1}>nugWv^7UfQh0 zq8<{Ne@+>2LhN7ITA_=CVHmXse l>Sjq{4nD&f+9hJn(fSJWgq-C62H)Wa>d=q$C-yU}{{RH%LqGrk delta 1424 zcmY*Z>sM4&6#pIO&fGhfi!)4sh{8fqmN3wyCL-hml1!Zu1B9?bFT-UR9p;WRcLXvd zv$846>SWnNdK$gdKpT`v>0wf4uWxk>8nB-cs&)L6y_SxsRA9sE)NtMV~ z|CzW1U=@BFmAeIgU07{jtsn=vB5HYwb;a^E3_@7#)nwFQoq|PJ&yc&+yIb9-dO~VA z;Au9Z!Em6qtW`!mHi)>FN32UM4Y-dVw^n)YS1=d35;ikrc4;wxG#D|0de{yIuY!E@ zXe)!XH?D?_pfOuS=}E-flT<&(C#ox8A3MhCjggfxabZYD(j zGk%nghya7rulIViezi9e(mb0Ctye;jto6FSr+C9`I=1yC)7Lki&e<=c8@*=GFs~Nx zv_(KK?&Tq|)DnZikBP-n2lgrGLqESLE?&`rM-}Wx31#XJ=`qT55JMsk5Tn@wxAa8y zKD9HXDR>+Qd5%v&Uu<2 ze~;$h(-?;2=vs}1l&QD=x zk%PhJrJlwkB7R|5Ml)4>R#Q0hW!VX40q9*H*-j6 zIU#bR3stl-tm18R7J92wsA+fIGmf=M)RmvZ#x&k^3vWqd-!0sj#t+=YNi@@)R+7pj z9^{wjtR32p5(-YtSQR8#>B)ZPWxf2ps(s_>2=%Uy92lDi^_$J~?NF+AbU zOyZddJP#!C5*#MoQ70Ko1MIb2ymKD!al={e z7`fe*pK{I@J~9ulIm<1d;8Xs$bCKsWMzoYMeC|3+sf?P+7o@nx$#Dddk8-{+N-q`C z*S!P@zB#+jw-R5HrIZ+$8D*q1l3>YgB#r{HyGZOZa0!#NOXT?-$rXH0$VK)a@FRYr M3jIufoWH{UFNbPZ=Kufz 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 index f547815fd5905a027fb982b1521c74be9739074f..b56c4f69df7ca9ffb4cac78852b029e90e0c65c7 100644 GIT binary patch delta 1173 zcmZvaZERCj7{~vo_vM^>dsDh~kloA;+Ua0LSIrVkN+QH$2^xlzBG@5H+3vcQwVmtT z+!USfpa>{Oc~fx;io8r6V8u;v_=ch;CVnu+7{e#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c9F(;@!D#(F5wEtW%1pr z)H`uiEa9(07j29)zYf)Eh(nU1tXlOLpq=I6KvJBK>F~tShB9@?pGI|ZmP)1QhITq6KmeZU; zd4(8oij9@;Q7LMiKwjuS#Wk{c-wCj_V#--Iwr(1AErBV7Nn1%9Nb3!PMhPatHVGEN z4hfu~NrD}y4tj=XdX~pMdm6i6V%J;jFE}ub4$|si2FHMG;u#s7oK4IOx@VK@@(fO^ znK#Ild-TvU5zp-%%bwE4b3|~KPMeQM=p)kM;U@Zt4C=!rM2SpPVGsjE7Im#3=ZH8O z=vy%&8*%DU1+-rf$l+id369ji4``7lf2!2ZMtL4+)yN)n~J1!OObTWm2(SvoxYXP$w#Q7 i;Q~fUi)igN+I>vL>nh$<@iy*Ko&I<>?%@Ho&HD|BKhU=T 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 index 5410f164861ddadab9fab9292076ed4640bb186b..b09bf0250ba9538d4935e0b53946401ec1247477 100644 GIT binary patch delta 1045 zcmaKp+fNi%9LK+hJ>$(| z;tj1*rKjHSSL|EWWHp%RLmS)l59lAzqz`?lKJ=y0ME#vv8{><~%$(on_xpZ-=gj&2 zR{B?|_WR56M*!yH$2;0QUr=itNE&I^w5^PSIx*rau3p5zGd*@%Lj#s5Sj-Sg+PzU@ zAkmvn8PWQ5T1O-1GbkCuU2WU0SmcXMSMde;k_pFUnAnrBI#Wj6?l!H4KG(G^6)oZ) zUm05|Ch}swT1Ts>;uUP2XyZ}VE{1sx`%*mOAG1y38K2EIi!y%=Gen2Kn)Qfd{waf7 z7>c$ewkM*d9c}3A>M|Uov&}JG!%>i8DEzT;0{thxs2d`1|E{($cSE0A=+5meC(KEu)a`bBB(d z*d^lmjk8Vc(J?3m{$$F|kYxz_73`xu-X3C2k7M^IHm3|72XIjQk{>M^)^Qls3_ing zG{o?&j-xmx0!lgCAwE$yvXf#|Y0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