Browse Source

REPORT-63499

zheng-1641779399395
方磊 3 years ago
parent
commit
72b7bdacae
  1. 7
      designer-base/src/main/java/com/fr/design/gui/controlpane/UIListGroupControlPane.java

7
designer-base/src/main/java/com/fr/design/gui/controlpane/UIListGroupControlPane.java

@ -122,11 +122,12 @@ public abstract class UIListGroupControlPane extends UIControlPane implements Li
protected void populateNameObjects(Widget widget) { protected void populateNameObjects(Widget widget) {
ArrayList<NameObject> nameObjectList = new ArrayList<>(); ArrayList<NameObject> nameObjectList = new ArrayList<>();
for (int i = 0, j = 0, size = widget.getListenerSize(); i < size; i++) { for (int i = 0, size = widget.getListenerSize(); i < size; i++) {
Listener listener = widget.getListener(i); Listener listener = widget.getListener(i);
if (!listener.isDefault()) { if (!listener.isDefault()) {
nameObjectList.add(j, new NameObject(switchLang(listener.getEventName()) + (j + 1), listener)); String eventName = switchLang(listener.getEventName()) + (nameObjectList.size() + 1);
j++; NameObject nameObject = new NameObject(eventName, listener);
nameObjectList.add(nameObject);
} }
} }
populate(getHelper().processCatalog(nameObjectList)); populate(getHelper().processCatalog(nameObjectList));

Loading…
Cancel
Save