|
|
@ -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(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|