Browse Source

Merge pull request #179 in BA/design from ~NEIL/design:master to master

* commit '8cdbfec451da44eea4a67f9f13e63f206794a6ab':
  更新jar后文件上传控件挂了.
master
superman 9 years ago
parent
commit
21fa832664
  1. 10
      designer/src/com/fr/design/write/submit/SubmitVisitorListPane.java

10
designer/src/com/fr/design/write/submit/SubmitVisitorListPane.java

@ -173,10 +173,9 @@ public class SubmitVisitorListPane extends ObjectJControlPane {
comboItemsMap = new HashMap<>(); comboItemsMap = new HashMap<>();
Set<SubmitProvider> providers = ExtraDesignClassManager.getInstance().getArray(SubmitProvider.MARK_STRING); Set<SubmitProvider> providers = ExtraDesignClassManager.getInstance().getArray(SubmitProvider.MARK_STRING);
providers.add(new DefaultSubmit()); addSubmitPane(new DefaultSubmit());
for (SubmitProvider provider : providers) { for (SubmitProvider provider : providers) {
customSubmitPanes.put(provider.keyForSubmit(), provider.appearanceForSubmit()); addSubmitPane(provider);
comboItemsMap.put(provider.keyForSubmit(), provider.dataForSubmit());
} }
configTypes = new ArrayList<>(); configTypes = new ArrayList<>();
@ -211,6 +210,11 @@ public class SubmitVisitorListPane extends ObjectJControlPane {
}); });
} }
private void addSubmitPane(SubmitProvider provider) {
customSubmitPanes.put(provider.keyForSubmit(), provider.appearanceForSubmit());
comboItemsMap.put(provider.keyForSubmit(), provider.dataForSubmit());
}
@Override @Override
public void populateBean(WClassSubmiterProvider ob) { public void populateBean(WClassSubmiterProvider ob) {
editing = ob; editing = ob;

Loading…
Cancel
Save