|
| 1 | +<?xml version="1.0" encoding="UTF-8"?> |
| 2 | + |
| 3 | +<!-- |
| 4 | + ~ Copyright (c) 2024 unknowIfGuestInDream. |
| 5 | + ~ All rights reserved. |
| 6 | + ~ |
| 7 | + ~ Redistribution and use in source and binary forms, with or without |
| 8 | + ~ modification, are permitted provided that the following conditions are met: |
| 9 | + ~ * Redistributions of source code must retain the above copyright |
| 10 | + ~ notice, this list of conditions and the following disclaimer. |
| 11 | + ~ * Redistributions in binary form must reproduce the above copyright |
| 12 | + ~ notice, this list of conditions and the following disclaimer in the |
| 13 | + ~ documentation and/or other materials provided with the distribution. |
| 14 | + ~ * Neither the name of unknowIfGuestInDream, any associated website, nor the |
| 15 | + ~ names of its contributors may be used to endorse or promote products |
| 16 | + ~ derived from this software without specific prior written permission. |
| 17 | + ~ |
| 18 | + ~ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND |
| 19 | + ~ ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED |
| 20 | + ~ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
| 21 | + ~ DISCLAIMED. IN NO EVENT SHALL UNKNOWIFGUESTINDREAM BE LIABLE FOR ANY |
| 22 | + ~ DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES |
| 23 | + ~ (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; |
| 24 | + ~ LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND |
| 25 | + ~ ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 26 | + ~ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS |
| 27 | + ~ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 28 | + --> |
| 29 | + |
| 30 | + |
| 31 | +<?import com.tlcsdm.core.javafx.richtext.InformationArea?> |
| 32 | +<?import com.tlcsdm.core.javafx.richtext.JsonCodeArea?> |
| 33 | +<?import javafx.geometry.Insets?> |
| 34 | +<?import javafx.scene.control.Button?> |
| 35 | +<?import javafx.scene.control.CheckBox?> |
| 36 | +<?import javafx.scene.control.ChoiceBox?> |
| 37 | +<?import javafx.scene.control.Label?> |
| 38 | +<?import javafx.scene.control.Tab?> |
| 39 | +<?import javafx.scene.control.TableColumn?> |
| 40 | +<?import javafx.scene.control.TableView?> |
| 41 | +<?import javafx.scene.control.TabPane?> |
| 42 | +<?import javafx.scene.control.TextArea?> |
| 43 | +<?import javafx.scene.control.TextField?> |
| 44 | +<?import javafx.scene.layout.AnchorPane?> |
| 45 | +<?import javafx.scene.layout.BorderPane?> |
| 46 | +<?import javafx.scene.layout.HBox?> |
| 47 | +<?import javafx.scene.layout.StackPane?> |
| 48 | +<?import javafx.scene.layout.VBox?> |
| 49 | +<?import org.fxmisc.flowless.VirtualizedScrollPane?> |
| 50 | +<AnchorPane prefHeight="520.0" prefWidth="854.0" xmlns="http://javafx.com/javafx/8.0.171" |
| 51 | + xmlns:fx="http://javafx.com/fxml/1" fx:controller="com.tlcsdm.jfxcommon.debug.HttpTool"> |
| 52 | + <children> |
| 53 | + <BorderPane prefHeight="200.0" prefWidth="200.0" AnchorPane.bottomAnchor="10.0" AnchorPane.leftAnchor="10.0" |
| 54 | + AnchorPane.rightAnchor="10.0" AnchorPane.topAnchor="10.0"> |
| 55 | + <top> |
| 56 | + <HBox alignment="CENTER" spacing="5.0" BorderPane.alignment="CENTER"> |
| 57 | + <children> |
| 58 | + <Label text="%common.tool.debug.httpTool.label.url"/> |
| 59 | + <TextField fx:id="urlTextField" promptText="%common.tool.debug.httpTool.prompt.url" |
| 60 | + text="https://api.github.com" HBox.hgrow="ALWAYS"/> |
| 61 | + <Label text="%common.tool.debug.httpTool.label.method"/> |
| 62 | + <ChoiceBox fx:id="methodChoiceBox" prefWidth="150.0"/> |
| 63 | + <Button fx:id="sendButton" mnemonicParsing="false" onAction="#sendAction" |
| 64 | + text="%common.tool.debug.httpTool.button.send"/> |
| 65 | + <Button fx:id="toBrowerButton" mnemonicParsing="false" onAction="#toBrowerAction" |
| 66 | + text="%common.tool.debug.httpTool.button.toBrowser"/> |
| 67 | + </children> |
| 68 | + </HBox> |
| 69 | + </top> |
| 70 | + <left> |
| 71 | + <VBox spacing="5.0" BorderPane.alignment="CENTER"> |
| 72 | + <children> |
| 73 | + <HBox alignment="CENTER_LEFT" spacing="5.0"> |
| 74 | + <children> |
| 75 | + <CheckBox fx:id="paramsDataCheckBox" mnemonicParsing="false" selected="true" |
| 76 | + text="%common.tool.debug.httpTool.checkbox.paramsData"/> |
| 77 | + <Button fx:id="addParamsDataButton" mnemonicParsing="false" |
| 78 | + onAction="#addParamsDataAction" text="%common.tool.debug.httpTool.button.add"/> |
| 79 | + <CheckBox fx:id="paramsDataIsStringCheckBox" mnemonicParsing="false" |
| 80 | + text="%common.tool.debug.httpTool.checkbox.string"/> |
| 81 | + </children> |
| 82 | + </HBox> |
| 83 | + <StackPane> |
| 84 | + <children> |
| 85 | + <TextArea fx:id="paramsDataTextArea" prefHeight="200.0" prefWidth="200.0" |
| 86 | + visible="false"/> |
| 87 | + <TableView fx:id="paramsDataTableView" editable="true"> |
| 88 | + <columns> |
| 89 | + <TableColumn fx:id="paramsDataNameTableColumn" prefWidth="59.0" |
| 90 | + text="%common.tool.debug.httpTool.column.paramName"/> |
| 91 | + <TableColumn fx:id="paramsDataValueTableColumn" prefWidth="73.0" |
| 92 | + text="%common.tool.debug.httpTool.column.paramValue"/> |
| 93 | + <TableColumn fx:id="paramsDataRemarkTableColumn" prefWidth="75.0" |
| 94 | + text="%common.tool.debug.httpTool.column.remark"/> |
| 95 | + </columns> |
| 96 | + <columnResizePolicy> |
| 97 | + <TableView fx:constant="CONSTRAINED_RESIZE_POLICY"/> |
| 98 | + </columnResizePolicy> |
| 99 | + </TableView> |
| 100 | + </children> |
| 101 | + </StackPane> |
| 102 | + <HBox alignment="CENTER_LEFT" spacing="5.0"> |
| 103 | + <children> |
| 104 | + <CheckBox fx:id="paramsHeaderCheckBox" mnemonicParsing="false" selected="true" |
| 105 | + text="%common.tool.debug.httpTool.checkbox.header"/> |
| 106 | + <Button fx:id="addParamsHeaderButton" mnemonicParsing="false" |
| 107 | + onAction="#addParamsHeaderAction" |
| 108 | + text="%common.tool.debug.httpTool.button.add"/> |
| 109 | + </children> |
| 110 | + </HBox> |
| 111 | + <TableView fx:id="paramsHeaderTableView" editable="true"> |
| 112 | + <columns> |
| 113 | + <TableColumn fx:id="paramsHeaderNameTableColumn" prefWidth="75.0" |
| 114 | + text="%common.tool.debug.httpTool.column.paramName"/> |
| 115 | + <TableColumn fx:id="paramsHeaderValueTableColumn" prefWidth="75.0" |
| 116 | + text="%common.tool.debug.httpTool.column.paramValue"/> |
| 117 | + <TableColumn fx:id="paramsHeaderRemarkTableColumn" prefWidth="75.0" |
| 118 | + text="%common.tool.debug.httpTool.column.remark"/> |
| 119 | + </columns> |
| 120 | + <columnResizePolicy> |
| 121 | + <TableView fx:constant="CONSTRAINED_RESIZE_POLICY"/> |
| 122 | + </columnResizePolicy> |
| 123 | + </TableView> |
| 124 | + <HBox alignment="CENTER_LEFT" spacing="5.0"> |
| 125 | + <children> |
| 126 | + <CheckBox fx:id="paramsCookieCheckBox" mnemonicParsing="false" selected="true" |
| 127 | + text="%common.tool.debug.httpTool.checkbox.cookie"/> |
| 128 | + <Button fx:id="addParamsCookieButton" mnemonicParsing="false" |
| 129 | + onAction="#addParamsCookieAction" |
| 130 | + text="%common.tool.debug.httpTool.button.add"/> |
| 131 | + </children> |
| 132 | + </HBox> |
| 133 | + <TableView fx:id="paramsCookieTableView" editable="true"> |
| 134 | + <columns> |
| 135 | + <TableColumn fx:id="paramsCookieNameTableColumn" prefWidth="75.0" |
| 136 | + text="%common.tool.debug.httpTool.column.paramName"/> |
| 137 | + <TableColumn fx:id="paramsCookieValueTableColumn" prefWidth="75.0" |
| 138 | + text="%common.tool.debug.httpTool.column.paramValue"/> |
| 139 | + <TableColumn fx:id="paramsCookieRemarkTableColumn" prefWidth="75.0" |
| 140 | + text="%common.tool.debug.httpTool.column.remark"/> |
| 141 | + </columns> |
| 142 | + <columnResizePolicy> |
| 143 | + <TableView fx:constant="CONSTRAINED_RESIZE_POLICY"/> |
| 144 | + </columnResizePolicy> |
| 145 | + </TableView> |
| 146 | + </children> |
| 147 | + </VBox> |
| 148 | + </left> |
| 149 | + <center> |
| 150 | + <TabPane prefHeight="200.0" prefWidth="200.0" tabClosingPolicy="UNAVAILABLE" |
| 151 | + BorderPane.alignment="CENTER"> |
| 152 | + <tabs> |
| 153 | + <Tab text="%common.tool.debug.httpTool.tab.responseContent"> |
| 154 | + <content> |
| 155 | + <AnchorPane minHeight="0.0" minWidth="0.0" prefHeight="180.0" prefWidth="200.0"> |
| 156 | + <children> |
| 157 | + <VirtualizedScrollPane AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" |
| 158 | + AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0"> |
| 159 | + <content> |
| 160 | + <JsonCodeArea fx:id="ResponseBodyTextArea"/> |
| 161 | + </content> |
| 162 | + </VirtualizedScrollPane> |
| 163 | + </children> |
| 164 | + </AnchorPane> |
| 165 | + </content> |
| 166 | + </Tab> |
| 167 | + <Tab text="%common.tool.debug.httpTool.tab.responseHeader"> |
| 168 | + <content> |
| 169 | + <AnchorPane minHeight="0.0" minWidth="0.0" prefHeight="180.0" prefWidth="200.0"> |
| 170 | + <children> |
| 171 | + <VirtualizedScrollPane AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" |
| 172 | + AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0"> |
| 173 | + <content> |
| 174 | + <InformationArea fx:id="ResponseHeaderTextArea"/> |
| 175 | + </content> |
| 176 | + </VirtualizedScrollPane> |
| 177 | + </children> |
| 178 | + </AnchorPane> |
| 179 | + </content> |
| 180 | + </Tab> |
| 181 | + </tabs> |
| 182 | + <BorderPane.margin> |
| 183 | + <Insets left="10.0" top="10.0"/> |
| 184 | + </BorderPane.margin> |
| 185 | + </TabPane> |
| 186 | + </center> |
| 187 | + </BorderPane> |
| 188 | + </children> |
| 189 | +</AnchorPane> |
0 commit comments