Browse Source

REPORT-75998 优化代码

newui
Destiny.Lin 2 years ago
parent
commit
8f657a3d85
  1. 5
      designer-realize/src/main/java/com/fr/design/actions/replace/ui/ITReplaceWestPanel.java

5
designer-realize/src/main/java/com/fr/design/actions/replace/ui/ITReplaceWestPanel.java

@ -37,6 +37,7 @@ public class ITReplaceWestPanel {
private static final String HELP_URL = CloudCenter.getInstance().acquireUrlByKind("design.replace.help", "https://help.fanruan.com/finereport/doc-view-4954.html?source=3");
private static final int FILL_COUNT = 12;
public static final int LEFT_WIDTH = 100;
public static final String CONTENT_TEXT = "<html><font color = 'rgb(255,255,255)'>" + Toolkit.i18nText("Fine-Design_Basic_Templates_Content") + "</font></html>";
public ITReplaceWestPanel() {
@ -44,12 +45,12 @@ public class ITReplaceWestPanel {
iconLabel = new UILabel("<html><u><font color = 'rgb(61,153,249)'>" + Toolkit.i18nText("Fine-Design_Report_Community_Help") + "</font></u></html>");
UIToggleButton contentButton = new UIToggleButton(Toolkit.i18nText("Fine-Design_Basic_Templates_Content"));
contentButton.setText("<html><font color = 'rgb(255,255,255)'>" + Toolkit.i18nText("Fine-Design_Basic_Templates_Content") + "</font></html>");
contentButton.setText(CONTENT_TEXT);
contentButton.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
if (!contentButton.isSelected()) {
contentButton.setText("<html><font color = 'rgb(255,255,255)'>" + Toolkit.i18nText("Fine-Design_Basic_Templates_Content") + "</font></html>");
contentButton.setText(CONTENT_TEXT);
} else {
contentButton.setText(Toolkit.i18nText("Fine-Design_Basic_Templates_Content"));
}

Loading…
Cancel
Save