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