Skip to content
Snippets Groups Projects
Commit 89dc75da authored by ArktikHunter's avatar ArktikHunter
Browse files

view switching bug fixes

parent 7875fb49
No related branches found
No related tags found
No related merge requests found
...@@ -326,11 +326,16 @@ public class Controller { ...@@ -326,11 +326,16 @@ public class Controller {
// Paystub tab (employee only) // Paystub tab (employee only)
public void viewPaystub() throws IOException { public void viewPaystub() throws IOException {
root.setCenter(paystubView); root.setCenter(paystubView);
System.out.println("todo: display paystub");
root.setLeft(null);
root.setBottom(null);
} }
// Payroll tab (manager only) // Payroll tab (manager only)
public void viewPayroll() { public void viewPayroll() {
root.setCenter(null); //todo root.setCenter(null); //todo
System.out.println("todo: display payroll"); System.out.println("todo: display payroll");
root.setLeft(null);
root.setBottom(null);
} }
// Staff tab (default view staff, manager only) // Staff tab (default view staff, manager only)
...@@ -358,7 +363,10 @@ public class Controller { ...@@ -358,7 +363,10 @@ public class Controller {
// Requests tab (manager only) // Requests tab (manager only)
public void viewRequests() { public void viewRequests() {
root.setCenter(null);
System.out.println("todo: display requests"); System.out.println("todo: display requests");
root.setLeft(null);
root.setBottom(null);
} }
......
...@@ -19,10 +19,9 @@ ...@@ -19,10 +19,9 @@
</HBox> </HBox>
<HBox alignment="CENTER" minWidth="200.0" prefHeight="35.0" prefWidth="800.0"> <HBox alignment="CENTER" minWidth="200.0" prefHeight="35.0" prefWidth="800.0">
<children> <children>
<Button alignment="CENTER" contentDisplay="CENTER" maxHeight="-Infinity" minHeight="-Infinity" minWidth="50.0" mnemonicParsing="false" onMouseClicked="#viewScheduleDaily" prefHeight="35.0" prefWidth="200.0" text="Schedule" HBox.hgrow="ALWAYS" /> <Button alignment="CENTER" contentDisplay="CENTER" maxHeight="-Infinity" minHeight="-Infinity" minWidth="50.0" mnemonicParsing="false" onMouseClicked="#viewSchedule" prefHeight="35.0" prefWidth="200.0" text="Schedule" HBox.hgrow="ALWAYS" />
<Button contentDisplay="CENTER" maxHeight="-Infinity" minHeight="-Infinity" minWidth="50.0" mnemonicParsing="false" prefHeight="35.0" prefWidth="200.0" text="Payroll" HBox.hgrow="ALWAYS" /> <Button contentDisplay="CENTER" maxHeight="-Infinity" minHeight="-Infinity" minWidth="50.0" mnemonicParsing="false" onMouseClicked="#viewPaystub" prefHeight="35.0" prefWidth="200.0" text="Paystub" HBox.hgrow="ALWAYS" />
<Button alignment="CENTER" contentDisplay="CENTER" maxHeight="-Infinity" minHeight="-Infinity" minWidth="50.0" mnemonicParsing="false" prefHeight="35.0" prefWidth="200.0" text="Requests" HBox.hgrow="ALWAYS" /> </children>
</children>
</HBox> </HBox>
</children> </children>
</VBox> </VBox>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment