Browse Source

Merge pull request #4323 in DESIGN/design from feature/10.0 to feature/x

* commit '28b02fd2700f2b05370a7276268a8b1029338241':
  REPORT-52538 组件复用-合入主版本-事件的常规设置处,切换组件后再查看,事件设置面板就不显示内容了
research/11.0
superman 4 years ago
parent
commit
97699f5dd5
  1. 6
      designer-form/src/main/java/com/fr/design/gui/controlpane/EventPropertyPane.java

6
designer-form/src/main/java/com/fr/design/gui/controlpane/EventPropertyPane.java

@ -205,14 +205,14 @@ public class EventPropertyPane extends UIControlPane implements ListControlPaneP
nameEdList.setName(text);
nameEdList.setSelectionBackground(UIConstants.ATTRIBUTE_PRESS);
nameEdList.setSelectionMode(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION);
nameEdList.addMouseListener(getHelper().getListMouseListener(nameEdList, this));
nameEdList.addMouseListener(new MouseAdapter() {
@Override
public void mouseClicked(MouseEvent e) {
public void mouseReleased(MouseEvent e) {
selectNameEdList = nameEdList;
updateUINameListSelect();
}
});
nameEdList.addMouseListener(getHelper().getListMouseListener(nameEdList, this));
nameEdList.addModNameActionListener(new ModNameActionListener() {
@Override
public void nameModed(int index, String oldName, String newName) {
@ -222,7 +222,7 @@ public class EventPropertyPane extends UIControlPane implements ListControlPaneP
nameEdList.addListSelectionListener(new ListSelectionListener() {
public void valueChanged(ListSelectionEvent evt) {
// richie:避免多次update和populate大大降低效率
if (!evt.getValueIsAdjusting() && !isPopulating) {
if (!evt.getValueIsAdjusting()) {
// shoc 切换的时候加检验
if (hasInvalid(false)) {
return;

Loading…
Cancel
Save