mystyle-java-fx-tools/src/main/resources/fxml/http-request.fxml

29 lines
1.9 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<?import javafx.scene.control.Button?>
<?import javafx.scene.control.ComboBox?>
<?import javafx.scene.control.Label?>
<?import javafx.scene.control.ListView?>
<?import javafx.scene.control.TextArea?>
<?import javafx.scene.control.TextField?>
<?import javafx.scene.layout.AnchorPane?>
<AnchorPane prefHeight="649.0" prefWidth="1200.0" xmlns="http://javafx.com/javafx/19" xmlns:fx="http://javafx.com/fxml/1" fx:controller="com.zhangmeng.tools.controller.HttpRequestController">
<children>
<Label layoutX="125.0" layoutY="57.0" text="请求的url:" />
<TextField fx:id="url" layoutX="207.0" layoutY="53.0" prefHeight="25.0" prefWidth="888.0" AnchorPane.leftAnchor="207.0" AnchorPane.rightAnchor="105.0" />
<Label layoutX="129.0" layoutY="99.0" text="请求方式:" />
<ComboBox fx:id="request_type" layoutX="207.0" layoutY="95.0" prefWidth="150.0" />
<Label layoutX="127.0" layoutY="269.0" text="请求结果:" />
<TextArea fx:id="request_result" layoutX="207.0" layoutY="269.0" prefHeight="200.0" prefWidth="888.0" AnchorPane.bottomAnchor="180.0" AnchorPane.leftAnchor="207.0" AnchorPane.rightAnchor="105.0" AnchorPane.topAnchor="269.0" />
<Button fx:id="commit" layoutX="624.0" layoutY="493.0" mnemonicParsing="false" text="提交" AnchorPane.bottomAnchor="131.0" />
<Label layoutX="127.0" layoutY="140.0" text="请求参数:" />
<ListView fx:id="request_params" layoutX="207.0" layoutY="140.0" prefHeight="108.0" prefWidth="299.0" />
<Label layoutX="569.0" layoutY="99.0" text="请求参数key:" />
<Label layoutX="841.0" layoutY="99.0" text="请求参数value:" />
<TextField fx:id="key" layoutX="651.0" layoutY="95.0" />
<TextField fx:id="value" layoutX="934.0" layoutY="95.0" />
<Button fx:id="add_params" layoutX="785.0" layoutY="169.0" mnemonicParsing="false" text="添加参数" />
</children>
</AnchorPane>