Skip to content
Snippets Groups Projects
Commit e12f4775 authored by Anders Emil Bergan's avatar Anders Emil Bergan
Browse files

Made the popup for new budget start, and small starts to MMBI and old budget

parent 6bfaa769
No related branches found
No related tags found
1 merge request!43Merging frontend-testing into master
Pipeline #216158 passed
......@@ -6,7 +6,7 @@ public class MMBI {
private ProgressBar progressBar;
private BudgetItem budgetItem;
public void MMBI(BudgetItem item, ProgressBar bar){
public MMBI(BudgetItem item, ProgressBar bar){
this.budgetItem = item;
this.progressBar = bar;
......@@ -15,8 +15,16 @@ public class MMBI {
public BudgetItem getBudgetItem(){
return budgetItem;
}
public void setBudgetItem(BudgetItem item){
this.budgetItem = item;
}
public ProgressBar getBar(){
return progressBar;
}
public void setProgressBar(ProgressBar bar){
this.progressBar = bar;
}
}
<?xml version="1.0" encoding="UTF-8"?>
<?import javafx.geometry.Insets?>
<?import javafx.scene.control.Button?>
<?import javafx.scene.control.DatePicker?>
<?import javafx.scene.control.DialogPane?>
<?import javafx.scene.control.Label?>
<?import javafx.scene.control.TextField?>
<?import javafx.scene.layout.BorderPane?>
<?import javafx.scene.layout.ColumnConstraints?>
<?import javafx.scene.layout.GridPane?>
<?import javafx.scene.layout.HBox?>
<?import javafx.scene.layout.RowConstraints?>
<?import javafx.scene.text.Font?>
<BorderPane prefHeight="230.0" prefWidth="300.0" xmlns="http://javafx.com/javafx/19" xmlns:fx="http://javafx.com/fxml/1">
<center>
<DialogPane minHeight="200.0" prefHeight="240.0" prefWidth="325.0">
<content>
<GridPane prefHeight="162.0" prefWidth="300.0">
<columnConstraints>
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
</columnConstraints>
<rowConstraints>
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
<RowConstraints maxHeight="58.0" minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
<RowConstraints maxHeight="24.0" minHeight="0.0" prefHeight="0.0" vgrow="SOMETIMES" />
<RowConstraints maxHeight="24.0" minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
<RowConstraints maxHeight="24.0" minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
</rowConstraints>
<children>
<HBox alignment="CENTER_LEFT">
<children>
<Label text="Budget Title:" />
</children>
</HBox>
<HBox alignment="CENTER_LEFT" GridPane.rowIndex="1">
<children>
<Label text="Start date:" />
</children>
</HBox>
<HBox alignment="CENTER_LEFT" GridPane.rowIndex="2">
<children>
<Label text="Description:" />
</children>
</HBox>
<HBox alignment="CENTER_LEFT" GridPane.rowIndex="3">
<children>
<Label text="Savings:" />
</children>
</HBox>
<DatePicker promptText="mm/dd" GridPane.columnIndex="1" GridPane.rowIndex="1" />
<TextField promptText="title" GridPane.columnIndex="1" />
<TextField promptText="(optional)" GridPane.columnIndex="1" GridPane.rowIndex="2" />
<TextField promptText="previous month" GridPane.columnIndex="1" GridPane.rowIndex="3" />
<HBox alignment="CENTER" spacing="5.0" GridPane.columnIndex="1" GridPane.rowIndex="6">
<children>
<Button mnemonicParsing="false" text="Cancel" />
<Button mnemonicParsing="false" text="Continue" />
</children>
</HBox>
</children>
<padding>
<Insets left="5.0" right="5.0" />
</padding>
</GridPane>
</content>
<header>
<HBox alignment="CENTER">
<children>
<Label text="New Budget Setup">
<padding>
<Insets bottom="10.0" top="10.0" />
</padding>
<font>
<Font name="System Bold" size="14.0" />
</font>
</Label>
</children>
</HBox>
</header>
</DialogPane>
</center>
</BorderPane>
<?xml version="1.0" encoding="UTF-8"?>
<?import java.lang.*?>
<?import java.util.*?>
<?import javafx.scene.*?>
<?import javafx.scene.control.*?>
<?import javafx.scene.layout.*?>
<AnchorPane xmlns="http://javafx.com/javafx"
xmlns:fx="http://javafx.com/fxml"
fx:controller="view.InitialOldBudgetPopUp"
prefHeight="400.0" prefWidth="600.0">
</AnchorPane>
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