Browse Source

REPORT-4868 设计器视觉bug修改(二)部分=>10 下拉框风格统一

master
plough 7 years ago
parent
commit
b16fc8bffd
  1. 12
      designer_base/src/com/fr/design/editor/ValueEditorPane.java

12
designer_base/src/com/fr/design/editor/ValueEditorPane.java

@ -2,16 +2,17 @@ package com.fr.design.editor;
import com.fr.base.Formula; import com.fr.base.Formula;
import com.fr.design.DesignerEnvManager; import com.fr.design.DesignerEnvManager;
import com.fr.design.dialog.BasicPane;
import com.fr.design.editor.editor.*; import com.fr.design.editor.editor.*;
import com.fr.design.event.GlobalNameListener; import com.fr.design.event.GlobalNameListener;
import com.fr.design.event.GlobalNameObserver; import com.fr.design.event.GlobalNameObserver;
import com.fr.design.event.UIObserver; import com.fr.design.event.UIObserver;
import com.fr.design.event.UIObserverListener; import com.fr.design.event.UIObserverListener;
import com.fr.design.gui.ibutton.UIButton; import com.fr.design.gui.ibutton.UIButton;
import com.fr.design.gui.imenu.UIMenuItem; import com.fr.design.gui.imenu.UIMenuEastAttrItem;
import com.fr.design.gui.imenu.UIPopupEastAttrMenu;
import com.fr.design.layout.FRGUIPaneFactory; import com.fr.design.layout.FRGUIPaneFactory;
import com.fr.design.mainframe.DesignerContext; import com.fr.design.mainframe.DesignerContext;
import com.fr.design.dialog.BasicPane;
import com.fr.general.ComparatorUtils; import com.fr.general.ComparatorUtils;
import com.fr.general.Inter; import com.fr.general.Inter;
import com.fr.stable.StringUtils; import com.fr.stable.StringUtils;
@ -136,14 +137,14 @@ public class ValueEditorPane extends BasicPane implements UIObserver, GlobalName
private JPopupMenu createPopMenu() { private JPopupMenu createPopMenu() {
JPopupMenu scate = new JPopupMenu(); JPopupMenu scate = new UIPopupEastAttrMenu();
if (this.cards == null) { if (this.cards == null) {
return scate; return scate;
} }
for (int i = 0; i < this.cards.length; i++) { for (int i = 0; i < this.cards.length; i++) {
UIMenuItem item = new UIMenuItem(cards[i].getName()); JMenuItem item = new UIMenuEastAttrItem(cards[i].getName());
final int j = i; final int j = i;
item.addActionListener(new ActionListener() { item.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) { public void actionPerformed(ActionEvent e) {
@ -162,9 +163,6 @@ public class ValueEditorPane extends BasicPane implements UIObserver, GlobalName
} }
}); });
scate.add(item); scate.add(item);
if (i < cards.length - 1) {
scate.addSeparator();
}
} }
return scate; return scate;
} }

Loading…
Cancel
Save