Browse Source

REPORT-40027 代码修改

feature/big-screen
Yuan.Wang 4 years ago
parent
commit
08f4f30d67
  1. 22
      designer-base/src/main/java/com/fr/design/mainframe/JTemplateActionListenerAdapter.java
  2. 10
      designer-form/src/main/java/com/fr/design/mainframe/ComponentTree.java
  3. 12
      designer-form/src/main/java/com/fr/design/mainframe/JForm.java

22
designer-base/src/main/java/com/fr/design/mainframe/JTemplateActionListenerAdapter.java

@ -0,0 +1,22 @@
package com.fr.design.mainframe;
/**
* @Author: Yuan.Wang
* @Date: 2020/10/27
*/
public class JTemplateActionListenerAdapter implements JTemplateActionListener {
@Override
public void templateOpened(JTemplate<?, ?> jt) {
}
@Override
public void templateSaved(JTemplate<?, ?> jt) {
}
@Override
public void templateClosed(JTemplate<?, ?> jt) {
}
}

10
designer-form/src/main/java/com/fr/design/mainframe/ComponentTree.java

@ -202,7 +202,7 @@ public class ComponentTree extends JTree {
* 删除key对应的缓存展开路径 * 删除key对应的缓存展开路径
*/ */
public void removeTreePath(String key) { public void removeTreePath(String key) {
if (!StringUtils.isEmpty(key)) { if (StringUtils.isNotEmpty(key)) {
treePathCache.remove(key); treePathCache.remove(key);
} }
} }
@ -267,13 +267,7 @@ public class ComponentTree extends JTree {
return; return;
} }
for (TreePath treePath : list) { for (TreePath treePath : list) {
if (treePath.getLastPathComponent() instanceof XLayoutContainer) { expandPath(treePath);
XLayoutContainer creator = (XLayoutContainer) treePath.getLastPathComponent();
if (XCreatorUtils.getParentXLayoutContainer(creator) == null) {
continue;
}
expandPath(treePath);
}
} }
} }

12
designer-form/src/main/java/com/fr/design/mainframe/JForm.java

@ -307,17 +307,7 @@ public class JForm extends JTemplate<Form, FormUndoState> implements BaseJForm<F
} }
} }
}); });
addJTemplateActionListener(new JTemplateActionListener() { addJTemplateActionListener(new JTemplateActionListenerAdapter() {
@Override
public void templateOpened(JTemplate<?, ?> jt) {
}
@Override
public void templateSaved(JTemplate<?, ?> jt) {
}
@Override @Override
public void templateClosed(JTemplate<?, ?> jt) { public void templateClosed(JTemplate<?, ?> jt) {
String key = jt.getEditingFILE().getPath() + template.getTemplateID(); String key = jt.getEditingFILE().getPath() + template.getTemplateID();

Loading…
Cancel
Save