|
|
@ -60,7 +60,12 @@ public class FormEventManagerPane extends EventManagerPane<FormDesigner> { |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
private void traversalComponent(Component root) { |
|
|
|
private void traversalComponent(Component root) { |
|
|
|
if (root instanceof XLayoutContainer) { |
|
|
|
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++) { |
|
|
|
for (int i = 0; i < tree.getElementsIndex().size(); i++) { |
|
|
|
MyTree myTree = tree.getElementsIndex().get(i); |
|
|
|
MyTree myTree = tree.getElementsIndex().get(i); |
|
|
|
XCreator myCreator = ((MyWidget) myTree.getData()).getCreator(); |
|
|
|
XCreator myCreator = ((MyWidget) myTree.getData()).getCreator(); |
|
|
|