Guest User

Untitled

a guest
Nov 17th, 2018
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.65 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2.  
  3. <?import javafx.scene.control.Button?>
  4. <?import javafx.scene.control.ListView?>
  5. <?import javafx.scene.control.TextField?>
  6. <?import javafx.scene.layout.AnchorPane?>
  7. <?import javafx.scene.layout.Pane?>
  8. <?import javafx.scene.text.Text?>
  9.  
  10. <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">
  11. <children>
  12. <Pane layoutX="9.0" layoutY="108.0" prefHeight="283.0" prefWidth="550.0" style="-fx-border-width: 1pt; -fx-border-color: black;">
  13. <children>
  14. <Text fx:id="textDeleteThen" layoutX="195.0" layoutY="27.0" strokeType="OUTSIDE" strokeWidth="0.0" text="Delete ... category then" />
  15. <Button layoutX="14.0" layoutY="166.0" mnemonicParsing="false" prefHeight="103.0" prefWidth="241.0" text="Option 3&#10;Create a new Relationship &#10;and move contacts having ..... &#10;relationship to this relationship" />
  16. <Button layoutX="266.0" layoutY="49.0" mnemonicParsing="false" prefHeight="103.0" prefWidth="241.0" text="Option 2&#10;Keep all contacts &#10;with the .... relationship" />
  17. </children></Pane>
  18. <Pane layoutX="569.0" layoutY="19.0" prefHeight="372.0" prefWidth="272.0" style="-fx-border-width: 1pt; -fx-border-color: black;" />
  19. <Text layoutX="41.0" layoutY="73.0" strokeType="OUTSIDE" strokeWidth="0.0" text="Choose one of the following options" wrappingWidth="447.681640625" />
  20. <Text fx:id="textDeletingCategory" layoutX="42.0" layoutY="24.0" strokeType="OUTSIDE" strokeWidth="0.0" text="Deleting ..." />
  21. <Text fx:id="textMessage" layoutX="42.0" layoutY="48.0" strokeType="OUTSIDE" strokeWidth="0.0" text="After deleting .... do the following:" />
  22. <Button alignment="CENTER" contentDisplay="CENTER" layoutX="279.0" layoutY="271.0" mnemonicParsing="false" prefHeight="103.0" prefWidth="241.0" text="Option 4&#10;Change Contacts having &#10;.... relationship &#10;to the following &#10;existing relationship" />
  23. <Button layoutX="23.0" layoutY="153.0" mnemonicParsing="false" prefHeight="103.0" prefWidth="241.0" text="Option 1&#10;Delete all contacts &#10;with the ..... relationship" />
  24. <TextField layoutX="585.0" layoutY="56.0" prefHeight="25.0" prefWidth="184.0" />
  25. <ListView fx:id="listViewRemainingCategories" layoutX="580.0" layoutY="138.0" prefHeight="236.0" prefWidth="241.0" />
  26. <Text layoutX="580.0" layoutY="115.0" strokeType="OUTSIDE" strokeWidth="0.0" text="List of other categories (for option 4)" />
  27. <Text layoutX="585.0" layoutY="39.0" strokeType="OUTSIDE" strokeWidth="0.0" text="New Category Name (for option 3)" />
  28. </children>
  29. </AnchorPane>
  30.  
  31. package organizer.Controller;
  32.  
  33. import java.net.URL;
  34. import java.util.ResourceBundle;
  35. import javafx.fxml.FXML;
  36. import javafx.fxml.Initializable;
  37. import javafx.scene.control.ListView;
  38. import javafx.scene.text.Text;
  39. import organizer.Model.SQL_Objects;
  40.  
  41.  
  42. public class DeleteCategoryController extends SQL_Objects implements Initializable{
  43.  
  44. @FXML private ListView listViewRemainingCategories;
  45. @FXML private Text textDeletingCategory;
  46. @FXML private Text textMessage;
  47. @FXML private Text textDeleteThen;
  48.  
  49. private int toRemoveId;
  50. private String toRemoveName;
  51. private int associatedRecordsCount;
  52.  
  53. public DeleteCategoryController(String toRemoveName, int toRemoveId, int associatedRecordCount) {
  54. this.toRemoveName = toRemoveName;
  55. this.toRemoveId = toRemoveId;
  56. this.associatedRecordsCount = associatedRecordCount;
  57. }
  58.  
  59. @Override
  60. public void initialize(URL location, ResourceBundle resources) {
  61.  
  62. }
Add Comment
Please, Sign In to add comment