Browse Source

REPORT-50744 用JTemplateProvider替代JTemplate

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

8
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;
@ -76,12 +78,12 @@ public class DesignKit {
/** /**
* 获取指定模板的ID * 获取指定模板的ID
* *
* @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