Browse Source

REPORT-50744 用JTemplateProvider替代JTemplate

pull/12/head
方磊 4 years ago
parent
commit
198f73b578
  1. 6
      src/main/java/com/fanruan/api/design/DesignKit.java

6
src/main/java/com/fanruan/api/design/DesignKit.java

@ -1,6 +1,8 @@
package com.fanruan.api.design; package com.fanruan.api.design;
import com.fr.base.io.BaseBook;
import com.fr.design.DesignerEnvManager; import com.fr.design.DesignerEnvManager;
import com.fr.design.mainframe.JTemplateProvider;
import com.fr.design.mainframe.WidgetPropertyPane; import com.fr.design.mainframe.WidgetPropertyPane;
import com.fr.base.TableData; import com.fr.base.TableData;
import com.fr.design.DesignModelAdapter; import com.fr.design.DesignModelAdapter;
@ -80,8 +82,8 @@ public class DesignKit {
* @param template 指定模板 * @param template 指定模板
* @return 模板ID * @return 模板ID
*/ */
public static String getTemplateId(JTemplate<?, ?> template) { public static String getTemplateId(JTemplateProvider template) {
return template.getTarget().getTemplateID(); return ((BaseBook) template.getTarget()).getTemplateID();
} }
/** /**

Loading…
Cancel
Save