Examples of TemplateLayout


Examples of com.dotmarketing.portlets.templates.design.bean.TemplateLayout

                title = (String) request.getAttribute( "title" );
            }
        }

        //Parse and return the layout for this template
        TemplateLayout layout = DesignTemplateUtil.getDesignParameters( drawedBody, isPreview );
        layout.setTitle( title );

        return layout;
    }
View Full Code Here

Examples of com.dotmarketing.portlets.templates.design.bean.TemplateLayout

     * @return
     */
    public static TemplateLayout getDesignParameters ( String drawedBody, Boolean isPreview ) {

        Document templateDrawedBody = Jsoup.parse( drawedBody );
        TemplateLayout parameters = new TemplateLayout();
        parameters.setPageWidth( getPageWithValue( templateDrawedBody ) );
        parameters.setHeader( hasHeader( templateDrawedBody ) );
        parameters.setFooter( hasFooter( templateDrawedBody ) );
        parameters.setLayout( getLayout( templateDrawedBody ) );
        //Set the body layout to the template
        setLayoutBody( parameters, templateDrawedBody, isPreview );

        return parameters;
    }
View Full Code Here

Examples of com.dotmarketing.portlets.templates.design.bean.TemplateLayout

      setForward(req, "portlet.ext.templates.design_template");
    }else if(isDrawed){
      req.setAttribute(WebKeys.OVERRIDE_DRAWED_TEMPLATE_BODY, true);
      // create the javascript parameters for left side (Page Width, Layout ecc..) of design template
      Template template = (Template) req.getAttribute(WebKeys.TEMPLATE_EDIT);
      TemplateLayout parameters = DesignTemplateUtil.getDesignParameters(template.getDrawedBody());
      req.setAttribute(WebKeys.TEMPLATE_JAVASCRIPT_PARAMETERS, parameters);
      setForward(req, "portlet.ext.templates.design_template");
    }else
      setForward(req, "portlet.ext.templates.edit_template");
    // *********************** END GRAZIANO issue-12-dnd-template   
View Full Code Here

Examples of com.dragome.templates.TemplateLayout

    setName(aName);
  }

  public VisualPanelImpl(Template template)
  {
    this(new TemplateLayout(template));
  }
View Full Code Here

Examples of com.dragome.templates.TemplateLayout

    private void setupComponent()
    {
  component.setName(template.getName());
  if (component instanceof VisualPanel)
      ((VisualPanel) component).initLayout(new TemplateLayout(template));
    }
View Full Code Here

Examples of com.dragome.templates.TemplateLayout

  public ComponentBuilder(VisualPanel component)
  {
    this.panel= component;
    if (component instanceof VisualPanel && ((VisualPanel) component).getLayout() instanceof TemplateLayout)
    {
      TemplateLayout templateLayout= (TemplateLayout) ((VisualPanel) component).getLayout();
      template= templateLayout.getTemplate();
    }
  }
View Full Code Here

Examples of com.dragome.templates.TemplateLayout

    setName(aName);
  }

  public VisualPanelImpl(Template template)
  {
    this(new TemplateLayout(template));
  }
View Full Code Here

Examples of com.dragome.templates.TemplateLayout

  public ComponentBuilder(VisualPanel component)
  {
    this.component= component;
    if (component instanceof VisualPanel && ((VisualPanel) component).getLayout() instanceof TemplateLayout)
    {
      TemplateLayout templateLayout= (TemplateLayout) ((VisualPanel) component).getLayout();
      template= templateLayout.getTemplate();
    }
    configureMethodListener();
  }
View Full Code Here

Examples of com.dragome.templates.TemplateLayout

    component.setName(template.getName());
    if (component instanceof VisualPanel)
    {
      VisualPanel visualPanel= (VisualPanel) component;
      if (!(visualPanel.getLayout() instanceof TemplateLayout) || ((TemplateLayout) visualPanel.getLayout()).getTemplate() == null)
        visualPanel.initLayout(new TemplateLayout(template));
    }
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.