Package org.geomajas.plugin.printing.command.dto

Examples of org.geomajas.plugin.printing.command.dto.PrintTemplateInfo


    }
    builder.setTitleText((String) titleItem.getValue());
    builder.setWithArrow((Boolean) arrowCheckbox.getValue());
    builder.setWithScaleBar((Boolean) scaleBarCheckbox.getValue());
    builder.setRasterDpi((Integer) rasterDpiSlider.getValue());
    PrintTemplateInfo template = builder.buildTemplate();
    request.setTemplate(template);
    final GwtCommand command = new GwtCommand(PrintGetTemplateRequest.COMMAND);
    command.setCommandRequest(request);
    GwtCommandDispatcher.getInstance().execute(command, new CommandCallback() {
View Full Code Here


  private String applicationId;

  @Override
  public PrintTemplateInfo buildTemplate() {
    PrintTemplateInfo template = super.buildTemplate();
    template.setTemplate(false);
    template.setId(1L);
    template.setName("default");
    return template;
  }
View Full Code Here

*/

public abstract class TemplateBuilder {
 
  protected PrintTemplateInfo buildTemplate() {
    PrintTemplateInfo template = new PrintTemplateInfo();
    template.setPage(buildPage());
    return template;
  }
View Full Code Here

    return new PrintGetTemplateResponse();
  }

  public void execute(PrintGetTemplateRequest request, PrintGetTemplateResponse response) throws Exception {
    // you dirty hack you...
    PrintTemplateInfo template = request.getTemplate();
    PageComponent page = (PageComponent) converterService.toInternal(template.getPage());
    MapComponentImpl mapComponent = (MapComponentImpl) page.getChild(PrintTemplate.MAP);
    if (mapComponent != null) {
      LegendComponentImpl legendComponent = (LegendComponentImpl) mapComponent.getChild(PrintTemplate.LEGEND);
      if (legendComponent != null) {
        LabelComponentImpl lab = (LabelComponentImpl) legendComponent.getChild(PrintTemplate.TITLE);
View Full Code Here

    }
    builder.setTitleText((String) titleItem.getValue());
    builder.setWithArrow((Boolean) arrowCheckbox.getValue());
    builder.setWithScaleBar((Boolean) scaleBarCheckbox.getValue());
    builder.setRasterDpi((Integer) rasterDpiSlider.getValue());
    PrintTemplateInfo template = builder.buildTemplate();
    request.setTemplate(template);
    final GwtCommand command = new GwtCommand(PrintGetTemplateRequest.COMMAND);
    command.setCommandRequest(request);
    GwtCommandDispatcher.getInstance().execute(command, new AbstractCommandCallback<PrintGetTemplateResponse>() {
View Full Code Here

  protected String applicationId;

  @Override
  public PrintTemplateInfo buildTemplate() {
    PrintTemplateInfo template = super.buildTemplate();
    template.setId(1L);
    template.setName("default");
    return template;
  }
View Full Code Here

* @author Jan De Moerloose
*/
public abstract class AbstractTemplateBuilder {
 
  protected PrintTemplateInfo buildTemplate() {
    PrintTemplateInfo template = new PrintTemplateInfo();
    template.setPage(buildPage());
    return template;
  }
View Full Code Here

TOP

Related Classes of org.geomajas.plugin.printing.command.dto.PrintTemplateInfo

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.