Browse Source

Pull request #4315: REPORT-52538 组件复用-合入主版本-事件的常规设置处,切换组件后再查看,事件设置面板就不显示内容了

Merge in DESIGN/design from ~KERRY/design_10.0:feature/10.0 to feature/10.0

* commit '96b2f00fdaf01fb5d30313a2f976c73d5f39ca8b':
  REPORT-52538 组件复用-合入主版本-事件的常规设置处,切换组件后再查看,事件设置面板就不显示内容了
feature/10.0
kerry 4 years ago
parent
commit
28b02fd270
  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