QrCodeGeneratorView.fxml
2.0 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<?xml version="1.0" encoding="UTF-8"?>
<?import javafx.geometry.Insets?>
<?import javafx.scene.control.*?>
<?import javafx.scene.image.ImageView?>
<?import javafx.scene.layout.*?>
<?import javafx.scene.text.Font?>
<VBox alignment="TOP_CENTER" prefHeight="600.0" prefWidth="600.0" xmlns="http://javafx.com/javafx/9"
xmlns:fx="http://javafx.com/fxml/1"
fx:controller="com.zhazhapan.util.visual.controller.QrCodeGeneratorController">
<SplitPane dividerPositions="0.11538461538461539" orientation="VERTICAL" prefHeight="200.0" prefWidth="160.0"
VBox.vgrow="ALWAYS">
<HBox prefHeight="148.0" prefWidth="598.0">
<TextArea fx:id="content" onDragDropped="#dragFileDropped" onDragOver="#dragFileOver" prefHeight="134.0"
prefWidth="449.0" promptText="文本" HBox.hgrow="ALWAYS">
<tooltip>
<Tooltip autoHide="true" text="拖曳文件至此"/>
</tooltip>
</TextArea>
<Button maxHeight="1.7976931348623157E308" maxWidth="1.7976931348623157E308" mnemonicParsing="false"
onAction="#generateQrCode" prefHeight="134.0" prefWidth="91.0" text="生成" HBox.hgrow="NEVER">
<HBox.margin>
<Insets left="10.0"/>
</HBox.margin>
<font>
<Font size="24.0"/>
</font>
</Button>
<padding>
<Insets bottom="10.0" left="10.0" right="10.0" top="10.0"/>
</padding>
</HBox>
<ScrollPane fitToHeight="true" fitToWidth="true" maxHeight="1.7976931348623157E308"
maxWidth="1.7976931348623157E308">
<HBox alignment="CENTER" maxHeight="1.7976931348623157E308" maxWidth="1.7976931348623157E308">
<ImageView fx:id="qrCode" fitHeight="555.0" fitWidth="555.0" pickOnBounds="true" preserveRatio="true"
HBox.hgrow="ALWAYS"/>
</HBox>
</ScrollPane>
</SplitPane>
</VBox>