JsonParserView.fxml
2.0 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<?xml version="1.0" encoding="UTF-8"?>
<?import javafx.geometry.*?>
<?import javafx.scene.control.*?>
<?import javafx.scene.layout.*?>
<VBox prefHeight="400.0" prefWidth="600.0" xmlns="http://javafx.com/javafx/9" xmlns:fx="http://javafx.com/fxml/1"
fx:controller="com.zhazhapan.util.visual.controller.JsonParserController">
<HBox VBox.vgrow="NEVER">
<TextField fx:id="jsonPath" onKeyReleased="#jsonPathEnter" prefHeight="27.0" prefWidth="251.0"
promptText="JSON路径" HBox.hgrow="ALWAYS"/>
<Button mnemonicParsing="false" onAction="#parseJson" text="解析" HBox.hgrow="NEVER">
<HBox.margin>
<Insets left="10.0"/>
</HBox.margin>
</Button>
<Hyperlink onAction="#seeJsonPathGrammar" text="路径语法" HBox.hgrow="NEVER">
<HBox.margin>
<Insets left="10.0"/>
</HBox.margin>
</Hyperlink>
<padding>
<Insets bottom="10.0" left="10.0" right="10.0" top="10.0"/>
</padding>
</HBox>
<SplitPane dividerPositions="0.459866220735786" prefHeight="160.0" prefWidth="200.0" VBox.vgrow="ALWAYS">
<VBox>
<padding>
<Insets left="10.0" right="10.0"/>
</padding>
<TextArea fx:id="jsonContent" onDragDropped="#dragFileDropped" onDragOver="#dragFileOver" prefHeight="200.0"
prefWidth="200.0" promptText="可拖曳文件至此" VBox.vgrow="ALWAYS">
<tooltip>
<Tooltip autoHide="true" text="拖曳文件至此"/>
</tooltip>
</TextArea>
</VBox>
<VBox>
<padding>
<Insets left="10.0" right="10.0"/>
</padding>
<TextArea fx:id="parsedJsonContent" prefHeight="200.0" prefWidth="200.0" VBox.vgrow="ALWAYS"/>
</VBox>
<padding>
<Insets bottom="10.0" top="10.0"/>
</padding>
</SplitPane>
</VBox>