Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="UTF-8"?>
- <?import javafx.scene.control.Button?>
- <?import javafx.scene.control.ListView?>
- <?import javafx.scene.control.TextField?>
- <?import javafx.scene.layout.AnchorPane?>
- <?import javafx.scene.layout.Pane?>
- <?import javafx.scene.text.Text?>
- <AnchorPane id="AnchorPane" prefHeight="419.0" prefWidth="875.0" xmlns="http://javafx.com/javafx/8.0.171" xmlns:fx="http://javafx.com/fxml/1" fx:controller="organizer.Controller.DeleteCategoryController">
- <children>
- <Pane layoutX="9.0" layoutY="108.0" prefHeight="283.0" prefWidth="550.0" style="-fx-border-width: 1pt; -fx-border-color: black;">
- <children>
- <Text fx:id="textDeleteThen" layoutX="195.0" layoutY="27.0" strokeType="OUTSIDE" strokeWidth="0.0" text="Delete ... category then" />
- <Button layoutX="14.0" layoutY="166.0" mnemonicParsing="false" prefHeight="103.0" prefWidth="241.0" text="Option 3 Create a new Relationship and move contacts having ..... relationship to this relationship" />
- <Button layoutX="266.0" layoutY="49.0" mnemonicParsing="false" prefHeight="103.0" prefWidth="241.0" text="Option 2 Keep all contacts with the .... relationship" />
- </children></Pane>
- <Pane layoutX="569.0" layoutY="19.0" prefHeight="372.0" prefWidth="272.0" style="-fx-border-width: 1pt; -fx-border-color: black;" />
- <Text layoutX="41.0" layoutY="73.0" strokeType="OUTSIDE" strokeWidth="0.0" text="Choose one of the following options" wrappingWidth="447.681640625" />
- <Text fx:id="textDeletingCategory" layoutX="42.0" layoutY="24.0" strokeType="OUTSIDE" strokeWidth="0.0" text="Deleting ..." />
- <Text fx:id="textMessage" layoutX="42.0" layoutY="48.0" strokeType="OUTSIDE" strokeWidth="0.0" text="After deleting .... do the following:" />
- <Button alignment="CENTER" contentDisplay="CENTER" layoutX="279.0" layoutY="271.0" mnemonicParsing="false" prefHeight="103.0" prefWidth="241.0" text="Option 4 Change Contacts having .... relationship to the following existing relationship" />
- <Button layoutX="23.0" layoutY="153.0" mnemonicParsing="false" prefHeight="103.0" prefWidth="241.0" text="Option 1 Delete all contacts with the ..... relationship" />
- <TextField layoutX="585.0" layoutY="56.0" prefHeight="25.0" prefWidth="184.0" />
- <ListView fx:id="listViewRemainingCategories" layoutX="580.0" layoutY="138.0" prefHeight="236.0" prefWidth="241.0" />
- <Text layoutX="580.0" layoutY="115.0" strokeType="OUTSIDE" strokeWidth="0.0" text="List of other categories (for option 4)" />
- <Text layoutX="585.0" layoutY="39.0" strokeType="OUTSIDE" strokeWidth="0.0" text="New Category Name (for option 3)" />
- </children>
- </AnchorPane>
- package organizer.Controller;
- import java.net.URL;
- import java.util.ResourceBundle;
- import javafx.fxml.FXML;
- import javafx.fxml.Initializable;
- import javafx.scene.control.ListView;
- import javafx.scene.text.Text;
- import organizer.Model.SQL_Objects;
- public class DeleteCategoryController extends SQL_Objects implements Initializable{
- @FXML private ListView listViewRemainingCategories;
- @FXML private Text textDeletingCategory;
- @FXML private Text textMessage;
- @FXML private Text textDeleteThen;
- private int toRemoveId;
- private String toRemoveName;
- private int associatedRecordsCount;
- public DeleteCategoryController(String toRemoveName, int toRemoveId, int associatedRecordCount) {
- this.toRemoveName = toRemoveName;
- this.toRemoveId = toRemoveId;
- this.associatedRecordsCount = associatedRecordCount;
- }
- @Override
- public void initialize(URL location, ResourceBundle resources) {
- }
Add Comment
Please, Sign In to add comment