Browse Source

Merge pull request #447 in DESIGN/design from ~ZACK/design:release/10.0 to release/10.0

* commit 'f924ace68d225ad833c15b5915aa2be5ee856304':
  REPORT-11059 插入行策略,默认值设置为公式,修改公示后不能成功修改!!!
final/10.0
zack 6 years ago
parent
commit
0dfb979de0
  1. 16
      designer-base/src/main/java/com/fr/design/editor/ValueEditorPane.java

16
designer-base/src/main/java/com/fr/design/editor/ValueEditorPane.java

@ -344,8 +344,24 @@ public class ValueEditorPane extends BasicPane implements UIObserver, GlobalName
*
* @param listener 观察者监听事件
*/
@Override
public void registerNameListener(GlobalNameListener listener) {
globalNameListener = listener;
for (Editor card : cards) {
doLoop(card, listener);
}
}
private void doLoop(Container card, GlobalNameListener listener) {
for (int i = 0, len = card.getComponentCount(); i < len; i++) {
Component tmpComp = card.getComponent(i);
if (tmpComp instanceof Container) {
doLoop((Container) tmpComp, listener);
}
if (tmpComp instanceof GlobalNameObserver) {
((GlobalNameObserver) tmpComp).registerNameListener(listener);
}
}
}
/**

Loading…
Cancel
Save