primary.fxml 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <?import javafx.scene.effect.*?>
  3. <?import javafx.scene.text.*?>
  4. <?import javafx.geometry.*?>
  5. <?import java.lang.*?>
  6. <?import java.util.*?>
  7. <?import javafx.scene.*?>
  8. <?import javafx.scene.control.*?>
  9. <?import javafx.scene.layout.*?>
  10. <BorderPane fx:id="paneRoot" maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="640.0" prefWidth="860.0" xmlns="http://javafx.com/javafx/8" xmlns:fx="http://javafx.com/fxml/1" fx:controller="com.persagy.dptool.PrimaryController">
  11. <top>
  12. <MenuBar BorderPane.alignment="CENTER">
  13. <menus>
  14. <Menu mnemonicParsing="false" text="Help">
  15. <items>
  16. <MenuItem mnemonicParsing="false" text="Help" />
  17. <SeparatorMenuItem mnemonicParsing="false" />
  18. <MenuItem mnemonicParsing="false" text="About" />
  19. </items>
  20. </Menu>
  21. </menus>
  22. </MenuBar>
  23. </top>
  24. <center>
  25. <TabPane fx:id="paneTab" prefHeight="200.0" prefWidth="200.0" tabClosingPolicy="UNAVAILABLE" BorderPane.alignment="CENTER">
  26. <tabs>
  27. <Tab text="配置校验">
  28. <content>
  29. <AnchorPane minHeight="0.0" minWidth="0.0" prefHeight="180.0" prefWidth="200.0">
  30. <children>
  31. <Label layoutX="12.0" layoutY="14.0" prefHeight="26.0" prefWidth="128.0" text="数据平台配置目录:" />
  32. <TextField fx:id="txfDir" layoutX="138.0" layoutY="12.0" prefHeight="30.0" prefWidth="592.0" promptText="D:/develop/tomcat9/webapps/data-platform-3/WEB-INF/classes/" />
  33. <Button fx:id="btnSelectDir" layoutX="733.0" layoutY="12.0" mnemonicParsing="false" onAction="#selectDir" text="···" />
  34. <Button fx:id="btnCheck" layoutX="776.0" layoutY="12.0" mnemonicParsing="false" onAction="#checkConfig" text="校验" />
  35. <Label layoutX="138.0" layoutY="49.0" prefHeight="20.0" prefWidth="644.0" text="注: 路径为数据平台配置文件config.properties所在目录" textFill="#7c7c7c">
  36. <font>
  37. <Font size="14.0" />
  38. </font>
  39. </Label>
  40. <StackPane layoutX="79.0" layoutY="98.0" prefHeight="437.0" prefWidth="746.0">
  41. <children>
  42. <FlowPane orientation="VERTICAL" prefHeight="200.0" prefWidth="200.0" vgap="20.0">
  43. <opaqueInsets>
  44. <Insets bottom="3.0" left="3.0" right="3.0" top="3.0" />
  45. </opaqueInsets>
  46. <children>
  47. <TextArea fx:id="txaContent" editable="false" prefHeight="436.0" prefWidth="747.0" wrapText="true" />
  48. </children>
  49. </FlowPane>
  50. </children>
  51. </StackPane>
  52. <Label layoutX="9.0" layoutY="96.0" prefHeight="20.0" prefWidth="70.0" text="校验结果:" />
  53. </children>
  54. </AnchorPane>
  55. </content>
  56. </Tab>
  57. <Tab text="物理世界">
  58. <content>
  59. <AnchorPane minHeight="0.0" minWidth="0.0" prefHeight="180.0" prefWidth="200.0">
  60. <children>
  61. <Label layoutX="9.0" layoutY="56.0" prefHeight="26.0" prefWidth="98.0" text="json文件目录:" textAlignment="RIGHT" />
  62. <TextField fx:id="txfDirJson" layoutX="107.0" layoutY="54.0" prefHeight="30.0" prefWidth="620.0" />
  63. <Button fx:id="btnSelecDirJson" layoutX="731.0" layoutY="54.0" mnemonicParsing="false" onAction="#selectDirJson" text="···" />
  64. <Button fx:id="btnCheckJson" layoutX="777.0" layoutY="54.0" mnemonicParsing="false" onAction="#checkJsonFile" text="校验" />
  65. <Label layoutX="107.0" layoutY="84.0" prefHeight="27.0" prefWidth="666.0" text="注: 只识别由HbaseCat工具导出的json文件,只能校验物理世界相关数据表,json文件名应与表名一致。" textFill="#7c7c7c">
  66. <font>
  67. <Font size="14.0" />
  68. </font>
  69. </Label>
  70. <StackPane layoutX="107.0" layoutY="133.0" prefHeight="349.0" prefWidth="720.0">
  71. <children>
  72. <FlowPane prefHeight="375.0" prefWidth="645.0">
  73. <children>
  74. <TextArea fx:id="txaContentJson" editable="false" prefHeight="401.0" prefWidth="720.0" wrapText="true" />
  75. </children>
  76. </FlowPane>
  77. </children>
  78. </StackPane>
  79. <Label layoutX="9.0" layoutY="133.0" prefHeight="20.0" prefWidth="98.0" text="校验结果概况:" />
  80. <Label layoutX="55.0" layoutY="14.0" prefHeight="20.0" prefWidth="53.0" text="项目id: " textAlignment="RIGHT" />
  81. <TextField fx:id="txfProject" layoutX="107.0" layoutY="9.0" prefHeight="30.0" prefWidth="138.0" promptText="Pj1101010001" />
  82. <Label layoutX="266.0" layoutY="14.0" text="存放结果文件: " />
  83. <TextField fx:id="txfCheckResultFile" layoutX="366.0" layoutY="9.0" prefHeight="30.0" prefWidth="426.0" />
  84. <Button layoutX="796.0" layoutY="9.0" mnemonicParsing="false" text="···" />
  85. </children></AnchorPane>
  86. </content>
  87. </Tab>
  88. <Tab text="其他">
  89. <content>
  90. <AnchorPane minHeight="0.0" minWidth="0.0" prefHeight="180.0" prefWidth="200.0" />
  91. </content>
  92. </Tab>
  93. </tabs>
  94. </TabPane>
  95. </center>
  96. <bottom>
  97. <HBox prefHeight="35.0" prefWidth="800.0" BorderPane.alignment="CENTER">
  98. <children>
  99. <ProgressIndicator fx:id="piState" prefHeight="26.0" prefWidth="30.0" progress="0.0">
  100. <cursor>
  101. <Cursor fx:constant="NONE" />
  102. </cursor>
  103. </ProgressIndicator>
  104. <Label fx:id="lblState" prefHeight="35.0" prefWidth="762.0">
  105. <HBox.margin>
  106. <Insets left="3.0" />
  107. </HBox.margin>
  108. </Label>
  109. </children>
  110. <BorderPane.margin>
  111. <Insets left="5.0" />
  112. </BorderPane.margin>
  113. </HBox>
  114. </bottom>
  115. </BorderPane>