|
| 1 | +<?xml version="1.0" encoding="UTF-8"?> |
| 2 | + |
| 3 | +<?import java.lang.String?> |
| 4 | +<?import javafx.collections.FXCollections?> |
| 5 | +<?import javafx.geometry.Insets?> |
| 6 | +<?import javafx.scene.control.Button?> |
| 7 | +<?import javafx.scene.control.CheckBox?> |
| 8 | +<?import javafx.scene.control.ChoiceBox?> |
| 9 | +<?import javafx.scene.control.ComboBox?> |
| 10 | +<?import javafx.scene.control.Label?> |
| 11 | +<?import javafx.scene.control.TextArea?> |
| 12 | +<?import javafx.scene.control.TextField?> |
| 13 | +<?import javafx.scene.layout.AnchorPane?> |
| 14 | +<?import javafx.scene.layout.BorderPane?> |
| 15 | +<?import javafx.scene.layout.HBox?> |
| 16 | +<?import javafx.scene.layout.VBox?> |
| 17 | + |
| 18 | +<AnchorPane prefHeight="475.0" prefWidth="776.0" xmlns="http://javafx.com/javafx/8.0.171" xmlns:fx="http://javafx.com/fxml/1" fx:controller="com.xwintop.xJavaFxTool.controller.codeTools.FileUnicodeTransformationToolController"> |
| 19 | + <children> |
| 20 | + <BorderPane AnchorPane.bottomAnchor="10.0" AnchorPane.leftAnchor="10.0" AnchorPane.rightAnchor="10.0" AnchorPane.topAnchor="10.0"> |
| 21 | + <top> |
| 22 | + <VBox alignment="CENTER" spacing="10.0" BorderPane.alignment="CENTER"> |
| 23 | + <children> |
| 24 | + <HBox alignment="CENTER" spacing="10.0"> |
| 25 | + <children> |
| 26 | + <Label text="要转换的文件/文件夹:" /> |
| 27 | + <TextField fx:id="detectPathTextField" HBox.hgrow="ALWAYS" /> |
| 28 | + <Button fx:id="detectPathButton" mnemonicParsing="false" onAction="#detectPathAction" text="选择" /> |
| 29 | + <CheckBox fx:id="includeSubdirectoryCheckBox" mnemonicParsing="false" selected="true" text="包含子目录" /> |
| 30 | + <Button fx:id="transformationButton" mnemonicParsing="false" onAction="#transformationAction" text="转换" /> |
| 31 | + </children> |
| 32 | + </HBox> |
| 33 | + <HBox alignment="CENTER_LEFT" spacing="10.0"> |
| 34 | + <children> |
| 35 | + <Label minWidth="-Infinity" text="文件隐藏状态: " /> |
| 36 | + <ChoiceBox fx:id="showHideFileChoice" value="所有"> |
| 37 | + <items> |
| 38 | + <FXCollections fx:factory="observableArrayList"> |
| 39 | + <String fx:value="所有" /> |
| 40 | + <String fx:value="非隐藏" /> |
| 41 | + <String fx:value="隐藏文件" /> |
| 42 | + </FXCollections> |
| 43 | + </items> |
| 44 | + </ChoiceBox> |
| 45 | + <Label minWidth="-Infinity" text="文件名包含字符: " /> |
| 46 | + <TextField fx:id="fileNameContainsTextField" /> |
| 47 | + <Label minWidth="-Infinity" text="文件名不包含字符: " /> |
| 48 | + <TextField fx:id="fileNameNotContainsTextField" /> |
| 49 | + <CheckBox fx:id="fileNameSupportRegexCheckBox" minWidth="-Infinity" mnemonicParsing="false" selected="true" text="支持正则" /> |
| 50 | + </children> |
| 51 | + </HBox> |
| 52 | + <HBox alignment="CENTER_LEFT" spacing="10.0"> |
| 53 | + <children> |
| 54 | + <Label minWidth="-Infinity" text="原编码:" /> |
| 55 | + <ComboBox fx:id="oldFileUnicodeComboBox" editable="true" promptText="选择原文件编码" /> |
| 56 | + <Label minWidth="-Infinity" text="转换后编码: " /> |
| 57 | + <ComboBox fx:id="newFileUnicodeComboBox" editable="true" promptText="想要转换的编码" /> |
| 58 | + <Label minWidth="-Infinity" text="转换后目录 :" /> |
| 59 | + <TextField fx:id="newFilePathTextField" promptText="留空为替换原文件" HBox.hgrow="ALWAYS" /> |
| 60 | + </children> |
| 61 | + </HBox> |
| 62 | + </children> |
| 63 | + <BorderPane.margin> |
| 64 | + <Insets bottom="10.0" /> |
| 65 | + </BorderPane.margin> |
| 66 | + </VBox> |
| 67 | + </top> |
| 68 | + <center> |
| 69 | + <TextArea fx:id="resultTextArea" prefHeight="200.0" prefWidth="200.0" BorderPane.alignment="CENTER" /> |
| 70 | + </center> |
| 71 | + </BorderPane> |
| 72 | + </children> |
| 73 | +</AnchorPane> |
0 commit comments