JsonParserView.fxml 2.0 KB
<?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>