Browse Source

INO-21074 参数编辑框

persist/11.0-arabic
obo 4 months ago
parent
commit
c9bc43f27d
  1. 4
      designer-base/src/main/java/com/fr/design/editor/editor/BooleanEditor.java
  2. 4
      designer-base/src/main/java/com/fr/design/editor/editor/DateEditor.java

4
designer-base/src/main/java/com/fr/design/editor/editor/BooleanEditor.java

@ -3,6 +3,7 @@
*/
package com.fr.design.editor.editor;
import com.fr.base.i18n.BidiUtils;
import com.fr.design.gui.icheckbox.UICheckBox;
import com.fr.design.layout.FRGUIPaneFactory;
@ -40,7 +41,7 @@ public class BooleanEditor extends Editor<Boolean> {
public BooleanEditor(Boolean value) {
this.setLayout(FRGUIPaneFactory.createBorderLayout());
booleanCheckBox = new UICheckBox("true");
this.add(booleanCheckBox, BorderLayout.CENTER);
this.add(booleanCheckBox, BorderLayout.LINE_START);
this.setValue(value);
this.setName(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Basic_Parameter_Boolean"));
booleanCheckBox.addItemListener(new ItemListener() {
@ -49,6 +50,7 @@ public class BooleanEditor extends Editor<Boolean> {
fireStateChanged();
}
});
BidiUtils.applyOrientationByLocale(this);
}
public JComponent getEditComp() {

4
designer-base/src/main/java/com/fr/design/editor/editor/DateEditor.java

@ -3,6 +3,7 @@
*/
package com.fr.design.editor.editor;
import com.fr.base.i18n.BidiUtils;
import com.fr.design.gui.date.UIDatePicker;
import com.fr.design.layout.FRGUIPaneFactory;
import com.fr.general.GeneralContext;
@ -73,10 +74,11 @@ public class DateEditor extends Editor<Date> {
}
});
this.uiDatePicker.setFocusTraversalKeysEnabled(false);
this.add(uiDatePicker, BorderLayout.CENTER);
this.add(uiDatePicker, BorderLayout.LINE_START);
this.setValue(value);
this.setName(name);
BidiUtils.applyOrientationByLocale(this);
}
//uidatepicker的setstyle方法不起作用,先粗暴地加个构造方法

Loading…
Cancel
Save