Browse Source

判断还是要加上,可能在JWorkBook对象初始化之前,这边的逻辑就先开始了

feature/big-screen
Yvan 4 years ago
parent
commit
f8dd77b91b
  1. 14
      designer-realize/src/main/java/com/fr/design/parameter/ParameterDefinitePane.java

14
designer-realize/src/main/java/com/fr/design/parameter/ParameterDefinitePane.java

@ -237,7 +237,7 @@ public class ParameterDefinitePane extends JPanel implements ToolBarMenuDockPlus
*
* @param workBook
*/
public void populate(@NotNull final JWorkBook workBook) {
public void populate(final JWorkBook workBook) {
isEditing = false;
this.workBook = workBook;
ReportParameterAttr reportParameterAttr = workBook.getTarget().getReportParameterAttr();
@ -426,7 +426,9 @@ public class ParameterDefinitePane extends JPanel implements ToolBarMenuDockPlus
if (propertyChangeListener != null) {
propertyChangeListener.propertyChange();
}
workBook.setAutoHeightForCenterPane();
if (workBook != null) {
workBook.setAutoHeightForCenterPane();
}
}
/**
@ -447,7 +449,9 @@ public class ParameterDefinitePane extends JPanel implements ToolBarMenuDockPlus
if (propertyChangeListener != null) {
propertyChangeListener.propertyChange();
}
workBook.setAutoHeightForCenterPane();
if (workBook != null) {
workBook.setAutoHeightForCenterPane();
}
}
/**
@ -470,7 +474,9 @@ public class ParameterDefinitePane extends JPanel implements ToolBarMenuDockPlus
if (propertyChangeListener != null) {
propertyChangeListener.propertyChange();
}
workBook.setAutoHeightForCenterPane();
if (workBook != null) {
workBook.setAutoHeightForCenterPane();
}
}
/**

Loading…
Cancel
Save