Skip to content

Commit

Permalink
optimize:细节微调
Browse files Browse the repository at this point in the history
  • Loading branch information
rememberber committed Jun 24, 2019
1 parent 2b9c441 commit 07edf20
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions src/main/java/com/fangxuele/tool/push/logic/PushControl.java
Original file line number Diff line number Diff line change
Expand Up @@ -266,8 +266,8 @@ static void savePushData() throws IOException {
ArrayList<String> mailToList = new ArrayList<>(Arrays.asList(mailTos));

MailMsgSender mailMsgSender = new MailMsgSender();
String title = "WePush推送结果:" + MessageEditForm.messageEditForm.getMsgNameField().getText()
+ "-" + PushData.sendSuccessList.size() + "成功;" + PushData.sendFailList.size() + "失败;"
String title = "WePush推送结果:" + MessageEditForm.messageEditForm.getMsgNameField().getText()
+ "" + PushData.sendSuccessList.size() + "成功;" + PushData.sendFailList.size() + "失败;"
+ PushData.toSendList.size() + "未发送";
StringBuilder contentBuilder = new StringBuilder();
contentBuilder.append("<h2>WePush推送结果</h2>");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@
<text value="HTTP请求"/>
</properties>
</component>
<component id="c9ddb" class="javax.swing.JRadioButton" binding="eMailBETARadioButton" default-binding="true">
<component id="c9ddb" class="javax.swing.JRadioButton" binding="eMailRadioButton">
<constraints>
<grid row="8" column="0" row-span="1" col-span="1" vsize-policy="0" hsize-policy="3" anchor="8" fill="0" indent="0" use-parent-layout="false"/>
</constraints>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public class MessageTypeForm {
private JRadioButton yunPianRadioButton;
private JRadioButton upYunRadioButton;
private JRadioButton hwYunRadioButton;
private JRadioButton eMailBETARadioButton;
private JRadioButton eMailRadioButton;
private JPanel msgTypeListPanel;
private JRadioButton 网易云信短信RadioButton;
private JRadioButton 榛子云短信RadioButton;
Expand Down Expand Up @@ -85,7 +85,7 @@ public static void init() {
messageTypeForm.getHwYunRadioButton().setSelected(true);
break;
case MessageTypeEnum.EMAIL_CODE:
messageTypeForm.getEMailBETARadioButton().setSelected(true);
messageTypeForm.getEMailRadioButton().setSelected(true);
break;

default:
Expand Down Expand Up @@ -214,10 +214,10 @@ public static void clearAllSelected() {
HTTP请求RadioButton.setEnabled(false);
HTTP请求RadioButton.setText("HTTP请求");
msgTypeListPanel.add(HTTP请求RadioButton, new GridConstraints(9, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));
eMailBETARadioButton = new JRadioButton();
eMailBETARadioButton.setEnabled(true);
eMailBETARadioButton.setText("E-Mail(BETA)");
msgTypeListPanel.add(eMailBETARadioButton, new GridConstraints(8, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));
eMailRadioButton = new JRadioButton();
eMailRadioButton.setEnabled(true);
eMailRadioButton.setText("E-Mail(BETA)");
msgTypeListPanel.add(eMailRadioButton, new GridConstraints(8, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));
final JPanel panel1 = new JPanel();
panel1.setLayout(new GridLayoutManager(2, 1, new Insets(8, 8, 8, 0), -1, -1));
messageTypePanel.add(panel1, new GridConstraints(1, 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));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public static void addListeners() {
App.config.setMsgType(MessageTypeEnum.HW_YUN_CODE);
saveType();
});
messageTypeForm.getEMailBETARadioButton().addActionListener(e -> {
messageTypeForm.getEMailRadioButton().addActionListener(e -> {
App.config.setMsgType(MessageTypeEnum.EMAIL_CODE);
saveType();
});
Expand Down

0 comments on commit 07edf20

Please sign in to comment.