|
|
|
@ -24,28 +24,21 @@ public class FormEventManagerPane extends EventManagerPane<FormDesigner> {
|
|
|
|
|
|
|
|
|
|
private final int ABSOLUTE_AS_BODY_NOT_FOUND = -1; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 先调用super.initComponents(),执行initData() |
|
|
|
|
* 之后tree已经被初始化了 |
|
|
|
|
* |
|
|
|
|
* @param container |
|
|
|
|
*/ |
|
|
|
|
@Override |
|
|
|
|
protected void initComponents(JPanel container) { |
|
|
|
|
super.initComponents(container); |
|
|
|
|
container.setLayout(FRGUIPaneFactory.createBorderLayout()); |
|
|
|
|
eventConfigPane = new EventConfigPane(tree, true); |
|
|
|
|
container.add(eventConfigPane, BorderLayout.CENTER); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public void initData(FormDesigner target) { |
|
|
|
|
protected void initData(FormDesigner target) { |
|
|
|
|
tree = new MyTree(); |
|
|
|
|
Component root = target.getTopContainer(); |
|
|
|
|
traversalComponent(root); |
|
|
|
|
filterWidget(tree); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
protected void createComponents(JPanel container) { |
|
|
|
|
container.setLayout(FRGUIPaneFactory.createBorderLayout()); |
|
|
|
|
eventConfigPane = new EventConfigPane(tree, true); |
|
|
|
|
container.add(eventConfigPane, BorderLayout.CENTER); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 当initComponents执行完后调用 |
|
|
|
|
*/ |
|
|
|
|