|
|
|
@ -4,6 +4,7 @@
|
|
|
|
|
package com.fr.design.webattr; |
|
|
|
|
|
|
|
|
|
import com.fr.base.BaseUtils; |
|
|
|
|
import com.fr.base.i18n.BidiUtils; |
|
|
|
|
import com.fr.design.dialog.BasicDialog; |
|
|
|
|
import com.fr.design.dialog.BasicPane; |
|
|
|
|
import com.fr.design.dialog.DialogActionAdapter; |
|
|
|
@ -141,7 +142,8 @@ public class ServerPrinterPane extends BasicPane {
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
printerDialog.setTitle(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_ReportServerP_Add_Printer") + "..."); |
|
|
|
|
printerDialog.setTitle(BidiUtils.reverseConcatenateStrings(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_ReportServerP_Add_Printer"), "...")); |
|
|
|
|
BidiUtils.applyOrientationByLocale(printerDialog); |
|
|
|
|
printerDialog.setVisible(true); |
|
|
|
|
} |
|
|
|
|
}; |
|
|
|
@ -262,7 +264,8 @@ public class ServerPrinterPane extends BasicPane {
|
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
printersPane.populate(printerList.getSelectedValue().toString()); |
|
|
|
|
printerDialog.setTitle(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_ReportServerP_Edit_Printer") + "..."); |
|
|
|
|
printerDialog.setTitle(BidiUtils.reverseConcatenateStrings(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_ReportServerP_Edit_Printer"), "...")); |
|
|
|
|
BidiUtils.applyOrientationByLocale(printerDialog); |
|
|
|
|
printerDialog.setVisible(true); |
|
|
|
|
} |
|
|
|
|
public void populate(Printer printer) { |
|
|
|
@ -320,7 +323,7 @@ public class ServerPrinterPane extends BasicPane {
|
|
|
|
|
this.setLayout(FRGUIPaneFactory.createBorderLayout()); |
|
|
|
|
this.setBorder(BorderFactory.createEmptyBorder(20, 5, 0, 0)); |
|
|
|
|
JPanel centerPane = FRGUIPaneFactory.createNormalFlowInnerContainer_S_Pane(); |
|
|
|
|
centerPane.add(new UILabel(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_Printer") + ":"), BorderLayout.WEST); |
|
|
|
|
centerPane.add(new UILabel(BidiUtils.reverseConcatenateStrings(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_Printer"), ":")), BorderLayout.WEST); |
|
|
|
|
|
|
|
|
|
DefaultComboBoxModel printerComboModel = new DefaultComboBoxModel(); |
|
|
|
|
|
|
|
|
@ -344,7 +347,7 @@ public class ServerPrinterPane extends BasicPane {
|
|
|
|
|
public void checkValid() throws Exception { |
|
|
|
|
String printerName = printerCombo.getSelectedItem().toString(); |
|
|
|
|
if (StringUtils.isBlank(printerName)) { |
|
|
|
|
throw new Exception(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_ReportServerP_The_Name_Of_Printer_Cannot_Be_Null") + "."); |
|
|
|
|
throw new Exception(BidiUtils.reverseConcatenateStrings(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_ReportServerP_The_Name_Of_Printer_Cannot_Be_Null"), ".")); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|