Package cn.com.template

Examples of cn.com.template.ContentTemplate


            List<Task> tasks = OperatFactory.getServiceObject(BussinessRelationServeice.class).getTasksByUserId(userId);
            TaskIPKFormBean content = new TaskIPKFormBean();
            content.setTasks(tasks);
            AnnotationParser parser = new AnnotationParser(content, "ajax");
            parser.setCurrentComponents("table");
            ContentTemplate contentTemplate = (ContentTemplate) ApplicationStyle.getCurrentStyle().getTemplate(ContentTemplate.class);
            contentTemplate.setParser(parser);
            contentTemplate.setPermission(null);
            String content1 = contentTemplate.content();
            ActionContext.getResponse().getWriter().print(content1);
        } catch (IOException ex) {
            Logger.getLogger(Index.class.getName()).log(Level.SEVERE, null, ex);
        } catch (AppException ex) {
            Logger.getLogger(Index.class.getName()).log(Level.SEVERE, null, ex);
View Full Code Here


*/
public class DefaultTemplateFactory implements TemplateFactory {

    @Override
    public ContentTemplate getContentTemplate(String style) {
        ContentTemplate content = new DefaultContentTemplate();
        content.setStyle(style);
        return content;
    }
View Full Code Here

*/
public class WmsTemplateFactory implements TemplateFactory {

    @Override
    public ContentTemplate getContentTemplate(String style) {
        ContentTemplate content = new WmsContentTemplate();
        content.setStyle(style);
        return content;
    }
View Full Code Here

                // 设定许可
                Permission permissionImpl = null;
                if (isPermission()) {
                    permissionImpl = PermissionManager.getUserPermission();
                }
                ContentTemplate contentTemplate = (ContentTemplate) style.getTemplate(ContentTemplate.class);
                contentTemplate.setParser(parser);
                contentTemplate.setPermission(permissionImpl);
                String content = contentTemplate.content();

                settingContentScope(pageContext, content, parser.getTitle());
                template = (templatePath == null ? _BLANK : templatePath) + template;

                pageContext.include(template);
View Full Code Here

TOP

Related Classes of cn.com.template.ContentTemplate

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.