Browse Source

REPORT-4394 [9.0一轮回归]条件属性、超级链接重命名失败

master
plough 7 years ago
parent
commit
28c5146a0e
  1. 4
      designer_base/src/com/fr/design/gui/controlpane/UIListControlPane.java
  2. 5
      designer_base/src/com/fr/design/gui/ilist/UINameEdList.java

4
designer_base/src/com/fr/design/gui/controlpane/UIListControlPane.java

@ -132,6 +132,10 @@ public abstract class UIListControlPane extends UIControlPane {
protected void doAfterLostFocus() { protected void doAfterLostFocus() {
UIListControlPane.this.updateControlUpdatePane(); UIListControlPane.this.updateControlUpdatePane();
} }
@Override
protected void doAfterStopEditing() {
saveSettings();
}
}; };
nameEdList.setCellRenderer(new UINameableListCellRenderer(this)); nameEdList.setCellRenderer(new UINameableListCellRenderer(this));
return nameEdList; return nameEdList;

5
designer_base/src/com/fr/design/gui/ilist/UINameEdList.java

@ -312,9 +312,14 @@ public class UINameEdList extends UIList implements CellEditorListener {
String name = StringUtils.isBlank(value.toString()) ? oldName : value.toString(); String name = StringUtils.isBlank(value.toString()) ? oldName : value.toString();
setNameAt(name, editingIndex); setNameAt(name, editingIndex);
removeComp(); removeComp();
doAfterStopEditing();
} }
} }
protected void doAfterStopEditing() {
// default: do nothing
}
public String[] getAllNames() { public String[] getAllNames() {
int length = this.getModel().getSize(); int length = this.getModel().getSize();
String[] names = new String[length]; String[] names = new String[length];

Loading…
Cancel
Save