Skip to content

Commit 1091657

Browse files
author
zhoubo58
committedMar 12, 2021
设置账号tab初步-七牛云短信
1 parent 9a3627a commit 1091657

File tree

2 files changed

+144
-0
lines changed

2 files changed

+144
-0
lines changed
 
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<form xmlns="http://www.intellij.com/uidesigner/form/" version="1" bind-to-class="com.fangxuele.tool.push.ui.form.account.QiniuYunAccountForm">
3+
<grid id="27dc6" binding="wxMpAccountPanel" layout-manager="GridLayoutManager" row-count="1" column-count="1" same-size-horizontally="false" same-size-vertically="false" hgap="-1" vgap="-1">
4+
<margin top="10" left="5" bottom="0" right="0"/>
5+
<constraints>
6+
<xy x="20" y="20" width="500" height="400"/>
7+
</constraints>
8+
<properties/>
9+
<border type="none"/>
10+
<children>
11+
<grid id="cf705" layout-manager="GridLayoutManager" row-count="3" column-count="2" same-size-horizontally="false" same-size-vertically="false" hgap="-1" vgap="-1">
12+
<margin top="0" left="0" bottom="0" right="0"/>
13+
<constraints>
14+
<grid row="0" column="0" row-span="1" col-span="1" vsize-policy="3" hsize-policy="3" anchor="0" fill="3" indent="0" use-parent-layout="false"/>
15+
</constraints>
16+
<properties/>
17+
<border type="none"/>
18+
<children>
19+
<vspacer id="a7a5f">
20+
<constraints>
21+
<grid row="2" column="0" row-span="1" col-span="2" vsize-policy="6" hsize-policy="1" anchor="0" fill="2" indent="0" use-parent-layout="false"/>
22+
</constraints>
23+
</vspacer>
24+
<component id="72666" class="javax.swing.JLabel">
25+
<constraints>
26+
<grid row="0" column="0" row-span="1" col-span="1" vsize-policy="0" hsize-policy="0" anchor="8" fill="0" indent="0" use-parent-layout="false"/>
27+
</constraints>
28+
<properties>
29+
<text value="AcessKey"/>
30+
</properties>
31+
</component>
32+
<component id="f4d1c" class="javax.swing.JLabel">
33+
<constraints>
34+
<grid row="1" column="0" row-span="1" col-span="1" vsize-policy="0" hsize-policy="0" anchor="8" fill="0" indent="0" use-parent-layout="false"/>
35+
</constraints>
36+
<properties>
37+
<text value="SecretKey"/>
38+
</properties>
39+
</component>
40+
<component id="cea3d" class="javax.swing.JTextField" binding="qiniuAccessKeyTextField">
41+
<constraints>
42+
<grid row="0" column="1" row-span="1" col-span="1" vsize-policy="0" hsize-policy="3" anchor="8" fill="1" indent="0" use-parent-layout="false">
43+
<minimum-size width="300" height="-1"/>
44+
<preferred-size width="300" height="-1"/>
45+
</grid>
46+
</constraints>
47+
<properties/>
48+
</component>
49+
<component id="fbc82" class="javax.swing.JTextField" binding="qiniuSecretKeyTextField">
50+
<constraints>
51+
<grid row="1" column="1" row-span="1" col-span="1" vsize-policy="0" hsize-policy="3" anchor="8" fill="1" indent="0" use-parent-layout="false">
52+
<minimum-size width="300" height="-1"/>
53+
<preferred-size width="300" height="-1"/>
54+
</grid>
55+
</constraints>
56+
<properties/>
57+
</component>
58+
</children>
59+
</grid>
60+
</children>
61+
</grid>
62+
</form>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
package com.fangxuele.tool.push.ui.form.account;
2+
3+
import com.fangxuele.tool.push.util.UndoUtil;
4+
import com.intellij.uiDesigner.core.GridConstraints;
5+
import com.intellij.uiDesigner.core.GridLayoutManager;
6+
import com.intellij.uiDesigner.core.Spacer;
7+
8+
import javax.swing.*;
9+
import java.awt.*;
10+
11+
public class QiniuYunAccountForm implements IAccountForm {
12+
private JPanel wxMpAccountPanel;
13+
private JTextField qiniuAccessKeyTextField;
14+
private JTextField qiniuSecretKeyTextField;
15+
16+
private static QiniuYunAccountForm wxMpAccountForm;
17+
18+
@Override
19+
public void init(String accountName) {
20+
21+
}
22+
23+
@Override
24+
public void save(String accountName) {
25+
26+
}
27+
28+
@Override
29+
public JPanel getMainPanel() {
30+
return wxMpAccountPanel;
31+
}
32+
33+
public static QiniuYunAccountForm getInstance() {
34+
if (wxMpAccountForm == null) {
35+
wxMpAccountForm = new QiniuYunAccountForm();
36+
}
37+
UndoUtil.register(wxMpAccountForm);
38+
return wxMpAccountForm;
39+
}
40+
41+
{
42+
// GUI initializer generated by IntelliJ IDEA GUI Designer
43+
// >>> IMPORTANT!! <<<
44+
// DO NOT EDIT OR ADD ANY CODE HERE!
45+
$$$setupUI$$$();
46+
}
47+
48+
/**
49+
* Method generated by IntelliJ IDEA GUI Designer
50+
* >>> IMPORTANT!! <<<
51+
* DO NOT edit this method OR call it in your code!
52+
*
53+
* @noinspection ALL
54+
*/
55+
private void $$$setupUI$$$() {
56+
wxMpAccountPanel = new JPanel();
57+
wxMpAccountPanel.setLayout(new GridLayoutManager(1, 1, new Insets(10, 5, 0, 0), -1, -1));
58+
final JPanel panel1 = new JPanel();
59+
panel1.setLayout(new GridLayoutManager(3, 2, new Insets(0, 0, 0, 0), -1, -1));
60+
wxMpAccountPanel.add(panel1, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));
61+
final Spacer spacer1 = new Spacer();
62+
panel1.add(spacer1, new GridConstraints(2, 0, 1, 2, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_VERTICAL, 1, GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));
63+
final JLabel label1 = new JLabel();
64+
label1.setText("AcessKey");
65+
panel1.add(label1, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));
66+
final JLabel label2 = new JLabel();
67+
label2.setText("SecretKey");
68+
panel1.add(label2, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));
69+
qiniuAccessKeyTextField = new JTextField();
70+
panel1.add(qiniuAccessKeyTextField, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, new Dimension(300, -1), new Dimension(300, -1), null, 0, false));
71+
qiniuSecretKeyTextField = new JTextField();
72+
panel1.add(qiniuSecretKeyTextField, new GridConstraints(1, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, new Dimension(300, -1), new Dimension(300, -1), null, 0, false));
73+
}
74+
75+
/**
76+
* @noinspection ALL
77+
*/
78+
public JComponent $$$getRootComponent$$$() {
79+
return wxMpAccountPanel;
80+
}
81+
82+
}

0 commit comments

Comments
 (0)
Please sign in to comment.