|
|
|
@ -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; |
|
|
|
|