mystyle-java-fx-tools/src/main/resources/fxml/mysql-to-struct.fxml

50 lines
3.4 KiB
Plaintext
Raw Normal View History

2023-11-18 06:23:32 +00:00
<?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.TableColumn?>
<?import javafx.scene.control.TableView?>
<?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.MySQLToStructController">
<children>
<TableView fx:id="tableView" layoutY="461.0" prefHeight="187.0" prefWidth="1200.0" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="461.0">
<columns>
<TableColumn fx:id="column_name" prefWidth="200.0" text="表字段名" />
<TableColumn fx:id="column_type" prefWidth="200.0" text="表类型" />
<TableColumn prefWidth="202.0" text="字段描述" />
<TableColumn fx:id="bean_field_name" prefWidth="198.0" text="java字段名" />
<TableColumn fx:id="bean_field_type" prefWidth="200.0" text="java字段类型" />
<TableColumn fx:id="bean_field_value" prefWidth="200.0" text="默认值" />
</columns>
</TableView>
<Label layoutX="4.0" layoutY="433.0" text="字段详情" AnchorPane.leftAnchor="4.0" />
<Label layoutX="10.0" layoutY="217.0" text="结构体" AnchorPane.leftAnchor="10.0" />
<Label layoutX="438.0" layoutY="174.0" text="表名" />
<TextField fx:id="table_name" layoutX="491.0" layoutY="170.0" />
<Button layoutX="670.0" layoutY="170.0" mnemonicParsing="false" onAction="#preview_code" text="预览代码" />
<Button layoutX="754.0" layoutY="170.0" mnemonicParsing="false" onAction="#save_code" text="保存代码" />
<Label layoutX="10.0" layoutY="48.0" text="数据源配置" />
<TextField fx:id="username" layoutX="164.0" layoutY="85.0" />
<Label layoutX="93.0" layoutY="89.0" text="用户名" />
<Label layoutX="370.0" layoutY="89.0" text="密码" />
<TextField fx:id="password" layoutX="416.0" layoutY="85.0" />
<Label layoutX="866.0" layoutY="89.0" text="数据名" />
<TextField fx:id="ip_address" layoutX="164.0" layoutY="119.0" />
<TextField fx:id="data_base" layoutX="921.0" layoutY="85.0" />
<Label layoutX="94.0" layoutY="123.0" text="IP地址" />
<Label layoutX="370.0" layoutY="123.0" text="端口" />
<TextField fx:id="port" layoutX="416.0" layoutY="119.0" />
<ComboBox fx:id="comboBox_table" layoutX="921.0" layoutY="119.0" prefHeight="25.0" prefWidth="161.0" />
<Label layoutX="866.0" layoutY="123.0" text="列表" />
<Button layoutX="1100.0" layoutY="119.0" mnemonicParsing="false" onAction="#fetch_table" text="获取" />
<Label layoutX="603.0" layoutY="89.0" text="数据库列表" />
<ComboBox fx:id="comboBox_data_base" layoutX="679.0" layoutY="85.0" prefWidth="150.0" />
<Button layoutX="652.0" layoutY="119.0" mnemonicParsing="false" onAction="#get_all_data_base" text="获取数据库列表" />
<TextArea fx:id="struct_view" layoutX="82.0" layoutY="213.0" prefHeight="218.0" prefWidth="1114.0" AnchorPane.leftAnchor="86.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="213.0" />
</children>
</AnchorPane>