Browse Source

模版web属性-js、css

persist/11.0-arabic
obo 4 months ago
parent
commit
c99ba9da45
  1. 6
      designer-base/src/main/java/com/fr/design/gui/frpane/EditingStringListPane.java
  2. 6
      designer-realize/src/main/java/com/fr/design/webattr/WebCssPane.java
  3. 6
      designer-realize/src/main/java/com/fr/design/webattr/WebJsPane.java

6
designer-base/src/main/java/com/fr/design/gui/frpane/EditingStringListPane.java

@ -1,5 +1,6 @@
package com.fr.design.gui.frpane; package com.fr.design.gui.frpane;
import com.fr.base.i18n.BidiUtils;
import com.fr.design.beans.BasicBeanPane; import com.fr.design.beans.BasicBeanPane;
import com.fr.design.dialog.FineJOptionPane; import com.fr.design.dialog.FineJOptionPane;
import com.fr.design.gui.ibutton.UIButton; import com.fr.design.gui.ibutton.UIButton;
@ -68,13 +69,13 @@ public abstract class EditingStringListPane extends BasicBeanPane<List<String>>
eastPane.add(removeButton); eastPane.add(removeButton);
eastPane.add(moveUpButton); eastPane.add(moveUpButton);
eastPane.add(moveDownButton); eastPane.add(moveDownButton);
this.add(GUICoreUtils.createBorderPane(eastPane, BorderLayout.NORTH), BorderLayout.EAST); this.add(GUICoreUtils.createBorderPane(eastPane, BorderLayout.NORTH), BidiUtils.rtl() ? BorderLayout.WEST : BorderLayout.EAST);
JPanel centerPane = new JPanel(new BorderLayout(0, 5)); JPanel centerPane = new JPanel(new BorderLayout(0, 5));
this.add(centerPane, BorderLayout.CENTER); this.add(centerPane, BorderLayout.CENTER);
JPanel northcenterPane = FRGUIPaneFactory.createBorderLayout_S_Pane(); JPanel northcenterPane = FRGUIPaneFactory.createBorderLayout_S_Pane();
northcenterPane.setBorder(BorderFactory.createEmptyBorder(0, 0, 0, 5)); northcenterPane.setBorder(BorderFactory.createEmptyBorder(0, 0, 0, 5));
northcenterPane.add(addButton, BorderLayout.EAST); northcenterPane.add(addButton, BidiUtils.rtl() ? BorderLayout.WEST : BorderLayout.EAST);
centerPane.add(northcenterPane, BorderLayout.NORTH); centerPane.add(northcenterPane, BorderLayout.NORTH);
centerPane.add(new JScrollPane(jlist), BorderLayout.CENTER); centerPane.add(new JScrollPane(jlist), BorderLayout.CENTER);
@ -82,6 +83,7 @@ public abstract class EditingStringListPane extends BasicBeanPane<List<String>>
this.addButton.setEnabled(false); this.addButton.setEnabled(false);
this.checkEnableState(); this.checkEnableState();
BidiUtils.applyOrientationByLocale(this);
} }
private void addListener() { private void addListener() {

6
designer-realize/src/main/java/com/fr/design/webattr/WebCssPane.java

@ -1,5 +1,6 @@
package com.fr.design.webattr; package com.fr.design.webattr;
import com.fr.base.i18n.BidiUtils;
import com.fr.design.dialog.BasicPane; import com.fr.design.dialog.BasicPane;
import com.fr.design.gui.frpane.EditingStringListPane; import com.fr.design.gui.frpane.EditingStringListPane;
import com.fr.design.gui.ibutton.UIButton; import com.fr.design.gui.ibutton.UIButton;
@ -37,14 +38,14 @@ public class WebCssPane extends BasicPane {
this.setBorder(BorderFactory.createEmptyBorder(10, 5, 0, 0)); this.setBorder(BorderFactory.createEmptyBorder(10, 5, 0, 0));
JPanel outnorth = new JPanel(new BorderLayout(0, 5)); JPanel outnorth = new JPanel(new BorderLayout(0, 5));
JPanel northPane = new JPanel(new FlowLayout(FlowLayout.LEFT,8,0)); JPanel northPane = new JPanel(new FlowLayout(BidiUtils.rtl() ? FlowLayout.RIGHT : FlowLayout.LEFT,8,0));
localText = new UITextField(); localText = new UITextField();
localText.setPreferredSize(DesignSizeI18nManager.getInstance().i18nDimension("com.fr.design.web.pane.text.field")); localText.setPreferredSize(DesignSizeI18nManager.getInstance().i18nDimension("com.fr.design.web.pane.text.field"));
localText.setEditable(false); localText.setEditable(false);
chooseFile = new UIButton(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_Selection")); chooseFile = new UIButton(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_Selection"));
chooseFile.setPreferredSize(new Dimension(75, 23)); chooseFile.setPreferredSize(new Dimension(75, 23));
chooseFile.addActionListener(chooseFileListener); chooseFile.addActionListener(chooseFileListener);
northPane.add(new UILabel(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_Disk_File") + ":"), FlowLayout.LEFT); northPane.add(new UILabel(BidiUtils.reverseConcatenateStrings(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_Disk_File"), ":")), FlowLayout.LEFT);
northPane.add(localText, FlowLayout.CENTER); northPane.add(localText, FlowLayout.CENTER);
northPane.add(chooseFile, FlowLayout.RIGHT); northPane.add(chooseFile, FlowLayout.RIGHT);
outnorth.add(northPane,BorderLayout.NORTH); outnorth.add(northPane,BorderLayout.NORTH);
@ -67,6 +68,7 @@ public class WebCssPane extends BasicPane {
} }
}; };
this.add(centerPane, BorderLayout.CENTER); this.add(centerPane, BorderLayout.CENTER);
BidiUtils.applyOrientationByLocale(this);
} }
private ActionListener chooseFileListener = new ActionListener() { private ActionListener chooseFileListener = new ActionListener() {

6
designer-realize/src/main/java/com/fr/design/webattr/WebJsPane.java

@ -1,5 +1,6 @@
package com.fr.design.webattr; package com.fr.design.webattr;
import com.fr.base.i18n.BidiUtils;
import com.fr.design.dialog.BasicPane; import com.fr.design.dialog.BasicPane;
import com.fr.design.dialog.FineJOptionPane; import com.fr.design.dialog.FineJOptionPane;
import com.fr.design.gui.frpane.EditingStringListPane; import com.fr.design.gui.frpane.EditingStringListPane;
@ -55,8 +56,8 @@ public class WebJsPane extends BasicPane {
this.setLayout(new BorderLayout(0, 20)); this.setLayout(new BorderLayout(0, 20));
this.setBorder(BorderFactory.createEmptyBorder(10, 5, 0, 0)); this.setBorder(BorderFactory.createEmptyBorder(10, 5, 0, 0));
localFileRadioButton = new UIRadioButton(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_Disk_File") + ":", true); localFileRadioButton = new UIRadioButton(BidiUtils.reverseConcatenateStrings(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_Disk_File"), ":"), true);
urlFileRadioButton = new UIRadioButton(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_Url_Location")+ ":", false); urlFileRadioButton = new UIRadioButton(BidiUtils.reverseConcatenateStrings(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_Url_Location"), ":"), false);
ButtonGroup bg = new ButtonGroup(); ButtonGroup bg = new ButtonGroup();
bg.add(localFileRadioButton); bg.add(localFileRadioButton);
bg.add(urlFileRadioButton); bg.add(urlFileRadioButton);
@ -89,6 +90,7 @@ public class WebJsPane extends BasicPane {
createNorthPane(); createNorthPane();
createEditingPane(); createEditingPane();
BidiUtils.applyOrientationByLocale(this);
} }
private void createNorthPane() { private void createNorthPane() {

Loading…
Cancel
Save