parent
4e0cd388e7
commit
adf990b519
@ -0,0 +1,79 @@
|
|||||||
|
package xyz.wbsite.dbtool.javafx.ctrl;
|
||||||
|
|
||||||
|
import javafx.fxml.FXML;
|
||||||
|
import javafx.scene.control.Button;
|
||||||
|
import javafx.scene.control.TextField;
|
||||||
|
|
||||||
|
public class AndroidOptionController {
|
||||||
|
|
||||||
|
@FXML
|
||||||
|
private TextField path;
|
||||||
|
@FXML
|
||||||
|
private Button selectPath;
|
||||||
|
@FXML
|
||||||
|
private TextField name;
|
||||||
|
@FXML
|
||||||
|
private TextField packages;
|
||||||
|
@FXML
|
||||||
|
private TextField domain;
|
||||||
|
@FXML
|
||||||
|
private Button ok;
|
||||||
|
@FXML
|
||||||
|
private Button cancel;
|
||||||
|
|
||||||
|
public Button getOk() {
|
||||||
|
return ok;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setOk(Button ok) {
|
||||||
|
this.ok = ok;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Button getCancel() {
|
||||||
|
return cancel;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCancel(Button cancel) {
|
||||||
|
this.cancel = cancel;
|
||||||
|
}
|
||||||
|
|
||||||
|
public TextField getPath() {
|
||||||
|
return path;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPath(TextField path) {
|
||||||
|
this.path = path;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Button getSelectPath() {
|
||||||
|
return selectPath;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSelectPath(Button selectPath) {
|
||||||
|
this.selectPath = selectPath;
|
||||||
|
}
|
||||||
|
|
||||||
|
public TextField getName() {
|
||||||
|
return name;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setName(TextField name) {
|
||||||
|
this.name = name;
|
||||||
|
}
|
||||||
|
|
||||||
|
public TextField getPackages() {
|
||||||
|
return packages;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPackages(TextField packages) {
|
||||||
|
this.packages = packages;
|
||||||
|
}
|
||||||
|
|
||||||
|
public TextField getDomain() {
|
||||||
|
return domain;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDomain(TextField domain) {
|
||||||
|
this.domain = domain;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,7 @@
|
|||||||
|
package xyz.wbsite.dbtool.javafx.po;
|
||||||
|
|
||||||
|
public class AndroidOption {
|
||||||
|
public String projectName;
|
||||||
|
public String packages;
|
||||||
|
public String domain;
|
||||||
|
}
|
@ -0,0 +1,48 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<?import javafx.geometry.Insets?>
|
||||||
|
<?import javafx.scene.control.*?>
|
||||||
|
<?import javafx.scene.layout.*?>
|
||||||
|
<BorderPane fx:controller="xyz.wbsite.dbtool.javafx.ctrl.AndroidOptionController" prefHeight="250.0" prefWidth="600.0"
|
||||||
|
xmlns="http://javafx.com/javafx/8.0.65" xmlns:fx="http://javafx.com/fxml/1">
|
||||||
|
<center>
|
||||||
|
<GridPane prefHeight="210.0" prefWidth="600.0" BorderPane.alignment="CENTER">
|
||||||
|
<columnConstraints>
|
||||||
|
<ColumnConstraints hgrow="SOMETIMES" maxWidth="295.0" minWidth="10.0" prefWidth="90.0"/>
|
||||||
|
<ColumnConstraints hgrow="SOMETIMES" maxWidth="496.0" minWidth="10.0" prefWidth="425.0"/>
|
||||||
|
<ColumnConstraints hgrow="SOMETIMES" maxWidth="496.0" minWidth="10.0" prefWidth="88.0"/>
|
||||||
|
</columnConstraints>
|
||||||
|
<rowConstraints>
|
||||||
|
<RowConstraints maxHeight="40.0" minHeight="40.0" prefHeight="40.0" vgrow="SOMETIMES"/>
|
||||||
|
<RowConstraints maxHeight="40.0" minHeight="40.0" prefHeight="40.0" vgrow="SOMETIMES"/>
|
||||||
|
<RowConstraints maxHeight="40.0" minHeight="40.0" prefHeight="40.0" vgrow="SOMETIMES"/>
|
||||||
|
<RowConstraints maxHeight="40.0" minHeight="40.0" prefHeight="40.0" vgrow="SOMETIMES"/>
|
||||||
|
</rowConstraints>
|
||||||
|
<children>
|
||||||
|
<Label text="生成路径" GridPane.halignment="CENTER" GridPane.rowIndex="0" GridPane.valignment="CENTER"/>
|
||||||
|
<TextField GridPane.columnIndex="1" fx:id="path" GridPane.rowIndex="0"/>
|
||||||
|
<Button mnemonicParsing="false" fx:id="selectPath" text="选择路径" GridPane.columnIndex="2" GridPane.halignment="CENTER"
|
||||||
|
GridPane.rowIndex="0" GridPane.valignment="CENTER"/>
|
||||||
|
|
||||||
|
<Label text="项目名称" GridPane.halignment="CENTER" GridPane.rowIndex="1" GridPane.valignment="CENTER"/>
|
||||||
|
<TextField GridPane.columnIndex="1" fx:id="name" text="Example-android" GridPane.rowIndex="1"/>
|
||||||
|
|
||||||
|
<Label text="package" GridPane.halignment="CENTER" GridPane.rowIndex="2" GridPane.valignment="CENTER"/>
|
||||||
|
<TextField GridPane.columnIndex="1" fx:id="packages" text="com.example.android" GridPane.rowIndex="2"/>
|
||||||
|
|
||||||
|
<Label text="domain" GridPane.halignment="CENTER" GridPane.rowIndex="3" GridPane.valignment="CENTER"/>
|
||||||
|
<TextField GridPane.columnIndex="1" fx:id="domain" text="com.example" GridPane.rowIndex="3"/>
|
||||||
|
</children>
|
||||||
|
<opaqueInsets>
|
||||||
|
<Insets/>
|
||||||
|
</opaqueInsets>
|
||||||
|
</GridPane>
|
||||||
|
</center>
|
||||||
|
<bottom>
|
||||||
|
<Pane prefHeight="40.0" prefWidth="600.0" BorderPane.alignment="CENTER">
|
||||||
|
<children>
|
||||||
|
<Button layoutX="230.0" layoutY="9.0" mnemonicParsing="false" text="确认" fx:id="ok"/>
|
||||||
|
<Button layoutX="350.0" layoutY="9.0" mnemonicParsing="false" text="取消" fx:id="cancel"/>
|
||||||
|
</children>
|
||||||
|
</Pane>
|
||||||
|
</bottom>
|
||||||
|
</BorderPane>
|
Loading…
Reference in new issue