Browse Source

事件管理器 form节点事件未包含

master
Joe 4 years ago committed by Joe.Jiang
parent
commit
233cfbfda5
  1. 7
      src/main/java/com/fr/plugin/event/manager/ui/FormEventManagerPane.java

7
src/main/java/com/fr/plugin/event/manager/ui/FormEventManagerPane.java

@ -60,7 +60,12 @@ public class FormEventManagerPane extends EventManagerPane<FormDesigner> {
*/
private void traversalComponent(Component root) {
if (root instanceof XLayoutContainer) {
tree.setData(new MyWidget((XLayoutContainer) root));
MyWidget rootWidget = new MyWidget((XLayoutContainer) root);
// form节点本身
if (rootWidget.getWidget().getListenerSize() > 0) {
rootWidget.setHasEvent(true);
}
tree.setData(rootWidget);
for (int i = 0; i < tree.getElementsIndex().size(); i++) {
MyTree myTree = tree.getElementsIndex().get(i);
XCreator myCreator = ((MyWidget) myTree.getData()).getCreator();

Loading…
Cancel
Save