|
|
@ -100,7 +100,7 @@ public class ShareMainPane extends JPanel { |
|
|
|
|
|
|
|
|
|
|
|
private UIScrollPane mainPane = null; |
|
|
|
private UIScrollPane mainPane = null; |
|
|
|
|
|
|
|
|
|
|
|
private UICheckBox pluginCheckBox = new UICheckBox(Toolkit.i18nText("Fine-Plugin_Component_Make_Relate_To_Plugin")); |
|
|
|
private UICheckBox pluginCheckBox = new UICheckBox(Toolkit.i18nText("Fine-Design_Share_Make_Relate_To_Plugin")); |
|
|
|
private PriceExpectPane priceExpectPane = null; |
|
|
|
private PriceExpectPane priceExpectPane = null; |
|
|
|
|
|
|
|
|
|
|
|
private UIComboBox parentClassify = null; |
|
|
|
private UIComboBox parentClassify = null; |
|
|
@ -110,8 +110,8 @@ public class ShareMainPane extends JPanel { |
|
|
|
|
|
|
|
|
|
|
|
private UILabel loginLabel = ShareUIUtils.createCenterRightUILabel(StringUtils.EMPTY); |
|
|
|
private UILabel loginLabel = ShareUIUtils.createCenterRightUILabel(StringUtils.EMPTY); |
|
|
|
|
|
|
|
|
|
|
|
private UICheckBox pc = new UICheckBox(Toolkit.i18nText("Fine-Plugin_PC_Device")); |
|
|
|
private UICheckBox pc = new UICheckBox(Toolkit.i18nText("Fine-Design_Share_PC_Device")); |
|
|
|
private UICheckBox mobile = new UICheckBox(Toolkit.i18nText("Fine-Plugin_Mobile_Device")); |
|
|
|
private UICheckBox mobile = new UICheckBox(Toolkit.i18nText("Fine-Design_Share_Mobile_Device")); |
|
|
|
|
|
|
|
|
|
|
|
private UIComboCheckBox pluginComboCheckBox = null; |
|
|
|
private UIComboCheckBox pluginComboCheckBox = null; |
|
|
|
|
|
|
|
|
|
|
@ -172,7 +172,7 @@ public class ShareMainPane extends JPanel { |
|
|
|
|
|
|
|
|
|
|
|
private JPanel createOverviewPane(boolean upload) { |
|
|
|
private JPanel createOverviewPane(boolean upload) { |
|
|
|
JPanel componentPane = createComponentOverviewPane(upload); |
|
|
|
JPanel componentPane = createComponentOverviewPane(upload); |
|
|
|
String title = Toolkit.i18nText("Fine-Plugin_Component_Overview"); |
|
|
|
String title = Toolkit.i18nText("Fine-Design_Share_Overview"); |
|
|
|
JPanel overviewPane = FRGUIPaneFactory.createTitledBorderPane(title); |
|
|
|
JPanel overviewPane = FRGUIPaneFactory.createTitledBorderPane(title); |
|
|
|
overviewPane.add(componentPane, BorderLayout.CENTER); |
|
|
|
overviewPane.add(componentPane, BorderLayout.CENTER); |
|
|
|
|
|
|
|
|
|
|
@ -182,35 +182,35 @@ public class ShareMainPane extends JPanel { |
|
|
|
|
|
|
|
|
|
|
|
private JPanel createBasePane(boolean upload) { |
|
|
|
private JPanel createBasePane(boolean upload) { |
|
|
|
// 提示
|
|
|
|
// 提示
|
|
|
|
UILabel tipsLabel = ShareUIUtils.createTipsLabel(Toolkit.i18nText("Fine-Plugin_Component_Generate_Help_Tips")); |
|
|
|
UILabel tipsLabel = ShareUIUtils.createTipsLabel(Toolkit.i18nText("Fine-Design_Share_Generate_Help_Tips")); |
|
|
|
tipsLabel.setBorder(BorderFactory.createEmptyBorder(0, 0, 10, 0)); |
|
|
|
tipsLabel.setBorder(BorderFactory.createEmptyBorder(0, 0, 10, 0)); |
|
|
|
// 组件名称
|
|
|
|
// 组件名称
|
|
|
|
UILabel nameLabel = ShareUIUtils.createTopRightUILabel(InterProviderFactory.getProvider().getLocText("Fine-Plugin_Component_Name")); |
|
|
|
UILabel nameLabel = ShareUIUtils.createTopRightUILabel(Toolkit.i18nText("Fine-Design_Share_Name")); |
|
|
|
JPanel symbolTextField = createNameFiledPane(); |
|
|
|
JPanel symbolTextField = createNameFiledPane(); |
|
|
|
//显示封面
|
|
|
|
//显示封面
|
|
|
|
UILabel coverLabel = ShareUIUtils.createTopRightUILabel(InterProviderFactory.getProvider().getLocText("Fine-Plugin_Component_Show_Cover")); |
|
|
|
UILabel coverLabel = ShareUIUtils.createTopRightUILabel(Toolkit.i18nText("Fine-Design_Share_Show_Cover")); |
|
|
|
JPanel coverImagePane = getCoverImagePane(); |
|
|
|
JPanel coverImagePane = getCoverImagePane(); |
|
|
|
//制作者
|
|
|
|
//制作者
|
|
|
|
UILabel vendorLabel = ShareUIUtils.createCenterRightUILabel(Toolkit.i18nText("Fine-Plugin_Component_Share_Vendor")); |
|
|
|
UILabel vendorLabel = ShareUIUtils.createCenterRightUILabel(Toolkit.i18nText("Fine-Design_Share_Share_Vendor")); |
|
|
|
JPanel vendorPane = createVendorPane(); |
|
|
|
JPanel vendorPane = createVendorPane(); |
|
|
|
//适用终端
|
|
|
|
//适用终端
|
|
|
|
UILabel deviceLabel = ShareUIUtils.createCenterRightUILabel(Toolkit.i18nText("Fine-Plugin_Component_Device")); |
|
|
|
UILabel deviceLabel = ShareUIUtils.createCenterRightUILabel(Toolkit.i18nText("Fine-Design_Share_Device")); |
|
|
|
JPanel devicePane = createDevicePane(); |
|
|
|
JPanel devicePane = createDevicePane(); |
|
|
|
//组件分类
|
|
|
|
//组件分类
|
|
|
|
UILabel classifyLabel = ShareUIUtils.createCenterRightUILabel(Toolkit.i18nText("Fine-Plugin_Component_Classify")); |
|
|
|
UILabel classifyLabel = ShareUIUtils.createCenterRightUILabel(Toolkit.i18nText("Fine-Design_Share_Classify")); |
|
|
|
JPanel classifyPane = createClassifyPane(); |
|
|
|
JPanel classifyPane = createClassifyPane(); |
|
|
|
|
|
|
|
|
|
|
|
//样式风格
|
|
|
|
//样式风格
|
|
|
|
UILabel styleThemeLabel = ShareUIUtils.createCenterRightUILabel(Toolkit.i18nText("Fine-Plugin_Component_Style_Theme")); |
|
|
|
UILabel styleThemeLabel = ShareUIUtils.createCenterRightUILabel(Toolkit.i18nText("Fine-Design_Share_Style_Theme")); |
|
|
|
JPanel styleThemePane = createStyleThemePane(); |
|
|
|
JPanel styleThemePane = createStyleThemePane(); |
|
|
|
//本地分组
|
|
|
|
//本地分组
|
|
|
|
UILabel localGroupLabel = ShareUIUtils.createCenterRightUILabel(Toolkit.i18nText("Fine-Plugin_Component_Local_Group")); |
|
|
|
UILabel localGroupLabel = ShareUIUtils.createCenterRightUILabel(Toolkit.i18nText("Fine-Design_Share_Local_Group")); |
|
|
|
JPanel localGroupPane = createLocalGroupPane(); |
|
|
|
JPanel localGroupPane = createLocalGroupPane(); |
|
|
|
//使用插件
|
|
|
|
//使用插件
|
|
|
|
UILabel pluginLabel = ShareUIUtils.createCenterRightUILabel(Toolkit.i18nText("Fine-Plugin_Component_Use_Plugin")); |
|
|
|
UILabel pluginLabel = ShareUIUtils.createCenterRightUILabel(Toolkit.i18nText("Fine-Design_Share_Use_Plugin")); |
|
|
|
JPanel pluginPane = createPluginPane(); |
|
|
|
JPanel pluginPane = createPluginPane(); |
|
|
|
//期望价格
|
|
|
|
//期望价格
|
|
|
|
UILabel priceLabel = ShareUIUtils.createCenterRightUILabel(Toolkit.i18nText("Fine-Plugin_Component_Expect_Price")); |
|
|
|
UILabel priceLabel = ShareUIUtils.createCenterRightUILabel(Toolkit.i18nText("Fine-Design_Share_Expect_Price")); |
|
|
|
JPanel pricePane = createPricePane(); |
|
|
|
JPanel pricePane = createPricePane(); |
|
|
|
|
|
|
|
|
|
|
|
double p = TableLayout.PREFERRED; |
|
|
|
double p = TableLayout.PREFERRED; |
|
|
@ -246,7 +246,7 @@ public class ShareMainPane extends JPanel { |
|
|
|
infoPane = TableLayoutHelper.createGapTableLayoutPane(components, rowSize, columnSize, rowCount, LayoutConstants.HGAP_SMALL, BASEPANE_VERTICAL_GAP); |
|
|
|
infoPane = TableLayoutHelper.createGapTableLayoutPane(components, rowSize, columnSize, rowCount, LayoutConstants.HGAP_SMALL, BASEPANE_VERTICAL_GAP); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
String title = Toolkit.i18nText("Fine-Plugin_Component_Base_Info"); |
|
|
|
String title = Toolkit.i18nText("Fine-Design_Share_Base_Info"); |
|
|
|
JPanel overviewPane = FRGUIPaneFactory.createTitledBorderPane(title); |
|
|
|
JPanel overviewPane = FRGUIPaneFactory.createTitledBorderPane(title); |
|
|
|
|
|
|
|
|
|
|
|
innerPane.add(tipsLabel, BorderLayout.NORTH); |
|
|
|
innerPane.add(tipsLabel, BorderLayout.NORTH); |
|
|
@ -271,7 +271,7 @@ public class ShareMainPane extends JPanel { |
|
|
|
private JPanel createStyleThemePane() { |
|
|
|
private JPanel createStyleThemePane() { |
|
|
|
JPanel pane = FRGUIPaneFactory.createBoxFlowInnerContainer_S_Pane(); |
|
|
|
JPanel pane = FRGUIPaneFactory.createBoxFlowInnerContainer_S_Pane(); |
|
|
|
PlaceHolderUI<UIComboBox> placeHolderUI = new PlaceHolderUI<UIComboBox>( |
|
|
|
PlaceHolderUI<UIComboBox> placeHolderUI = new PlaceHolderUI<UIComboBox>( |
|
|
|
Toolkit.i18nText("Fine-Plugin_Component_Style_Theme_Place_Holder")) { |
|
|
|
Toolkit.i18nText("Fine-Design_Share_Style_Theme_Place_Holder")) { |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
protected boolean validate(UIComboBox uiComboBox) { |
|
|
|
protected boolean validate(UIComboBox uiComboBox) { |
|
|
|
return styleComboBox.getSelectedItem() != null; |
|
|
|
return styleComboBox.getSelectedItem() != null; |
|
|
@ -320,7 +320,7 @@ public class ShareMainPane extends JPanel { |
|
|
|
displays[i] = pairs[i].getFirst(); |
|
|
|
displays[i] = pairs[i].getFirst(); |
|
|
|
values[i] = pairs[i].getSecond(); |
|
|
|
values[i] = pairs[i].getSecond(); |
|
|
|
} |
|
|
|
} |
|
|
|
this.pluginComboCheckBox = new DictionaryComboCheckBox(values, displays, "Fine-Plugin_Select_Plugin"); |
|
|
|
this.pluginComboCheckBox = new DictionaryComboCheckBox(values, displays, "Fine-Design_Share_Select_Plugin"); |
|
|
|
|
|
|
|
|
|
|
|
pluginComboCheckBox.setPopupMaxDisplayNumber(10); |
|
|
|
pluginComboCheckBox.setPopupMaxDisplayNumber(10); |
|
|
|
pluginComboCheckBox.setVisible(false); |
|
|
|
pluginComboCheckBox.setVisible(false); |
|
|
@ -348,7 +348,7 @@ public class ShareMainPane extends JPanel { |
|
|
|
this.parentClassify.setPreferredSize(new Dimension(COMBO_WIDTH, COMBO_HEIGHT)); |
|
|
|
this.parentClassify.setPreferredSize(new Dimension(COMBO_WIDTH, COMBO_HEIGHT)); |
|
|
|
|
|
|
|
|
|
|
|
List<String> children = ComponentTypes.CHART.children(-1); |
|
|
|
List<String> children = ComponentTypes.CHART.children(-1); |
|
|
|
final String placeHolderText = Toolkit.i18nText("Fine-Plugin_Select_Type"); |
|
|
|
final String placeHolderText = Toolkit.i18nText("Fine-Design_Share_Select_Type"); |
|
|
|
PlaceHolderUI<UIComboBox> placeHolderUI = new PlaceHolderUI<UIComboBox>(placeHolderText) { |
|
|
|
PlaceHolderUI<UIComboBox> placeHolderUI = new PlaceHolderUI<UIComboBox>(placeHolderText) { |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
protected boolean validate(UIComboBox comboBox) { |
|
|
|
protected boolean validate(UIComboBox comboBox) { |
|
|
@ -422,7 +422,7 @@ public class ShareMainPane extends JPanel { |
|
|
|
|
|
|
|
|
|
|
|
String bbsUsername = MarketConfig.getInstance().getBbsUsername(); |
|
|
|
String bbsUsername = MarketConfig.getInstance().getBbsUsername(); |
|
|
|
if (StringUtils.isEmpty(bbsUsername)) { |
|
|
|
if (StringUtils.isEmpty(bbsUsername)) { |
|
|
|
UILabel unLoginLabel = ShareUIUtils.createHyperlinkLabel(Toolkit.i18nText("Fine-Plugin_Click_Login")); |
|
|
|
UILabel unLoginLabel = ShareUIUtils.createHyperlinkLabel(Toolkit.i18nText("Fine-Design_Share_Click_Login")); |
|
|
|
|
|
|
|
|
|
|
|
final UILabel hidden = new ShareLoginLabel(vendorPane, unLoginLabel, loginLabel); |
|
|
|
final UILabel hidden = new ShareLoginLabel(vendorPane, unLoginLabel, loginLabel); |
|
|
|
|
|
|
|
|
|
|
@ -447,13 +447,13 @@ public class ShareMainPane extends JPanel { |
|
|
|
@NotNull |
|
|
|
@NotNull |
|
|
|
private JPanel createComponentOverviewPane(boolean upload) { |
|
|
|
private JPanel createComponentOverviewPane(boolean upload) { |
|
|
|
//功能介绍
|
|
|
|
//功能介绍
|
|
|
|
UILabel effectLabel = ShareUIUtils.createTopRightUILabel(InterProviderFactory.getProvider().getLocText("Fine-Plugin_Component_Special_Effects")); |
|
|
|
UILabel effectLabel = ShareUIUtils.createTopRightUILabel(Toolkit.i18nText("Fine-Design_Share_Special_Effects")); |
|
|
|
JPanel effectPane = createEffectPane(effectItemGroups); |
|
|
|
JPanel effectPane = createEffectPane(effectItemGroups); |
|
|
|
|
|
|
|
|
|
|
|
content.setDocument( |
|
|
|
content.setDocument( |
|
|
|
new LimitedDocument(200, 500) |
|
|
|
new LimitedDocument(200, 500) |
|
|
|
); |
|
|
|
); |
|
|
|
String contentTip = Toolkit.i18nText("Fine-Plugin_Content_Introduction_Placeholder"); |
|
|
|
String contentTip = Toolkit.i18nText("Fine-Design_Share_Content_Introduction_Placeholder"); |
|
|
|
content.setAutoscrolls(true); |
|
|
|
content.setAutoscrolls(true); |
|
|
|
content.setPlaceholder(contentTip); |
|
|
|
content.setPlaceholder(contentTip); |
|
|
|
UIScrollPane contentPane = new UIScrollPane(content); |
|
|
|
UIScrollPane contentPane = new UIScrollPane(content); |
|
|
@ -463,14 +463,14 @@ public class ShareMainPane extends JPanel { |
|
|
|
help.setDocument( |
|
|
|
help.setDocument( |
|
|
|
new LimitedDocument(1000) |
|
|
|
new LimitedDocument(1000) |
|
|
|
); |
|
|
|
); |
|
|
|
String helpTip = Toolkit.i18nText("Fine-Plugin_Help_Msg_Placeholder"); |
|
|
|
String helpTip = Toolkit.i18nText("Fine-Design_Share_Help_Msg_Placeholder"); |
|
|
|
help.setPlaceholder(helpTip); |
|
|
|
help.setPlaceholder(helpTip); |
|
|
|
UIScrollPane helpPane = new UIScrollPane(help); |
|
|
|
UIScrollPane helpPane = new UIScrollPane(help); |
|
|
|
helpPane.setPreferredSize(new Dimension(COLUMN_FIELD_WIDTH, 50)); |
|
|
|
helpPane.setPreferredSize(new Dimension(COLUMN_FIELD_WIDTH, 50)); |
|
|
|
helpPane.setBorder(null); |
|
|
|
helpPane.setBorder(null); |
|
|
|
|
|
|
|
|
|
|
|
UILabel helpLabel = ShareUIUtils.createTopRightUILabel(InterProviderFactory.getProvider().getLocText("Fine-Plugin_Help_Msg")); |
|
|
|
UILabel helpLabel = ShareUIUtils.createTopRightUILabel(Toolkit.i18nText("Fine-Design_Share_Help_Msg")); |
|
|
|
UILabel contentLabel = ShareUIUtils.createTopRightUILabel(InterProviderFactory.getProvider().getLocText("Fine-Plugin_Content_Introduction")); |
|
|
|
UILabel contentLabel = ShareUIUtils.createTopRightUILabel(Toolkit.i18nText("Fine-Design_Share_Content_Introduction")); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
double p = TableLayout.PREFERRED; |
|
|
|
double p = TableLayout.PREFERRED; |
|
|
@ -504,7 +504,7 @@ public class ShareMainPane extends JPanel { |
|
|
|
|
|
|
|
|
|
|
|
private JPanel createNameFiledPane() { |
|
|
|
private JPanel createNameFiledPane() { |
|
|
|
LimitedDocument nameLimited = new LimitedDocument(NAME_MAX_LENGTH); |
|
|
|
LimitedDocument nameLimited = new LimitedDocument(NAME_MAX_LENGTH); |
|
|
|
nameField.setPlaceholder(Toolkit.i18nText("Fine-Plugin_Component_Name_Placeholder")); |
|
|
|
nameField.setPlaceholder(Toolkit.i18nText("Fine-Design_Share_Name_Placeholder")); |
|
|
|
nameField.setPreferredSize(new Dimension(TEXT_FIELD_WIDTH, TEXT_FIELD_HEIGHT)); |
|
|
|
nameField.setPreferredSize(new Dimension(TEXT_FIELD_WIDTH, TEXT_FIELD_HEIGHT)); |
|
|
|
nameField.setDocument(nameLimited); |
|
|
|
nameField.setDocument(nameLimited); |
|
|
|
JPanel symbolTextFiled = FRGUIPaneFactory.createBorderLayout_S_Pane(); |
|
|
|
JPanel symbolTextFiled = FRGUIPaneFactory.createBorderLayout_S_Pane(); |
|
|
@ -518,7 +518,7 @@ public class ShareMainPane extends JPanel { |
|
|
|
|
|
|
|
|
|
|
|
private void initUploadCoverBtn() { |
|
|
|
private void initUploadCoverBtn() { |
|
|
|
|
|
|
|
|
|
|
|
this.uploadBtn = new UIButton(InterProviderFactory.getProvider().getLocText("Fine-Plugin_Select_Upload_Cover")); |
|
|
|
this.uploadBtn = new UIButton(Toolkit.i18nText("Fine-Design_Share_Select_Upload_Cover")); |
|
|
|
this.uploadBtn.setPreferredSize(new Dimension(BTN_WIDTH, BTN_HEIGHT)); |
|
|
|
this.uploadBtn.setPreferredSize(new Dimension(BTN_WIDTH, BTN_HEIGHT)); |
|
|
|
uploadBtn.addActionListener(new ActionListener() { |
|
|
|
uploadBtn.addActionListener(new ActionListener() { |
|
|
|
@Override |
|
|
|
@Override |
|
|
@ -563,37 +563,37 @@ public class ShareMainPane extends JPanel { |
|
|
|
Dialog shareDialog = ShareDialogUtils.getInstance().getShareDialog(); |
|
|
|
Dialog shareDialog = ShareDialogUtils.getInstance().getShareDialog(); |
|
|
|
String name = nameField.getText(); |
|
|
|
String name = nameField.getText(); |
|
|
|
if (StringUtils.isEmpty(name)) { |
|
|
|
if (StringUtils.isEmpty(name)) { |
|
|
|
FineJOptionPane.showMessageDialog(shareDialog, Toolkit.i18nText("Fine-Plugin_Lack_Name"), |
|
|
|
FineJOptionPane.showMessageDialog(shareDialog, Toolkit.i18nText("Fine-Design_Share_Lack_Name"), |
|
|
|
Toolkit.i18nText("Fine-Design_Basic_Error"), ERROR_MESSAGE, UIManager.getIcon("OptionPane.errorIcon")); |
|
|
|
Toolkit.i18nText("Fine-Design_Basic_Error"), ERROR_MESSAGE, UIManager.getIcon("OptionPane.errorIcon")); |
|
|
|
return false; |
|
|
|
return false; |
|
|
|
} |
|
|
|
} |
|
|
|
if (upload && StringUtils.isEmpty(content.getText())) { |
|
|
|
if (upload && StringUtils.isEmpty(content.getText())) { |
|
|
|
FineJOptionPane.showMessageDialog(shareDialog, Toolkit.i18nText("Fine-Plugin_Lack_Content"), |
|
|
|
FineJOptionPane.showMessageDialog(shareDialog, Toolkit.i18nText("Fine-Design_Share_Lack_Content"), |
|
|
|
Toolkit.i18nText("Fine-Design_Basic_Error"), ERROR_MESSAGE, UIManager.getIcon("OptionPane.errorIcon")); |
|
|
|
Toolkit.i18nText("Fine-Design_Basic_Error"), ERROR_MESSAGE, UIManager.getIcon("OptionPane.errorIcon")); |
|
|
|
return false; |
|
|
|
return false; |
|
|
|
} |
|
|
|
} |
|
|
|
if (upload && StringUtils.isEmpty(loginLabel.getText())) { |
|
|
|
if (upload && StringUtils.isEmpty(loginLabel.getText())) { |
|
|
|
FineJOptionPane.showMessageDialog(shareDialog, Toolkit.i18nText("Fine-Plugin_Lack_Login"), |
|
|
|
FineJOptionPane.showMessageDialog(shareDialog, Toolkit.i18nText("Fine-Design_Share_Lack_Login"), |
|
|
|
Toolkit.i18nText("Fine-Design_Basic_Error"), ERROR_MESSAGE, UIManager.getIcon("OptionPane.errorIcon")); |
|
|
|
Toolkit.i18nText("Fine-Design_Basic_Error"), ERROR_MESSAGE, UIManager.getIcon("OptionPane.errorIcon")); |
|
|
|
return false; |
|
|
|
return false; |
|
|
|
} |
|
|
|
} |
|
|
|
if (upload && styleComboBox.getSelectedItem() == null) { |
|
|
|
if (upload && styleComboBox.getSelectedItem() == null) { |
|
|
|
FineJOptionPane.showMessageDialog(shareDialog, Toolkit.i18nText("Fine-Plugin_Component_Style_Theme_Tip"), |
|
|
|
FineJOptionPane.showMessageDialog(shareDialog, Toolkit.i18nText("Fine-Design_Share_Style_Theme_Tip"), |
|
|
|
Toolkit.i18nText("Fine-Design_Basic_Error"), ERROR_MESSAGE, UIManager.getIcon("OptionPane.errorIcon")); |
|
|
|
Toolkit.i18nText("Fine-Design_Basic_Error"), ERROR_MESSAGE, UIManager.getIcon("OptionPane.errorIcon")); |
|
|
|
return false; |
|
|
|
return false; |
|
|
|
} |
|
|
|
} |
|
|
|
if (!pc.isSelected() && !mobile.isSelected()) { |
|
|
|
if (!pc.isSelected() && !mobile.isSelected()) { |
|
|
|
FineJOptionPane.showMessageDialog(shareDialog, Toolkit.i18nText("Fine-Plugin_Lack_Device"), |
|
|
|
FineJOptionPane.showMessageDialog(shareDialog, Toolkit.i18nText("Fine-Design_Share_Lack_Device"), |
|
|
|
Toolkit.i18nText("Fine-Design_Basic_Error"), ERROR_MESSAGE, UIManager.getIcon("OptionPane.errorIcon")); |
|
|
|
Toolkit.i18nText("Fine-Design_Basic_Error"), ERROR_MESSAGE, UIManager.getIcon("OptionPane.errorIcon")); |
|
|
|
return false; |
|
|
|
return false; |
|
|
|
} |
|
|
|
} |
|
|
|
if (pluginCheckBox.isSelected() && ArrayUtils.isEmpty(pluginComboCheckBox.getSelectedValues())) { |
|
|
|
if (pluginCheckBox.isSelected() && ArrayUtils.isEmpty(pluginComboCheckBox.getSelectedValues())) { |
|
|
|
FineJOptionPane.showMessageDialog(shareDialog, Toolkit.i18nText("Fine-Plugin_Lack_Plugins"), |
|
|
|
FineJOptionPane.showMessageDialog(shareDialog, Toolkit.i18nText("Fine-Design_Share_Lack_Plugins"), |
|
|
|
Toolkit.i18nText("Fine-Design_Basic_Error"), ERROR_MESSAGE, UIManager.getIcon("OptionPane.errorIcon")); |
|
|
|
Toolkit.i18nText("Fine-Design_Basic_Error"), ERROR_MESSAGE, UIManager.getIcon("OptionPane.errorIcon")); |
|
|
|
return false; |
|
|
|
return false; |
|
|
|
} |
|
|
|
} |
|
|
|
if (!priceExpectPane.check()) { |
|
|
|
if (!priceExpectPane.check()) { |
|
|
|
FineJOptionPane.showMessageDialog(shareDialog, Toolkit.i18nText("Fine-Plugin_Lack_Price"), |
|
|
|
FineJOptionPane.showMessageDialog(shareDialog, Toolkit.i18nText("Fine-Design_Share_Lack_Price"), |
|
|
|
Toolkit.i18nText("Fine-Design_Basic_Error"), ERROR_MESSAGE, UIManager.getIcon("OptionPane.errorIcon")); |
|
|
|
Toolkit.i18nText("Fine-Design_Basic_Error"), ERROR_MESSAGE, UIManager.getIcon("OptionPane.errorIcon")); |
|
|
|
return false; |
|
|
|
return false; |
|
|
|
} |
|
|
|
} |
|
|
@ -684,7 +684,7 @@ public class ShareMainPane extends JPanel { |
|
|
|
if (errorLength != -1 && currentLength > errorLength && ++loop >= 5) { |
|
|
|
if (errorLength != -1 && currentLength > errorLength && ++loop >= 5) { |
|
|
|
this.loop = 0; |
|
|
|
this.loop = 0; |
|
|
|
FineJOptionPane.showMessageDialog(ShareDialogUtils.getInstance().getShareDialog(), |
|
|
|
FineJOptionPane.showMessageDialog(ShareDialogUtils.getInstance().getShareDialog(), |
|
|
|
ShareUIUtils.formatWidthString(InterProviderFactory.getProvider().getLocText("Fine-Plugin_Component_Input_Errors", String.valueOf(errorLength)), 200), |
|
|
|
ShareUIUtils.formatWidthString(Toolkit.i18nText("Fine-Design_Share_Input_Errors", String.valueOf(errorLength)), 200), |
|
|
|
Toolkit.i18nText("Fine-Design_Basic_Error"), ERROR_MESSAGE, UIManager.getIcon("OptionPane.errorIcon")); |
|
|
|
Toolkit.i18nText("Fine-Design_Basic_Error"), ERROR_MESSAGE, UIManager.getIcon("OptionPane.errorIcon")); |
|
|
|
//只提示,不报错
|
|
|
|
//只提示,不报错
|
|
|
|
} |
|
|
|
} |
|
|
|