Browse Source

控件显示增强

persist/11.0-arabic
obo 4 months ago
parent
commit
c17ae5dcbb
  1. 20
      designer-base/src/main/java/com/fr/widgettheme/designer/WidgetThemeDisplayConfigPane.java

20
designer-base/src/main/java/com/fr/widgettheme/designer/WidgetThemeDisplayConfigPane.java

@ -1,13 +1,16 @@
package com.fr.widgettheme.designer;
import com.fr.base.i18n.BidiUtils;
import com.fr.design.dialog.BasicPane;
import com.fr.design.gui.icheckbox.UICheckBox;
import com.fr.design.gui.ilable.UILabel;
import com.fr.design.i18n.Toolkit;
import com.fr.design.layout.FRGUIPaneFactory;
import com.fr.design.layout.VerticalFlowLayout;
import com.fr.widgettheme.control.attr.WidgetDisplayEnhanceMarkAttr;
import javax.swing.BorderFactory;
import javax.swing.Box;
import javax.swing.BoxLayout;
import javax.swing.JPanel;
import java.awt.Color;
@ -27,20 +30,25 @@ public class WidgetThemeDisplayConfigPane extends BasicPane {
}
private void initComponents() {
VerticalFlowLayout layout = new VerticalFlowLayout();
layout.setAlignLeft(true);
this.setLayout(layout);
this.setLayout(new BoxLayout(this, BoxLayout.Y_AXIS));
JPanel northPane = FRGUIPaneFactory.createBorderLayout_S_Pane();
this.add(northPane);
northPane.setBorder(BorderFactory.createEmptyBorder(0, 5, 0 ,5));
widgetEnhance = new UICheckBox(Toolkit.i18nText("Fine-Design_Widget_Enable_Display_Enhance"));
widgetEnhance.setSelected(true);
northPane.add(widgetEnhance);
JPanel southPane = FRGUIPaneFactory.createBorderLayout_S_Pane();
this.add(southPane);
southPane.setBorder(BorderFactory.createEmptyBorder(0, 5, 0 ,5));
UILabel label = new UILabel(Toolkit.i18nText("Fine-Design_Widget_Display_Enhance_Tip"));
label.setForeground(Color.GRAY);
southPane.add(label);
this.add(Box.createVerticalStrut(20));
this.add(northPane);
this.add(southPane);
this.add(Box.createVerticalStrut(25));
BidiUtils.applyOrientationByLocale(this);
}
@Override

Loading…
Cancel
Save